|
|
@ -81,9 +81,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<select id="selectAllDeptList" parameterType="SysDept" resultMap="SysDeptResult">
|
|
|
|
<select id="selectAllDeptList" parameterType="SysDept" resultMap="SysDeptResult">
|
|
|
|
select d.dept_id,d.dept_name
|
|
|
|
select d.dept_id,d.dept_name
|
|
|
|
from sys_dept d
|
|
|
|
from sys_dept d
|
|
|
|
<if test="parentId == 0">
|
|
|
|
<where>
|
|
|
|
where parent_id!=0
|
|
|
|
del_flag = '0'
|
|
|
|
</if>
|
|
|
|
<if test="parentId == 0">
|
|
|
|
|
|
|
|
AND parent_id != 0
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
order by d.order_num
|
|
|
|
order by d.order_num
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
|
|
|
|
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
|
|
|
|