|
|
|
|
@ -122,6 +122,7 @@ class OtherController extends CommonController
|
|
|
|
|
// 报名人数
|
|
|
|
|
$list['course_signs_total'] = CourseSign::whereDate('created_at', '>=', $start_date)
|
|
|
|
|
->whereDate('created_at', '<=', $end_date)
|
|
|
|
|
->whereNotIn('status', [4, 5])
|
|
|
|
|
->where(function ($query) use ($courses) {
|
|
|
|
|
$query->whereIn('course_id', $courses->pluck('id'));
|
|
|
|
|
})->count();
|
|
|
|
|
@ -129,6 +130,7 @@ class OtherController extends CommonController
|
|
|
|
|
$courseSign = CourseSign::where('status', 1)
|
|
|
|
|
->whereDate('created_at', '>=', $start_date)
|
|
|
|
|
->whereDate('created_at', '<=', $end_date)
|
|
|
|
|
->whereNotIn('status', [4, 5])
|
|
|
|
|
->where(function ($query) use ($courses) {
|
|
|
|
|
$query->whereIn('course_id', $courses->pluck('id'));
|
|
|
|
|
})->get();
|
|
|
|
|
@ -157,6 +159,7 @@ class OtherController extends CommonController
|
|
|
|
|
->get();
|
|
|
|
|
$courseSignByType = CourseSign::where('status', 1)
|
|
|
|
|
->whereIn('course_id', $courses2->pluck('id'))
|
|
|
|
|
->whereNotIn('status', [4, 5])
|
|
|
|
|
->whereDate('created_at', '>=', $start_date)
|
|
|
|
|
->whereDate('created_at', '<=', $end_date)
|
|
|
|
|
->get();
|
|
|
|
|
|