|
@ -859,14 +859,15 @@ public class SpecialistService{
|
|
|
objectMap.put("teamId", i);
|
|
|
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'";
|
|
|
//new BeanPropertyRowMapper(
|
|
|
List<Map<String, Object>> stringList = jdbcTemplate.queryForList(teamSql);
|
|
|
objectMap.put("teamDisease", stringList);
|
|
|
mapList.add(objectMap);
|
|
|
}
|
|
|
jsonObject.put("teamAndDoctors", mapList);
|
|
|
//获取专科团队疾病标签
|
|
|
teamSql = "SELECT wtdr.disease_name from wlyy.wlyy_team_disease_relation wtdr WHERE wtdr.team_code IN ( SELECT watm.team_id teamId FROM " + basedb + ".wlyy_admin_team_member watm WHERE watm.doctor_code ='" + doctorCode + "'" + " AND watm.available = '1' ) AND wtdr.del='1'";
|
|
|
//new BeanPropertyRowMapper(
|
|
|
List<String> stringList = jdbcTemplate.queryForList(teamSql, String.class);
|
|
|
jsonObject.put("teamDisease", stringList.stream().collect(Collectors.joining(" ")));
|
|
|
|
|
|
//疾病标签
|
|
|
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);
|