|
|
@ -126,7 +126,10 @@ |
|
|
<select id="selectDeptList" parameterType="Dept" resultMap="DeptResult"> |
|
|
<select id="selectDeptList" parameterType="Dept" resultMap="DeptResult"> |
|
|
<include refid="selectDeptVo"/> |
|
|
<include refid="selectDeptVo"/> |
|
|
where d.del_flag = '0' |
|
|
where d.del_flag = '0' |
|
|
<if test="parentId != null and parentId != ''"> |
|
|
<if test="parentId != null and parentId != '' and parentId == '0'"> |
|
|
|
|
|
AND parent_id = #{parentId} or parent_id is null |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="parentId != null and parentId != '' and parentId != '0'"> |
|
|
AND parent_id = #{parentId} |
|
|
AND parent_id = #{parentId} |
|
|
</if> |
|
|
</if> |
|
|
<if test="deptName != null and deptName != ''"> |
|
|
<if test="deptName != null and deptName != ''"> |
|
|
|