Browse Source

[CODE]: 首页结余库容

maxianghua 4 years ago
parent
commit
f59b4a7c1a

+ 12 - 0
ruoyi-warehouse/src/main/java/com/ruoyi/reportManagement/service/impl/TWhgenlegServiceImpl.java

@@ -194,6 +194,18 @@ public class TWhgenlegServiceImpl implements ITWhgenlegService {
                 m.put("fGrossweightD",calculation2(fGrossweightblc,"1000"));
             }
             map.put("corpsListWhouse", corpsListWhouse);
+        } else {
+            // 仓库 库容
+            TWarehouse tWarehouse = tWarehouseMapper.selectTWarehouseById(fId);
+            Map<String, Object> maps = new HashMap<>();
+            maps.put("fName", tWarehouse.getfName());
+            maps.put("fWarehouseid", tWarehouse.getfId());
+            maps.put("fTotalgross", tWarehouse.getfTotalgross());
+            maps.put("fGrossweightD", "0");
+            maps.put("percentage", "");
+            whouseList.add(maps);
+            map.put("goodslistWhouse", "");
+            map.put("corpsListWhouse", "");
         }
         map.put("whouseList", whouseList);
         return map;