|
@@ -28,7 +28,7 @@ class project_material_report:
|
|
|
|
|
|
def Project_Handler(self):
|
|
|
sql = """
|
|
|
- select project_id,project_name from application.bytedance_advertiser_report_daily_dw where stat_datetime>=20230901 and stat_datetime<=20230931
|
|
|
+ select project_id,project_name from application.bytedance_advertiser_report_daily_dw where stat_datetime>=20231001 and stat_datetime<=20231031
|
|
|
and cost>0 and project_id is not null
|
|
|
group by project_id
|
|
|
"""
|
|
@@ -47,8 +47,8 @@ select project_name,
|
|
|
''), '9', '') as aa,
|
|
|
cost
|
|
|
from application.bytedance_material_image_report_daily_dw
|
|
|
-where stat_datetime >= 20230901
|
|
|
- and stat_datetime <= 20230931
|
|
|
+where stat_datetime >= 20231001
|
|
|
+ and stat_datetime <= 20231031
|
|
|
and project_id={project_id}
|
|
|
and cost>0
|
|
|
)t
|