From 11bc498fa682ef8cead25a753e14c8ec0b0d259f Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Thu, 16 Nov 2023 09:53:57 +0800 Subject: [PATCH] =?UTF-8?q?#=E5=91=8A=E8=AD=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hnac/hzims/alarm/handle/service/impl/MessageServiceImpl.java | 4 ++-- .../java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)); // 微信公众号推送