|
@@ -28,7 +28,7 @@ class project_material_report:
|
|
|
|
|
|
def Project_Handler(self):
|
|
def Project_Handler(self):
|
|
sql = """
|
|
sql = """
|
|
- select project_id,project_name from application.bytedance_advertiser_report_daily_dw where stat_datetime>=20231101 and stat_datetime<=20231130
|
|
|
|
|
|
+ select project_id,project_name from application.bytedance_advertiser_report_daily_dw where stat_datetime>=20231201 and stat_datetime<=20231231
|
|
and cost>0 and project_id is not null
|
|
and cost>0 and project_id is not null
|
|
group by project_id
|
|
group by project_id
|
|
"""
|
|
"""
|
|
@@ -71,7 +71,7 @@ END) as '公司',
|
|
application.bytedance_material_video_report_daily_dw a
|
|
application.bytedance_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_datetime >= 20231101 and stat_datetime<=20231130 and project_id={project_id}
|
|
|
|
|
|
+where stat_datetime >= 20231201 and stat_datetime<=20231231 and project_id={project_id}
|
|
group by signature) a
|
|
group by signature) a
|
|
left join
|
|
left join
|
|
application.bytedance_material_farst_cost_time b
|
|
application.bytedance_material_farst_cost_time b
|