|  | @ -931,6 +931,7 @@ public class SpecialistService{
 | 
												
													
														
															|  |             specialistPatientRelationDO = selectByDoctorAndPatient(doctorCode, patientCode);
 |  |             specialistPatientRelationDO = selectByDoctorAndPatient(doctorCode, patientCode);
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         jsonObject.put("specialistPatientRelationId", null == specialistPatientRelationDO ? null : specialistPatientRelationDO.getId());
 |  |         jsonObject.put("specialistPatientRelationId", null == specialistPatientRelationDO ? null : specialistPatientRelationDO.getId());
 | 
												
													
														
															|  | 
 |  |         jsonObject.put("signCertificate", null == specialistPatientRelationDO ? null : specialistPatientRelationDO.getSignCertificate());
 | 
												
													
														
															|  |         //1、获取居民基础信息
 |  |         //1、获取居民基础信息
 | 
												
													
														
															|  |         String preSql = "SELECT p.name as name, p.photo as photo,p.idcard as idcard,p.mobile as mobile,p.medicare_number as medicareNumber,p.ssc as ssc," +
 |  |         String preSql = "SELECT p.name as name, p.photo as photo,p.idcard as idcard,p.mobile as mobile,p.medicare_number as medicareNumber,p.ssc as ssc," +
 | 
												
													
														
															|  |                 " CASE  WHEN wd.name is null THEN '无' ELSE wd.name END as doctorName,CASE  WHEN wd.hospital_name is NULL THEN '无' ELSE wd.hospital_name END as hospitalName,CASE  WHEN wd.mobile is NULL THEN '无' ELSE wd.mobile END as doctorMobole ";
 |  |                 " CASE  WHEN wd.name is null THEN '无' ELSE wd.name END as doctorName,CASE  WHEN wd.hospital_name is NULL THEN '无' ELSE wd.hospital_name END as hospitalName,CASE  WHEN wd.mobile is NULL THEN '无' ELSE wd.mobile END as doctorMobole ";
 | 
												
											
												
													
														
															|  | @ -958,10 +959,10 @@ public class SpecialistService{
 | 
												
													
														
															|  |             doctorSql="SELECT wd.hospital_name as hospitalName,wd.dept_name as deptName,wd.name as name FROM " + basedb + ".wlyy_doctor wd WHERE wd.code='" + specialistPatientRelationDO.getDoctor() + "'";
 |  |             doctorSql="SELECT wd.hospital_name as hospitalName,wd.dept_name as deptName,wd.name as name FROM " + basedb + ".wlyy_doctor wd WHERE wd.code='" + specialistPatientRelationDO.getDoctor() + "'";
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         Map<String,Object> result =jdbcTemplate.queryForMap(doctorSql);
 |  |         Map<String,Object> result =jdbcTemplate.queryForMap(doctorSql);
 | 
												
													
														
															|  |         if(doctorCode.equals(specialistPatientRelationDO.getDoctor())){
 |  | 
 | 
												
													
														
															|  | 
 |  |         if ("0".equals(signStatus) && !(doctorCode.equals(specialistPatientRelationDO.getDoctor()))) {
 | 
												
													
														
															|  | 
 |  |             result.put("buttonShowFlag", false);
 | 
												
													
														
															|  | 
 |  |         } else {
 | 
												
													
														
															|  |             result.put("buttonShowFlag",true);
 |  |             result.put("buttonShowFlag",true);
 | 
												
													
														
															|  |         }else{
 |  | 
 | 
												
													
														
															|  |             result.put("buttonShowFlag",false);
 |  | 
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         jsonObject.put("doctorInfo", result);
 |  |         jsonObject.put("doctorInfo", result);
 | 
												
													
														
															|  | 
 |  | 
 |