|
@@ -27,7 +27,20 @@ class send_material_report_month:
|
|
self.stat_date = (datetime.date.today() + datetime.timedelta(-1)).strftime("%Y-%m-%d")
|
|
self.stat_date = (datetime.date.today() + datetime.timedelta(-1)).strftime("%Y-%m-%d")
|
|
|
|
|
|
def handler(self):
|
|
def handler(self):
|
|
- sql = """select a.company_name AS '公司',
|
|
|
|
|
|
+ sql = """select (CASE
|
|
|
|
+ WHEN a.clip_company_id = 'd57fecdcf7a94d009736d9c850731582' THEN '北京汇创思拓数字科技有限公司'
|
|
|
|
+ WHEN a.clip_company_id = '6608ed13c0dd42de93c790dbdf124234' THEN
|
|
|
|
+'广州汇创思拓数字科技有限公司'
|
|
|
|
+WHEN a.clip_company_id = '4b10089775c040119e139087517aed88' THEN
|
|
|
|
+'上海汇创思拓数字科技有限公司'
|
|
|
|
+WHEN a.clip_company_id = '5e46b5dea3d740eeb8ff1a2895015a4b' THEN
|
|
|
|
+'北京骄阳数字科技有限公司'
|
|
|
|
+WHEN a.clip_company_id = '1648c7ceb4d449a9a13fbed7a8d9976c' THEN
|
|
|
|
+'杭州妙构思数字科技有限公司'
|
|
|
|
+WHEN a.clip_company_id = '3321d5893bcd430cab1238a99bc7db11' THEN
|
|
|
|
+'北京次元像素'
|
|
|
|
+else '-'
|
|
|
|
+END) as '公司',
|
|
a.project_name AS '项目',
|
|
a.project_name AS '项目',
|
|
a.account_id AS '账户',
|
|
a.account_id AS '账户',
|
|
a.signature AS '素材标识',
|
|
a.signature AS '素材标识',
|
|
@@ -42,7 +55,7 @@ class send_material_report_month:
|
|
a.video_name AS '素材名称',
|
|
a.video_name AS '素材名称',
|
|
a.photo_url AS '链接'
|
|
a.photo_url AS '链接'
|
|
from
|
|
from
|
|
-(select company_name,project_name,account_id,signature,channel_name,sum(charge)charge,clip_name,shot_name,plan_name,a.leader_name,video_name,photo_url,b.realname user_name from
|
|
|
|
|
|
+(select clip_company_id,project_name,account_id,signature,channel_name,sum(charge)charge,clip_name,shot_name,plan_name,a.leader_name,video_name,photo_url,b.realname user_name from
|
|
application.app_kuaishou_video_report_busi_m a
|
|
application.app_kuaishou_video_report_busi_m a
|
|
left join `jeecg-boot`.sys_user b
|
|
left join `jeecg-boot`.sys_user b
|
|
on a.user_id=b.id
|
|
on a.user_id=b.id
|