调整统一别名

This commit is contained in:
wr
2025-08-12 10:01:37 +08:00
parent b6b5634918
commit f4e1632386
2 changed files with 14 additions and 14 deletions

View File

@@ -29,12 +29,12 @@
sys_area T5 sys_area T5
WHERE WHERE
FIND_IN_SET( #{id}, T3.pids ) FIND_IN_SET( #{id}, T3.pids )
and t3.type in and T3.type in
<foreach collection="type" item="item" open="(" close=")" separator=","> <foreach collection="type" item="item" open="(" close=")" separator=",">
#{item} #{item}
</foreach> </foreach>
AND t3.area = t5.id AND T3.area = T5.id
AND t3.State = 1 AND T3.State = 1
UNION UNION
SELECT SELECT
T3.*, T3.*,
@@ -44,9 +44,9 @@
sys_dept T3, sys_dept T3,
sys_area T5 sys_area T5
WHERE WHERE
t3.area = t5.id T3.area = T5.id
and T3.id = #{id} and T3.id = #{id}
AND t3.State = 1 AND T3.State = 1
</select> </select>
<select id="getAllDeptTree" resultType="DeptAllTreeVO"> <select id="getAllDeptTree" resultType="DeptAllTreeVO">
@@ -57,12 +57,12 @@
sys_area T5 sys_area T5
WHERE WHERE
FIND_IN_SET( #{id}, T3.pids ) FIND_IN_SET( #{id}, T3.pids )
and t3.type in and T3.type in
<foreach collection="type" item="item" open="(" close=")" separator=","> <foreach collection="type" item="item" open="(" close=")" separator=",">
#{item} #{item}
</foreach> </foreach>
AND t3.area = t5.id AND T3.area = T5.id
AND t3.State = 1 AND T3.State = 1
UNION UNION
SELECT SELECT
T3.* T3.*
@@ -70,9 +70,9 @@
sys_dept T3, sys_dept T3,
sys_area T5 sys_area T5
WHERE WHERE
t3.area = t5.id T3.area = T5.id
and T3.id = #{id} and T3.id = #{id}
AND t3.State = 1 AND T3.State = 1
</select> </select>
<select id="deptArea" resultType="String"> <select id="deptArea" resultType="String">
@@ -128,12 +128,12 @@
sys_area T5 sys_area T5
WHERE WHERE
FIND_IN_SET( #{id}, T3.pids ) FIND_IN_SET( #{id}, T3.pids )
and t3.type in and T3.type in
<foreach collection="type" item="item" open="(" close=")" separator=","> <foreach collection="type" item="item" open="(" close=")" separator=",">
#{item} #{item}
</foreach> </foreach>
AND t3.area = t5.id AND T3.area = T5.id
AND t3.State = 1 AND T3.State = 1
UNION UNION
SELECT SELECT
T3.id, T3.id,