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 b18547b072..aadc0b5771 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 @@ -148,10 +148,10 @@ public abstract class AbstractNoticeSender implements NoticeSender { } // 去重复 - // List userIds = toUsers.stream().map(Receiver::getUserId).distinct().toList(); - // LogUtils.info("userIds: ", JSON.toJSONString(userIds)); - // List users = getUsers(userIds, messageDetail.getProjectId()); - // List realUserIds = users.stream().map(User::getId).toList(); + List userIds = toUsers.stream().map(Receiver::getUserId).distinct().toList(); + LogUtils.info("userIds: ", JSON.toJSONString(userIds)); + List users = getUsers(userIds, messageDetail.getProjectId()); + List realUserIds = users.stream().map(User::getId).toList(); return toUsers; }