|
@@ -132,6 +132,10 @@ public class CommunityCommentController extends BaseController {
|
|
|
userId = SecurityUtils.getUserId();
|
|
|
}
|
|
|
|
|
|
+ //设置评论回复数量
|
|
|
+ int total = communityArticleCommentMapper.queryCommentCount(Long.valueOf(articleId));
|
|
|
+
|
|
|
+
|
|
|
try {
|
|
|
Page<CommunityArticleComment> page = new Page<>(currentPage, limit);
|
|
|
QueryWrapper<CommunityArticleComment> queryWrapper = new QueryWrapper<CommunityArticleComment>()
|
|
@@ -219,7 +223,7 @@ public class CommunityCommentController extends BaseController {
|
|
|
throw new ProjectException();
|
|
|
}
|
|
|
|
|
|
- return AjaxResult.success(commentVos);
|
|
|
+ return AjaxResult.successByCounts(commentVos,total);
|
|
|
}
|
|
|
|
|
|
/**
|