傅行帆 пре 5 година
родитељ
комит
8b0e564ed7
1 измењених фајлова са 4 додато и 8 уклоњено
  1. 4
    8
      src/main/resources/mapper/TaChannelMapper.xml

+ 4
- 8
src/main/resources/mapper/TaChannelMapper.xml Прегледај датотеку

@@ -175,8 +175,7 @@
175 175
             and t.target_id = #{targetId}
176 176
         </if>
177 177
         <if test="targetType != null and targetType != ''">
178
-            and (case when #{targetType} = 'activity' then t.event_type = 'dynamic' when #{targetType} = 'h5' then t.event_type = 'h5' else t.event_type = #{targetType}
179
-            end)
178
+            and t.event_type = #{targetType}
180 179
         </if>
181 180
         <if test="channelId != null and channelId != ''">
182 181
             and t.channel_id = #{channelId}
@@ -235,8 +234,7 @@
235 234
             and t.target_id = #{targetId}
236 235
         </if>
237 236
         <if test="targetType != null and targetType != ''">
238
-            and (case when #{targetType} = 'activity' then t.event_type = 'dynamic' when #{targetType} = 'h5' then t.event_type = 'h5' else t.event_type = #{targetType}
239
-            end)
237
+            and t.event_type = #{targetType}
240 238
         </if>
241 239
         <if test="buildingId != null and buildingId != ''">
242 240
             and t.building_id = #{buildingId}
@@ -339,8 +337,7 @@
339 337
             and t.target_id = #{targetId}
340 338
         </if>
341 339
         <if test="targetType != null and targetType != ''">
342
-            and (case when #{targetType} = 'activity' then t.event_type = 'dynamic' when #{targetType} = 'h5' then t.event_type = 'h5' else t.event_type = #{targetType}
343
-            end)
340
+            and t.event_type = #{targetType}
344 341
         </if>
345 342
         <if test="channelId != null and channelId != ''">
346 343
             and t.channel_id = #{channelId}
@@ -399,8 +396,7 @@
399 396
             and t.target_id = #{targetId}
400 397
         </if>
401 398
         <if test="targetType != null and targetType != ''">
402
-            and (case when #{targetType} = 'activity' then t.event_type = 'dynamic' when #{targetType} = 'h5' then t.event_type = 'h5' else t.event_type = #{targetType}
403
-            end)
399
+            and t.event_type = #{targetType}
404 400
         </if>
405 401
         <if test="buildingId != null and buildingId != ''">
406 402
             and t.building_id = #{buildingId}