|
@@ -67,6 +67,7 @@
|
|
|
from sys_dept d
|
|
|
left join sys_role_dept rd on d.dept_id = rd.dept_id
|
|
|
where rd.role_id = #{roleId}
|
|
|
+ and del_flag = 1
|
|
|
<if test="deptCheckStrictly">
|
|
|
and d.dept_id not in (select d.parent_id from sys_dept d inner join sys_role_dept rd on d.dept_id =
|
|
|
rd.dept_id and rd.role_id = #{roleId})
|
|
@@ -79,6 +80,7 @@
|
|
|
(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
|
|
|
from sys_dept d
|
|
|
where d.dept_id = #{deptId}
|
|
|
+ and del_flag = 1
|
|
|
</select>
|
|
|
|
|
|
<select id="selectDeptByDeptName" parameterType="string" resultMap="SysDeptResult">
|