|
|
|
@ -127,7 +127,7 @@ class OtherController extends CommonController
|
|
|
|
// 今年新增校友数
|
|
|
|
// 今年新增校友数
|
|
|
|
$list['schoolmate_year'] = User::where('is_schoolmate', 1)->where('created_at', 'like', '%' . date('Y') . '%')->count();
|
|
|
|
$list['schoolmate_year'] = User::where('is_schoolmate', 1)->where('created_at', 'like', '%' . date('Y') . '%')->count();
|
|
|
|
// 投后企业
|
|
|
|
// 投后企业
|
|
|
|
$list['company_invested_total'] = CourseSign::yhInvested();
|
|
|
|
$list['company_invested_total'] = CourseSign::yhInvestedTotal();
|
|
|
|
// 元和员工参与人数
|
|
|
|
// 元和员工参与人数
|
|
|
|
$list['company_join_total'] = CourseSign::companyJoin();
|
|
|
|
$list['company_join_total'] = CourseSign::companyJoin();
|
|
|
|
// 全市干部参与企业
|
|
|
|
// 全市干部参与企业
|
|
|
|
@ -142,7 +142,7 @@ class OtherController extends CommonController
|
|
|
|
$list['cover_stock_total'] = CourseSign::shangshi();
|
|
|
|
$list['cover_stock_total'] = CourseSign::shangshi();
|
|
|
|
// 本月课程
|
|
|
|
// 本月课程
|
|
|
|
$monthCourses = Calendar::with('course.teacher')
|
|
|
|
$monthCourses = Calendar::with('course.teacher')
|
|
|
|
->where('date', 'like', '%' . date('Y-m') . '%')
|
|
|
|
->where('start_time', 'like', '%' . date('Y-m') . '%')
|
|
|
|
->get();
|
|
|
|
->get();
|
|
|
|
// 课程统计
|
|
|
|
// 课程统计
|
|
|
|
$courseTypes = CourseType::where('is_chart', 1)->get();
|
|
|
|
$courseTypes = CourseType::where('is_chart', 1)->get();
|
|
|
|
@ -156,6 +156,8 @@ class OtherController extends CommonController
|
|
|
|
// 培养人数去重
|
|
|
|
// 培养人数去重
|
|
|
|
$courseType->course_signs_total = CourseSign::courseSignsTotalByUnique($start_date, $end_date, 1, $courses->pluck('id'), null);
|
|
|
|
$courseType->course_signs_total = CourseSign::courseSignsTotalByUnique($start_date, $end_date, 1, $courses->pluck('id'), null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 苏州区域数据
|
|
|
|
// 苏州区域数据
|
|
|
|
$suzhouArea = Company::where('company_city', '苏州市')->groupBy('company_area')
|
|
|
|
$suzhouArea = Company::where('company_city', '苏州市')->groupBy('company_area')
|
|
|
|
->whereNotNull('company_area')
|
|
|
|
->whereNotNull('company_area')
|
|
|
|
|