From de123fcf16ee2d35e722d88c5dfccebfbaa25c7f Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Mon, 19 Jan 2026 11:30:44 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/UserController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Http/Controllers/Admin/UserController.php b/app/Http/Controllers/Admin/UserController.php index 419e9c2..f36f68e 100755 --- a/app/Http/Controllers/Admin/UserController.php +++ b/app/Http/Controllers/Admin/UserController.php @@ -312,6 +312,12 @@ class UserController extends BaseController if (isset($all['is_chart'])) { $q->where('is_chart', $all['is_chart']); } + // from=跟班学员 时与 ganbu_total 口径一致:仅统计 is_count_genban=1 的课程类型 + if (!empty($all['from']) && strpos((string) $all['from'], '跟班学员') !== false) { + $q->whereHas('typeDetail', function ($q) { + $q->where('is_count_genban', 1); + }); + } }); }); // 不通过的需要全部不通过