renyupeng 2 anos atrás
pai
commit
20b6844077

+ 1 - 1
Apietl/task/BytedanceMaterialRequest.py

@@ -41,7 +41,7 @@ class BytedanceMaterialRequest:
             sql = """
             SET GLOBAL group_concat_max_len=102400;
             select  account_id,group_concat(distinct material_id) from application.bytedance_material_video_report_daily_dw
-            where stat_datetime between {start_time} and {end_time}
+            where stat_datetime >= {start_time} and stat_datetime<={end_time}
             and signature is null
             group by account_id
             """.format(start_time=self.start_time, end_time=self.end_time)

+ 1 - 1
Apietl/task/KuaishouMaterialRequest.py

@@ -43,7 +43,7 @@ class KuaishouMaterialRequest:
             sql = """
             SET GLOBAL group_concat_max_len=102400;
             select  account_id,group_concat(distinct photo_id) from application.kuaishou_material_video_report_daily_dw
-            where stat_date between {start_time} and {end_time}
+            where stat_date >= {start_time} and stat_date<={end_time}
             and signature is null and photo_id!=0
             group by account_id
             """.format(start_time=self.start_time, end_time=self.end_time)