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"
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"
delete_sql="update lie_shop_attr set status = 0 where id = %s"
cursor.execute(query=delete_sql,args=(id,))
db.commit()
print(delete_sql%id)
defhandle_vc_unit(conf:dict):
defhandle_vc_unit(conf:dict):
...
@@ -293,6 +314,8 @@ def update_vc_ext_attr(conf):
...
@@ -293,6 +314,8 @@ def update_vc_ext_attr(conf):
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"
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"