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);