|  |  |  | @ -156,6 +156,20 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService { | 
			
		
	
		
			
				
					|  |  |  |  |         return null; | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |  |     public IoOrderDetailBizEntity findByRelId(String orderId, String nameCode, String batchNo) { | 
			
		
	
		
			
				
					|  |  |  |  |         List<IoOrderDetailBizEntity> orderDetailBizEntities = | 
			
		
	
		
			
				
					|  |  |  |  |                 ioOrderDetailBizDao.selectList(new QueryWrapper<IoOrderDetailBizEntity>() | 
			
		
	
		
			
				
					|  |  |  |  |                         .eq("orderIdFk", orderId) | 
			
		
	
		
			
				
					|  |  |  |  |                         .eq("nameCode", nameCode) | 
			
		
	
		
			
				
					|  |  |  |  |                         .eq("batchNo", batchNo) | 
			
		
	
		
			
				
					|  |  |  |  |                 ); | 
			
		
	
		
			
				
					|  |  |  |  |         if (CollUtil.isNotEmpty(orderDetailBizEntities)) { | 
			
		
	
		
			
				
					|  |  |  |  |             return orderDetailBizEntities.get(0); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         return null; | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |  |     public List<IoOrderDetailBizResponse> filterList(FilterOrderDetailBizRequest orderDetailBizRequest) { | 
			
		
	
		
			
				
					|  |  |  |  |         if (null == orderDetailBizRequest) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -767,6 +781,13 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (!StringUtils.isBlank(exitLocalEntity.getSerialNo())) { | 
			
		
	
		
			
				
					|  |  |  |  |                     return ResultVOUtils.error(500, "重复扫码!"); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 //匹配biz
 | 
			
		
	
		
			
				
					|  |  |  |  |                 IoOrderDetailCodeEntity byRelId = orderDetailCodeService.findByRelNameCode(addOrderRequest.getBillNo(), udiEntity.getUdi(), udiEntity.getBatchNo()); | 
			
		
	
		
			
				
					|  |  |  |  |                 if (byRelId!=null){ | 
			
		
	
		
			
				
					|  |  |  |  |                     exitLocalEntity.setBizId(byRelId.getId()); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 codeTempService.updateById(exitLocalEntity); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
	
		
			
				
					|  |  |  | @ -793,6 +814,13 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService { | 
			
		
	
		
			
				
					|  |  |  |  |             codeEnttity.setFifoSplit(addOrderRequest.getFifoSplit()); | 
			
		
	
		
			
				
					|  |  |  |  |             codeEnttity.setProductType(2); | 
			
		
	
		
			
				
					|  |  |  |  |             codeEnttity.setCount(1); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             //匹配biz
 | 
			
		
	
		
			
				
					|  |  |  |  |             IoOrderDetailCodeEntity byRelId = ioOrderDetailCodeService.findByRelNameCode(addOrderRequest.getBillNo(), udiEntity.getUdi(), udiEntity.getBatchNo()); | 
			
		
	
		
			
				
					|  |  |  |  |             if (byRelId!=null){ | 
			
		
	
		
			
				
					|  |  |  |  |                 codeEnttity.setBizId(byRelId.getId()); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             String unitFk = null; | 
			
		
	
		
			
				
					|  |  |  |  |             if (bussinessTypeEntity.getCorpType() == ConstantStatus.CORP_TYPE_OUT) { | 
			
		
	
		
			
				
					|  |  |  |  |                 unitFk = addOrderRequest.getFromCorp(); | 
			
		
	
	
		
			
				
					|  |  |  | 
 |