Explorar o código

Revert "getSelectedQw/GzhVideoList:历史已选 tab 的 experimentId 固定为 history_selected,与原次发布的实验埋点解耦。"

This reverts commit f7d418869a2b03b644236759ad47f12224fa3340.
刘立冬 hai 19 horas
pai
achega
3f66d6a4a8

+ 4 - 2
api-module/src/main/resources/mapper/contentplatform/ext/ContentPlatformPlanMapperExt.xml

@@ -446,12 +446,13 @@
 
 
     <select id="getSelectedQwVideoList"
     <select id="getSelectedQwVideoList"
             resultType="com.tzld.piaoquan.api.model.vo.contentplatform.VideoContentItemVO">
             resultType="com.tzld.piaoquan.api.model.vo.contentplatform.VideoContentItemVO">
-        select t.videoId, t.title, t.cover, t.video, 'history_selected' as experimentId
+        select t.videoId, t.title, t.cover, t.video, t.experimentId
         from (
         from (
             select v.video_id as videoId,
             select v.video_id as videoId,
                    v.title as title,
                    v.title as title,
                    v.cover as cover,
                    v.cover as cover,
                    v.video as video,
                    v.video as video,
+                   v.experiment_id as experimentId,
                    v.create_timestamp as latestTs,
                    v.create_timestamp as latestTs,
                    row_number() over (partition by v.video_id order by v.create_timestamp desc) as rn
                    row_number() over (partition by v.video_id order by v.create_timestamp desc) as rn
             from content_platform_qw_plan_video v
             from content_platform_qw_plan_video v
@@ -485,12 +486,13 @@
 
 
     <select id="getSelectedGzhVideoList"
     <select id="getSelectedGzhVideoList"
             resultType="com.tzld.piaoquan.api.model.vo.contentplatform.VideoContentItemVO">
             resultType="com.tzld.piaoquan.api.model.vo.contentplatform.VideoContentItemVO">
-        select t.videoId, t.title, t.cover, t.video, 'history_selected' as experimentId
+        select t.videoId, t.title, t.cover, t.video, t.experimentId
         from (
         from (
             select v.video_id as videoId,
             select v.video_id as videoId,
                    coalesce(nullif(v.custom_title, ''), v.title) as title,
                    coalesce(nullif(v.custom_title, ''), v.title) as title,
                    coalesce(nullif(v.custom_cover, ''), v.cover) as cover,
                    coalesce(nullif(v.custom_cover, ''), v.cover) as cover,
                    v.video as video,
                    v.video as video,
+                   v.experiment_id as experimentId,
                    v.create_timestamp as latestTs,
                    v.create_timestamp as latestTs,
                    row_number() over (partition by v.video_id order by v.create_timestamp desc) as rn
                    row_number() over (partition by v.video_id order by v.create_timestamp desc) as rn
             from content_platform_gzh_plan_video v
             from content_platform_gzh_plan_video v