通知
This commit is contained in:
@ -175,6 +175,15 @@ public class ChatGroupController {
|
||||
byId.setAvatar(null);
|
||||
}
|
||||
}
|
||||
|
||||
LambdaQueryWrapper<ChatHistory> historyLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
historyLambdaQueryWrapper.eq(ChatHistory::getGeterId, byId.getId());
|
||||
historyLambdaQueryWrapper.ne(ChatHistory::getSenderId, userId);
|
||||
historyLambdaQueryWrapper.eq(ChatHistory::getIsRead, "1");
|
||||
List<ChatHistory> list = chatHistoryService.list(historyLambdaQueryWrapper);
|
||||
|
||||
byId.setUnReadCount(list.size());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -45,4 +45,6 @@ public class ChatGroup implements Serializable {
|
||||
private String isShowOut;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
private Integer unReadCount;
|
||||
}
|
||||
|
Reference in New Issue
Block a user