中医经典加国学经典
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -66,7 +66,7 @@ public class BookEntity implements Serializable {
|
||||
*/
|
||||
private String type;
|
||||
/**
|
||||
* 图书类型 0普通 1古籍
|
||||
* 图书类型 0普通 1中医经典 2国学经典
|
||||
*/
|
||||
private Integer bookType;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user