master
cody 5 months ago
parent 95caeea754
commit d05197516a

@ -66,7 +66,7 @@ class OtherController extends CommonController
'total' => User::count() - collect($industryTotal)->sum('total')
];
// 课程统计
$courseTypes = CourseType::with('courses')->where('is_chart',1)->get();
$courseTypes = CourseType::where('is_chart',1)->get();
foreach ($courseTypes as $courseType) {
$courseType->course_signs_total = CourseSign::whereIn('course_id', $courseType->courses->pluck('id'))
->where('status', 1)

Loading…
Cancel
Save