diff --git a/app/Models/CourseSign.php b/app/Models/CourseSign.php index 4a0f09a..66ac99a 100755 --- a/app/Models/CourseSign.php +++ b/app/Models/CourseSign.php @@ -176,10 +176,10 @@ class CourseSign extends SoftDeletesModel * @param array|null $course_ids 课程ID(仅在自定义时间时生效) * @param bool $retList 是否返回列表 */ - public static function yhInvestedTotal($end_date = null, $retList = false) + public static function yhInvestedTotal($start_date, $end_date = null, $retList = false) { // 默认时间:获取所有学员,不限制课程 - $userIds = self::getStudentList(null, $end_date, 1, null)->get()->pluck('user_id'); + $userIds = self::getStudentList($start_date, $end_date, 1, null)->get()->pluck('user_id'); // 获取这些学员所在的被投企业 $companies = Company::whereHas('users', function ($query) use ($userIds) {