Selaa lähdekoodia

添加公司级地貌图场站、项目、风机接口

shilin 2 vuotta sitten
vanhempi
commit
c32d6813b6

+ 28 - 1
web/monitor-web-sxjn/src/main/java/com/gyee/frame/controller/powercompare/PowerCompareController.java

@@ -43,7 +43,7 @@ public class PowerCompareController {
     private PhotovoltaicTestingPointNewService photovoltaicTestingPointNewService;
 
 
-
+    private final  String QJJN="JN1";
 
     IRealTimeDataBaseUtil realApiUtil = RealTimeDataBaseFactory.createRealTimeDataBase();
     /**
@@ -145,6 +145,33 @@ public class PowerCompareController {
                         }
                     }
 
+                }else
+                {
+                    if(cmId.equals(QJJN))
+                    {
+                        List<Windpowerstation> ls=InitialRunner.wpallls;
+                        if(!ls.isEmpty())
+                        {
+                            for(Windpowerstation wp:ls)
+                            {
+                                WindpowerstationVo vo=new WindpowerstationVo();
+                                vo.setCapacity(wp.getCapacity());
+                                vo.setCode(wp.getCode());
+                                vo.setCompanyid(wp.getCompanyid());
+                                vo.setId(wp.getId());
+                                vo.setLatitude(wp.getLatitude());
+                                vo.setLongitude(wp.getLongitude());
+                                vo.setName(wp.getName());
+                                vo.setQuantity(wp.getQuantity());
+
+                                if(InitialRunner.pjsmap.containsKey(wp.getId()))
+                                {
+                                    vo.setPjls(InitialRunner.pjsmap.get(wp.getId()));
+                                }
+                                vos.add(vo);
+                            }
+                        }
+                    }
                 }
             }
         }