傅行帆 5 年前
父节点
当前提交
905a1e53ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/main/resources/mapper/TaBuildingDynamicMapper.xml

+ 1
- 1
src/main/resources/mapper/TaBuildingDynamicMapper.xml 查看文件

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