|
|
|
@ -136,7 +136,7 @@ class CourseSign extends SoftDeletesModel
|
|
|
|
$query->whereIn('course_id', $course_ids);
|
|
|
|
$query->whereIn('course_id', $course_ids);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})->whereNotIn('status', [4, 5])->get();
|
|
|
|
})->whereNotIn('status', [4, 5])->get();
|
|
|
|
$user = User::whereIn('id', $courseSignByType->pluck('user_id'))->distinct('mobile');
|
|
|
|
$user = User::whereIn('id', $courseSignByType->pluck('user_id'));
|
|
|
|
if ($retList) {
|
|
|
|
if ($retList) {
|
|
|
|
// 列表
|
|
|
|
// 列表
|
|
|
|
return $user->groupBy('mobile')->get();
|
|
|
|
return $user->groupBy('mobile')->get();
|
|
|
|
@ -285,7 +285,7 @@ class CourseSign extends SoftDeletesModel
|
|
|
|
// 未去重
|
|
|
|
// 未去重
|
|
|
|
'total' => $sourseSignList2->count(),
|
|
|
|
'total' => $sourseSignList2->count(),
|
|
|
|
// 已去重
|
|
|
|
// 已去重
|
|
|
|
'total_unique' => User::whereIn('id', $sourseSignList2->pluck('user_id'))->distinct('mobile')->groupBy('mobile')->get()->count(),
|
|
|
|
'total_unique' => User::whereIn('id', $sourseSignList2->pluck('user_id'))->groupBy('mobile')->get()->count(),
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|