| | |
| | | listMap = historyMinutelyMapper.getSensorData(parameters);
|
| | | }
|
| | | List<List<Map<String, Object>>> listMaps = new ArrayList<>();
|
| | | Map<String, Object> mapAvg = new LinkedHashMap<>();
|
| | | Map<String, Object> mapMin = new LinkedHashMap<>();
|
| | | Map<String, Object> mapMax = new LinkedHashMap<>();
|
| | | List<Map<String, Object>> listMapAvg = new ArrayList<>();
|
| | | List<Map<String, Object>> listMapMin = new ArrayList<>();
|
| | | List<Map<String, Object>> listMapMax = new ArrayList<>();
|
| | | if (CollectionUtils.isNotEmpty(listMap)) {
|
| | | for (Map<String, Object> map : listMap) {
|
| | | Map<String, Object> mapAvg = new LinkedHashMap<>();
|
| | | Map<String, Object> mapMin = new LinkedHashMap<>();
|
| | | Map<String, Object> mapMax = new LinkedHashMap<>();
|
| | | mapAvg.put("时间", map.get("time"));
|
| | | mapMin.put("时间", map.get("time"));
|
| | | mapMax.put("时间", map.get("time"));
|
| | |
| | | listMapAvg.add(mapAvg);
|
| | | listMapMin.add(mapMin);
|
| | | listMapMax.add(mapMax);
|
| | | mapAvg = new LinkedHashMap<>();
|
| | | mapMin = new LinkedHashMap<>();
|
| | | mapMax = new LinkedHashMap<>();
|
| | | }
|
| | | listMaps.add(listMapAvg);
|
| | | listMaps.add(listMapMin);
|