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,))
check_result=cursor.fetchall()
forjinrange(len(jd_results)):
...
...
@@ -290,7 +290,7 @@ def update_vc_ext_attr(conf):
"""
预先把分类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"