From ceebd4af3d580684023b1a67e851143b3b4d5186 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Wed, 02 Mar 2022 12:49:05 +0800 Subject: [PATCH] sql 控制调整 --- snowy-main/src/main/java/vip/xiaonuo/modular/blogarticlecomment/controller/BlogArticleCommentOutsideController.java | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticlecomment/controller/BlogArticleCommentOutsideController.java b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticlecomment/controller/BlogArticleCommentOutsideController.java index f47adb4..e356f5e 100644 --- a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticlecomment/controller/BlogArticleCommentOutsideController.java +++ b/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); } -- Gitblit v1.9.1