master
cody 4 weeks ago
parent 383178f52e
commit 340c50dc21

@ -134,7 +134,6 @@ class OtherController extends CommonController
// ->where('start_date', '<=', $end_date)
// ->where('start_date', '>=', $start_date)
->get();
dump($courses->pluck('id')->toArray());
// 被投企业数
$list['course_signs_invested'] = CourseSign::yhInvested($start_date, $end_date);
// 报名人数
@ -161,7 +160,6 @@ class OtherController extends CommonController
// ->where('start_date', '<=', $end_date)
// ->where('start_date', '>=', $start_date)
->get();
dump($courses2->pluck('id')->toArray());
foreach ($courses2 as $course) {
$courseTypesSum[] = [
'course_type' => $courseType->name,

@ -122,9 +122,9 @@ class CourseSign extends SoftDeletesModel
if (isset($status)) {
$query->where('status', $status);
}
// if (isset($course_ids)) {
// $query->whereIn('course_id', $course_ids);
// }
if (isset($course_ids)) {
$query->whereIn('course_id', $course_ids);
}
})->whereNotIn('status', [4, 5])
->get();
return User::whereIn('id', $courseSignByType->pluck('user_id'))->distinct('mobile')->count();

Loading…
Cancel
Save