|
@ -195,14 +195,13 @@ public class FamilyMemberService extends BaseService {
|
|
JSONObject result = new JSONObject();
|
|
JSONObject result = new JSONObject();
|
|
Patient p = patientDao.findByIdcard(idcard);
|
|
Patient p = patientDao.findByIdcard(idcard);
|
|
|
|
|
|
if (p.getCode().equals(patient)) {
|
|
|
|
result.put("isRegister", -1); //不能添加自己
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p == null) {
|
|
if (p == null) {
|
|
result.put("isRegister", 0);
|
|
result.put("isRegister", 0);
|
|
} else {
|
|
} else {
|
|
|
|
if (patient.equals(p.getCode())) {
|
|
|
|
result.put("isRegister", -1); //不能添加自己
|
|
|
|
return result;
|
|
|
|
}
|
|
result.put("isRegister", 1);
|
|
result.put("isRegister", 1);
|
|
result.put("mobile", StringUtils.isEmpty(p.getMobile()) ? "" : p.getMobile());
|
|
result.put("mobile", StringUtils.isEmpty(p.getMobile()) ? "" : p.getMobile());
|
|
result.put("name", StringUtils.isEmpty(p.getName()) ? "" : p.getName());
|
|
result.put("name", StringUtils.isEmpty(p.getName()) ? "" : p.getName());
|
|
@ -267,7 +266,7 @@ public class FamilyMemberService extends BaseService {
|
|
obj.put("idcard", StringUtils.isEmpty(String.valueOf(map.get("idcard"))) ? "" : map.get("idcard").toString());
|
|
obj.put("idcard", StringUtils.isEmpty(String.valueOf(map.get("idcard"))) ? "" : map.get("idcard").toString());
|
|
obj.put("photo", map.get("photo"));
|
|
obj.put("photo", map.get("photo"));
|
|
obj.put("mobile", map.get("mobile"));
|
|
obj.put("mobile", map.get("mobile"));
|
|
obj.put("address", map.get("address"));
|
|
|
|
|
|
obj.put("address", StringUtils.isEmpty(String.valueOf(map.get("address"))) ? "" : map.get("address"));
|
|
obj.put("familyRelation", map.get("family_relation"));
|
|
obj.put("familyRelation", map.get("family_relation"));
|
|
|
|
|
|
if (StringUtils.isEmpty(doctorCode)) {
|
|
if (StringUtils.isEmpty(doctorCode)) {
|