From fffff924cfbe8bf9a977f11bb7960bb306716b24 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Fri, 22 Sep 2023 11:53:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../peanut/modules/book/controller/UserEbookBuyController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/peanut/modules/book/controller/UserEbookBuyController.java b/src/main/java/com/peanut/modules/book/controller/UserEbookBuyController.java index 491d0add..c3b67c89 100644 --- a/src/main/java/com/peanut/modules/book/controller/UserEbookBuyController.java +++ b/src/main/java/com/peanut/modules/book/controller/UserEbookBuyController.java @@ -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 bookEntityPage = bookDao.selectJoinPage(new Page(page, limit), BookEntity.class, wrapper); return R.ok().put("page",bookEntityPage); }