inleft
2022-03-02 34223b096cf6ad9d92c3702bb9529e764f523b11
snowy-main/src/main/java/vip/xiaonuo/modular/blogarticlecomment/controller/BlogArticleCommentOutsideController.java
@@ -72,7 +72,7 @@
            if (addDto.getArticleId() == null) {
                throw new BlogException("评论类型为日志评论,日志id不能为空");
            }
            BlogArticle checkArticle = blogArticleService.getById(addDto.getId());
            BlogArticle checkArticle = blogArticleService.getById(addDto.getArticleId());
            if (checkArticle == null) {
                throw new BlogException("查询不到相关日志");
            }
@@ -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);
    }