傅行帆 hace 5 años
padre
commit
905a1e53ba
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/main/resources/mapper/TaBuildingDynamicMapper.xml

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

24
         <if test="buildingId != null and buildingId !=''">
24
         <if test="buildingId != null and buildingId !=''">
25
             and building_id = #{buildingId}
25
             and building_id = #{buildingId}
26
         </if>
26
         </if>
27
-        <if test="cityId != 0">
27
+        <if test="cityId != 0 and cityId != null">
28
             and city_id = #{cityId}
28
             and city_id = #{cityId}
29
         </if>
29
         </if>
30
         ORDER BY create_date DESC
30
         ORDER BY create_date DESC