From af8f816cc744ad5f9d845f05305c2b97ef204343 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Wed, 24 Apr 2024 09:05:24 +0800 Subject: [PATCH] =?UTF-8?q?#=E5=91=8A=E8=AD=A6=E6=8E=A8=E9=80=81=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hnac/hzims/alarm/source/service/impl/MessageServiceImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/MessageServiceImpl.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/MessageServiceImpl.java index e0ae381..9b14ffa 100644 --- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/MessageServiceImpl.java +++ b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/MessageServiceImpl.java @@ -51,8 +51,6 @@ public class MessageServiceImpl implements MessageService { private final IStationClient stationClient; - private final AlarmConfigService alarmConfigService; - /** * web/app消息推送 * @param entity : 告警对象 @@ -66,7 +64,7 @@ public class MessageServiceImpl implements MessageService { } Long dept = stationByCode.getData().getRefDept(); // 获取站点用户 - R> result = userClient.userList(stationByCode.getData().getTenantId(),dept); + R> result = userClient.userListByDeptId(dept); if (!result.isSuccess() || CollectionUtil.isEmpty(result.getData())) { log.error("WEB/APP消息发送失败:用户获取失败 : {}",entity); return; @@ -150,7 +148,7 @@ public class MessageServiceImpl implements MessageService { } Long dept = station.getData().getCreateDept(); // 获取站点用户 - R> result = userClient.userList(station.getData().getTenantId(),dept); + R> result = userClient.userListByDeptId(dept); if (!result.isSuccess() || CollectionUtil.isEmpty(result.getData())) { log.error("微信消息发送失败:用户获取失败 : {}",entity); return;