|
|
|
@ -290,7 +290,7 @@ class OtherController extends CommonController
|
|
|
|
$list['company_invested_year_total'] = CourseSign::companyInvestedYear($start_date, $end_date, $course_ids);
|
|
|
|
$list['company_invested_year_total'] = CourseSign::companyInvestedYear($start_date, $end_date, $course_ids);
|
|
|
|
|
|
|
|
|
|
|
|
// 元和员工参与人数
|
|
|
|
// 元和员工参与人数
|
|
|
|
// $list['company_join_total'] = CourseSign::companyJoin($start_date, $end_date, $course_ids);
|
|
|
|
// $list['company_join_total'] = CourseSign::companyJoin($start_date, $end_date, $course_ids);
|
|
|
|
// 全市干部参与企业
|
|
|
|
// 全市干部参与企业
|
|
|
|
$list['company_ganbu_total'] = CourseSign::ganbu($start_date, $end_date, $course_ids);
|
|
|
|
$list['company_ganbu_total'] = CourseSign::ganbu($start_date, $end_date, $course_ids);
|
|
|
|
// 苏州头部企业
|
|
|
|
// 苏州头部企业
|
|
|
|
@ -328,7 +328,7 @@ class OtherController extends CommonController
|
|
|
|
// 被投企业数
|
|
|
|
// 被投企业数
|
|
|
|
'yh_invested_total' => CourseSign::yhInvested($start_date, $end_date, [$course->id]),
|
|
|
|
'yh_invested_total' => CourseSign::yhInvested($start_date, $end_date, [$course->id]),
|
|
|
|
// 元禾同事数
|
|
|
|
// 元禾同事数
|
|
|
|
'company_join_total' => CourseSign::companyJoin($start_date, $end_date, [$course->id]),
|
|
|
|
'company_join_total' => CourseSign::companyJoin($start_date, $end_date, [$course->id], false, false, false),
|
|
|
|
];
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -557,7 +557,7 @@ class OtherController extends CommonController
|
|
|
|
'course_signs_pass' => CourseSign::courseSignsTotal($start_date, $end_date, 1, [$course->id], false, false),
|
|
|
|
'course_signs_pass' => CourseSign::courseSignsTotal($start_date, $end_date, 1, [$course->id], false, false),
|
|
|
|
'genban_total' => CourseSign::genban($start_date, $end_date, [$course->id]),
|
|
|
|
'genban_total' => CourseSign::genban($start_date, $end_date, [$course->id]),
|
|
|
|
'yh_invested_total' => CourseSign::yhInvested($start_date, $end_date, [$course->id]),
|
|
|
|
'yh_invested_total' => CourseSign::yhInvested($start_date, $end_date, [$course->id]),
|
|
|
|
'company_join_total' => CourseSign::companyJoin($start_date, $end_date, [$course->id]),
|
|
|
|
'company_join_total' => CourseSign::companyJoin($start_date, $end_date, [$course->id], false, false),
|
|
|
|
];
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1045,7 +1045,7 @@ class OtherController extends CommonController
|
|
|
|
|
|
|
|
|
|
|
|
case 'company_join_total':
|
|
|
|
case 'company_join_total':
|
|
|
|
// 元和员工参与人员明细 - 使用模型方法(现在返回的是用户列表)
|
|
|
|
// 元和员工参与人员明细 - 使用模型方法(现在返回的是用户列表)
|
|
|
|
$users = CourseSign::companyJoin($start_date, $end_date, $course_ids, true);
|
|
|
|
$users = CourseSign::companyJoin($start_date, $end_date, $course_ids, true, false);
|
|
|
|
// 加载关联关系
|
|
|
|
// 加载关联关系
|
|
|
|
$users->load('company');
|
|
|
|
$users->load('company');
|
|
|
|
foreach ($users as $user) {
|
|
|
|
foreach ($users as $user) {
|
|
|
|
|