|
|
@ -168,12 +168,7 @@ public class PurApplyController {
|
|
|
|
purPlanEntity.setBillNo(billNo);
|
|
|
|
purPlanEntity.setBillNo(billNo);
|
|
|
|
purPlanEntity.setBillDate(new Date());
|
|
|
|
purPlanEntity.setBillDate(new Date());
|
|
|
|
purPlanEntity.setStatus(ConstantStatus.APPLY_DRAFT);
|
|
|
|
purPlanEntity.setStatus(ConstantStatus.APPLY_DRAFT);
|
|
|
|
// purPlanEntity.setLocStorageCode(purApplyEntity.getTargetInv());
|
|
|
|
|
|
|
|
// purPlanEntity.setInvWarehouseCode(purApplyEntity.getTargetSubInv());
|
|
|
|
|
|
|
|
purPlanEntity.setBillType("purPlan");
|
|
|
|
purPlanEntity.setBillType("purPlan");
|
|
|
|
// purPlanEntity.setBillType(purApplyEntity.getTargetBillType());
|
|
|
|
|
|
|
|
// purPlanEntity.setDeptCode(purApplyEntity.getDeptCode());
|
|
|
|
|
|
|
|
// purPlanEntity.setCreateBy(purApplyEntity.getAuditBy());
|
|
|
|
|
|
|
|
purPlanEntity.setCreateTime(new Date());
|
|
|
|
purPlanEntity.setCreateTime(new Date());
|
|
|
|
purPlanEntity.setUpdateTime(new Date());
|
|
|
|
purPlanEntity.setUpdateTime(new Date());
|
|
|
|
purPlanEntity.setApplyBillNo(purApplyEntity.getBillNo());
|
|
|
|
purPlanEntity.setApplyBillNo(purApplyEntity.getBillNo());
|
|
|
@ -182,8 +177,9 @@ public class PurApplyController {
|
|
|
|
purPlanEntity.setApplyAuditBy(purApplyEntity.getAuditBy());
|
|
|
|
purPlanEntity.setApplyAuditBy(purApplyEntity.getAuditBy());
|
|
|
|
purPlanEntity.setRemark("申购科室:" + purApplyRequest.getSubInvName() +
|
|
|
|
purPlanEntity.setRemark("申购科室:" + purApplyRequest.getSubInvName() +
|
|
|
|
";申购人:" + purApplyRequest.getCreateByName() + ";申购原因:" + purApplyRequest.getRemark());
|
|
|
|
";申购人:" + purApplyRequest.getCreateByName() + ";申购原因:" + purApplyRequest.getRemark());
|
|
|
|
|
|
|
|
purApplyEntity.setPlanBillNo(purPlanEntity.getBillNo());
|
|
|
|
|
|
|
|
purApplyEntity.setGeneratePlan(true);
|
|
|
|
|
|
|
|
purApplyService.update(purApplyEntity);
|
|
|
|
purPlanService.insert(purPlanEntity);
|
|
|
|
purPlanService.insert(purPlanEntity);
|
|
|
|
List<PurApplyDetailEntity> purApplyDetailEntities = purApplyDetailService.findByOrderId(purApplyEntity.getId() + "");
|
|
|
|
List<PurApplyDetailEntity> purApplyDetailEntities = purApplyDetailService.findByOrderId(purApplyEntity.getId() + "");
|
|
|
|
if (CollUtil.isNotEmpty(purApplyDetailEntities)) {
|
|
|
|
if (CollUtil.isNotEmpty(purApplyDetailEntities)) {
|
|
|
|