书评单本书显示其他书评的bug

This commit is contained in:
wangjinlei
2023-10-23 15:26:10 +08:00
parent 03d751d804
commit 0658e0a325
2 changed files with 2 additions and 1 deletions

View File

@@ -228,6 +228,7 @@ public class BookForumArticlesServiceController {
public R getForumByBook(@RequestParam Integer bookId,@RequestParam Integer limit,@RequestParam Integer page){
LambdaQueryWrapper<BookForumArticlesEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(BookForumArticlesEntity::getDelflag,0);
wrapper.eq(BookForumArticlesEntity::getBookid,bookId);
wrapper.orderByDesc(BookForumArticlesEntity::getCreateTime);
Page<BookForumArticlesEntity> bookForumArticlesEntityPage = bookForumArticlesService.getBaseMapper().selectPage(new Page<>(page, limit), wrapper);
for (BookForumArticlesEntity b:bookForumArticlesEntityPage.getRecords()){