消息列表rootCommentId 优化

This commit is contained in:
tianfeng 2026-02-03 10:51:10 +08:00
parent 94e293a253
commit 9618b01c9b

View File

@ -72,7 +72,7 @@ public class DynamicMessageQryExe {
// 批量查询评论ID对应的 rootCommentId
DynamicComment comment = commentMap.get(message.getDynamicCommentId());
if (comment != null) {
messageCO.setRootCommentId(comment.getRootCommentId());
messageCO.setRootCommentId(comment.getRootCommentId() == null ? comment.getId() : comment.getRootCommentId());
}
// 处理messageContent giftCount