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