renyupeng 3 år sedan
förälder
incheckning
36c240d107
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Apietl/kwai_etl/report/MateirialVideoDailyReport.py

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

@@ -278,7 +278,7 @@ from media_api.kuaishou_material_video_report_daily report
                     on report.advertiser_id = video.account_id and report.photo_id = video.photo_id
          left join (select  code,material_name from `jeecg-boot`.ctop_material_info where status=1) cmi on video.signature = cmi.code
          left join `jeecg-boot`.ctop_material_ascription cma on cma.material_id = video.signature
-         left join `jeecg-boot`.ctop_user_allocation cua on cua.account_id = video.account_id
+         left join `jeecg-boot`.ctop_user_allocation cua on cua.account_id = report.advertiser_id
          left join `jeecg-boot`.ctop_project cp on cua.project_id = cp.id
          left join `jeecg-boot`.ctop_advertiser ca on ca.id = cua.advertiser_id
          left join `jeecg-boot`.sys_user clip on clip.id = cma.clip_id