人员快照列表BUG修复
This commit is contained in:
parent
877fb368a8
commit
0bbde26f6f
|
|
@ -251,9 +251,9 @@ public class DanikorResourceBackServiceImpl extends Service implements DanikorRe
|
|||
// 查询安全级别大于等于40的人员
|
||||
String sql;
|
||||
if (StringUtils.isNotBlank(syncDate) && !DateUtil.getDate(new Date()).equals(syncDate)) {
|
||||
sql = "select a.id, a.managerid , a.lastname , b.jobtitlename, ( select count(1) from HrmResource_back where managerid = a.id and sync_date = '" + syncDate + "') subordinate from HrmResource_back a left join HrmJobTitles b on a.jobtitle = b.id where sync_date = '" + syncDate + "'";
|
||||
sql = "select a.id, a.managerid , a.lastname , b.jobtitlename, ( select count(1) from HrmResource_back where managerid = a.id and sync_date = '" + syncDate + "') subordinate from HrmResource_back a left join HrmJobTitles b on a.jobtitle = b.id where seclevel >= 40 and sync_date = '" + syncDate + "'";
|
||||
} else {
|
||||
sql = "select a.id, a.managerid , a.lastname , b.jobtitlename, ( select count(1) from HrmResource where managerid = a.id) subordinate from HrmResource a left join HrmJobTitles b on a.jobtitle = b.id";
|
||||
sql = "select a.id, a.managerid , a.lastname , b.jobtitlename, ( select count(1) from HrmResource where managerid = a.id) subordinate from HrmResource a left join HrmJobTitles b on a.jobtitle = b.id where seclevel >= 40";
|
||||
}
|
||||
|
||||
RecordSet rs = new RecordSet();
|
||||
|
|
|
|||
Loading…
Reference in New Issue