From a9aa698e2ab0b53fee09252aa095093342df78d6 Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Tue, 24 Dec 2024 16:48:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A8=E8=8D=90=E5=9B=BE?= =?UTF-8?q?=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/peanut/modules/bookAbroad/controller/HomeController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/peanut/modules/bookAbroad/controller/HomeController.java b/src/main/java/com/peanut/modules/bookAbroad/controller/HomeController.java index 77a2013..1d83124 100644 --- a/src/main/java/com/peanut/modules/bookAbroad/controller/HomeController.java +++ b/src/main/java/com/peanut/modules/bookAbroad/controller/HomeController.java @@ -78,6 +78,7 @@ public class HomeController { //查询已购买图书 LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); wrapper.eq(UserEbookBuyEntity::getUserId,ShiroUtils.getUId()); + wrapper.select(UserEbookBuyEntity::getBookId); wrapper.groupBy(UserEbookBuyEntity::getBookId); Set bookIds = userEbookBuyService.getBaseMapper().selectList(wrapper).stream() .map(UserEbookBuyEntity::getBookId).collect(Collectors.toSet());