|
|
|
|
@ -132,6 +132,8 @@ class OtherController extends CommonController
|
|
|
|
|
$end = Carbon::parse($course->end_date);
|
|
|
|
|
return $end->diffInDays($start) + 1; // 包含起始和结束日期
|
|
|
|
|
});
|
|
|
|
|
// 返回所有sql语句
|
|
|
|
|
$sql = DB::getQueryLog();
|
|
|
|
|
// 课程分类明细统计
|
|
|
|
|
$courseTypesSum = [];
|
|
|
|
|
$courseTypes = CourseType::get();
|
|
|
|
|
@ -184,8 +186,6 @@ class OtherController extends CommonController
|
|
|
|
|
->distinct()
|
|
|
|
|
->count();
|
|
|
|
|
}
|
|
|
|
|
// 返回所有sql语句
|
|
|
|
|
$sql = DB::getQueryLog();
|
|
|
|
|
return $this->success(compact('list', 'courseTypesSum', 'areas', 'sql'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|