weiximei 5 years ago
parent
commit
80b549d25e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/main/resources/mapper/TaBuildingMapper.xml

+ 1
- 1
src/main/resources/mapper/TaBuildingMapper.xml View File

196
 
196
 
197
     <select id="getBuildingListById" resultType="com.huiju.estateagents.entity.TaBuilding">
197
     <select id="getBuildingListById" resultType="com.huiju.estateagents.entity.TaBuilding">
198
       select * from ta_building t where t.building_id in (
198
       select * from ta_building t where t.building_id in (
199
-	    select t.building_id from ta_goods t where t.org_id = #{orgId} and t.city_id = #{cityId} group by t.building_id
199
+	    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
200
       )
200
       )
201
     </select>
201
     </select>
202
 
202