部门管理功能开发 解决

This commit is contained in:
lizhenhua 2026-01-05 13:19:43 +08:00
parent 22cbc8ec7d
commit f17d5ea3a4
1 changed files with 1 additions and 2 deletions

View File

@ -74,8 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectDeptList" parameterType="com.bonus.system.api.domain.SysDept" resultMap="SysDeptResult">
<include refid="selectDeptVo"/>
where d.del_flag = '0'
<if test="companyId != null and companyId != 0">
<!-- AND (find_in_set(#{companyId}, ancestors) or dept_id = #{companyId})-->
<if test="companyId != null and companyId != 1">
and d.dept_id in
(
select dept_id from sys_dept where dept_id = #{companyId}