renyupeng 3 rokov pred
rodič
commit
b6458d26a1

+ 1 - 3
Apietl/bytedance_etl/report/MaterialVideoDailyReport.py

@@ -132,7 +132,7 @@ class MateirialVideoDailyReport:
                            cma.shot_id,                       #拍摄id
                            cma.plan_id,                       #编导id
                            cma.leader_id,                     #负责人id
-                           su.org_code,                       #机构编码
+                           leader.org_code,                       #机构编码
                            video.signature,                #素材id
                            null chl_type,                       #渠道类型
                            clip.realname clip_name,           #剪辑名称
@@ -333,8 +333,6 @@ class MateirialVideoDailyReport:
                     on cua.user_id=uc.user_id
                     left join `jeecg-boot`.ctop_product product
                     on cp.product_id=product.id
-                    left join `jeecg-boot`.sys_user su
-                    on cua.user_id = su.id
                     left join `jeecg-boot`.sys_user clip on clip.id = cma.clip_id
                     left join `jeecg-boot`.sys_user shot on shot.id = cma.shot_id
                     left join `jeecg-boot`.sys_user plan on plan.id = cma.plan_id

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

@@ -130,7 +130,7 @@ select report.advertiser_id
        shot_id,
        plan_id,
        cma.leader_id,
-       su.org_code,
+       leader.org_code,
        report.photo_url,
        report.photo_id,
        report.cover_url,
@@ -281,7 +281,6 @@ from media_api.kuaishou_material_video_report_daily report
          left join `jeecg-boot`.ctop_user_allocation cua on cua.account_id = video.account_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 su on su.id = cua.user_id
          left join `jeecg-boot`.sys_user clip on clip.id = cma.clip_id
          left join `jeecg-boot`.sys_user shot on shot.id = cma.shot_id
          left join `jeecg-boot`.sys_user plan on plan.id = cma.plan_id