添加听书人数

This commit is contained in:
wuchunlei
2024-12-06 09:15:35 +08:00
parent 6f9087b48d
commit 105f09f802

View File

@@ -148,11 +148,11 @@ public class HomeController {
List<Map<String,Object>> list = toLableService.listMaps(wrapper);
for (Map<String, Object> map : list) {
int readCount = bookReadRateService.count(new LambdaQueryWrapper<BookReadRateEntity>()
.eq(BookReadRateEntity::getBookId,params.get("bookId")));
.eq(BookReadRateEntity::getBookId,map.get("bookId")));
int buyCount = userEbookBuyService.count(new LambdaQueryWrapper<UserEbookBuyEntity>()
.eq(UserEbookBuyEntity::getBookId,params.get("bookId")));
.eq(UserEbookBuyEntity::getBookId,map.get("bookId")));
int listenCount = bookListeningService.count(new LambdaQueryWrapper<BookListeningEntity>()
.eq(BookListeningEntity::getBookId,params.get("bookId")));
.eq(BookListeningEntity::getBookId,map.get("bookId")));
map.put("readCount",readCount);
map.put("buyCount",buyCount);
map.put("listenCount",listenCount);