中医经典加国学经典

This commit is contained in:
wuchunlei
2023-12-21 15:39:32 +08:00
parent 2f6013bbcf
commit 3e3b3755f9
2 changed files with 2 additions and 3 deletions

View File

@@ -792,9 +792,8 @@ public class BookController {
//中医经典列表
@RequestMapping("/getClassicsBookList")
public R getClassicsBookList(@RequestBody Map<String,Object> params) {
BookEntity bookEntity = new BookEntity();
LambdaQueryWrapper<BookEntity> wrapper = new LambdaQueryWrapper();
wrapper.eq(BookEntity::getBookType,1);
wrapper.eq(BookEntity::getBookType,params.get("bookType"));
IPage<BookEntity> page = bookService.page(
new Query<BookEntity>().getPage(params),wrapper);
return R.ok().put("page", page);

View File

@@ -66,7 +66,7 @@ public class BookEntity implements Serializable {
*/
private String type;
/**
* 图书类型 0普通 1古籍
* 图书类型 0普通 1中医经典 2国学经典
*/
private Integer bookType;
/**