Преглед на файлове

charts数据返回修改

wangchangsheng преди 2 години
родител
ревизия
83e09c3719

+ 4 - 3
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/impl/ProEconEquipmentInfoDayTopServiceImpl.java

@@ -113,8 +113,9 @@ public class ProEconEquipmentInfoDayTopServiceImpl extends ServiceImpl<ProEconEq
         });
         resultMap.put("data", list);
 
-        List<CompareVo> compareList = new ArrayList<>();
+
         list.stream().forEach(wtd -> {
+            List<CompareVo> compareList = new ArrayList<>();
 
             for (int i = 0; i < 10; i++) {
                 CompareVo vo = new CompareVo();
@@ -165,10 +166,10 @@ public class ProEconEquipmentInfoDayTopServiceImpl extends ServiceImpl<ProEconEq
                 }
                 compareList.add(vo);
             }
-            chartsMap.put(wtd.getWindturbineId(), compareList);
+            chartsMap.put(wtd.getNemCode(), compareList);
 
         });
-        resultMap.put("charts", compareList);
+        resultMap.put("charts", chartsMap);
         return resultMap;
     }