Commit 6912cb74 authored by 李秀明's avatar 李秀明

Merge remote-tracking branch 'origin/develop_bugfix@dl' into develop_bugfix@dl

parents f9214099 fef7aaaf
...@@ -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++) {
...@@ -2569,15 +2571,19 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM ...@@ -2569,15 +2571,19 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
for (Map<String, String> mapList : listObject) { for (Map<String, String> mapList : listObject) {
String time = change(mapList.get("time")); String time = change(mapList.get("time"));
String dateX = roundToNextFiveMinutes(time); String dateX = roundToNextFiveMinutes(time);
if (stringIntegerHashMap.containsKey(dateX)){
for (String key : equipIndexKeyNew) { for (String key : equipIndexKeyNew) {
if (mapList.containsKey(key) && !ObjectUtils.isEmpty(mapList.get(key))) { if (mapList.containsKey(key) && !ObjectUtils.isEmpty(mapList.get(key))) {
if (stringIntegerHashMap.containsKey(dateX)) {
stringIntegerHashMap.get(dateX).add(new BigDecimal(mapList.get(key))); stringIntegerHashMap.get(dateX).add(new BigDecimal(mapList.get(key)));
} else {
List<BigDecimal> bigDecimals = new ArrayList<>();
bigDecimals.add(new BigDecimal(mapList.get(key)));
stringIntegerHashMap.put(dateX, bigDecimals);
} }
} }
} else {
stringIntegerHashMap.put(dateX, new ArrayList<>());
} }
} }
} }
} }
......
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