组织架构图历史部门负责人存储问题和查询问题修复

pull/286/head
Chengliang 5 months ago
parent 8de60788a7
commit 76d9138191

@ -1007,7 +1007,7 @@ public class ChartServiceImpl extends Service implements ChartService {
" left join JCL_ORG_ONJOB d on a.id=d.data_id and d.type=1 "; " left join JCL_ORG_ONJOB d on a.id=d.data_id and d.type=1 ";
deptQuerySql = "select a.id as departmentid, a.departmentmark, a.departmentname, a.subcompanyid1 as subcompanyid, " + deptQuerySql = "select a.id as departmentid, a.departmentmark, a.departmentname, a.subcompanyid1 as subcompanyid, " +
"b.SUBCOMPANYNAME as subcompany,a.supdepid as supdepartmentid,c.departmentname as supdepartment," + "b.SUBCOMPANYNAME as subcompany,a.supdepid as supdepartmentid,c.departmentname as supdepartment," +
"a.canceled,a.departmentcode,a.coadjutant,a.tlevel,d.bmlx as isvirtual,a.bmfzr as fleader,e.on_job_num,e.staff_num " + "a.canceled,a.departmentcode,a.coadjutant,a.tlevel,d.bmlx as isvirtual,d.bmfzr as fleader,e.on_job_num,e.staff_num " +
"from hrmdepartment a left join hrmsubcompany b on a.subcompanyid1 = b.id " + "from hrmdepartment a left join hrmsubcompany b on a.subcompanyid1 = b.id " +
"left join hrmdepartment c on a.supdepid = c.id " + "left join hrmdepartment c on a.supdepid = c.id " +
"left join hrmdepartmentdefined d on a.id=d.deptid " + "left join hrmdepartmentdefined d on a.id=d.deptid " +
@ -1040,7 +1040,7 @@ public class ChartServiceImpl extends Service implements ChartService {
" a.departmentcode,\n" + " a.departmentcode,\n" +
" a.coadjutant,\n" + " a.coadjutant,\n" +
" a.tlevel,\n" + " a.tlevel,\n" +
" a.bmfzr as fleader,\n" + " d.bmfzr as fleader,\n" +
" d.on_job_num,\n" + " d.on_job_num,\n" +
" d.staff_num" + " d.staff_num" +
" from hrmdepartment a\n" + " from hrmdepartment a\n" +
@ -1671,9 +1671,6 @@ public class ChartServiceImpl extends Service implements ChartService {
* @return * @return
*/ */
private String getDepartmentLeader(String ids) { private String getDepartmentLeader(String ids) {
if (!isRealTime) {
return ids;
}
if (StringUtils.isBlank(ids)) { if (StringUtils.isBlank(ids)) {
return ""; return "";
} }

Loading…
Cancel
Save