dingxin 5 年 前
コミット
773b7e56ad
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2
    2
      src/main/resources/mapper/HelpActivityMapper.xml

+ 2
- 2
src/main/resources/mapper/HelpActivityMapper.xml ファイルの表示

63
 				ta_help_activity a
63
 				ta_help_activity a
64
 				WHERE
64
 				WHERE
65
                     a.org_id =#{orgId}
65
                     a.org_id =#{orgId}
66
-                <if test="buildingId  == null ">
66
+                <if test="buildingId  == null or  buildingId ==''">
67
                   and  a.is_main = 1
67
                   and  a.is_main = 1
68
                 </if>
68
                 </if>
69
                 <if test="cityID != null and cityID != ''">
69
                 <if test="cityID != null and cityID != ''">
84
 					ta_share_activity s
84
 					ta_share_activity s
85
 					WHERE
85
 					WHERE
86
                     s.org_id =#{orgId}
86
                     s.org_id =#{orgId}
87
-                <if test="buildingId  == null ">
87
+                <if test="buildingId  == null or  buildingId =='' ">
88
                     and  s.sort = 1
88
                     and  s.sort = 1
89
                 </if>
89
                 </if>
90
                 <if test="cityID != null and cityID != ''">
90
                 <if test="cityID != null and cityID != ''">