From c784b78aefd07e81c9c15745184cb2dc44f097a5 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 17 一月 2025 16:51:34 +0800 Subject: [PATCH] 流程部门树不加数据权限 --- system/src/main/resources/mapper/system/SysDeptMapper.xml | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/system/src/main/resources/mapper/system/SysDeptMapper.xml b/system/src/main/resources/mapper/system/SysDeptMapper.xml index 83092a3..049098e 100644 --- a/system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -86,6 +86,12 @@ <include refid="selectDeptVo"/> where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1 </select> + <select id="selectAncestors" resultType="java.lang.String"> + select ancestors + from sys_user SU + INNER JOIN sys_dept SD ON SU.dept_id = SD.dept_id + where SU.user_id = #{userId} + </select> <insert id="insertDept" parameterType="SysDept"> insert into sys_dept( -- Gitblit v1.8.0