| | |
| | | if (!CollectionUtils.isEmpty(alarmList)) { |
| | | log.info("发送预警消息"); |
| | | Map<String, Object> msg = new HashMap<>(2); |
| | | msg.put("predictTime", predictTime); |
| | | msg.put("predictTime", DateUtils.format(predictTime, DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)); |
| | | msg.put("alarmList", alarmList); |
| | | rabbitTemplate.convertAndSend(RoutingConstant.EXCHANGE, RoutingConstant.Iailab_Model_Alarm, alarmList); |
| | | rabbitTemplate.convertAndSend(RoutingConstant.EXCHANGE, RoutingConstant.Iailab_Model_Alarm, msg); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |