Commit d87d146d authored by caotao's avatar caotao

监盘首页数据错误问题处理

parent 4c048288
...@@ -529,7 +529,8 @@ public class MonitoringServiceImpl { ...@@ -529,7 +529,8 @@ public class MonitoringServiceImpl {
stationBasicListAll.forEach(stationBasic -> { stationBasicListAll.forEach(stationBasic -> {
total.updateAndGet(v -> v + commonServiceImpl.getTotalByIndicatior(stationBasic.getFanGatewayId(), "有功功率")); total.updateAndGet(v -> v + commonServiceImpl.getTotalByIndicatior(stationBasic.getFanGatewayId(), "有功功率"));
}); });
hashMap.put("title", String.format("%.2f", total.get())); //有功功率换算
hashMap.put("title", String.format("%.2f", total.get()/1000));
return hashMap; return hashMap;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment