|
@ -103,12 +103,16 @@ public class DoctorSignController extends BaseController {
|
|
|
String doctor = getUID();
|
|
|
Page<Object> page = infoService.findPatientByDoctorSign(doctor, id, pagesize, patientName);
|
|
|
JSONArray array = new JSONArray();
|
|
|
Map<Object,Object> exitMap = new HashMap<>();
|
|
|
if (page != null) {
|
|
|
for (Object obj : page) {
|
|
|
Object[] temp = (Object[]) obj;
|
|
|
if (temp == null) {
|
|
|
continue;
|
|
|
}
|
|
|
if(exitMap.get(temp[9])!=null){//防止患者既有三师签约也有家庭签约导致数据重复
|
|
|
continue;
|
|
|
}
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("id", temp[1]);
|
|
|
|
|
@ -131,6 +135,7 @@ public class DoctorSignController extends BaseController {
|
|
|
//患者联系方式
|
|
|
json.put("mobile", temp[10]);
|
|
|
array.put(json);
|
|
|
exitMap.put(temp[9],temp);
|
|
|
}
|
|
|
}
|
|
|
return write(200, "查询成功!", "list", array);
|