一日流程树状查看部分代码

This commit is contained in:
sk1551
2020-06-19 14:56:42 +08:00
parent 82b81e3dc4
commit 5b219c87be
11 changed files with 261 additions and 82 deletions

View File

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

View File

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