From 0a59d9401737a5ab9444e0c4467a0dfe7f4b190b Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Thu, 13 Nov 2025 16:19:24 +0800 Subject: [PATCH] update --- app/Models/CourseSign.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Models/CourseSign.php b/app/Models/CourseSign.php index 92a1f1b..63c05ad 100755 --- a/app/Models/CourseSign.php +++ b/app/Models/CourseSign.php @@ -83,14 +83,14 @@ class CourseSign extends SoftDeletesModel $total = CourseSign::whereDate('created_at', '>=', $start_date) ->whereDate('created_at', '<=', $end_date) ->whereHas('user', function ($query) use ($area) { - if (isset($area)) { - if ($area == '苏州市外') { - $allArea = ParameterDetail::where('parameter_id', 5)->get(); - $query->whereNotIn('company_area', $allArea->pluck('value')); - } else { - $query->where('company_area', $area); - } - } +// if (isset($area)) { +// if ($area == '苏州市外') { +// $allArea = ParameterDetail::where('parameter_id', 5)->get(); +// $query->whereNotIn('company_area', $allArea->pluck('value')); +// } else { +// $query->where('company_area', $area); +// } +// } })->where(function ($query) use ($status, $course_ids) { if (isset($status)) { $query->where('status', $status);