瀏覽代碼

不过修复

andy 3 年之前
父節點
當前提交
16fb0ea36f
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      warewms-ams/src/main/java/com/ruoyi/ams/lineCall/service/impl/LineCallServiceImpl.java

+ 11 - 0
warewms-ams/src/main/java/com/ruoyi/ams/lineCall/service/impl/LineCallServiceImpl.java

@@ -92,6 +92,17 @@ public class LineCallServiceImpl implements ILineCallService {
                 BaseLocationInfo b = baseLocationInfoService.selectBaseLocationInfoById(Long.parseLong(s));
                 locationToList.add(b);
             } else {
+                //如果是区域把区域内的库位查询出来
+                BaseLocationZone zoneQuery = baseLocationZoneService.selectBaseLocationZoneByZoneId(Long.parseLong(s));
+
+                BaseLocationInfo locZone = new BaseLocationInfo();
+                locZone.setId(Long.parseLong(s));
+                locZone.setLocationNo("-"+zoneQuery.getZoneName());
+                locZone.setZoneId(Long.parseLong(s));
+                locZone.setWarehouseId(warehouseId);
+                locZone.setStockStatus("00");
+                locationToList.add(locZone);
+
                 BaseLocationInfo query = new BaseLocationInfo();
                 query.setWarehouseId(warehouseId);
                 query.setZoneId(Long.parseLong(s));