weiximei преди 5 години
родител
ревизия
80b549d25e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      src/main/resources/mapper/TaBuildingMapper.xml

+ 1
- 1
src/main/resources/mapper/TaBuildingMapper.xml Целия файл

@@ -196,7 +196,7 @@
196 196
 
197 197
     <select id="getBuildingListById" resultType="com.huiju.estateagents.entity.TaBuilding">
198 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 201
     </select>
202 202