Explorar el Código

* 代码优化

顾绍勇 hace 5 años
padre
commit
7bedd1c48d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/main/resources/mapper/TaHousingResourcesMapper.xml

+ 1
- 1
src/main/resources/mapper/TaHousingResourcesMapper.xml Ver fichero

@@ -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