Browse Source

筛除非统计部门

feature/zhy_updatepush
zhangyuan 5 years ago
parent
commit
c3aa795f78
  1. 8
      epdc-cloud-analysis-pc/src/main/resources/mapper/screen/ScreenBaseReportDao.xml

8
epdc-cloud-analysis-pc/src/main/resources/mapper/screen/ScreenBaseReportDao.xml

@ -977,6 +977,14 @@
FROM
esua_epdc_analysis.epdc_user_statistics s
LEFT JOIN esua_epdc_admin.sys_dept dept ON dept.id = s.GRID_ID
where s.GRID_ID NOT IN (
SELECT
t.dept_id
FROM
esua_epdc_admin.sys_dept_config t
WHERE
t.del_flag = '0'
)
) eu ON find_in_set(sd.`id`, eu.`ALL_DEPT_IDS`)
WHERE
sd.del_flag = '0'

Loading…
Cancel
Save