feat: cms users institution department manager

This commit is contained in:
2026-06-11 10:37:29 +08:00
parent 1dc9141856
commit 32915bc6b4
39 changed files with 2403 additions and 75 deletions
+2 -1
View File
@@ -100,7 +100,8 @@ def register(request):
department = None
if department_name:
qs = Department.objects.filter(name=department_name, institution=institution)
# 科室为全局表,按名称解析(与机构无关)
qs = Department.objects.filter(name=department_name)
cnt = qs.count()
if cnt == 0:
raise AppError('USER_DEPARTMENT_NOT_FOUND', f'科室"{department_name}"不存在')