|  | @ -860,17 +860,32 @@ public class SpecialistService{
 | 
	
		
			
				|  |  |             objectMap.put("teamName", m.get(i).get(0).get("teamName"));
 | 
	
		
			
				|  |  |             objectMap.put("teamDoctors", m.get(i));
 | 
	
		
			
				|  |  |             //获取专科团队疾病标签
 | 
	
		
			
				|  |  |             teamSql = "SELECT wtdr.disease_code, wtdr.disease_name from  wlyy.wlyy_team_disease_relation wtdr WHERE wtdr.team_code ='" + i + "'" +"  AND wtdr.del='1'";
 | 
	
		
			
				|  |  |            String disSql = "SELECT wtdr.disease_code, wtdr.disease_name from  wlyy.wlyy_team_disease_relation wtdr WHERE wtdr.team_code ='" + i + "'" +"  AND wtdr.del='1'";
 | 
	
		
			
				|  |  |             //new BeanPropertyRowMapper(
 | 
	
		
			
				|  |  |             List<Map<String, Object>>  stringList = jdbcTemplate.queryForList(teamSql);
 | 
	
		
			
				|  |  |             List<Map<String, Object>>  stringList = jdbcTemplate.queryForList(disSql);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             String areaSql = " SELECT wspr.diseaseCode from  wlyy_specialist.wlyy_specialist_patient_relation wspr WHERE wspr.patient='" + patientCode + "'" + " AND wspr.sign_status !='-1'";
 | 
	
		
			
				|  |  |             List<Map<String, Object>> signDiseaseList = jdbcTemplate.queryForList(areaSql);
 | 
	
		
			
				|  |  |             Set<String> stringSet = new HashSet<>();
 | 
	
		
			
				|  |  |             signDiseaseList.stream().forEach(item -> {
 | 
	
		
			
				|  |  |                 String dis = (String) item.get("diseaseCode");
 | 
	
		
			
				|  |  |                 if(null!=dis&&StringUtils.isNotEmpty(dis)){
 | 
	
		
			
				|  |  |                     stringSet.addAll(new HashSet<>(Arrays.asList(dis.split(","))));
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             });
 | 
	
		
			
				|  |  |             //已签约的疾病状态改成1
 | 
	
		
			
				|  |  |             stringList.stream().forEach(item->{
 | 
	
		
			
				|  |  |                 item.put("status",stringSet.contains( item.get("disease_code"))?1:0) ;
 | 
	
		
			
				|  |  |             });
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             objectMap.put("teamDisease", stringList);
 | 
	
		
			
				|  |  |             mapList.add(objectMap);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         jsonObject.put("teamAndDoctors", mapList);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //疾病标签
 | 
	
		
			
				|  |  |         teamSql = "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(teamSql);
 | 
	
		
			
				|  |  |         //康复情况标签
 | 
	
		
			
				|  |  |         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);
 | 
	
		
			
				|  |  |         jsonObject.put("signPatientLabels", signPatientLabelList);
 | 
	
		
			
				|  |  |         return jsonObject;
 | 
	
		
			
				|  |  |     }
 |