|  | @ -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);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
											
												
													
														
															|  | @ -1016,9 +1017,12 @@ public class SpecialistService{
 | 
												
													
														
															|  |         //康复情况标签
 |  |         //康复情况标签
 | 
												
													
														
															|  |         String labelSql = "SELECT wspl.label_code,wspl.label_name from  wlyy.wlyy_sign_patient_label wspl WHERE wspl.label_type='8' AND status='1'";
 |  |         String labelSql = "SELECT wspl.label_code,wspl.label_name from  wlyy.wlyy_sign_patient_label wspl WHERE wspl.label_type='8' AND status='1'";
 | 
												
													
														
															|  |         List<Map<String, Object>> signPatientLabelList = jdbcTemplate.queryForList(labelSql);
 |  |         List<Map<String, Object>> signPatientLabelList = jdbcTemplate.queryForList(labelSql);
 | 
												
													
														
															|  |         //居民的康复情况
 |  | 
 | 
												
													
														
															|  |         String patientLabelSql = "SELECT wspl.label from  wlyy.wlyy_sign_patient_label_info wspl WHERE wspl.patient='"+patientCode+"' and  wspl.label_type='8' AND status='1'";
 |  | 
 | 
												
													
														
															|  |         List<String> patientLabelList = jdbcTemplate.queryForList(patientLabelSql,String.class);
 |  | 
 | 
												
													
														
															|  | 
 |  |         List<String> patientLabelList = new ArrayList<>();
 | 
												
													
														
															|  | 
 |  |         if("0".equals(signStatus) ){
 | 
												
													
														
															|  | 
 |  |             //居民的康复情况
 | 
												
													
														
															|  | 
 |  |             String patientLabelSql = "SELECT wspl.label from  wlyy.wlyy_sign_patient_label_info wspl WHERE wspl.patient='"+patientCode+"' and  wspl.label_type='8' AND status='1'";
 | 
												
													
														
															|  | 
 |  |             patientLabelList = jdbcTemplate.queryForList(patientLabelSql,String.class);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  |         Set<String> patientLabelSet =new HashSet<>(patientLabelList);
 |  |         Set<String> patientLabelSet =new HashSet<>(patientLabelList);
 | 
												
													
														
															|  |         signPatientLabelList.stream().forEach(item->{
 |  |         signPatientLabelList.stream().forEach(item->{
 | 
												
													
														
															|  |             item.put("status",patientLabelSet.contains(item.get("label_code").toString())?1:0) ;
 |  |             item.put("status",patientLabelSet.contains(item.get("label_code").toString())?1:0) ;
 |