|
@@ -27,7 +27,7 @@ class project_material_report:
|
|
|
|
|
|
def Project_Handler(self):
|
|
def Project_Handler(self):
|
|
sql = """
|
|
sql = """
|
|
- select project_id,project_name from application.kuaishou_account_report_daily_dw where stat_date>=20231002 and stat_date<=20231022
|
|
|
|
|
|
+ select project_id,project_name from application.kuaishou_account_report_daily_dw where stat_date>=20231001 and stat_date<=20231031
|
|
and charge>0 and project_id is not null
|
|
and charge>0 and project_id is not null
|
|
group by project_id
|
|
group by project_id
|
|
"""
|
|
"""
|
|
@@ -70,7 +70,7 @@ END) as '公司',
|
|
application.kuaishou_material_video_report_daily_dw a
|
|
application.kuaishou_material_video_report_daily_dw 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
|
|
-where stat_date >= 20231002 and stat_date<=20231022 and project_id={project_id}
|
|
|
|
|
|
+where stat_date >= 20231001 and stat_date<=20231031 and project_id={project_id}
|
|
group by signature) a
|
|
group by signature) a
|
|
left join
|
|
left join
|
|
application.material_farst_cost_time b
|
|
application.material_farst_cost_time b
|