From b413153242071183e2d501b900498a459dad20c7 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Fri, 30 Jan 2026 16:23:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E6=8E=A5=E5=8F=A3id=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circle/other/app/command/dynamic/DynamicCommentCmdExe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicCommentCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicCommentCmdExe.java index 478aa3b4..880c3b7c 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicCommentCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicCommentCmdExe.java @@ -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) {