| | |
| | | }
|
| | | parameters.put("sensorKeys", sensorKeys);
|
| | | List<Map<String, Object>> listMap = null;
|
| | | listMap = historyMapper.getCarSensorData(parameters);
|
| | | listMap = historyMapper.listGetSensorData(parameters);
|
| | | if (CollectionUtils.isEmpty(listMap)) {
|
| | | if (year <= 2019) {
|
| | | listMap = historyMinutelyMapper.getSensorData(parameters);
|
| | | } else {
|
| | | parameters.put("yearAndMonth", yearAndMonth);
|
| | | listMap = historyMinutelyMapper.getSensorData2020(parameters);
|
| | | listMap = historyMapper.getCarSensorData(parameters);
|
| | | if (CollectionUtils.isEmpty(listMap)) {
|
| | | if (year <= 2019) {
|
| | | listMap = historyMinutelyMapper.getSensorData(parameters);
|
| | | } else {
|
| | | parameters.put("yearAndMonth", yearAndMonth);
|
| | | listMap = historyMinutelyMapper.getSensorData2020(parameters);
|
| | | }
|
| | | }
|
| | | }
|
| | | List<List<Map<String, Object>>> listMaps = new ArrayList<>();
|