|
@ -247,7 +247,7 @@ public class FamilyMemberService extends BaseService {
|
|
|
* @param patient 居民
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONArray getPatientFamilyMembers(String patient, String doctorCode, boolean isContain, String current) {
|
|
|
public JSONArray getPatientFamilyMembers(String patient, String doctorCode) {
|
|
|
JSONArray resultArray = new JSONArray();
|
|
|
String sql = "select * " +
|
|
|
" from " +
|
|
@ -321,6 +321,23 @@ public class FamilyMemberService extends BaseService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return resultArray;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取居民的家庭成员
|
|
|
*
|
|
|
* @param patient 居民
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONArray getPatientMembers(String patient, String doctorCode, boolean isContain, String current) {
|
|
|
JSONArray resultArray = getPatientFamilyMembers(patient,doctorCode);
|
|
|
|
|
|
if(resultArray == null){
|
|
|
resultArray = new JSONArray();
|
|
|
}
|
|
|
|
|
|
if (isContain && !patient.equals(current)) {
|
|
|
Patient p = patientDao.findByCode(patient);
|
|
|
|
|
@ -365,6 +382,7 @@ public class FamilyMemberService extends BaseService {
|
|
|
return resultArray;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 查询居民的某个家庭成员
|
|
|
*
|