|
@@ -81,7 +81,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<include refid="selectDeptVo"/>
|
|
<include refid="selectDeptVo"/>
|
|
where dept_name=#{deptName} and parent_id = #{parentId} limit 1
|
|
where dept_name=#{deptName} and parent_id = #{parentId} limit 1
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+ <!--调用存储过程-->
|
|
|
|
+ <select id="selectDeptListTree" resultMap="SysDeptResult">
|
|
|
|
+ call deptinfo();
|
|
|
|
+ </select>
|
|
<insert id="insertDept" parameterType="SysDept">
|
|
<insert id="insertDept" parameterType="SysDept">
|
|
insert into sys_dept(
|
|
insert into sys_dept(
|
|
<if test="deptId != null and deptId != 0">dept_id,</if>
|
|
<if test="deptId != null and deptId != 0">dept_id,</if>
|