renyupeng пре 3 година
родитељ
комит
c125548f5f

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

@@ -322,7 +322,7 @@ class MateirialVideoDailyReport:
                     left join `jeecg-boot`.ctop_material_info cmi
                     on video.signature=cmi.code
                     left join `jeecg-boot`.ctop_material_ascription cma
-                    on video.signature=cma.code
+                    on video.signature=cma.material_id
                     left join `jeecg-boot`.ctop_user_allocation cua
                     on report.advertiser_id=cua.account_id
                     left join `jeecg-boot`.ctop_advertiser ca
@@ -356,6 +356,7 @@ class MateirialVideoDailyReport:
             logging.error(e)
             return -1
 
+
 if __name__ == '__main__':
     status = MateirialVideoDailyReport().daily_report()
     if status == 0:

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

@@ -277,7 +277,7 @@ from media_api.kuaishou_material_video_report_daily report
          inner join media_api.kuaishou_video_list video
                     on report.advertiser_id = video.account_id and report.photo_id = video.photo_id
          left join `jeecg-boot`.ctop_material_info cmi on video.signature = cmi.code
-         left join `jeecg-boot`.ctop_material_ascription cma on cma.code = video.signature
+         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_project cp on cua.project_id = cp.id
          left join `jeecg-boot`.ctop_advertiser ca on ca.id = cua.advertiser_id