|
|
|
@ -145,8 +145,8 @@ class OtherController extends CommonController
|
|
|
|
// 高层次人才
|
|
|
|
// 高层次人才
|
|
|
|
// 获取人才培训课程
|
|
|
|
// 获取人才培训课程
|
|
|
|
$list['cover_rencai_total'] = CourseSign::rencai();
|
|
|
|
$list['cover_rencai_total'] = CourseSign::rencai();
|
|
|
|
// 重点上市公司
|
|
|
|
// 苏州重点上市公司
|
|
|
|
$list['cover_stock_total'] = CourseSign::shangshi();
|
|
|
|
$list['cover_stock_total'] = CourseSign::suzhouStock();
|
|
|
|
// 培养人次1
|
|
|
|
// 培养人次1
|
|
|
|
$start_date = CourseType::START_DATE;
|
|
|
|
$start_date = CourseType::START_DATE;
|
|
|
|
// 默认结束日期一年以后
|
|
|
|
// 默认结束日期一年以后
|
|
|
|
@ -1687,13 +1687,13 @@ class OtherController extends CommonController
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case 'cover_stock_total':
|
|
|
|
case 'cover_stock_total':
|
|
|
|
// 重点上市公司明细 - 使用模型方法
|
|
|
|
// 苏州重点上市公司明细 - 使用模型方法
|
|
|
|
$companiesData = CourseSign::shangshi($start_date, $end_date, $course_ids, true);
|
|
|
|
$companiesData = CourseSign::suzhouStock($start_date, $end_date, $course_ids, true);
|
|
|
|
foreach ($companiesData as $item) {
|
|
|
|
foreach ($companiesData as $item) {
|
|
|
|
$company = $item['company'];
|
|
|
|
$company = $item['company'];
|
|
|
|
$users = $item['users'] ?? [];
|
|
|
|
$users = $item['users'] ?? [];
|
|
|
|
|
|
|
|
|
|
|
|
// 公司基本信息(只在第一行使用)
|
|
|
|
// 公司基本信息
|
|
|
|
$companyInfo = [
|
|
|
|
$companyInfo = [
|
|
|
|
'company_name' => $company->company_name,
|
|
|
|
'company_name' => $company->company_name,
|
|
|
|
'company_legal_representative' => $company->company_legal_representative ?? '',
|
|
|
|
'company_legal_representative' => $company->company_legal_representative ?? '',
|
|
|
|
@ -1717,8 +1717,7 @@ class OtherController extends CommonController
|
|
|
|
'course_count' => 0,
|
|
|
|
'course_count' => 0,
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 每个学员一行
|
|
|
|
// 每个学员一行,每行都显示完整的公司信息
|
|
|
|
$isFirstRow = true;
|
|
|
|
|
|
|
|
foreach ($users as $userInfo) {
|
|
|
|
foreach ($users as $userInfo) {
|
|
|
|
$user = $userInfo['user'] ?? null;
|
|
|
|
$user = $userInfo['user'] ?? null;
|
|
|
|
$courses = $userInfo['courses'] ?? [];
|
|
|
|
$courses = $userInfo['courses'] ?? [];
|
|
|
|
@ -1739,35 +1738,13 @@ class OtherController extends CommonController
|
|
|
|
$courseCount = count($courses);
|
|
|
|
$courseCount = count($courses);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($isFirstRow) {
|
|
|
|
// 每个学员一行,每行都显示完整的公司信息
|
|
|
|
// 第一行:显示公司信息
|
|
|
|
$data[] = array_merge($companyInfo, [
|
|
|
|
$data[] = array_merge($companyInfo, [
|
|
|
|
'user_name' => $userInfo['user_name'] ?? ($user->name ?? ''),
|
|
|
|
'user_name' => $userInfo['user_name'] ?? ($user->name ?? ''),
|
|
|
|
'course_names' => $courseNames,
|
|
|
|
'course_names' => $courseNames,
|
|
|
|
'course_types' => $courseTypes,
|
|
|
|
'course_types' => $courseTypes,
|
|
|
|
'course_count' => $courseCount,
|
|
|
|
'course_count' => $courseCount,
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
$isFirstRow = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// 后续行:公司信息为空
|
|
|
|
|
|
|
|
$data[] = [
|
|
|
|
|
|
|
|
'company_name' => '',
|
|
|
|
|
|
|
|
'company_legal_representative' => '',
|
|
|
|
|
|
|
|
'company_date' => '',
|
|
|
|
|
|
|
|
'stock_date' => '',
|
|
|
|
|
|
|
|
'company_address' => '',
|
|
|
|
|
|
|
|
'company_city' => '',
|
|
|
|
|
|
|
|
'company_area' => '',
|
|
|
|
|
|
|
|
'company_tag' => '',
|
|
|
|
|
|
|
|
'business_scope' => '',
|
|
|
|
|
|
|
|
'contact_phone' => '',
|
|
|
|
|
|
|
|
'contact_mail' => '',
|
|
|
|
|
|
|
|
'user_name' => $userInfo['user_name'] ?? ($user->name ?? ''),
|
|
|
|
|
|
|
|
'course_names' => $courseNames,
|
|
|
|
|
|
|
|
'course_types' => $courseTypes,
|
|
|
|
|
|
|
|
'course_count' => $courseCount,
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1788,7 +1765,7 @@ class OtherController extends CommonController
|
|
|
|
'course_types' => '课程体系',
|
|
|
|
'course_types' => '课程体系',
|
|
|
|
'course_count' => '报名课程数',
|
|
|
|
'course_count' => '报名课程数',
|
|
|
|
];
|
|
|
|
];
|
|
|
|
$filename = '重点上市公司明细';
|
|
|
|
$filename = '苏州重点上市公司明细';
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
|