Commit a4f00a9b authored by rico.liu's avatar rico.liu

update strip

parent 05c9571f
......@@ -14,7 +14,7 @@ DL/DW/DZ/GM/JD/LXWL/OFS/SN/YHD/ZCSM
def matchSKU(sku_list,frm):
conn = pymssql.connect(host='123.56.115.207', user='zgcprice3311',password='admin@2018@)!*',database='ZI_DataBase')
cursor = conn.cursor()
print('正在删除库中产品状态为6的sku,稍等。。。')#首先将库中错误状态产品的JD/SN/GM的SKU删除
......@@ -69,12 +69,16 @@ def matchSKU(sku_list,frm):
data_sku_file_op = pd.DataFrame(data_sku,columns=['productcode','sku'])
data_sku_file = pd.concat([data_sku_file,data_sku_file_op]).drop_duplicates()
data_sku_file['productcode'] = data_sku_file['productcode'].apply(lambda x:x.strip())
data_sku_file['sku'] = data_sku_file['sku'].apply(lambda x:x.strip())
print('sku获取完毕')
conn.close()
cursor.close()
sku_check = {}
for sku in set(sku_list):
sku = sku.strip()
#print(sku)
#sku = 100004460761
if str(sku) in list(data_sku_file['sku']):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment