From e17ba88de3e8d4e98880bd1cf2ed2befee3cb73d Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Wed, 28 Feb 2024 14:06:12 +0800 Subject: [PATCH] fix: my available commentList reply --- luoo_comment/src/main/java/com/luoo/comment/pojo/CommentHis.java | 1 + .../src/main/java/com/luoo/comment/service/CommentService.java | 1 + 2 files changed, 2 insertions(+) diff --git a/luoo_comment/src/main/java/com/luoo/comment/pojo/CommentHis.java b/luoo_comment/src/main/java/com/luoo/comment/pojo/CommentHis.java index a9d631d..20ca750 100644 --- a/luoo_comment/src/main/java/com/luoo/comment/pojo/CommentHis.java +++ b/luoo_comment/src/main/java/com/luoo/comment/pojo/CommentHis.java @@ -24,6 +24,7 @@ public class CommentHis { private String commenterAvatar; // 评论人头像 + private String commentId; // 评论ID private String commentContent; //评论的内容 diff --git a/luoo_comment/src/main/java/com/luoo/comment/service/CommentService.java b/luoo_comment/src/main/java/com/luoo/comment/service/CommentService.java index e7d8153..3f22898 100644 --- a/luoo_comment/src/main/java/com/luoo/comment/service/CommentService.java +++ b/luoo_comment/src/main/java/com/luoo/comment/service/CommentService.java @@ -79,6 +79,7 @@ public class CommentService { commentHis.set_id(idWorker.nextId()+""); commentHis.setCommenterId(userLoginDto.getUserId()); commentHis.setUserId(parentComment.getUserId()); + commentHis.setCommentId(comment.get_id()); commentHis.setNickName(userLoginDto.getNickName()); commentHis.setCommentContent(comment.getContent()); commentHis.setContent(parentComment.getContent());