--图书分类

This commit is contained in:
yc13649764453
2023-09-15 09:08:38 +08:00
parent 4deeb605f8
commit 8d3c128f3b
24 changed files with 862 additions and 473 deletions

View File

@@ -97,23 +97,24 @@ public class UserEbookBuyController {
List<UserEbookBuyEntity> user_id = userEbookBuyService.getBaseMapper().selectList(new QueryWrapper<UserEbookBuyEntity>().eq("user_id", userId));
for (UserEbookBuyEntity userEbookBuyEntity : user_id) {
Map<String, Object> map = new HashMap<>();
Integer bookId = userEbookBuyEntity.getBookId();
Integer userId1 = userEbookBuyEntity.getUserId();
String bookName = userEbookBuyEntity.getBookName();
Integer bookId = userEbookBuyEntity.getBookId();
Integer buyId = userEbookBuyEntity.getBuyId();
String image = userEbookBuyEntity.getImage();
String author = userEbookBuyEntity.getAuthor();
List<BookEntity> id = bookService.getBaseMapper().selectList(new QueryWrapper<BookEntity>().eq("id", bookId));
for (BookEntity bookEntity : id) {
String images = bookEntity.getImages();
Integer id1 = bookEntity.getId();
String name1 = bookEntity.getName();
String name = bookEntity.getName();
Boolean canListen = bookEntity.getCanListen();
map.put("canListen", canListen);
map.put("bookId",bookId);
map.put("userId",userId1);
map.put("bookName",bookName);
map.put("bookName",name1);
map.put("buyId",buyId);
map.put("image",image);
map.put("author",author);
map.put("image",images);
// map.put("author",author);
list.add(map);