|  |  |  | @ -21,6 +21,7 @@ import com.glxp.api.entity.basic.BasicBussinessTypeEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.basic.BasicCorpEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.basic.UdiEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.basic.UdiProductEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.collect.RelCodeDetail; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.inout.*; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.inv.InvPreInProductDetailEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.inv.InvPreProductDetailEntity; | 
			
		
	
	
		
			
				
					|  |  |  | @ -959,6 +960,7 @@ public class IoCodeTempController extends BaseController { | 
			
		
	
		
			
				
					|  |  |  |  |         if (StrUtil.isNotEmpty(addOrderRequest.getSerialNo())) { | 
			
		
	
		
			
				
					|  |  |  |  |             udiEntity.setSerialNo(addOrderRequest.getSerialNo()); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         RelCodeDetailResponse codeRelEntity = null; | 
			
		
	
		
			
				
					|  |  |  |  |         if (StrUtil.isEmpty(udiEntity.getBatchNo())) { | 
			
		
	
		
			
				
					|  |  |  |  |             IoCodeLostEntity codeLostEntity = codeLostService.findByCode(code); | 
			
		
	
		
			
				
					|  |  |  |  |             if (codeLostEntity != null) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -966,7 +968,7 @@ public class IoCodeTempController extends BaseController { | 
			
		
	
		
			
				
					|  |  |  |  |                 udiEntity.setProduceDate(codeLostEntity.getProduceDate()); | 
			
		
	
		
			
				
					|  |  |  |  |                 udiEntity.setExpireDate(codeLostEntity.getExpireDate()); | 
			
		
	
		
			
				
					|  |  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |  |                 RelCodeDetailResponse codeRelEntity = relCodeDetailService.findByCode(code); | 
			
		
	
		
			
				
					|  |  |  |  |                 codeRelEntity = relCodeDetailService.findByCode(code); | 
			
		
	
		
			
				
					|  |  |  |  |                 if (codeRelEntity != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                     udiEntity.setBatchNo(codeRelEntity.getBatchNo()); | 
			
		
	
		
			
				
					|  |  |  |  |                     udiEntity.setProduceDate(DateUtil.formatDate(codeRelEntity.getMadeDate(), "yyMMdd")); | 
			
		
	
	
		
			
				
					|  |  |  | @ -1123,6 +1125,14 @@ public class IoCodeTempController extends BaseController { | 
			
		
	
		
			
				
					|  |  |  |  |             codeEnttity.setSerialNo(udiEntity.getSerialNo()); | 
			
		
	
		
			
				
					|  |  |  |  |             codeEnttity.setDeptCode(invWarehouseEntity.getParentId()); | 
			
		
	
		
			
				
					|  |  |  |  |             codeEnttity.setInvCode(addOrderRequest.getInvCode()); | 
			
		
	
		
			
				
					|  |  |  |  |             if (codeRelEntity != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                 codeEnttity.setParentCode(codeRelEntity.getParentCode()); | 
			
		
	
		
			
				
					|  |  |  |  |                 RelCodeDetail relCodeDetail = relCodeDetailService.getOneByCode(codeRelEntity.getParentCode()); | 
			
		
	
		
			
				
					|  |  |  |  |                 if (relCodeDetail != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                     codeEnttity.setGrantPaCode(relCodeDetail.getParentCode()); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             codeEnttity.setCount(1); | 
			
		
	
		
			
				
					|  |  |  |  |             codeEnttity.setProductType(2); | 
			
		
	
		
			
				
					|  |  |  |  |             String unitFk = null; | 
			
		
	
	
		
			
				
					|  |  |  | 
 |