|  |  |  | 
|---|
|  |  |  | LocalDateTime endTime = time.truncatedTo(ChronoUnit.MINUTES); | 
|---|
|  |  |  | LocalDateTime startTime = endTime.minusMinutes(1); | 
|---|
|  |  |  | List<Object> organizationIdList = organizationRelationService.getChildIdByParentId(parentIdList); | 
|---|
|  |  |  | AlarmUtils_2.sendMail("276999030@qq.com","小时警报","小时警报"); | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | List<String> macList = deviceService.getMacByOrganizationid(organizationIdList); | 
|---|
|  |  |  | List<String> sensorKeys = sensorService.getSensorKeyByMac(macList); | 
|---|
|  |  |  | 
|---|
|  |  |  | devices.put("macs", macList); | 
|---|
|  |  |  | List<Map<String, Object>> hourlyDataList = historyHourlyService.getHourlySensorData(devices); | 
|---|
|  |  |  | XxlJobLogger.log("RabbitMQHourlyData:" + hourlyDataList.size()); | 
|---|
|  |  |  | AlarmUtils_2.sendMail("357328213@qq.com","小时警报","小时警报"); | 
|---|
|  |  |  | if (!CollectionUtils.isEmpty(hourlyDataList)) { | 
|---|
|  |  |  | if(!(hourlyDataList.size()==macList.size())){ | 
|---|
|  |  |  | List<String> macList_copy = macList; | 
|---|