评论接口id字段处理

This commit is contained in:
tianfeng 2026-01-30 16:23:30 +08:00
parent cbab245b54
commit b413153242

View File

@ -96,7 +96,7 @@ public class DynamicCommentCmdExe {
commentListCO.setToUserId(dynamicComment.getToUserId());
commentListCO.setContent(dynamicComment.getContent());
commentListCO.setCreateTime(dynamicComment.getCreateTime());
commentListCO.setRootCommentId(dynamicComment.getRootCommentId());
commentListCO.setRootCommentId(Objects.isNull(dynamicComment.getRootCommentId()) ? dynamicComment.getId() : dynamicComment.getRootCommentId());
UserProfile userProfile = userProfileMap.get(dynamicComment.getCreateUser());
if (userProfile != null) {