|
@ -39,9 +39,9 @@ public class SpecialistController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "findHealthAssistant", method = RequestMethod.GET)
|
|
|
@ApiOperation("获取所有计管师")
|
|
|
public String findHealthAssistant() {
|
|
|
public String findHealthAssistant(@ApiParam(name = "doctor", value = "医生code") @RequestParam(required = true)String doctor) {
|
|
|
try {
|
|
|
return write(200, "获取成功", "data", specialistService.findHealthAssistant());
|
|
|
return write(200, "获取成功", "data", specialistService.findHealthAssistant(doctor));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "请求失败");
|
|
@ -50,9 +50,9 @@ public class SpecialistController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "findHealthAssistantPatientCount", method = RequestMethod.GET)
|
|
|
@ApiOperation("获取所有计管师下居民数目")
|
|
|
public String findHealthAssistantPatientCount(){
|
|
|
public String findHealthAssistantPatientCount(@ApiParam(name = "doctor", value = "医生code") @RequestParam(required = true)String doctor){
|
|
|
try {
|
|
|
return write(200, "获取成功", "data", specialistService.findHealthAssistantPatientCount());
|
|
|
return write(200, "获取成功", "data", specialistService.findHealthAssistantPatientCount(doctor));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "请求失败");
|
|
@ -186,4 +186,16 @@ public class SpecialistController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "findPatientNoAssistant", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取未分配计管师居民列表")
|
|
|
public String findPatientNoAssistant(@ApiParam(name = "doctor", value = "医生code") @RequestParam(required = true)String doctor,
|
|
|
@ApiParam(name = "page", value = "第几页,1开始") @RequestParam(required = true)Integer page,
|
|
|
@ApiParam(name = "size", value = "每页大小") @RequestParam(required = true)Integer size) {
|
|
|
try {
|
|
|
return write(200, "获取成功", "data", specialistService.findPatientNoAssistant(doctor,page,size));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "请求失败");
|
|
|
}
|
|
|
}
|
|
|
}
|