|  |  |  | @ -125,11 +125,8 @@ public class IoPurChangeService { | 
			
		
	
		
			
				
					|  |  |  |  |         PurPlanEntity purPlanEntity = new PurPlanEntity(); | 
			
		
	
		
			
				
					|  |  |  |  |         List<PurPlanDetailEntity> purPlanDetailEntityList = new ArrayList<>(); | 
			
		
	
		
			
				
					|  |  |  |  |         if (purApplyEntity.getStatus() == 3) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             basicBusTypeChangeEntity = basicBusTypeChangeService.selectByOriginAction("CPSG"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (basicBusTypeChangeEntity != null && StrUtil.isNotEmpty(basicBusTypeChangeEntity.getTargetBusAction()) && basicBusTypeChangeEntity.isEnable() == true) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanEntity.setBillNo(gennerOrderUtils.createStOrderNo(new OrderNoTypeBean(Constant.JH_ORDER, "yyyyMMdd"))); | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanEntity.setBillDate(purApplyEntity.getBillDate()); | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanEntity.setStatus(basicBusTypeChangeEntity.getBusAuditStatus()); | 
			
		
	
	
		
			
				
					|  |  |  | @ -139,9 +136,11 @@ public class IoPurChangeService { | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanEntity.setInvCode(purApplyEntity.getInvCode()); | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanEntity.setDeptCode(purApplyEntity.getDeptCode()); | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanEntity.setCreateUser(purApplyEntity.getAuditUser()); | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanEntity.setCreateTime(DateUtil.timeProcess(purApplyEntity.getCreateTime(), basicBusTypeChangeEntity.getBusBeforeTime())); | 
			
		
	
		
			
				
					|  |  |  |  |                 //purPlanEntity.setCreateTime(DateUtil.timeProcess(purApplyEntity.getCreateTime(), basicBusTypeChangeEntity.getBusBeforeTime()));
 | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanEntity.setCreateTime(purApplyEntity.getCreateTime()); | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanEntity.setUpdateUser(purApplyEntity.getAuditUser()); | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanEntity.setUpdateTime(DateUtil.timeProcess(purApplyEntity.getCreateTime(), basicBusTypeChangeEntity.getBusBeforeTime())); | 
			
		
	
		
			
				
					|  |  |  |  |                 //purPlanEntity.setUpdateTime(DateUtil.timeProcess(purApplyEntity.getCreateTime(), basicBusTypeChangeEntity.getBusBeforeTime()));
 | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanEntity.setUpdateTime(purApplyEntity.getUpdateTime()); | 
			
		
	
		
			
				
					|  |  |  |  |                 if (purPlanEntity.getStatus() == 3) { | 
			
		
	
		
			
				
					|  |  |  |  |                     purPlanEntity.setAuditUser(""); | 
			
		
	
		
			
				
					|  |  |  |  |                     purPlanEntity.setAuditTime(new Date()); | 
			
		
	
	
		
			
				
					|  |  |  | @ -160,10 +159,7 @@ public class IoPurChangeService { | 
			
		
	
		
			
				
					|  |  |  |  |                     return d; | 
			
		
	
		
			
				
					|  |  |  |  |                 }).collect(Collectors.toList()); | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanDetailService.insertPurPlanDetailEntity(purPlanDetailEntityList); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 purPlanChange(purPlanEntity); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 //更新申购表信息插入计划单号
 | 
			
		
	
		
			
				
					|  |  |  |  |                 PurApplyEntity purApplyEntity1 = new PurApplyEntity(); | 
			
		
	
		
			
				
					|  |  |  |  |                 purApplyEntity1.setId(purApplyEntity.getId()); | 
			
		
	
	
		
			
				
					|  |  |  | @ -171,10 +167,9 @@ public class IoPurChangeService { | 
			
		
	
		
			
				
					|  |  |  |  |                 purApplyEntity1.setGeneratePlan(true); | 
			
		
	
		
			
				
					|  |  |  |  |                 purApplyService.update(purApplyEntity1); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (basicBusTypeChangeEntity != null && StrUtil.isNotEmpty(basicBusTypeChangeEntity.getTargetBusAction()) && basicBusTypeChangeEntity.isEnable() == true) { | 
			
		
	
		
			
				
					|  |  |  |  |                 purApplyGen(purApplyEntity); | 
			
		
	
		
			
				
					|  |  |  |  |                 System.out.println("6666666666666666666999999999999999"); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  |  | @ -340,15 +335,39 @@ public class IoPurChangeService { | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setOrderIdFk(ioOrderEntity.getBillNo()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setBindRlFk(Long.valueOf(obj.getProductId())); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setCount(obj.getCount()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setUuidFk(basicProductsEntity.getUuid()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setNameCode(basicProductsEntity.getNameCode()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setCoName(basicProductsEntity.getCpmctymc()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setCertCode(basicProductsEntity.getZczbhhzbapzbh()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setYlqxzcrbarmc(basicProductsEntity.getYlqxzcrbarmc()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setManufacturer(basicProductsEntity.getManufactory()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setMeasname(basicProductsEntity.getMeasname()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setSpec(basicProductsEntity.getGgxh()); | 
			
		
	
		
			
				
					|  |  |  |  |                     if (basicProductsEntity.getPrice() != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                     if (basicProductsEntity != null && basicProductsEntity.getUuid() != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         ioOrderDetailBizEntity.setUuidFk(basicProductsEntity.getUuid()); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  | //                    ioOrderDetailBizEntity.setUuidFk(basicProductsEntity.getUuid());
 | 
			
		
	
		
			
				
					|  |  |  |  | //                    ioOrderDetailBizEntity.setNameCode(basicProductsEntity.getNameCode());
 | 
			
		
	
		
			
				
					|  |  |  |  |                     if (basicProductsEntity != null && basicProductsEntity.getNameCode() != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         ioOrderDetailBizEntity.setNameCode(basicProductsEntity.getNameCode()); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     if (basicProductsEntity != null && basicProductsEntity.getCpmctymc() != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         ioOrderDetailBizEntity.setCoName(basicProductsEntity.getCpmctymc()); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                     if (basicProductsEntity != null && basicProductsEntity.getZczbhhzbapzbh() != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         ioOrderDetailBizEntity.setCertCode(basicProductsEntity.getZczbhhzbapzbh()); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     if (basicProductsEntity != null && basicProductsEntity.getYlqxzcrbarmc() != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         ioOrderDetailBizEntity.setYlqxzcrbarmc(basicProductsEntity.getYlqxzcrbarmc()); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     if (basicProductsEntity != null && basicProductsEntity.getManufactory() != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         ioOrderDetailBizEntity.setManufacturer(basicProductsEntity.getManufactory()); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     if (basicProductsEntity != null && basicProductsEntity.getMeasname() != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         ioOrderDetailBizEntity.setMeasname(basicProductsEntity.getMeasname()); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     if (basicProductsEntity != null && basicProductsEntity.getGgxh() != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         ioOrderDetailBizEntity.setSpec(basicProductsEntity.getGgxh()); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  | //                    if (basicProductsEntity.getPrice() != null) {
 | 
			
		
	
		
			
				
					|  |  |  |  | //                        ioOrderDetailBizEntity.setPrice(BigDecimal.valueOf(basicProductsEntity.getPrice()));
 | 
			
		
	
		
			
				
					|  |  |  |  | //                    }
 | 
			
		
	
		
			
				
					|  |  |  |  |                     if (basicProductsEntity.getPrice() != null&& basicProductsEntity.getPrice() != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         ioOrderDetailBizEntity.setPrice(BigDecimal.valueOf(basicProductsEntity.getPrice())); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderDetailBizEntity.setSupId(obj.getSupId()); | 
			
		
	
	
		
			
				
					|  |  |  | 
 |