diff --git a/app/Http/Controllers/Admin/OtherController.php b/app/Http/Controllers/Admin/OtherController.php index 63b0b28..e1624aa 100755 --- a/app/Http/Controllers/Admin/OtherController.php +++ b/app/Http/Controllers/Admin/OtherController.php @@ -66,7 +66,7 @@ class OtherController extends CommonController 'total' => User::count() - collect($industryTotal)->sum('total') ]; // 课程统计 - $courseTypes = CourseType::with('courses')->where('is_chart')->get(); + $courseTypes = CourseType::with('courses')->where('is_chart',1)->get(); foreach ($courseTypes as $courseType) { $courseType->course_signs_total = CourseSign::where('course_id', $courseType->courses->pluck('id')) ->where('status', 1)