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