|
@@ -83,12 +83,10 @@
|
83
|
83
|
TAE.AGENCY_ATTRIBUTE_CLASS_ID
|
84
|
84
|
FROM (select *
|
85
|
85
|
from T_AGENCY I_TAG
|
86
|
|
- <where>
|
87
|
|
- where I_TAG.AGENCY_ID in
|
88
|
|
- <foreach item="item" index="index" collection="ids" open="(" separator="," close=")">
|
89
|
|
- ${item}
|
90
|
|
- </foreach>
|
91
|
|
- </where>
|
|
86
|
+ where I_TAG.AGENCY_ID in
|
|
87
|
+ <foreach collection="ids" item="id" index="index" open="(" separator="," close=")">
|
|
88
|
+ ${id}
|
|
89
|
+ </foreach>
|
92
|
90
|
) TAG
|
93
|
91
|
INNER JOIN T_UNIT TU ON TU.AGENCY_ID = TAG.AGENCY_ID
|
94
|
92
|
INNER JOIN T_BUILDING TB ON TB.BUILDING_ID = TU.BUILDING_ID
|