From 3f580bdb3d73944d4439f6e0389847e7a91310de Mon Sep 17 00:00:00 2001 From: selfrelease Date: Fri, 31 Jul 2026 11:37:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20todoCount=E5=92=8ChighRiskCount=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=8E=BB=E9=87=8D=E5=90=8E=E7=9A=84=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=BF=9D=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/services/risk.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/services/risk.service.ts b/backend/src/services/risk.service.ts index 1522f3a..d9841c3 100644 --- a/backend/src/services/risk.service.ts +++ b/backend/src/services/risk.service.ts @@ -895,8 +895,8 @@ export async function getDashboardData(orgId: string) { greeting, stats: { employeeCount, - highRiskCount: highRisks, - todoCount: pendingRisks, + highRiskCount: dedupedTodos.filter((t) => t.level === 'high' && (t.type === 'CONTRACT' || t.type === 'TERMINATION')).length, + todoCount: todos.length, monthlyOvertimePay, }, urgentRisk,