Browse Source

各场站信息-期次容量调整

wangb 2 years ago
parent
commit
21253acb26

+ 11 - 4
web/monitor-web-sxjn/src/main/java/com/gyee/frame/service/websocket/GenreSetPushService.java

@@ -4321,20 +4321,27 @@ public class GenreSetPushService {
 
 
         WindpowerstationPG windpowerstationPG = InitialRunner.wppgmap.get(wpId);
-
-
         List<ProjectPG> projectPGs = InitialRunner.pjpggroupmap.get(windpowerstationPG.getId());
         Map czxx = new LinkedHashMap();
+        List<Map> qc = new ArrayList<>();
+
         int linenum = 0;
+        int i = 0;
 
         czxx.put("zjrl", windpowerstationPG.getCapacity());//装机容量
         for (ProjectPG p : projectPGs) {
-            czxx.put(p.getId() + "_capacity", p.getCapacity());//期次装机容量
+            Map qcls = new LinkedHashMap();
+            i++;
+            qcls.put("id",i);
+            qcls.put("name",p.getName()); //name : GJY01_GC
+            qcls.put("value",  p.getCapacity());//value :45
             linenum = linenum + InitialRunner.pjlnpgmap.get(p.getId()).size();
+            qc.add(qcls);
         }
+
         czxx.put("linenum", linenum);
         czxx.put("fjts", windpowerstationPG.getQuantity());//风机台数
-
+        czxx.put("issue",qc);
         return czxx;