Browse Source

调整:调整告警消息推送顺序

zhongwei
ty 4 months ago
parent
commit
2c881e0417
  1. 10
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/monitor/listener/AlarmListener.java

10
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/monitor/listener/AlarmListener.java

@ -39,14 +39,14 @@ public class AlarmListener implements IQueueConsume {
messageService.webAppMessage(alarm); messageService.webAppMessage(alarm);
} }
// 步骤4.微信公众号发送
if(ObjectUtil.isNotEmpty(alarm.getIsWxMessage()) && alarm.getIsWxMessage() == 0){
messageService.weChatMessage(alarm);
}
// 步骤3.短信推送 // 步骤3.短信推送
if(ObjectUtil.isNotEmpty(alarm.getIsShortMessage()) && alarm.getIsShortMessage() == 0){ if(ObjectUtil.isNotEmpty(alarm.getIsShortMessage()) && alarm.getIsShortMessage() == 0){
messageService.shortMessage(alarm); messageService.shortMessage(alarm);
} }
// 步骤4.微信公众号发送
if(ObjectUtil.isNotEmpty(alarm.getIsWxMessage()) && alarm.getIsWxMessage() == 0){
messageService.weChatMessage(alarm);
}
} }
} }
Loading…
Cancel
Save