|  |  |  | @ -863,6 +863,8 @@ public class IoAddInoutService { | 
			
		
	
		
			
				
					|  |  |  |  |             return null; | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Resource | 
			
		
	
		
			
				
					|  |  |  |  |     IoCodeLostService codeLostService; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     public String checkOriginCode(IoCodeTempEntity warehouseEntity) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -873,16 +875,18 @@ public class IoAddInoutService { | 
			
		
	
		
			
				
					|  |  |  |  |         if (udiRelevanceResponse == null) { | 
			
		
	
		
			
				
					|  |  |  |  |             return "耗材字典不存在此产品"; | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         InvProductDetailEntity invProductDetailEntity = invProductDetailService.sortFindByCode(warehouseEntity.getCode()); | 
			
		
	
		
			
				
					|  |  |  |  |         if (invProductDetailEntity != null) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         IoCodeLostEntity codeLostEntity = codeLostService.findByCode(warehouseEntity.getCode()); | 
			
		
	
		
			
				
					|  |  |  |  |         if (codeLostEntity != null) { | 
			
		
	
		
			
				
					|  |  |  |  |             if (StrUtil.isEmpty(warehouseEntity.getBatchNo())) { | 
			
		
	
		
			
				
					|  |  |  |  |                 warehouseEntity.setBatchNo(invProductDetailEntity.getBatchNo()); | 
			
		
	
		
			
				
					|  |  |  |  |                 warehouseEntity.setBatchNo(codeLostEntity.getBatchNo()); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             if (StrUtil.isEmpty(warehouseEntity.getProduceDate())) { | 
			
		
	
		
			
				
					|  |  |  |  |                 warehouseEntity.setProduceDate(invProductDetailEntity.getProduceDate()); | 
			
		
	
		
			
				
					|  |  |  |  |                 warehouseEntity.setProduceDate(codeLostEntity.getProduceDate()); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             if (StrUtil.isEmpty(warehouseEntity.getExpireDate())) { | 
			
		
	
		
			
				
					|  |  |  |  |                 warehouseEntity.setExpireDate(invProductDetailEntity.getExpireDate()); | 
			
		
	
		
			
				
					|  |  |  |  |                 warehouseEntity.setExpireDate(codeLostEntity.getExpireDate()); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |