diff --git a/src/main/resources/mybatis/mapper/house/house-mapper.xml b/src/main/resources/mybatis/mapper/house/house-mapper.xml index 51699a1..90aadf5 100644 --- a/src/main/resources/mybatis/mapper/house/house-mapper.xml +++ b/src/main/resources/mybatis/mapper/house/house-mapper.xml @@ -1051,6 +1051,9 @@ house_house t1 LEFT JOIN house_population t2 ON t1.house_id = t2.house_id WHERE t1.is_delete = 0 + AND t2.is_delete = 0 + AND (t2.out_house = 0 + OR t2.out_house IS NULL) AND building_id = #{buildingId}