|  |  | @ -27,10 +27,7 @@ import com.glxp.api.entity.auth.DeptEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.auth.SysWorkplace; |  |  |  | import com.glxp.api.entity.auth.SysWorkplace; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.basic.*; |  |  |  | import com.glxp.api.entity.basic.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.collect.*; |  |  |  | import com.glxp.api.entity.collect.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.inout.IoCodeTempEntity; |  |  |  | import com.glxp.api.entity.inout.*; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.inout.IoOrderDetailBizEntity; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.inout.IoOrderEntity; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.inout.IoSplitFifoInv; |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.inv.InvCountOrderDetailEntity; |  |  |  | import com.glxp.api.entity.inv.InvCountOrderDetailEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.inv.InvCountOrderEntity; |  |  |  | import com.glxp.api.entity.inv.InvCountOrderEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.inv.InvCountSettingEntity; |  |  |  | import com.glxp.api.entity.inv.InvCountSettingEntity; | 
			
		
	
	
		
		
			
				
					|  |  | @ -370,6 +367,41 @@ public class IoCollectOrderService extends ServiceImpl<IoCollectOrderMapper, IoC | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (CollUtil.isNotEmpty(collectOrderOriginBizs)) { |  |  |  |             if (CollUtil.isNotEmpty(collectOrderOriginBizs)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 collectOrderBizOriginService.saveBatch(collectOrderOriginBizs); |  |  |  |                 collectOrderBizOriginService.saveBatch(collectOrderOriginBizs); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             //导入扫码明细
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             List<IoCodeEntity> codeEntities = codeService.findByOrderId(ioOrderEntity.getBillNo()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             List<IoCollectOrderCodeMan> collectOrderCodeManList = new ArrayList<>(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (CollUtil.isNotEmpty(codeEntities)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 for (IoCodeEntity codeEntity : codeEntities) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     IoCollectOrderBiz mCollectOrderBiz = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     for (IoCollectOrderBiz collectOrderBiz : collectOrderBizs) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (collectOrderBiz.getRelId().equals(codeEntity.getRelId()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 && StrUtil.trimToEmpty(collectOrderBiz.getBatchNo()).equals(StrUtil.trimToEmpty(codeEntity.getBatchNo()))) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             mCollectOrderBiz = collectOrderBiz; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             continue; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     collectOrderCodeManList.add(IoCollectOrderCodeMan.builder() | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .udiCode(codeEntity.getCode()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .orderIdFk(collectOrder.getBillNo()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .bizIdFk(mCollectOrderBiz == null ? null : mCollectOrderBiz.getId()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .relId(codeEntity.getRelId()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .nameCode(codeEntity.getNameCode()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .batchNo(codeEntity.getBatchNo()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .serialNo(codeEntity.getSerialNo()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .productDate(codeEntity.getProduceDate()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .expireDate(codeEntity.getExpireDate()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .createTime(new Date()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .createUser(1l) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .updateTime(new Date()) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .updateUser(1l) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .scanCount(1) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .isSplitCode(false) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .scanActCount(1) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             .build()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 collectOrderCodeManService.saveBatch(collectOrderCodeManList); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success("下载成功"); |  |  |  |         return ResultVOUtils.success("下载成功"); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |