| | |
| | | public ReturnT insertHistoryMinutelyTableDelay(String params) { |
| | | Map macMap = JSON.parseObject(params); |
| | | List<String> macList = (List<String>) macMap.get("mac"); |
| | | System.out.println("macList:" + macList); |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | int year = time.getYear(); |
| | | int month = time.getMonthValue(); |
| | |
| | | public ReturnT insertHistoryMinutelyTableDelayEleven(String params) { |
| | | Map macMap = JSON.parseObject(params); |
| | | List<String> macList = (List<String>) macMap.get("mac"); |
| | | System.out.println("macList:" + macList); |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | int year = time.getYear(); |
| | | int month = time.getMonthValue(); |
| | |
| | | List<String> sensorKeys = sensorService.getSensorKeys(); |
| | | Map<String, Object> devices = new HashMap<>(); |
| | | devices.put("sensorKeys", sensorKeys); |
| | | devices.put("macList", macList); |
| | | devices.put("start", startTime); |
| | | devices.put("end", endTime); |
| | | try { |