医案管理-根据图书查医案
This commit is contained in:
@@ -66,29 +66,18 @@ public class BookMedicalRecordsController {
|
|||||||
page.setPages((int)Math.ceil(list.size()/page.getSize()));
|
page.setPages((int)Math.ceil(list.size()/page.getSize()));
|
||||||
return R.ok().put("page", page);
|
return R.ok().put("page", page);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* 列表
|
|
||||||
*/
|
|
||||||
@RequestMapping("/list")
|
|
||||||
public R list(@RequestBody Map<String, Object> params){
|
|
||||||
IPage<BookMedicalRecordsEntity> page = bookMedicalRecordsService.page(
|
|
||||||
new Query<BookMedicalRecordsEntity>().getPage(params),
|
|
||||||
new QueryWrapper<BookMedicalRecordsEntity>()
|
|
||||||
.orderByDesc("sort")
|
|
||||||
.eq("del_flag","0"));
|
|
||||||
return R.ok().put("page", page);
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* 根据图书id查询列表
|
* 根据图书id查询列表
|
||||||
*/
|
*/
|
||||||
@RequestMapping("/listByBookId")
|
@RequestMapping("/listByBookId")
|
||||||
public R listByBookId(Integer bookId){
|
public R listByBookId(@RequestBody Map<String, Object> params){
|
||||||
List list = bookMedicalRecordsService.list(
|
IPage<BookMedicalRecordsEntity> page = bookMedicalRecordsService.page(
|
||||||
|
new Query<BookMedicalRecordsEntity>().getPage(params),
|
||||||
new QueryWrapper<BookMedicalRecordsEntity>()
|
new QueryWrapper<BookMedicalRecordsEntity>()
|
||||||
.eq("book_id", bookId)
|
.eq("book_id", params.get("bookId"))
|
||||||
.eq("del_flag","0")
|
.eq("del_flag","0")
|
||||||
.orderByDesc("sort"));
|
.orderByDesc("sort"));
|
||||||
return R.ok().put("list", list);
|
return R.ok().put("page", page);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 根据id查询医案
|
* 根据id查询医案
|
||||||
|
|||||||
Reference in New Issue
Block a user