renyupeng 6 mesi fa
parent
commit
e1876a0e8e

+ 3 - 3
Apietl/test/project_material_report.py

@@ -18,7 +18,7 @@ class project_material_report:
     def __init__(self):
         self.conn = TidbConn.get_connection()
         self.OuterStr = "mysql+pymysql://%s:%s@%s:%d/%s" % (
-            "hcst", parse.quote_plus("hcst@2024"), "192.168.0.101", 3390, "application")
+            "hcst", parse.quote_plus("hcst@2024"), "192.168.0.249", 3390, "application")
         self.OuterConn = create_engine(self.OuterStr,
                                        pool_size=10,
                                        max_overflow=5,
@@ -27,7 +27,7 @@ class project_material_report:
 
     def Project_Handler(self):
         sql = """
-        select project_id,replace(project_name,'/','-') from application.kuaishou_account_report_daily_dw  where  stat_date>=20240701 and stat_date<=20240931
+        select project_id,replace(project_name,'/','-') from application.kuaishou_account_report_daily_dw  where  stat_date>=20241001 and stat_date<=20241131
 and charge>0 and project_id is not null
 group by project_id
         """
@@ -70,7 +70,7 @@ END) as '公司',
 application.kuaishou_material_video_report_daily_dw a
 left join `jeecg-boot`.sys_user b
 on a.user_id=b.id
-where stat_date>=20240701 and stat_date<=20240931 and project_id={project_id}
+where stat_date>=20241001 and stat_date<=20241131 and project_id={project_id}
 group by signature) a
 left join
 application.material_farst_cost_time b

+ 4 - 4
Apietl/test/toutiaoproject_material_image_report.py

@@ -19,7 +19,7 @@ class project_material_report:
     def __init__(self):
         self.conn = TidbConn.get_connection()
         self.OuterStr = "mysql+pymysql://%s:%s@%s:%d/%s" % (
-            "hcst", parse.quote_plus("hcst@2024"), "192.168.0.101", 3390, "application")
+            "hcst", parse.quote_plus("hcst@2024"), "192.168.0.249", 3390, "application")
         self.OuterConn = create_engine(self.OuterStr,
                                        pool_size=10,
                                        max_overflow=5,
@@ -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>=20240701 and stat_datetime<=20240931
+    select project_id,project_name from application.bytedance_advertiser_report_daily_dw  where  stat_datetime>=20241001 and stat_datetime<=20241131
 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 >= 20240701
-  and stat_datetime <= 20240931
+where stat_datetime >= 20241001
+  and stat_datetime <= 20241031
   and project_id={project_id}
     and cost>0
 )t

+ 3 - 3
Apietl/test/toutiaoproject_material_report.py

@@ -19,7 +19,7 @@ class project_material_report:
     def __init__(self):
         self.conn = TidbConn.get_connection()
         self.OuterStr = "mysql+pymysql://%s:%s@%s:%d/%s" % (
-            "hcst", parse.quote_plus("hcst@2024"), "192.168.0.101", 3390, "application")
+            "hcst", parse.quote_plus("hcst@2024"), "192.168.0.249", 3390, "application")
         self.OuterConn = create_engine(self.OuterStr,
                                        pool_size=10,
                                        max_overflow=5,
@@ -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>=20240701 and stat_datetime<=20240931
+    select project_id,project_name from application.bytedance_advertiser_report_daily_dw  where  stat_datetime>=20241001 and stat_datetime<=20241131
 and cost>0 and project_id is not null
 group by project_id
         """
@@ -71,7 +71,7 @@ END) as '公司',
 application.bytedance_material_video_report_daily_dw a
 left join `jeecg-boot`.sys_user b
 on a.user_id=b.id
-where stat_datetime >= 20240701 and stat_datetime<=20240931 and project_id={project_id}
+where stat_datetime >= 20241001 and stat_datetime<=20241131 and project_id={project_id}
 group by signature) a
 left join
 application.bytedance_material_farst_cost_time b