From 2a9e6607e55733e16e040999840563f7d7f0596d Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Mon, 25 Dec 2023 16:21:55 +0800
Subject: [PATCH] 管理后台查询不出来评论

---
 src/main/java/org/springblade/modules/article/controller/ArticleCommentController.java    |   12 ++++++++++++
 src/main/java/org/springblade/modules/article/service/impl/ArticleCommentServiceImpl.java |    1 -
 2 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/springblade/modules/article/controller/ArticleCommentController.java b/src/main/java/org/springblade/modules/article/controller/ArticleCommentController.java
index c6ceea0..6888f4f 100644
--- a/src/main/java/org/springblade/modules/article/controller/ArticleCommentController.java
+++ b/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);
 	}
diff --git a/src/main/java/org/springblade/modules/article/service/impl/ArticleCommentServiceImpl.java b/src/main/java/org/springblade/modules/article/service/impl/ArticleCommentServiceImpl.java
index f966b67..5258b41 100644
--- a/src/main/java/org/springblade/modules/article/service/impl/ArticleCommentServiceImpl.java
+++ b/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));
 	}
 

--
Gitblit v1.9.3