Эх сурвалжийг харах

Merge branch 'yifan' of ASJ_ADS/sync_amz_data into master

yifan_huang96 6 сар өмнө
parent
commit
dd7581efc1
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      start_sync_amz.py

+ 3 - 3
start_sync_amz.py

@@ -223,14 +223,14 @@ def func_2(delete_list):
         except:
             try:
                 locals()[table_name] = conn.query_df(
-                    f"select date,SUM(salesOtherSku1d) as salesOtherSku1d from AmazonReport.`{table_name}` date >='{check_date}' group by date,profileId")
+                    f"select date,SUM(salesOtherSku1d) as salesOtherSku1d from AmazonReport.`{table_name}` where date >='{check_date}' group by date,profileId")
             except:
                 try:
                     locals()[table_name] = conn.query_df(
-                        f"select date,SUM(salesBrandHalo) as salesBrandHalo from AmazonReport.`{table_name}` date >='{check_date}' group by date,profileId")
+                        f"select date,SUM(salesBrandHalo) as salesBrandHalo from AmazonReport.`{table_name}` where date >='{check_date}' group by date,profileId")
                 except:
                     locals()[table_name] = conn.query_df(
-                        f"select date,SUM(sales14d) as sales14d  from AmazonReport.`{table_name}` date >='{check_date}' group by date,profileId")
+                        f"select date,SUM(sales14d) as sales14d  from AmazonReport.`{table_name}` where date >='{check_date}' group by date,profileId")
         try:
             locals()[table_name].columns = ['date', 'refer_']
             locals()[table_name]['refer_'] = locals()[table_name]['refer_'].astype('float64')