一日流程树状查看部分代码
This commit is contained in:
@ -42,6 +42,10 @@
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectChildrenByDayFlowDetailById" parameterType="Long" resultMap="ByDayFlowDetailResult">
|
||||
select * from sys_dept where find_in_set(#{deptId})
|
||||
</select>
|
||||
|
||||
<insert id="insertByDayFlowDetail" parameterType="ByDayFlowDetail" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into by_day_flow_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
@ -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