@@ -18,6 +18,7 @@
WHERE
t.person_type = #{personType}
AND t.status = #{status}
+ and u.status != 9
and t.org_id = #{orgId}
<if test="buildingId != null and buildingId != ''">
and p.building_id = #{buildingId}