@@ -196,7 +196,7 @@
<select id="getBuildingListById" resultType="com.huiju.estateagents.entity.TaBuilding">
select * from ta_building t where t.building_id in (
- select t.building_id from ta_goods t where t.org_id = #{orgId} and t.city_id = #{cityId} group by t.building_id
+ select t.building_id from ta_goods t where t.org_id = #{orgId} and t.city_id = #{cityId} and `status`=1 group by t.building_id
)
</select>