Commit 7b7f57b7 authored by rico.liu's avatar rico.liu

update 硒鼓/墨粉 适用机型

parent 744a94ba
......@@ -176,7 +176,7 @@ def upload_params_data(category,path):
cursor_zi_new.execute(f"select name from p_brand where id = {father_brand_code}")
father_brand = cursor_zi_new.fetchone()[0].strip()
except:
print(f"异常品牌编码: {father_brand_code},请检查产品品牌表")
print(f"{brandname},异常品牌编码: {father_brand_code},请检查产品品牌表")
break
spu_brandname = father_brand
else:
......@@ -291,6 +291,10 @@ def upload_params_data(category,path):
value = str(params[element])
if element == '适用机型':
skuname += "(" + value + ") "
continue
value = transform_simplevalue(tip,single_data_dict,category,element,value.upper())
skuname += "(" + value + ") "
......@@ -560,8 +564,8 @@ def check_configure_price(category,path,params_list):
category = '台式机'
path = '/Users/rico/WorkSpace/1_Project/Company/中电中采/4_中电商品库功能类/更新库内参数并重新命名/台式机参数确认(校验通过).xlsx'
category = '复印纸'
path = '/Users/rico/WorkSpace/1_Project/Company/中电中采/4_中电商品库功能类/更新库内参数并重新命名/复印纸参数确认(校验通过).xlsx'
upload_params_data(category,path)
......
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