src/main/resources/mapper/TaHousingResourcesMapper.xml파일 보기
@@ -62,7 +62,7 @@
62
62
t3.inside_area,
63
63
t3.building_area
64
64
FROM
65
- ( SELECT t.sales_batch_id, t.apartment_id FROM ta_housing_resources t WHERE t.sales_batch_id = #{salesBatchId} GROUP BY t.apartment_id ) t2
65
+ ( SELECT t.sales_batch_id, t.apartment_id FROM ta_housing_resources t WHERE t.sales_batch_id = #{salesBatchId} and t.apartment_id is not null GROUP BY t.apartment_id ) t2
66
66
LEFT JOIN ta_building_apartment t3 ON t2.apartment_id = t3.apartment_id