|
|
|
@ -245,14 +245,14 @@ 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');
|
|
|
|
|
|
|
|
|
|
|
|
// 上市公司数(所有上市公司)
|
|
|
|
// 上市公司数(所有上市公司)
|
|
|
|
$list['company_market_total'] = Company::companyMarket($start_date, $end_date);
|
|
|
|
$list['company_market_total'] = CourseSign::shangshi($start_date, $end_date);
|
|
|
|
|
|
|
|
|
|
|
|
// 跟班学员数(在指定时间范围内报名的学员中,from为'跟班学员'的数量)
|
|
|
|
// 跟班学员数(在指定时间范围内报名的学员中,from为'跟班学员'的数量)
|
|
|
|
$course_ids = $courses->pluck('id');
|
|
|
|
$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在今年)
|
|
|
|
$list['company_market_year_total'] = Company::companyMarketYear($start_date, $end_date, $course_ids);
|
|
|
|
$list['company_market_year_total'] = CourseSign::companyMarketYear($start_date, $end_date, $course_ids);
|
|
|
|
|
|
|
|
|
|
|
|
// 入学后上市公司数量(在指定时间范围内报名的学员所在公司中,在入学后上市的公司数量)
|
|
|
|
// 入学后上市公司数量(在指定时间范围内报名的学员所在公司中,在入学后上市的公司数量)
|
|
|
|
$list['company_market_after_enrollment_total'] = CourseSign::companyMarketAfterEnrollment($start_date, $end_date, $course_ids);
|
|
|
|
$list['company_market_after_enrollment_total'] = CourseSign::companyMarketAfterEnrollment($start_date, $end_date, $course_ids);
|
|
|
|
@ -657,7 +657,7 @@ class OtherController extends CommonController
|
|
|
|
|
|
|
|
|
|
|
|
case 'company_market_year_total':
|
|
|
|
case 'company_market_year_total':
|
|
|
|
// 今年上市公司明细 - 使用模型方法
|
|
|
|
// 今年上市公司明细 - 使用模型方法
|
|
|
|
$companies = Company::companyMarketYear($start_date, $end_date, $course_ids, true);
|
|
|
|
$companies = CourseSign::companyMarketYear($start_date, $end_date, $course_ids, true);
|
|
|
|
foreach ($companies as $company) {
|
|
|
|
foreach ($companies as $company) {
|
|
|
|
$data[] = [
|
|
|
|
$data[] = [
|
|
|
|
'company_name' => $company->company_name,
|
|
|
|
'company_name' => $company->company_name,
|
|
|
|
|