部门管理功能开发 解决
This commit is contained in:
parent
22cbc8ec7d
commit
f17d5ea3a4
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue