This commit is contained in:
Your Name
2026-08-05 11:54:24 +08:00
parent 7ddb4882e3
commit 4ee8a8e98b
292 changed files with 29 additions and 330 deletions
@@ -294,7 +294,11 @@ class PerformanceDashboardLogic
$items[] = [
'id' => (int) ($row['admin_id'] ?? 0),
'name' => (string) ($row['doctor_name'] ?? ''),
'count' => (int) ($row['appointment_total'] ?? 0),
// DoctorDailyStats 的 total 含已取消;驾驶舱实时排行只统计有效挂号。
'count' => max(
0,
(int) ($row['appointment_total'] ?? 0) - (int) ($row['appointment_cancelled'] ?? 0)
),
'amount' => round((float) ($row['deal_amount'] ?? 0), 2),
];
}
@@ -324,6 +328,7 @@ class PerformanceDashboardLogic
'dimension' => 'assistant',
'time_type' => 'today',
'include_filters' => 0,
'exclude_cancelled_appointments' => 1,
'page_no' => 1,
'page_size' => $rankingVisibleAdminIds !== null ? max(1, count($rankingVisibleAdminIds)) : 100,
], $adminId, $adminInfo, $rankingVisibleAdminIds);