|
@@ -175,7 +175,13 @@
|
175
|
175
|
and t.target_id = #{targetId}
|
176
|
176
|
</if>
|
177
|
177
|
<if test="targetType != null and targetType != ''">
|
178
|
|
- and t.event_type = #{targetType}
|
|
178
|
+ and (case when #{targetType} = 'activity' then t.target_type = 'dynamic'
|
|
179
|
+ when #{targetType} = 'h5' then t.event_type = 'h5'
|
|
180
|
+ when #{targetType} = 'news' then t.event_type = 'news'
|
|
181
|
+ when #{targetType} = 'building' then t.event_type = 'building'
|
|
182
|
+ when #{targetType} = 'house' then t.event_type = 'house'
|
|
183
|
+ else t.target_type = #{targetType}
|
|
184
|
+ end)
|
179
|
185
|
</if>
|
180
|
186
|
<if test="channelId != null and channelId != ''">
|
181
|
187
|
and t.channel_id = #{channelId}
|
|
@@ -234,7 +240,13 @@
|
234
|
240
|
and t.target_id = #{targetId}
|
235
|
241
|
</if>
|
236
|
242
|
<if test="targetType != null and targetType != ''">
|
237
|
|
- and t.event_type = #{targetType}
|
|
243
|
+ and (case when #{targetType} = 'activity' then t.target_type = 'dynamic'
|
|
244
|
+ when #{targetType} = 'h5' then t.event_type = 'h5'
|
|
245
|
+ when #{targetType} = 'news' then t.event_type = 'news'
|
|
246
|
+ when #{targetType} = 'building' then t.event_type = 'building'
|
|
247
|
+ when #{targetType} = 'house' then t.event_type = 'house'
|
|
248
|
+ else t.target_type = #{targetType}
|
|
249
|
+ end)
|
238
|
250
|
</if>
|
239
|
251
|
<if test="buildingId != null and buildingId != ''">
|
240
|
252
|
and t.building_id = #{buildingId}
|
|
@@ -359,7 +371,13 @@
|
359
|
371
|
and t.target_id = #{targetId}
|
360
|
372
|
</if>
|
361
|
373
|
<if test="targetType != null and targetType != ''">
|
362
|
|
- and t.event_type = #{targetType}
|
|
374
|
+ and (case when #{targetType} = 'activity' then t.target_type = 'dynamic'
|
|
375
|
+ when #{targetType} = 'h5' then t.event_type = 'h5'
|
|
376
|
+ when #{targetType} = 'news' then t.event_type = 'news'
|
|
377
|
+ when #{targetType} = 'building' then t.event_type = 'building'
|
|
378
|
+ when #{targetType} = 'house' then t.event_type = 'house'
|
|
379
|
+ else t.target_type = #{targetType}
|
|
380
|
+ end)
|
363
|
381
|
</if>
|
364
|
382
|
<if test="channelId != null and channelId != ''">
|
365
|
383
|
and t.channel_id = #{channelId}
|
|
@@ -418,7 +436,13 @@
|
418
|
436
|
and t.target_id = #{targetId}
|
419
|
437
|
</if>
|
420
|
438
|
<if test="targetType != null and targetType != ''">
|
421
|
|
- and t.event_type = #{targetType}
|
|
439
|
+ and (case when #{targetType} = 'activity' then t.target_type = 'dynamic'
|
|
440
|
+ when #{targetType} = 'h5' then t.event_type = 'h5'
|
|
441
|
+ when #{targetType} = 'news' then t.event_type = 'news'
|
|
442
|
+ when #{targetType} = 'building' then t.event_type = 'building'
|
|
443
|
+ when #{targetType} = 'house' then t.event_type = 'house'
|
|
444
|
+ else t.target_type = #{targetType}
|
|
445
|
+ end)
|
422
|
446
|
</if>
|
423
|
447
|
<if test="buildingId != null and buildingId != ''">
|
424
|
448
|
and t.building_id = #{buildingId}
|