|
|
@@ -60,9 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</foreach>
|
|
|
|
|
|
</if>
|
|
|
- <if test="deptType != null and deptType != '' ">
|
|
|
- AND dep_type = #{deptType}
|
|
|
- </if>
|
|
|
+
|
|
|
|
|
|
order by d.parent_id, d.order_num
|
|
|
</select>
|
|
|
@@ -85,9 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
from sys_dept d
|
|
|
left join sys_role_dept rd on d.dept_id = rd.dept_id
|
|
|
where rd.role_id = #{roleId}
|
|
|
- <if test="deptType != null ">
|
|
|
- and d.dep_type=#{deptType}
|
|
|
- </if>
|
|
|
+
|
|
|
<if test="deptCheckStrictly">
|
|
|
and d.dept_id not in (select d.parent_id from sys_dept d inner join sys_role_dept rd on d.dept_id = rd.dept_id and rd.role_id = #{roleId})
|
|
|
</if>
|
|
|
@@ -99,9 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
from sys_dept d
|
|
|
inner join sys_user_dep rd on d.dept_id = rd.dep_id
|
|
|
where rd.user_id = #{userId}
|
|
|
- <if test="deptType != null ">
|
|
|
- and d.dep_type=#{deptType}
|
|
|
- </if>
|
|
|
+
|
|
|
order by d.parent_id, d.order_num
|
|
|
</select>
|
|
|
|
|
|
@@ -110,9 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
from sys_dept d
|
|
|
inner join sys_user_dep rd on d.dept_id = rd.dep_id
|
|
|
where rd.user_id = #{userId}
|
|
|
- <if test="deptType != null ">
|
|
|
- and d.dep_type=#{deptType}
|
|
|
- </if>
|
|
|
+
|
|
|
order by d.parent_id, d.order_num
|
|
|
</select>
|
|
|
|
|
|
@@ -152,8 +144,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptName != null and deptName != ''">dept_name,</if>
|
|
|
<if test="ancestors != null and ancestors != ''">ancestors,</if>
|
|
|
<if test="orderNum != null">order_num,</if>
|
|
|
- <if test="depType != null">dep_type,</if>
|
|
|
- <if test="orgCode != null">org_code,</if>
|
|
|
+<!-- <if test="depType != null">dep_type,</if>-->
|
|
|
+<!-- <if test="orgCode != null">org_code,</if>-->
|
|
|
|
|
|
<if test="leader != null and leader != ''">leader,</if>
|
|
|
<if test="phone != null and phone != ''">phone,</if>
|
|
|
@@ -167,8 +159,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptName != null and deptName != ''">#{deptName},</if>
|
|
|
<if test="ancestors != null and ancestors != ''">#{ancestors},</if>
|
|
|
<if test="orderNum != null">#{orderNum},</if>
|
|
|
- <if test="depType != null">#{depType},</if>
|
|
|
- <if test="orgCode != null">#{orgCode},</if>
|
|
|
+<!-- <if test="depType != null">#{depType},</if>-->
|
|
|
+<!-- <if test="orgCode != null">#{orgCode},</if>-->
|
|
|
|
|
|
<if test="leader != null and leader != ''">#{leader},</if>
|
|
|
<if test="phone != null and phone != ''">#{phone},</if>
|
|
|
@@ -184,8 +176,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<set>
|
|
|
<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>
|
|
|
<if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>
|
|
|
- <if test="depType != null and depType != ''">dep_type = #{depType},</if>
|
|
|
- <if test="orgCode != null and orgCode != ''">org_code = #{orgCode},</if>
|
|
|
+<!-- <if test="depType != null and depType != ''">dep_type = #{depType},</if>-->
|
|
|
+<!-- <if test="orgCode != null and orgCode != ''">org_code = #{orgCode},</if>-->
|
|
|
|
|
|
|
|
|
<if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if>
|