perf(douyu): 优化慢查询并修复供应商充值收口

This commit is contained in:
yml
2026-11-21 11:20:58 +08:00
parent 3987464035
commit 9c90a452c5
14 changed files with 435 additions and 69 deletions
+5
View File
@@ -1479,6 +1479,11 @@ class HuyaTask(Base):
account: Mapped[HuyaAccount] = relationship("HuyaAccount", back_populates="tasks")
__table_args__ = (
# 客服工作台按归属账号汇总任务状态时走覆盖索引,避免回表排序。
Index("ix_huya_tasks_account_status_id", "account_id", "status", "id"),
)
class HuyaWorkbenchAccount(Base):
"""用户在虎牙指定工作台中启用的账号。"""