|
@ -37,6 +37,7 @@ public class DoctorConcernController extends BaseController {
|
|
|
@ApiOperation(value = "获取医生关注的患者", notes = "", response = Patient.class)
|
|
|
public String getConcernDoctors(
|
|
|
@ApiParam(name = "doctor", value = "医生", required = false) @RequestParam(required = false, name = "doctor") String doctor,
|
|
|
@ApiParam(name = "patientName", value = "患者名称 支持模糊查找", required = false) @RequestParam(required = false, name = "patientName") String patientName,
|
|
|
@ApiParam(name = "page", value = "当前页(从0开始)", required = true) @RequestParam(required = true, name = "page") Integer page,
|
|
|
@ApiParam(name = "pageSize", value = "每页显示条数", required = true) @RequestParam(required = true, name = "pageSize") Integer pageSize
|
|
|
|
|
@ -46,7 +47,7 @@ public class DoctorConcernController extends BaseController {
|
|
|
doctor = getUID();
|
|
|
}
|
|
|
JSONArray array = new JSONArray();
|
|
|
List<Patient> patients = concernService.listPatientsByDoctorCode(doctor, page, pageSize);
|
|
|
List<Patient> patients = concernService.listPatientsByDoctorCode(doctor,patientName, page, pageSize);
|
|
|
for (Patient patient : patients) {
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("code", patient.getCode());
|