Commit e415343f authored by chenyuxi's avatar chenyuxi

feat: 查部门人员数量调整

parent 0e7859b1
......@@ -84,7 +84,7 @@
<select id="cspDeptUserList" resultType="com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysDeptVo">
select d.dept_id, d.name, d.parent_id,d.ancestors,sort_order,
(select count(*) from sys_user_dept_permission where dept_id = d.dept_id) as peoplenum
(select count(r.id) from sys_user_dept_permission r left join sys_user u on u.user_id = r.user_id where r.dept_id = d.dept_id and u.del_flag = '0') as peoplenum
from sys_dept d
where d.del_flag = '0'
<if test="dept.projectNo != null and dept.projectNo != ''">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment