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