新版
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user