snowy-main/src/main/java/vip/xiaonuo/modular/blogarticlecomment/controller/BlogArticleCommentOutsideController.java
@@ -112,7 +112,7 @@ .orderByDesc(BlogArticleComment::getCreateDate) .page(queryPage).getRecords(); int limitCount = 3; int limitCount = 2; List<BlogCommentVo> res = commentList.stream().map(e -> { BlogCommentVo vo = new BlogCommentVo(); BeanUtil.copyProperties(e, vo); @@ -149,12 +149,12 @@ List<BlogCommentVo> replyList = blogArticleCommentService.getReplyListById(queryDto.getCommentId(), null); for (BlogCommentVo vo : replyList) { vo.setIsHasNext(MyConstant.No); if (vo.getAuthStatus().equals(MyConstant.AuthStatus.privateCode)) { vo.setCommentContent(MyConstant.privateComment); } } // for (BlogCommentVo vo : replyList) { // vo.setIsHasNext(MyConstant.No); // if (vo.getAuthStatus().equals(MyConstant.AuthStatus.privateCode)) { // vo.setCommentContent(MyConstant.privateComment); // } // } return new SuccessResponseData(replyList); } snowy-main/src/main/java/vip/xiaonuo/modular/blogarticlecomment/mapper/mapping/BlogArticleCommentMapper.xml
@@ -10,7 +10,7 @@ b.visitor_id AS visitorId, b.visitor_nick_name AS visitorNickName, b.visitor_home_page AS visitorHomePage, b.comment_content AS commentContent, IF(b.auth_status=2,'(悄悄话已隐藏)******',b.comment_content) as commentContent, b.create_date AS createDate, b.auth_status AS authStatus, a.visitor_nick_name AS replyUserName, @@ -22,7 +22,7 @@ AND b.is_enable=1 AND b.is_check=1 ORDER BY a.create_date ASC b.create_date ASC <if test="limitCount != null"> LIMIT #{limitCount}; </if>