微信支付配置文件转移
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user