From 3599fa4357cf5584be7f7fd5ff989ce65a0a6e96 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Wed, 29 Nov 2023 14:55:34 +0800 Subject: [PATCH] bug --- .../controller/BookForumArticlesServiceController.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 667f6a61..980e966c 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java @@ -82,6 +82,10 @@ public class BookForumArticlesServiceController { b.setCommentNum(commentcount); } + if(bookForumArticlesEntityPage.getTotal()>20){ + bookForumArticlesEntityPage.setTotal(20); + } + if(page>2){ bookForumArticlesEntityPage.setRecords(null); } @@ -117,6 +121,9 @@ public class BookForumArticlesServiceController { b.setComment(commentsLimit); b.setCommentNum(commentcount); } + if(bookForumArticlesEntityPage.getTotal()>20){ + bookForumArticlesEntityPage.setTotal(20); + } if(page>2){ bookForumArticlesEntityPage.setRecords(null);