|
@@ -43,7 +43,7 @@ class send_material_report_weekly:
|
|
|
ifnull(report.plan_name,'-') AS '编导',
|
|
|
ifnull(report.leader_name,'-') AS '负责人',
|
|
|
ifnull(report.video_name,'-') AS '素材名称',
|
|
|
- ifnull(report.video_url,'-') AS '素材'
|
|
|
+ ifnull(concat('http://i.snssdk.com/video/code/1/toutiao/',info.id),'-') AS '素材'
|
|
|
from
|
|
|
(select
|
|
|
t1.stat_datetime,
|
|
@@ -68,6 +68,12 @@ WHERE stat_datetime between concat(date_format(date_sub(now(),interval 1 day),'
|
|
|
left join
|
|
|
application.app_bytedance_material_info video
|
|
|
on report.signature=video.material_id
|
|
|
+left join (
|
|
|
+ select id, signature from media_api.bytedance_file_video_get
|
|
|
+ group by signature
|
|
|
+ )info
|
|
|
+on report.signature=info.signature
|
|
|
+
|
|
|
group by
|
|
|
report.signature,stat_datetime;""".format(stat_date=self.stat_date)
|
|
|
print(sql)
|