|
@ -1961,4 +1961,51 @@ public class FamilyContractService extends BaseService {
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询患者对应医生
|
|
|
*
|
|
|
* @param patient
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONObject getPatientSignDoctors(String patient) {
|
|
|
JSONObject result = new JSONObject();
|
|
|
Map<String, JSONObject> docMap = new HashMap<>();
|
|
|
SignFamily ssSign = signFamilyDao.findSignByPatient(patient, 1);
|
|
|
SignFamily jtSign = signFamilyDao.findSignByPatient(patient, 2);
|
|
|
JSONArray ssArray = new JSONArray();
|
|
|
JSONArray jtArray = new JSONArray();
|
|
|
|
|
|
if (ssSign != null) {
|
|
|
JSONObject qkDoc = new JSONObject();
|
|
|
qkDoc.put("doctor",ssSign.getDoctor());
|
|
|
qkDoc.put("doctorName",ssSign.getDoctorName());
|
|
|
|
|
|
ssArray.put(qkDoc);
|
|
|
|
|
|
JSONObject jgDoc = new JSONObject();
|
|
|
jgDoc.put("doctorHealth",ssSign.getDoctorHealth());
|
|
|
jgDoc.put("doctorHealthName",ssSign.getDoctorHealthName());
|
|
|
|
|
|
ssArray.put(qkDoc);
|
|
|
}
|
|
|
if (jtSign != null) {
|
|
|
JSONObject qkDoc = new JSONObject();
|
|
|
qkDoc.put("doctor",jtSign.getDoctor());
|
|
|
qkDoc.put("doctorName",jtSign.getDoctorName());
|
|
|
|
|
|
jtArray.put(qkDoc);
|
|
|
|
|
|
JSONObject jgDoc = new JSONObject();
|
|
|
jgDoc.put("doctorHealth",jtSign.getDoctorHealth());
|
|
|
jgDoc.put("doctorHealthName",jtSign.getDoctorHealthName());
|
|
|
|
|
|
jtArray.put(qkDoc);
|
|
|
}
|
|
|
|
|
|
result.put("ssSign",ssArray);
|
|
|
result.put("jtSign",ssArray);
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
}
|