prescript
This commit is contained in:
@@ -33,11 +33,7 @@ public class PrescriptController {
|
||||
*/
|
||||
@RequestMapping("/getPrescriptList")
|
||||
public R getPrescriptList(@RequestBody Map<String,Object> map){
|
||||
Integer limit = Integer.valueOf(map.get("limit").toString());
|
||||
Integer page = Integer.valueOf(map.get("page").toString());
|
||||
Integer prescriptCategoryId = Integer.valueOf(map.get("prescriptCategoryId").toString());
|
||||
Page<PrescriptEntity> prescriptList = prescriptService.getPrescriptList(prescriptCategoryId, limit, page);
|
||||
return R.ok().put("page",prescriptList);
|
||||
return getR(map);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -104,6 +100,34 @@ public class PrescriptController {
|
||||
return R.ok().put("list",categoryByPid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取方剂文章列表
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/prescriptList")
|
||||
public R prescriptList(@RequestBody Map<String,Object> map){
|
||||
return getR(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取方剂文章列表(经方)
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/prescriptListForJF")
|
||||
public R prescriptListForJF(@RequestBody Map<String,Object> map){
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
private R getR(@RequestBody Map<String, Object> map) {
|
||||
Integer limit = Integer.valueOf(map.get("limit").toString());
|
||||
Integer page = Integer.valueOf(map.get("page").toString());
|
||||
Integer id = Integer.valueOf(map.get("prescriptCategoryId").toString());
|
||||
Page<PrescriptEntity> prescriptList = prescriptService.getPrescriptList(id, limit, page);
|
||||
return R.ok().put("page",prescriptList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取方剂分类列表
|
||||
|
||||
Reference in New Issue
Block a user