fix: capture and persist target object names for delete, outbound, and borrow operations in audit logs
This commit is contained in:
@ -186,11 +186,11 @@ def delete_location(location_id):
|
||||
|
||||
delete_recursive(location)
|
||||
db.session.commit()
|
||||
|
||||
|
||||
return jsonify({
|
||||
'code': 200,
|
||||
'msg': '删除成功',
|
||||
'data': None
|
||||
'location_code': location.location_code
|
||||
})
|
||||
except Exception as e:
|
||||
db.session.rollback()
|
||||
|
||||
Reference in New Issue
Block a user