renyupeng 2 tahun lalu
induk
melakukan
c4ea971b67
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      Apietl/kwai_etl/report/MateirialVideoDailyReport.py

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

@@ -114,7 +114,8 @@ class MateirialVideoDailyReport:
        leader_name,
        video_name,
        channel_name,
-       clip_company_id)
+       clip_company_id,
+       play_3s_count)
 select report.advertiser_id                                                                     as account_id,
        cp.id                                                                                    as project_id,
        product.id                                                                               as product_id,
@@ -272,7 +273,8 @@ select report.advertiser_id
        leader.realname,
        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
+       uc.company_id,
+       round(play_3s_ratio*aclick) as play_3s_count
 from media_api.kuaishou_material_video_report_daily report
          left join media_api.kuaishou_video_list video
                     on report.advertiser_id = video.account_id and report.photo_id = video.photo_id