微信支付配置文件转移

This commit is contained in:
wangjinlei
2023-11-21 10:10:10 +08:00
parent 5402c28b31
commit 59d5ffb46f
8 changed files with 290 additions and 134 deletions

View File

@@ -71,6 +71,7 @@ public class BookForumArticlesServiceController {
wrapper.eq(BookForumArticlesEntity::getDelflag,0);
wrapper.eq(BookEntity::getDelFlag,0);
wrapper.eq(BookEntity::getState,1);
wrapper.orderByDesc(BookForumArticlesEntity::getCreateTime);
Page<BookForumArticlesEntity> bookForumArticlesEntityPage = bookForumArticlesDao.selectJoinPage(new Page<>(page, limit), BookForumArticlesEntity.class, wrapper);
for (BookForumArticlesEntity b : bookForumArticlesEntityPage.getRecords()){
@@ -80,6 +81,9 @@ public class BookForumArticlesServiceController {
b.setCommentNum(commentcount);
}
if(bookForumArticlesEntityPage.getTotal()>20){
bookForumArticlesEntityPage.setTotal(20);
}
return R.ok().put("page",bookForumArticlesEntityPage);
}
@@ -113,6 +117,10 @@ public class BookForumArticlesServiceController {
b.setCommentNum(commentcount);
}
if(bookForumArticlesEntityPage.getTotal()>20){
bookForumArticlesEntityPage.setTotal(20);
}
return R.ok().put("page",bookForumArticlesEntityPage);
}