|  | @ -156,6 +156,11 @@ public class CreditLogService {
 | 
												
													
														
															|  |         if (patient == null){
 |  |         if (patient == null){
 | 
												
													
														
															|  |             throw new Exception("该居民不存在");
 |  |             throw new Exception("该居民不存在");
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  | 
 |  |         SignFamily signFamily = signFamilyDao.findByPatient(patient.getCode());
 | 
												
													
														
															|  | 
 |  |         if (signFamily!=null){
 | 
												
													
														
															|  | 
 |  |             object.put("hospital",signFamily.getHospital());
 | 
												
													
														
															|  | 
 |  |             object.put("hospitalName",signFamily.getHospitalName());
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  |         object.put("name",patient.getName());
 |  |         object.put("name",patient.getName());
 | 
												
													
														
															|  |         object.put("idCard",patient.getIdcard());
 |  |         object.put("idCard",patient.getIdcard());
 | 
												
													
														
															|  |         object.put("openId",patient.getOpenid());
 |  |         object.put("openId",patient.getOpenid());
 | 
												
											
												
													
														
															|  | @ -274,7 +279,13 @@ public class CreditLogService {
 | 
												
													
														
															|  |         if (patient == null){
 |  |         if (patient == null){
 | 
												
													
														
															|  |             throw new Exception("该居民不存在");
 |  |             throw new Exception("该居民不存在");
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  | 
 |  |         SignFamily signFamily = signFamilyDao.findByPatient(patient.getCode());
 | 
												
													
														
															|  | 
 |  |         if (signFamily != null){
 | 
												
													
														
															|  | 
 |  |             object.put("hospital",signFamily.getHospital());
 | 
												
													
														
															|  | 
 |  |             object.put("hospitalName",signFamily.getHospitalName());
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  |         object.put("name",patient.getName());
 |  |         object.put("name",patient.getName());
 | 
												
													
														
															|  | 
 |  |         object.put("idCard",patient.getIdcard());
 | 
												
													
														
															|  |         String response = null;
 |  |         String response = null;
 | 
												
													
														
															|  |         String url =getBaseUrl() + "selectAccount";
 |  |         String url =getBaseUrl() + "selectAccount";
 | 
												
													
														
															|  |         Map<String,String> params = new HashMap<>();
 |  |         Map<String,String> params = new HashMap<>();
 | 
												
											
												
													
														
															|  | @ -609,7 +620,12 @@ public class CreditLogService {
 | 
												
													
														
															|  |         JSONArray jsonArray  = new JSONArray();
 |  |         JSONArray jsonArray  = new JSONArray();
 | 
												
													
														
															|  |         for (int i =0 ;i<array.size();i++){
 |  |         for (int i =0 ;i<array.size();i++){
 | 
												
													
														
															|  |             Patient patient = patientDao.findByCode(array.getString(i));
 |  |             Patient patient = patientDao.findByCode(array.getString(i));
 | 
												
													
														
															|  | 
 |  |             SignFamily signFamily = signFamilyDao.findByPatient(patient.getCode());
 | 
												
													
														
															|  |             JSONObject jsonObject = (JSONObject) JSONObject.toJSON(patient);
 |  |             JSONObject jsonObject = (JSONObject) JSONObject.toJSON(patient);
 | 
												
													
														
															|  | 
 |  |             if (signFamily != null){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("hospital",signFamily.getHospital());
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("hospitalName",signFamily.getHospitalName());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  |             jsonArray.add(jsonObject);
 |  |             jsonArray.add(jsonObject);
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         JSONObject object1 = new JSONObject();
 |  |         JSONObject object1 = new JSONObject();
 | 
												
											
												
													
														
															|  | @ -643,6 +659,11 @@ public class CreditLogService {
 | 
												
													
														
															|  |         if (patient == null){
 |  |         if (patient == null){
 | 
												
													
														
															|  |             throw new Exception("该居民不存在");
 |  |             throw new Exception("该居民不存在");
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  | 
 |  |         SignFamily signFamily = signFamilyDao.findByPatient(patient.getCode());
 | 
												
													
														
															|  | 
 |  |         if (signFamily != null){
 | 
												
													
														
															|  | 
 |  |             object.put("hospital",signFamily.getHospital());
 | 
												
													
														
															|  | 
 |  |             object.put("hospitalName",signFamily.getHospitalName());
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  |         object.put("name",patient.getName());
 |  |         object.put("name",patient.getName());
 | 
												
													
														
															|  |         object.put("idCard",patient.getIdcard());
 |  |         object.put("idCard",patient.getIdcard());
 | 
												
													
														
															|  |         object.put("openId",patient.getOpenid());
 |  |         object.put("openId",patient.getOpenid());
 |