renyupeng 3 years ago
parent
commit
6694b09565

+ 2 - 1
Apietl/kwai_etl/report/MateirialVideoDailyReport.py

@@ -265,12 +265,13 @@ select report.advertiser_id
        event_outbound_call_ratio,
        event_ad_watch_times,
        video.signature,
-       case when video.channel_type = 1 then '素造' else '内部' end,
+       video.channel_type,
        cma.clip_name,
        cma.shot_name,
        cma.plan_name,
        cma.leader_name,
        case when cmi.material_name is not null then cmi.material_name else video.photo_name end as video_name,
+       case when video.channel_type = 1 then '素造' else '内部' end,
        uc.company_id
 from media_api.kuaishou_material_video_report_daily report
          inner join media_api.kuaishou_video_list video

+ 2 - 1
Apietl/kwai_etl/report/MateirialVideoHourlyReport.py

@@ -266,12 +266,13 @@ select report.advertiser_id
        event_outbound_call_ratio,
        event_ad_watch_times,
        video.signature,
-       case when video.channel_type = 1 then '素造' else '内部' end,
+       video.channel_type,
        cma.clip_name,
        cma.shot_name,
        cma.plan_name,
        cma.leader_name,
        case when cmi.material_name is not null then cmi.material_name else video.photo_name end as video_name,
+       case when video.channel_type = 1 then '素造' else '内部' end as channel_name,
        uc.company_id
 from media_api.kuaishou_material_video_report_hourly report
          inner join media_api.kuaishou_video_list video