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