|
|
|
|
@ -234,10 +234,10 @@ class OtherController extends CommonController
|
|
|
|
|
->where(function ($query) use ($start_date, $end_date) {
|
|
|
|
|
$query->whereBetween('start_time', [$start_date, $end_date])
|
|
|
|
|
->orWhereBetween('end_time', [$start_date, $end_date]);
|
|
|
|
|
})->get();
|
|
|
|
|
$list['course_total'] = $calendar->count();
|
|
|
|
|
});
|
|
|
|
|
$list['course_total'] = (clone $calendar)->count();
|
|
|
|
|
// 开课天数
|
|
|
|
|
$list['course_day_total'] = $calendar->sum('days');
|
|
|
|
|
$list['course_day_total'] = (clone $calendar)->sum('days');
|
|
|
|
|
|
|
|
|
|
// 上市公司数(所有上市公司)
|
|
|
|
|
$list['company_market_total'] = Company::companyMarket($start_date, $end_date);
|
|
|
|
|
|