From 1dd273e3124c62657c374a36e191bdb7dfcb273c Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Sat, 29 Nov 2025 17:48:27 +0800 Subject: [PATCH] update --- app/Models/CourseSign.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Models/CourseSign.php b/app/Models/CourseSign.php index cc97210..0105595 100755 --- a/app/Models/CourseSign.php +++ b/app/Models/CourseSign.php @@ -465,10 +465,11 @@ class CourseSign extends SoftDeletesModel * @param bool $retList 是否返回列表,false返回数量,true返回列表 * @return int|array */ - public static function companyInvestedAfterEnrollment($start_date, $end_date, $course_ids = null, $retList = false) + public static function companyInvestedAfterEnrollment($start_date, $end_date, $retList = false) { - $courseSignsQuery = self::getStudentList($start_date, $end_date, 1, $course_ids); + $courseSignsQuery = self::getStudentList($start_date, $end_date, 1); $courseSignsForInvest = $courseSignsQuery->with('user.company')->get(); + dd($courseSignsForInvest->count()); $companiesAfterEnrollment = []; foreach ($courseSignsForInvest as $sign) { if ($sign->user && $sign->user->company && $sign->user->company->is_yh_invested == 1) {