ソースを参照

增加三级公司资产容量取值判断

wangb 2 年 前
コミット
a2889d7860

+ 9 - 0
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/monitor/MonitorService.java

@@ -573,6 +573,7 @@ public class MonitorService {
             }
             List<ProBasicEnergyGroup> gpls = CacheContext.gpls;
             List<ProBasicRegion> rgls = CacheContext.rgls;
+            List<ProBasicCompany> cpls = CacheContext.cpls;
 
             for (ProBasicEnergyGroup gp : gpls){
                 if (wpId.contains(gp.getId())) {
@@ -588,6 +589,14 @@ public class MonitorService {
                     qt.put("zzjrl", (rg.getJrwindCapacity() + rg.getJrCapacity()) / 1000);
                 }
             }
+
+            for (ProBasicCompany cp : cpls){
+                if (wpId.contains(cp.getId())) {
+                    qt.put("fdzzjrl", cp.getJrwindCapacity() / 1000);
+                    qt.put("gfzzjrl", cp.getJrCapacity() / 1000);
+                    qt.put("zzjrl", (cp.getJrwindCapacity() + cp.getJrCapacity()) / 1000);
+                }
+            }
             qt.put("aqts", MathUtil.twoBit(aqts));
             qt.put("sjgl", MathUtil.twoBit(sjgl));
             qt.put("yfdl", MathUtil.twoBit(yfdl));