prescript

This commit is contained in:
wangjinlei
2023-12-14 15:22:10 +08:00
parent af081f6e81
commit a3b3c1f5f6
4 changed files with 47 additions and 6 deletions

View File

@@ -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);
}
/**
* 获取方剂分类列表