This commit is contained in:
wangjinlei
2023-09-22 11:53:47 +08:00
parent 717bb8d0ef
commit fffff924cf

View File

@@ -121,6 +121,7 @@ public class UserEbookBuyController {
wrapper.selectAll(BookEntity.class);
wrapper.leftJoin(UserEbookBuyEntity.class,UserEbookBuyEntity::getBookId,BookEntity::getId);
wrapper.eq(UserEbookBuyEntity::getUserId,userId);
wrapper.groupBy(UserEbookBuyEntity::getBookId);
Page<BookEntity> bookEntityPage = bookDao.selectJoinPage(new Page<BookEntity>(page, limit), BookEntity.class, wrapper);
return R.ok().put("page",bookEntityPage);
}