|
@ -4847,6 +4847,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
} else {
|
|
|
rs.put("scoreList", null);
|
|
|
}
|
|
|
|
|
|
rs.put("doctorLable",findDoctorLabel(doctor));
|
|
|
}
|
|
|
|
|
|
return rs;
|
|
@ -5028,11 +5030,30 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
rs.put("authPw", baseDoctorService.findDoctorPwlimitDate(doctor));
|
|
|
}
|
|
|
|
|
|
//医生标签
|
|
|
rs.put("doctorLable", findDoctorLabel(doctor));
|
|
|
}
|
|
|
|
|
|
return rs;
|
|
|
}
|
|
|
|
|
|
//获取医生标签
|
|
|
public String findDoctorLabel(String doctor){
|
|
|
String sql = "SELECT GROUP_CONCAT(name) doctorLable from (" +
|
|
|
"SELECT CONCAT(di.name,'专病医生') name from base_disease_hospital di" +
|
|
|
"INNER JOIN base_doctor_hospital d on d.del=1 and FIND_IN_SET(d.dept_code,di.dept)" +
|
|
|
"WHERE di.`status`=1 and d.doctor_code='"+doctor+"'" +
|
|
|
"UNION" +
|
|
|
"SELECT CONCAT(t.name,'成员') name from base_team t,base_team_member m" +
|
|
|
"WHERE t.del='1' and t.id=m.team_code and m.del='1' " +
|
|
|
"and m.doctor_code='"+doctor+"') a";
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
if(list.size()>0){
|
|
|
return list.get(0).get("doctorLable")+"";
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 居民取消复诊或者医生拒绝接诊
|
|
|
*
|