|
@@ -871,7 +871,8 @@ class SpApiRequest:
|
|
def listing_infoTable(cls): # To datatable asj_ads.Goods - Goods表,包括排名,图片,父子关系
|
|
def listing_infoTable(cls): # To datatable asj_ads.Goods - Goods表,包括排名,图片,父子关系
|
|
conn = SpApiRequest.Data_auth()
|
|
conn = SpApiRequest.Data_auth()
|
|
cursor = conn.cursor()
|
|
cursor = conn.cursor()
|
|
- cursor.execute(f"""select seller_id,country_code,asin,title from asj_ads.seller_listings where title is not null and title <>'' and (seller_id,country_code,asin) not in (select seller_id,countryCode,asin from asj_ads.Goods where update_time>='{datetime.today().date()}') group by seller_id,title,country_code,asin order by country_code desc""")
|
|
|
|
|
|
+ # TODO
|
|
|
|
+ cursor.execute(f"""select seller_id,country_code,asin,title from asj_ads.seller_listings where title is not null and title <>'' and (seller_id,country_code,asin) in (select seller_id,countryCode,asin from asj_ads.Goods where update_time>='{datetime.today().date()}') group by seller_id,title,country_code,asin order by country_code desc""")
|
|
query_ = cursor.fetchall()
|
|
query_ = cursor.fetchall()
|
|
# print(query_)
|
|
# print(query_)
|
|
col_name = [i[0] for i in cursor.description]
|
|
col_name = [i[0] for i in cursor.description]
|