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());