From 105f09f80283f13ccc4d671c3001f36b8e6138f2 Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Fri, 6 Dec 2024 09:15:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=AC=E4=B9=A6=E4=BA=BA?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/bookAbroad/controller/HomeController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 800493a1..b8e4fddb 100644 --- a/src/main/java/com/peanut/modules/bookAbroad/controller/HomeController.java +++ b/src/main/java/com/peanut/modules/bookAbroad/controller/HomeController.java @@ -148,11 +148,11 @@ public class HomeController { List> list = toLableService.listMaps(wrapper); for (Map map : list) { int readCount = bookReadRateService.count(new LambdaQueryWrapper() - .eq(BookReadRateEntity::getBookId,params.get("bookId"))); + .eq(BookReadRateEntity::getBookId,map.get("bookId"))); int buyCount = userEbookBuyService.count(new LambdaQueryWrapper() - .eq(UserEbookBuyEntity::getBookId,params.get("bookId"))); + .eq(UserEbookBuyEntity::getBookId,map.get("bookId"))); int listenCount = bookListeningService.count(new LambdaQueryWrapper() - .eq(BookListeningEntity::getBookId,params.get("bookId"))); + .eq(BookListeningEntity::getBookId,map.get("bookId"))); map.put("readCount",readCount); map.put("buyCount",buyCount); map.put("listenCount",listenCount);