Browse Source

#告警修改

zhongwei
yang_shj 1 year ago
parent
commit
11bc498fa6
  1. 4
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/handle/service/impl/MessageServiceImpl.java
  2. 2
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java

4
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/handle/service/impl/MessageServiceImpl.java

@ -135,9 +135,9 @@ public class MessageServiceImpl implements MessageService {
// 机构Id // 机构Id
message.setDeptId(result.getData().get(0).getId()); message.setDeptId(result.getData().get(0).getId());
// 业务关键字 // 业务关键字
message.setBusinessKey("wx_message_test"); message.setBusinessKey(MessageConstants.BusinessClassifyEnum.WARNING.getKey());
// 业务分类关键字 // 业务分类关键字
message.setBusinessClassify("wx_message_test"); message.setBusinessClassify(MessageConstants.BusinessClassifyEnum.WARNING.getKey());
// 任务Id // 任务Id
message.setTaskId(Long.valueOf(entity.getAlarmId())); message.setTaskId(Long.valueOf(entity.getAlarmId()));
// 微信参数键值对 // 微信参数键值对

2
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java

@ -177,7 +177,7 @@ public class AlarmServiceImpl extends BaseServiceImpl<AlarmMapper, AlarmEntity>
.map(item -> { .map(item -> {
//消息推送 //消息推送
// 短信 // 短信
CompletableFuture.runAsync(() -> messageService.message(item)); CompletableFuture.runAsync(() -> messageService.shortMessage(item));
// web/app消息推送 // web/app消息推送
CompletableFuture.runAsync(() -> messageService.webAppMessage(item)); CompletableFuture.runAsync(() -> messageService.webAppMessage(item));
// 微信公众号推送 // 微信公众号推送

Loading…
Cancel
Save