|
@ -976,8 +976,8 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String getPatientDoctor(@RequestParam String patient) {
|
|
public String getPatientDoctor(@RequestParam String patient) {
|
|
try {
|
|
try {
|
|
if(StringUtils.isEmpty(patient)){
|
|
|
|
return error(-1,"居民不能为空");
|
|
|
|
|
|
if (StringUtils.isEmpty(patient)) {
|
|
|
|
return error(-1, "居民不能为空");
|
|
}
|
|
}
|
|
JSONObject result = familyContractService.getPatientDoctors(patient, getUID());
|
|
JSONObject result = familyContractService.getPatientDoctors(patient, getUID());
|
|
return write(200, "查询成功", "data", result);
|
|
return write(200, "查询成功", "data", result);
|
|
@ -986,4 +986,22 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
return error(-1, "查询失败");
|
|
return error(-1, "查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询患者签约医生
|
|
|
|
*
|
|
|
|
* @param patient 患者
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@RequestMapping(value = "/patient_sign_doctors", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@ResponseBody
|
|
|
|
public String getPatientSignDoctors(String patient) {
|
|
|
|
try {
|
|
|
|
JSONObject result = familyContractService.getPatientSignDoctors(patient);
|
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
|
} catch (Exception e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
return error(-1, "查询失败");
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|