From c6e5ffc14293bb2f5cbb8696321cf2034ef46535 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 18 Apr 2024 11:06:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B6=88=E6=81=AF=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AB=99=E5=86=85=E4=BF=A1=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E4=BA=BA=E9=87=8D=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1039613 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001039613 --- .../metersphere/system/notice/sender/AbstractNoticeSender.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/notice/sender/AbstractNoticeSender.java b/backend/services/system-setting/src/main/java/io/metersphere/system/notice/sender/AbstractNoticeSender.java index dacdb9b69b..e72e3671c6 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/notice/sender/AbstractNoticeSender.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/notice/sender/AbstractNoticeSender.java @@ -172,7 +172,7 @@ public abstract class AbstractNoticeSender implements NoticeSender { LogUtils.info("userIds: ", JSON.toJSONString(userIds)); List users = getUsers(userIds, messageDetail.getProjectId()); List realUserIds = users.stream().map(User::getId).distinct().toList(); - return toUsers.stream().filter(t -> realUserIds.contains(t.getUserId())).toList(); + return toUsers.stream().filter(t -> realUserIds.contains(t.getUserId())).distinct().toList(); } private Receiver handleCreateUser(MessageDetail messageDetail, NoticeModel noticeModel) {