|
@ -312,5 +312,46 @@ public class SpecialistController extends WeixinBaseController {
|
|
|
return error(-1, "请求失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/findDoctorAndDoctorHealthBySpecialDoctor", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取当前专科医生有关联的家庭医生和健管师列表")
|
|
|
public String findDoctorAndDoctorHealthBySpecialDoctor(
|
|
|
@ApiParam(name = "doctor", value = "专科医生code") @RequestParam(required = true)String doctor){
|
|
|
try {
|
|
|
return write(200, "获取成功", "data", specialistService.findDoctorAndDoctorHealthBySpecialDoctor(doctor));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "请求失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/findSpecialistSignFamilyPatientCout", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取专科医生家庭医生共管居民数目")
|
|
|
public String findSpecialistSignFamilyPatientCout(
|
|
|
@ApiParam(name = "specialdoctor", value = "专科医生") @RequestParam(required = true)String specialdoctor,
|
|
|
@ApiParam(name = "familydoctor", value = "家庭医生") @RequestParam(required = true)String familydoctor) {
|
|
|
try {
|
|
|
return write(200, "获取成功", "data", specialistService.findSpecialistSignFamilyPatientCout(specialdoctor,familydoctor));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "请求失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/getSpecialistSignFamilyPatientByName", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "搜索专科医生家庭医生共管居民")
|
|
|
public String getSpecialistSignFamilyPatientByName(
|
|
|
@ApiParam(name = "specialdoctor", value = "专科医生") @RequestParam(required = true)String specialdoctor,
|
|
|
@ApiParam(name = "familydoctor", value = "家庭医生") @RequestParam(required = true)String familydoctor,
|
|
|
@ApiParam(name = "nameKey", value = "居民姓名模糊") @RequestParam(required = false)String nameKey,
|
|
|
@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.getSpecialistSignFamilyPatientByName(specialdoctor,familydoctor,nameKey,page,size));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "请求失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|