From adbdacdddc1026205ede1405fce6dc8eac429a7b Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Wed, 29 Nov 2023 10:07:02 +0800 Subject: [PATCH] bug --- .../controller/BookForumArticlesServiceController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java b/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java index 7e668be0..667f6a61 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java @@ -82,8 +82,8 @@ public class BookForumArticlesServiceController { b.setCommentNum(commentcount); } - if(bookForumArticlesEntityPage.getTotal()>20){ - bookForumArticlesEntityPage.setTotal(20); + if(page>2){ + bookForumArticlesEntityPage.setRecords(null); } return R.ok().put("page",bookForumArticlesEntityPage); @@ -118,8 +118,8 @@ public class BookForumArticlesServiceController { b.setCommentNum(commentcount); } - if(bookForumArticlesEntityPage.getTotal()>20){ - bookForumArticlesEntityPage.setTotal(20); + if(page>2){ + bookForumArticlesEntityPage.setRecords(null); }