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);