Commit fef7aaaf authored by 张森's avatar 张森

31182 站端设备平台v5>运行趋势>运行监视>稳压泵启动频次趋势,应统计稳压泵的启动次数、不是启停次数

parent 825b6c21
...@@ -2456,6 +2456,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM ...@@ -2456,6 +2456,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
List<String> values = new ArrayList<>(); List<String> values = new ArrayList<>();
for (Map<String, String> mapList : listObject) { for (Map<String, String> mapList : listObject) {
String time = change(mapList.get("time")).substring(0, 13); String time = change(mapList.get("time")).substring(0, 13);
if (mapList.containsKey(indexKey) && mapList.get(indexKey).equals("true")) {
if (stringIntegerHashMap.containsKey(time)) { if (stringIntegerHashMap.containsKey(time)) {
stringIntegerHashMap.put(time, stringIntegerHashMap.get(time) + 1); stringIntegerHashMap.put(time, stringIntegerHashMap.get(time) + 1);
} else { } else {
...@@ -2463,6 +2464,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM ...@@ -2463,6 +2464,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
} }
} }
} }
}
List<Object> values = new ArrayList<>(); List<Object> values = new ArrayList<>();
for (int i = 0; i < allTimeList.size(); i++) { for (int i = 0; i < allTimeList.size(); i++) {
......
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