修复(账号分配): 隐藏停用客服并校验发放目标

分配概览只返回启用中的客服;停用用户不能出现在客服列表或作为定量发放目标。
This commit is contained in:
yml
2026-11-26 20:44:01 +08:00
parent 98aa046c7e
commit 47cc15f8ad
2 changed files with 40 additions and 1 deletions
+1 -1
View File
@@ -1459,7 +1459,7 @@ def assignments_summary(
_assignable_account_filter(),
),
)
.filter(User.role == "support")
.filter(User.role == "support", User.is_active.is_(True))
.group_by(User.id, User.username)
.order_by(func.count(Account.id).desc())
.all()