master
cody 3 months ago
parent 386d81c159
commit b9a3255593

@ -80,7 +80,7 @@ class CalendarsController extends BaseController
if (isset($all['month'])) {
$query->where('start_time', 'like', $all['month'] . '%');
}
})->count();
})->where('is_count_days', 1)->count();
// 本年开课场次
$yearCourseCount = Calendar::where(function ($query) use ($all) {
if (isset($all['month'])) {
@ -88,7 +88,7 @@ class CalendarsController extends BaseController
$year = date('Y', strtotime($all['month']));
$query->where('start_time', 'like', $year . '%');
}
})->count();
})->where('is_count_days', 1)->count();
return $this->success(compact('list', 'monthDayCalendar', 'yearDayCalendar', 'monthCourseCount', 'yearCourseCount'));
}

Loading…
Cancel
Save