|
@ -1017,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'";
|
|
|
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);
|
|
|
signPatientLabelList.stream().forEach(item->{
|
|
|
item.put("status",patientLabelSet.contains(item.get("label_code").toString())?1:0) ;
|