| | |
| | | .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); |
| | |
| | | |
| | | |
| | | 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); |
| | | } |