master
cody 11 months ago
parent 9eff400b0f
commit 66fd3f45af

@ -244,11 +244,12 @@ class OtherController extends CommonController
// 开课天数 // 开课天数
$list['course_day_total'] = (clone $calendar)->where('is_count_days', 1)->sum('days'); $list['course_day_total'] = (clone $calendar)->where('is_count_days', 1)->sum('days');
$course_ids = $courses->pluck('id');
// 上市公司数(所有上市公司) // 上市公司数(所有上市公司)
$list['company_market_total'] = CourseSign::shangshi($start_date, $end_date); $list['company_market_total'] = CourseSign::shangshi($start_date, $end_date,$course_ids);
// 跟班学员数(在指定时间范围内报名的学员中,from为'跟班学员'的数量) // 跟班学员数(在指定时间范围内报名的学员中,from为'跟班学员'的数量)
$course_ids = $courses->pluck('id');
$list['ganbu_total'] = CourseSign::genban($start_date, $end_date, $course_ids); $list['ganbu_total'] = CourseSign::genban($start_date, $end_date, $course_ids);
// 今年上市公司数量(stock_date在今年) // 今年上市公司数量(stock_date在今年)

Loading…
Cancel
Save