|
|
|
|
@ -234,11 +234,11 @@ class OtherController extends CommonController
|
|
|
|
|
$query->whereBetween('start_time', [$start_date, $end_date])
|
|
|
|
|
->orWhereBetween('end_time', [$start_date, $end_date]);
|
|
|
|
|
})->where(function ($query) {
|
|
|
|
|
$course_type_id = request('course_type_id', '');
|
|
|
|
|
$course_type_id = request('course_type_id');
|
|
|
|
|
if ($course_type_id) {
|
|
|
|
|
$course_type_id = explode(',', $course_type_id);
|
|
|
|
|
// if ($course_type_id) {
|
|
|
|
|
// $query->whereIn('course_type_id', $course_type_id);
|
|
|
|
|
// }
|
|
|
|
|
$query->whereIn('course_type_id', $course_type_id);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$list['course_total'] = (clone $calendar)->count();
|
|
|
|
|
// 开课天数
|
|
|
|
|
|