@ -66,11 +66,11 @@ import java.util.stream.Collectors;
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					@RestController @RestController  
			
		
	
		
		
			
				
					
					public  class  WareHouseController  { public  class  WareHouseController  {  
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    private  CodesService  codesService ; 
    private  CodesService  codesService ; 
 
			
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    private  OrderService  orderService ; 
    private  OrderService  orderService ; 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    private  IoTransInoutService  ioTransInoutService ; 
    private  IoTransInoutService  ioTransInoutService ; 
 
			
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -78,9 +78,9 @@ public class WareHouseController {
 
			
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    private  BussinessTypeService  bussinessTypeService ; 
    private  BussinessTypeService  bussinessTypeService ; 
 
			
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    AuthAdminService  authAdminService ; 
    private  AuthAdminService  authAdminService ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    BasicUnitMaintainService  basicUnitMaintainService ; 
    private  BasicUnitMaintainService  basicUnitMaintainService ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    private  AuthLicenseDao  authLicenseDao ; 
    private  AuthLicenseDao  authLicenseDao ; 
 
			
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -88,30 +88,29 @@ public class WareHouseController {
 
			
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    private  WarehouseBussinessTypeService  warehouseBussinessTypeService ; 
    private  WarehouseBussinessTypeService  warehouseBussinessTypeService ; 
 
			
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    CustomerService  customerService ; 
    private  CustomerService  customerService ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    UdiRelevanceService  udiRelevanceService ; 
    private  UdiRelevanceService  udiRelevanceService ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    CompanyProductRelevanceService  companyProductRelevanceService ; 
    private  CompanyProductRelevanceService  companyProductRelevanceService ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    SystemParamConfigService  systemParamConfigService ; 
    private  SystemParamConfigService  systemParamConfigService ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    StockOrderService  stockOrderService ; 
    private  StockOrderService  stockOrderService ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    GennerOrderUtils  gennerOrderUtils ; 
    private  GennerOrderUtils  gennerOrderUtils ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    InvPreInProductDetailService  invPreInProductDetailService ; 
    private  InvPreInProductDetailService  invPreInProductDetailService ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    SpsDirectClient  spsDirectClient ; 
    private  SpsDirectClient  spsDirectClient ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    InvWarehouseDao  invWarehouseService ; 
    private  InvWarehouseDao  invWarehouseService ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    InvSubWarehouseService  invSubWarehouseService ; 
    private  InvSubWarehouseService  invSubWarehouseService ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    private  UdiInfoService  udiInfoService ; 
    private  UdiInfoService  udiInfoService ; 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    @Resource 
    @Resource 
 
			
		
	
		
		
			
				
					
					    InvBusUserService  invBusUserService ; 
    private  InvBusUserService  invBusUserService ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    @AuthRuleAnnotation ( "" ) 
    @AuthRuleAnnotation ( "" ) 
 
			
		
	
		
		
			
				
					
					    @GetMapping ( "admin/warehouse/inout/list" ) 
    @GetMapping ( "admin/warehouse/inout/list" ) 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -641,9 +640,14 @@ public class WareHouseController {
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					        //批次号校验
 
        //批次号校验
 
 
			
		
	
		
		
			
				
					
					        //判断此产品是否开启允许无批次号
 
 
			
		
	
		
		
			
				
					
					        UdiInfoEntity  udiInfoEntity  =  udiInfoService . findByNameCode ( udiEntity . getUdi ( ) ) ; 
 
			
		
	
		
		
			
				
					
					        if  ( ! udiInfoEntity . isAllowNoBatch ( ) )  { 
 
			
		
	
		
		
			
				
					
					            if  ( StrUtil . isEmpty ( udiEntity . getSerialNo ( ) )  & &  StrUtil . isEmpty ( udiEntity . getBatchNo ( ) ) )  { 
            if  ( StrUtil . isEmpty ( udiEntity . getSerialNo ( ) )  & &  StrUtil . isEmpty ( udiEntity . getBatchNo ( ) ) )  { 
 
			
		
	
		
		
			
				
					
					                return  ResultVOUtils . error ( 500 ,  "批次号不能为空!" ) ; 
                return  ResultVOUtils . error ( 500 ,  "批次号不能为空!" ) ; 
 
			
		
	
		
		
			
				
					
					            } 
            } 
 
			
		
	
		
		
			
				
					
					        } 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					        String  orderId  =  addOrderRequest . getOrderId ( ) ; 
        String  orderId  =  addOrderRequest . getOrderId ( ) ; 
 
			
		
	
		
		
			
				
					
					//        String isCheck = systemParamConfigService.selectValueByParamKey("code_fill_check");
 //        String isCheck = systemParamConfigService.selectValueByParamKey("code_fill_check");