Commit 3ce95ab7 by 岳巧源

skip unit

parent acde9d13
Showing with 2 additions and 2 deletions
......@@ -213,7 +213,7 @@ def update_vc_attr(conf: dict):
"""
exists_attr = True
for key in origin_attr_map:
if key == "unit":
if key == "unit" and now_attr_map[key] == "":
continue
if origin_attr_map[key] != now_attr_map[key]:
update_sql1 = "update lie_shop_attr set attr_id = %s, attr_name = %s, unit = %s, enum_value = %s, input_type = %s, is_required = %s, update_time = %s , is_mapping = 0 where id = %s"
......@@ -403,7 +403,7 @@ def update_vc_ext_attr(conf):
"""
exists_attr = True
for key in origin_attr_map:
if key == "unit":
if key == "unit" and now_attr_map[key] == "":
continue
if origin_attr_map[key] != now_attr_map[key]:
update_sql1 = "update lie_shop_attr set attr_id = %s, attr_name = %s, unit = %s, enum_value = %s, input_type = %s, is_required = %s, update_time = %s , is_mapping = 0 where id = %s"
......
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 sign in to comment