From 8660c0d99994ef81f9ed0fcf9986c1a72000f1d0 Mon Sep 17 00:00:00 2001 From: kkfluous Date: Tue, 14 Apr 2026 22:48:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=83=A8=E9=97=A8=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E9=9D=9E=E4=B8=9A=E5=8A=A1=E5=91=98=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=EF=BC=88=E8=B6=85=E7=BA=A7=E7=94=A8=E6=88=B7/?= =?UTF-8?q?=E5=88=98=E6=80=9D=E5=AE=87/=E6=BD=98=E8=88=92/=E9=BB=84?= =?UTF-8?q?=E5=8D=93=E5=8D=8E/=E8=AE=B8=E9=93=AE=E6=9D=B0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- src/server/routes/vehicles.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/routes/vehicles.ts b/src/server/routes/vehicles.ts index 1572a35..ba14d7c 100644 --- a/src/server/routes/vehicles.ts +++ b/src/server/routes/vehicles.ts @@ -680,10 +680,14 @@ app.get('/dept-stats', async (c) => { if (plate) todayMileageMap.set(plate, Number(row.day_mileage) || 0); } + // 不在部门列表展示的用户(非业务员或管理账号) + const EXCLUDED_MANAGERS = new Set(['超级用户', '刘思宇', '潘舒', '黄卓华', '许铮杰']); + const deptMap = new Map>(); for (const v of withManager) { const dept = v.departmentName || '公务车'; const mgr = v.customerManager || '未分配'; + if (EXCLUDED_MANAGERS.has(mgr)) continue; if (!deptMap.has(dept)) deptMap.set(dept, new Map()); const mgrMap = deptMap.get(dept)!; if (!mgrMap.has(mgr)) mgrMap.set(mgr, []); @@ -706,6 +710,7 @@ app.get('/dept-stats', async (c) => { const dept = r.dep_name as string | null; const mgr = r.user_name as string | null; if (!dept || !mgr) continue; + if (EXCLUDED_MANAGERS.has(mgr)) continue; const mgrMap = deptMap.get(dept); if (!mgrMap) continue; if (!mgrMap.has(mgr)) mgrMap.set(mgr, []);