fix(ruoyi-system):修复修改部门层级BUG

Closes https://gitee.com/y_project/RuoYi/issues/IW1SB
This commit is contained in:
zbz
2019-05-08 17:09:59 +08:00
parent b8d1b54e22
commit 962ab735b5
3 changed files with 31 additions and 17 deletions

View File

@ -74,6 +74,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from sys_dept d
where d.dept_id = #{deptId}
</select>
<select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult">
select * from sys_dept
<where>
FIND_IN_SET(#{id},ancestors)
</where>
</select>
<insert id="insertDept" parameterType="SysDept">
insert into sys_dept(