wangb@gyee-china.com 1 سال پیش
والد
کامیت
7ae83f7396
1فایلهای تغییر یافته به همراه13 افزوده شده و 0 حذف شده
  1. 13 0
      web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/monitor/ComprehensiveService.java

+ 13 - 0
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/monitor/ComprehensiveService.java

@@ -87,15 +87,28 @@ public class ComprehensiveService {
             vo.setWpname(wp.getAname());
             vo.setCapacity(wp.getJrCapacity()+wp.getJrwindCapacity());
             List<String> targetList = new ArrayList<>();
+            List<String> glList = new ArrayList<>();
             Map<String, ProBasicPowerstationPoint> powerstationPointMap = wppointmap.get(wp.getId());
             Arrays.stream(targetArray).forEach(t->{
                 if (powerstationPointMap.containsKey(t)){
                     targetList.add(powerstationPointMap.get(t).getNemCode());
+                    if (powerstationPointMap.get(t).getName().contains("功率")){
+                        glList.add(powerstationPointMap.get(t).getNemCode());
+                    }
                 }
             });
             List<PointData> pointDataList = null;
             try {
                 pointDataList = edosUtil.getRealData(targetList);
+                List<String> arr = Arrays.asList(targetArray);
+                    for (PointData a : pointDataList){
+                        for (String c :glList) {
+                            if (a.getPointName().equals(c)) {
+                                a.setPointValueInDouble(a.getPointValueInDouble() / 1000);
+                            }
+                        }
+                    }
+
             } catch (Exception e) {
                 e.printStackTrace();
             }