fix(消息管理): 修复站内信通知人重复问题
--bug=1039613 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001039613
This commit is contained in:
parent
2c97f17dc6
commit
c6e5ffc142
|
@ -172,7 +172,7 @@ public abstract class AbstractNoticeSender implements NoticeSender {
|
||||||
LogUtils.info("userIds: ", JSON.toJSONString(userIds));
|
LogUtils.info("userIds: ", JSON.toJSONString(userIds));
|
||||||
List<User> users = getUsers(userIds, messageDetail.getProjectId());
|
List<User> users = getUsers(userIds, messageDetail.getProjectId());
|
||||||
List<String> realUserIds = users.stream().map(User::getId).distinct().toList();
|
List<String> 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) {
|
private Receiver handleCreateUser(MessageDetail messageDetail, NoticeModel noticeModel) {
|
||||||
|
|
Loading…
Reference in New Issue