|
|
|
|
@ -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) {
|
|
|
|
|
|