gao.qiang пре 5 месеци
родитељ
комит
de8c86b2c3
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      base-system/src/main/resources/mapper/system/SysDeptMapper.xml

+ 2 - 0
base-system/src/main/resources/mapper/system/SysDeptMapper.xml

@@ -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">