Browse Source

库位不存在

master
han\hanst 2 weeks ago
parent
commit
c3f3f2214a
  1. 2
      src/main/java/com/gaotao/modules/production/service/impl/ProductionInboundServiceImpl.java

2
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()); Location location = locationService.getByLocationIdAndSite(dto.getSite(), dto.getLocationNo());
if (location != null) { if (location != null) {
warehouseId = location.getWarehouseId(); warehouseId = location.getWarehouseId();
} else {
throw new XJException("库位不存在: " + dto.getLocationNo());
} }
// 2. 生成事务号 // 2. 生成事务号
TransNoControl transTrans = transNoService.getTransNo(dto.getSite(), "SR", 10); TransNoControl transTrans = transNoService.getTransNo(dto.getSite(), "SR", 10);

Loading…
Cancel
Save