renyupeng 2 年之前
父節點
當前提交
20b6844077
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Apietl/task/BytedanceMaterialRequest.py
  2. 1 1
      Apietl/task/KuaishouMaterialRequest.py

+ 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)