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

+ 2
- 2
src/main/resources/mapper/HelpActivityMapper.xml 查看文件

69
 				ta_help_activity a
69
 				ta_help_activity a
70
 				WHERE
70
 				WHERE
71
                     a.org_id =#{orgId}
71
                     a.org_id =#{orgId}
72
-                <if test="buildingId  == null ">
72
+                <if test="buildingId  == null or buildingId == ''">
73
                   and  a.is_main = 1
73
                   and  a.is_main = 1
74
                 </if>
74
                 </if>
75
                 <if test="cityID != null and cityID != ''">
75
                 <if test="cityID != null and cityID != ''">
90
 					ta_share_activity s
90
 					ta_share_activity s
91
 					WHERE
91
 					WHERE
92
                     s.org_id =#{orgId}
92
                     s.org_id =#{orgId}
93
-                <if test="buildingId  == null ">
93
+                <if test="buildingId  == null or buildingId == ''">
94
                     and  s.sort = 1
94
                     and  s.sort = 1
95
                 </if>
95
                 </if>
96
                 <if test="cityID != null and cityID != ''">
96
                 <if test="cityID != null and cityID != ''">