perf: 同步近期修改

This commit is contained in:
2025-02-21 02:38:30 +08:00
parent d5e0f9d5ac
commit 003e7b8742
8 changed files with 162 additions and 23 deletions

View File

@@ -74,7 +74,7 @@ async def delete_department_recursive(department_id: str):
:return:
"""
await Department.filter(id=department_id).delete()
sub_departments = await Department.filter(parentId=department_id).all()
sub_departments = await Department.filter(parent_id=department_id).all()
for sub_department in sub_departments:
await delete_department_recursive(sub_department.id)
return True