renyupeng 3 éve
szülő
commit
096ef0a19b

+ 2 - 7
Apietl/bytedance_etl/Q4Task/AppBytedanceImageReportBusi.py

@@ -61,12 +61,7 @@ SELECT concat(date_format(date_sub({date_time}, INTERVAL ({day_count} -1 )  DAY)
        #机构编码
        video.signature    signature,
        #素材id
-       CASE
-           WHEN cmi.material_name IS NOT NULL THEN
-               cmi.material_name
-           ELSE
-               video.filename
-           END AS    video_name,
+       video.filename  as video_name,
        report.cost,
        report.`show`,
        report.avg_show_cost,
@@ -637,7 +632,7 @@ FROM (
         LEFT JOIN (select advertiser_id,signature,material_id,filename,image_url from  `media_api`.bytedance_file_image_get group by advertiser_id,signature,material_id,filename,image_url)  video 
 ON report.account_id = video.advertiser_id AND report.material_id = video.material_id
           LEFT JOIN `jeecg-boot`.ctop_user_allocation cua
-                   ON report.advertiser_id = cua.account_id
+                   ON report.account_id = cua.account_id
           LEFT JOIN `jeecg-boot`.ctop_advertiser ca
                    ON cua.advertiser_id = ca.id
           LEFT JOIN `jeecg-boot`.ctop_project cp