linwe
2023-12-25 2a9e6607e55733e16e040999840563f7d7f0596d
管理后台查询不出来评论
2 files modified
13 ■■■■■ changed files
src/main/java/org/springblade/modules/article/controller/ArticleCommentController.java 12 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/article/service/impl/ArticleCommentServiceImpl.java 1 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/article/controller/ArticleCommentController.java
@@ -59,10 +59,22 @@
    /**
     * 通知评论表 自定义分页
     */
    @GetMapping("/pageWeb")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入articleComment")
    public R<IPage<ArticleCommentVO>> pageWeb(ArticleCommentVO articleComment, Query query) {
        IPage<ArticleCommentVO> pages = articleCommentService.selectArticleCommentPage(Condition.getPage(query), articleComment);
        return R.data(pages);
    }
    /**
     * 通知评论表 自定义分页
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入articleComment")
    public R<IPage<ArticleCommentVO>> page(ArticleCommentVO articleComment, Query query) {
        articleComment.setUserId(AuthUtil.getUserId());
        IPage<ArticleCommentVO> pages = articleCommentService.selectArticleCommentPage(Condition.getPage(query), articleComment);
        return R.data(pages);
    }
src/main/java/org/springblade/modules/article/service/impl/ArticleCommentServiceImpl.java
@@ -36,7 +36,6 @@
    @Override
    public IPage<ArticleCommentVO> selectArticleCommentPage(IPage<ArticleCommentVO> page, ArticleCommentVO noticeComment) {
        noticeComment.setUserId(AuthUtil.getUserId());
        return page.setRecords(baseMapper.selectArticleCommentPage(page, noticeComment));
    }