|
|
|
|
@ -132,10 +132,10 @@ class OtherController extends CommonController
|
|
|
|
|
// 默认结束日期一年以后
|
|
|
|
|
$end_date = date('Y-m-d', strtotime('+10 year'));
|
|
|
|
|
|
|
|
|
|
// 校友总数
|
|
|
|
|
$list['schoolmate_total'] = User::where('is_schoolmate', 1)->count();
|
|
|
|
|
// 今年新增校友数(根据schoolmate_time字段统计)
|
|
|
|
|
$list['schoolmate_year'] = User::where('is_schoolmate', 1)->whereYear('schoolmate_time', date('Y'))->count();
|
|
|
|
|
// 校友总数(与 study 口径一致:仅统计有课程报名记录的校友)
|
|
|
|
|
$list['schoolmate_total'] = User::where('is_schoolmate', 1)->whereHas('courseSigns')->count();
|
|
|
|
|
// 今年新增校友数(根据schoolmate_time字段统计,口径同上)
|
|
|
|
|
$list['schoolmate_year'] = User::where('is_schoolmate', 1)->whereHas('courseSigns')->whereYear('schoolmate_time', date('Y'))->count();
|
|
|
|
|
// 投后企业
|
|
|
|
|
$list['company_invested_total'] = CourseSign::yhInvestedTotal(CourseType::START_DATE, date('Y-m-d'), null);
|
|
|
|
|
// 元和员工参与人数
|
|
|
|
|
@ -2041,6 +2041,7 @@ class OtherController extends CommonController
|
|
|
|
|
'company_city' => $user->company->company_city ?? '',
|
|
|
|
|
'company_position' => $user->company_position ?? '',
|
|
|
|
|
'education' => $user->education ?? '',
|
|
|
|
|
'geren_rongyu' => $user->type ?? '',
|
|
|
|
|
'course_names' => $courseNamesStr,
|
|
|
|
|
'course_types' => $courseTypesStr,
|
|
|
|
|
'course_count' => $totalCourseCount,
|
|
|
|
|
@ -2054,6 +2055,7 @@ class OtherController extends CommonController
|
|
|
|
|
'company_city' => '所在城市',
|
|
|
|
|
'company_position' => '职位',
|
|
|
|
|
'education' => '学历',
|
|
|
|
|
'geren_rongyu' => '个人荣誉',
|
|
|
|
|
'course_names' => '课程名称',
|
|
|
|
|
'course_types' => '课程体系',
|
|
|
|
|
'course_count' => '报名课程数',
|
|
|
|
|
|