顾绍勇 5 lat temu
rodzic
commit
7bedd1c48d

+ 1
- 1
src/main/resources/mapper/TaHousingResourcesMapper.xml Wyświetl plik

62
             t3.inside_area,
62
             t3.inside_area,
63
             t3.building_area
63
             t3.building_area
64
         FROM
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
             LEFT JOIN ta_building_apartment t3 ON t2.apartment_id = t3.apartment_id
66
             LEFT JOIN ta_building_apartment t3 ON t2.apartment_id = t3.apartment_id
67
         ORDER BY
67
         ORDER BY
68
 	      t3.apartment_name
68
 	      t3.apartment_name