瀏覽代碼

* bug fix

顾绍勇 5 年之前
父節點
當前提交
15ffd69883
共有 1 個檔案被更改,包括 9 行新增10 行删除
  1. 9
    10
      src/main/resources/mapper/ActivityManageMapper.xml

+ 9
- 10
src/main/resources/mapper/ActivityManageMapper.xml 查看文件

@@ -109,8 +109,8 @@
109 109
                     ta_building_dynamic t
110 110
                 LEFT JOIN ta_building s ON s.building_id = t.building_id
111 111
                 WHERE
112
-                  t.`status` > - 1
113
-                  AND t.dynamic_id = #{id}
112
+                   t.dynamic_id = #{id}
113
+                  AND t.org_id = #{orgId}
114 114
             </if>
115 115
 
116 116
             <if test=" type == 'h5' " >
@@ -125,8 +125,8 @@
125 125
                   ta_drainage t
126 126
                 LEFT JOIN ta_building s ON s.building_id = t.building_id
127 127
                 WHERE
128
-                  t.`status` > - 1
129
-                  AND t.drainage_id = #{id}
128
+                  t.drainage_id = #{id}
129
+                  AND t.org_id = #{orgId}
130 130
             </if>
131 131
 
132 132
             <if test=" type == 'help' ">
@@ -141,8 +141,8 @@
141 141
                     ta_help_activity t
142 142
                 LEFT JOIN ta_building s ON s.building_id = t.building_id
143 143
                 WHERE
144
-                    t.`status` > - 1
145
-                    AND t.help_activity_id = #{id}
144
+                    t.help_activity_id = #{id}
145
+                    AND t.org_id = #{orgId}
146 146
             </if>
147 147
 
148 148
             <if test=" type == 'group' ">
@@ -157,8 +157,8 @@
157 157
                     ta_share_activity t
158 158
                 LEFT JOIN ta_building s ON s.building_id = t.building_id
159 159
                 WHERE
160
-                    t.`status` > - 1
161
-                    AND t.group_activity_id = #{id}
160
+                    t.group_activity_id = #{id}
161
+                    AND t.org_id = #{orgId}
162 162
             </if>
163 163
 
164 164
             <if test=" type == 'live' ">
@@ -173,8 +173,7 @@
173 173
                     ta_live_activity t
174 174
                 LEFT JOIN ta_building s ON s.building_id = t.building_id
175 175
                 WHERE
176
-                    t.`status` > -1
177
-                    AND t.live_activity_id = #{id}
176
+                    t.live_activity_id = #{id}
178 177
                     AND t.org_id = #{orgId}
179 178
             </if>
180 179
         ) a