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) {