|
@@ -990,7 +990,8 @@
|
990
|
990
|
'activity', 'group','h5','help','liveApp','livePost')
|
991
|
991
|
and a.org_id = #{orgId}
|
992
|
992
|
<if test="targetType != null and targetType != ''">
|
993
|
|
- and a.tagert_type = #{targetType}
|
|
993
|
+ and (case when #{targetType} = 'live' then a.tagert_type in ('liveApp', 'livePost') else a.tagert_type = #{targetType}
|
|
994
|
+ end)
|
994
|
995
|
</if>
|
995
|
996
|
<if test="startDate != null ">
|
996
|
997
|
and a.create_date >= DATE_FORMAT(#{startDate}, '%Y-%m-%d %H:%i:%S' )
|
|
@@ -1010,7 +1011,8 @@
|
1010
|
1011
|
From ta_share_count a where a.tagert_type in ( 'activity', 'group','h5','help','liveApp','livePost')
|
1011
|
1012
|
and a.org_id = #{orgId}
|
1012
|
1013
|
<if test="targetType != null and targetType != ''">
|
1013
|
|
- and a.tagert_type = #{targetType}
|
|
1014
|
+ and (case when #{targetType} = 'live' then a.tagert_type in ('liveApp', 'livePost') else a.tagert_type = #{targetType}
|
|
1015
|
+ end)
|
1014
|
1016
|
</if>
|
1015
|
1017
|
<if test="startDate != null ">
|
1016
|
1018
|
and a.create_date >= DATE_FORMAT(#{startDate}, '%Y-%m-%d %H:%i:%S' )
|