cursor_zdindex.execute(f"select goods_model,goods_url from zd_purchase_price where goods_id = '{sku}' and periods in (select top 1 max(periods) from zd_entry_goods_price) and purchase_id = 'ZC-HEILONGJIANG'")
cursor_zdindex.execute(f"select goods_id,goods_name,platform_id,goods_url,index_price_wave,final_price from zd_week_price where periods in (select top 1 max(periods) from zd_entry_goods_price) and sub_category_code = {category_code} ")
cursor_zdindex.execute(f"select a.goods_id,a.goods_name,b.goods_name as '链接名称',a.platform_id,a.goods_url,a.index_price_wave,a.final_price from zd_week_price a \
left join (select goods_id,goods_name from zd_purchase_price where periods = '20211216') b \
on a.goods_id = b.goods_id \
where a.periods = '20211216' and a.sub_category_code = {category_code}")
'''
cursor_zdindex.execute(f"select goods_id,goods_name,source_goods_name,platform_id,goods_url,index_price_wave,final_price from zd_week_price \
where periods in (select top 1 max(periods) from zd_entry_goods_price) and sub_category_code = {category_code}")