|  |  | @ -319,8 +319,8 @@ public class IoSplitDesOrderService extends ServiceImpl<IoSplitDesOrderMapper, I | 
			
		
	
		
		
			
				
					
					|  |  |  |         collectOrder = IoSplitDesOrder.builder() |  |  |  |         collectOrder = IoSplitDesOrder.builder() | 
			
		
	
		
		
			
				
					
					|  |  |  |                 .id(IdUtil.getSnowflakeNextId()) |  |  |  |                 .id(IdUtil.getSnowflakeNextId()) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 .billNo(gennerOrderUtils.createWdOrderNo(new OrderNoTypeBean(Constant.SPLIT_DES_ORDER, "yyyyMMdd"))) |  |  |  |                 .billNo(gennerOrderUtils.createWdOrderNo(new OrderNoTypeBean(Constant.SPLIT_DES_ORDER, "yyyyMMdd"))) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 .busType("1") |  |  |  |                 .busType(addInvDesDetaiRequest.getSplitFifoInv().getBusType()) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 .workPlaceCode(addInvDesDetaiRequest.getWorkPlaceCode()) |  |  |  |                 .workPlaceCode(addInvDesDetaiRequest.getSplitFifoInv().getWorkPlaceCode()) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 .createTime(new Date()) |  |  |  |                 .createTime(new Date()) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 .billTime(new Date()) |  |  |  |                 .billTime(new Date()) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 .remark(addInvDesDetaiRequest.getRemark()) |  |  |  |                 .remark(addInvDesDetaiRequest.getRemark()) | 
			
		
	
	
		
		
			
				
					|  |  | @ -344,5 +344,25 @@ public class IoSplitDesOrderService extends ServiceImpl<IoSplitDesOrderMapper, I | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         splitCodeEntity.setRemainCount(count); |  |  |  |         splitCodeEntity.setRemainCount(count); | 
			
		
	
		
		
			
				
					
					|  |  |  |         splitCodeService.updateById(splitCodeEntity); |  |  |  |         splitCodeService.updateById(splitCodeEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         //损耗详细表
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         IoSplitDesOrderDetail splitDesOrderDetail = IoSplitDesOrderDetail.builder() | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .id(IdUtil.getSnowflakeNextId()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .workPlaceCode(collectOrder.getWorkPlaceCode()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .orderIdFk(collectOrder.getBillNo()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //                .invId(splitFifoInv.getId())
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .relId(splitCodeEntity.getRelId()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .batchNo(splitCodeEntity.getBatchNo()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .produceDate(splitCodeEntity.getProduceDate()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .expireDate(splitCodeEntity.getExpireDate()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .supId(splitCodeEntity.getSupId()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .count(addInvDesDetaiRequest.getOutCount()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .reCount(addInvDesDetaiRequest.getOutCount()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .createTime(new Date()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .updateTime(new Date()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .remark("").build(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         boolean save1 = splitDesOrderDetailService.save(splitDesOrderDetail); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (!save1){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             throw  new JsonException(500,"单据明细保存错误"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |