Commit 57bfeee3 by 岳巧源

add status check

parent 09fb4a83
Showing with 2 additions and 2 deletions
...@@ -110,7 +110,7 @@ def update_vc_attr(conf: dict): ...@@ -110,7 +110,7 @@ def update_vc_attr(conf: dict):
""" """
先预先把此分类的全部属性查询出来 先预先把此分类的全部属性查询出来
""" """
check_sql = "select id, class_id, attr_id, attr_name, unit, enum_value, input_type, is_required from lie_shop_attr where platform = 1 and is_ext = 1 and class_id = %s" check_sql = "select id, class_id, attr_id, attr_name, unit, enum_value, input_type, is_required from lie_shop_attr where platform = 1 and is_ext = 1 and status = 1 and class_id = %s"
cursor.execute(query=check_sql, args=(class_id, )) cursor.execute(query=check_sql, args=(class_id, ))
check_result = cursor.fetchall() check_result = cursor.fetchall()
for j in range(len(jd_results)): for j in range(len(jd_results)):
...@@ -290,7 +290,7 @@ def update_vc_ext_attr(conf): ...@@ -290,7 +290,7 @@ def update_vc_ext_attr(conf):
""" """
预先把分类id对应的属性先查询出来。 预先把分类id对应的属性先查询出来。
""" """
check_sql = "select id, class_id, attr_id, attr_name, unit, enum_value, input_type, is_required from lie_shop_attr where platform = 1 and is_ext = 2 and class_id = %s" check_sql = "select id, class_id, attr_id, attr_name, unit, enum_value, input_type, is_required from lie_shop_attr where platform = 1 and is_ext = 2 and status = 1 and class_id = %s"
cursor.execute(query=check_sql, args=(class_id, )) cursor.execute(query=check_sql, args=(class_id, ))
check_result = cursor.fetchall() check_result = cursor.fetchall()
for j in range(len(jd_results)): for j in range(len(jd_results)):
......
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