|
@ -361,12 +361,17 @@ public class DailyReportUploadService {
|
|
|
}
|
|
|
|
|
|
String senderID="";//日报发送对象
|
|
|
String boosID="0592008";//老板id
|
|
|
String sql = " select dict_value from wlyy_hospital_sys_dict where dict_name='BOOS_ADMIN_SENDER' ";
|
|
|
List<String> boosSenderIds = jdbcTemplate.queryForList(sql,String.class);
|
|
|
String boosID = "";
|
|
|
if (boosSenderIds.size()>0){
|
|
|
boosID=boosSenderIds.get(0);
|
|
|
}
|
|
|
List<BaseDoctorRoleDO> roleDOS = doctorRoleDao.findByDoctorCode(doctorId);
|
|
|
if (roleDOS.size()==0){//普通员工 需要查询对应上级人员
|
|
|
if (doctorHospitalDOS != null && doctorHospitalDOS.size() != 0) {
|
|
|
BaseDoctorHospitalDO doctorHospitalDO = doctorHospitalDOS.get(0);
|
|
|
String sql = " select role.doctor_code from base_doctor_role role INNER JOIN base_doctor_hospital dh " +
|
|
|
sql = " select role.doctor_code from base_doctor_role role INNER JOIN base_doctor_hospital dh " +
|
|
|
"on role.doctor_code = dh.doctor_code and dh.dept_code='"+doctorHospitalDO.getDeptCode()+"' " +
|
|
|
"where role.role_code='deptAdmin' ";
|
|
|
List<String> deptAdmins = jdbcTemplate.queryForList(sql,String.class);
|