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