diff --git a/src/main/java/com/gaotao/modules/production/service/impl/ProductionInboundServiceImpl.java b/src/main/java/com/gaotao/modules/production/service/impl/ProductionInboundServiceImpl.java index b219c7f..c4bc921 100644 --- a/src/main/java/com/gaotao/modules/production/service/impl/ProductionInboundServiceImpl.java +++ b/src/main/java/com/gaotao/modules/production/service/impl/ProductionInboundServiceImpl.java @@ -580,6 +580,8 @@ public class ProductionInboundServiceImpl implements ProductionInboundService { Location location = locationService.getByLocationIdAndSite(dto.getSite(), dto.getLocationNo()); if (location != null) { warehouseId = location.getWarehouseId(); + } else { + throw new XJException("库位不存在: " + dto.getLocationNo()); } // 2. 生成事务号 TransNoControl transTrans = transNoService.getTransNo(dto.getSite(), "SR", 10);