diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/handle/service/impl/MessageServiceImpl.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/handle/service/impl/MessageServiceImpl.java index fbd541a..1e691a6 100644 --- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/handle/service/impl/MessageServiceImpl.java +++ b/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 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 message.setTaskId(Long.valueOf(entity.getAlarmId())); // 微信参数键值对 diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java index 19a912e..5280909 100644 --- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java +++ b/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 .map(item -> { //消息推送 // 短信 - CompletableFuture.runAsync(() -> messageService.message(item)); + CompletableFuture.runAsync(() -> messageService.shortMessage(item)); // web/app消息推送 CompletableFuture.runAsync(() -> messageService.webAppMessage(item)); // 微信公众号推送