一日流程树状查看部分代码
This commit is contained in:
@ -30,11 +30,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectSysDeptList" parameterType="Long" resultMap="SysDeptResult">
|
||||
select * from sys_dept where dept_id in (
|
||||
select dept_id from (
|
||||
select dept_id,user_id from sys_user
|
||||
union all
|
||||
select dept_id,user_id from sys_user_dept) t
|
||||
where t.user_id=#{userId})
|
||||
select dept_id from (
|
||||
select dept_id,user_id from sys_user
|
||||
union all
|
||||
select dept_id,user_id from sys_user_dept) t
|
||||
where t.user_id=#{userId})
|
||||
</select>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user