|
@@ -14,7 +14,7 @@
|
14
|
14
|
u.description as description
|
15
|
15
|
FROM
|
16
|
16
|
ta_person t left join ta_user u on t.user_id = u.user_id
|
17
|
|
- LEFT JOIN ta_person_building p ON t.person_id = p.person_id
|
|
17
|
+ LEFT JOIN ta_person_building p ON u.user_id = p.user_id
|
18
|
18
|
WHERE
|
19
|
19
|
t.person_type = #{personType}
|
20
|
20
|
AND t.status = #{status}
|
|
@@ -141,8 +141,8 @@ FROM
|
141
|
141
|
AND t.status = #{status}
|
142
|
142
|
<if test="personIds != null">
|
143
|
143
|
and t.person_id in
|
144
|
|
- <foreach collection="personIds" item="personIds" index="index" open="(" close=")" separator=",">
|
145
|
|
- #{ordersId}
|
|
144
|
+ <foreach collection="personIds" item="item" index="index" open="(" close=")" separator=",">
|
|
145
|
+ #{item}
|
146
|
146
|
</foreach>
|
147
|
147
|
</if>
|
148
|
148
|
ORDER BY
|