Browse Source

* 代码优化

顾绍勇 5 years ago
parent
commit
7bedd1c48d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/main/resources/mapper/TaHousingResourcesMapper.xml

+ 1
- 1
src/main/resources/mapper/TaHousingResourcesMapper.xml View File

@@ -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
67 67
         ORDER BY
68 68
 	      t3.apartment_name