|
@@ -1502,7 +1502,7 @@ class RecruitController extends Controller
|
|
|
$special_select = ['recruit_appoint_expand_special.point_apply','recruit_appoint_expand_special.condition','recruit_appoint_expand_special.material'];
|
|
|
$select = array_merge($select,$special_select);
|
|
|
}
|
|
|
- if(in_array('detail',explode(',', $recruit->forms))){
|
|
|
+ if(in_array('detail',explode(',', $recruit->forms)) || in_array('internship',explode(',', $recruit->forms))){
|
|
|
$model->join('recruit_appoint_detail', 'recruit_appoint_detail.recruit_appoint_id', '=', 'recruit_appoint_info.id', 'left');
|
|
|
$detail_select = ['recruit_appoint_detail.train','recruit_appoint_detail.rewards_and_punishments','recruit_appoint_detail.introduce'];
|
|
|
$select = array_merge($select,$detail_select);
|
|
@@ -1515,25 +1515,29 @@ class RecruitController extends Controller
|
|
|
if(count($list)){
|
|
|
$spreadsheet = new Spreadsheet();
|
|
|
$sheet = $spreadsheet->getActiveSheet();
|
|
|
- $header = ['姓名','性别','生日','头像','民族','籍贯','报考岗位','政治面貌','入党时间','职称或职业资格','现工作单位及职务','户籍所在地','学历','学校','学位','所学专业','通信地址','身份证号码','联系电话','电子邮箱','紧急联系人','紧急联系电话'];
|
|
|
+ if(in_array('internship',explode(',', $recruit->forms))){
|
|
|
+ $header = ['姓名','性别','生日','头像','民族','籍贯','报名岗位','政治面貌','入党时间','户籍所在地','年级','就读院校','所学专业','是否接受调剂','通信地址','身份证号码','联系电话','电子邮箱','紧急联系人','紧急联系电话'];
|
|
|
+ }else{
|
|
|
+ $header = ['姓名','性别','生日','头像','民族','籍贯','报考岗位','政治面貌','入党时间','职称或职业资格','现工作单位及职务','户籍所在地','学历','学校','学位','所学专业','通信地址','身份证号码','联系电话','电子邮箱','紧急联系人','紧急联系电话'];
|
|
|
+ }
|
|
|
if(in_array('expand_special',explode(',', $recruit->forms))){
|
|
|
$special = ['是否申请加分','符合哪一项加分条件','加分佐证材料'];
|
|
|
$header = array_merge($header,$special);
|
|
|
}
|
|
|
- if(in_array('detail',explode(',', $recruit->forms))){
|
|
|
+ if(in_array('detail',explode(',', $recruit->forms)) || in_array('internship',explode(',', $recruit->forms))){
|
|
|
$detail = ['个人简历','培训学习经历','奖惩情况','个人介绍'];
|
|
|
}else{
|
|
|
$detail = ['个人简历'];
|
|
|
}
|
|
|
$header = array_merge($header,$detail);
|
|
|
$header[] = '家庭成员及其社会关系';
|
|
|
- if(in_array('identification',explode(',', $recruit->forms))){
|
|
|
+ if(in_array('identification',explode(',', $recruit->forms)) || in_array('internship',explode(',', $recruit->forms))){
|
|
|
$header[] = '身份证明';
|
|
|
}
|
|
|
- if(in_array('education_certification',explode(',', $recruit->forms))){
|
|
|
+ if(in_array('education_certification',explode(',', $recruit->forms)) || in_array('internship',explode(',', $recruit->forms))){
|
|
|
$header[] = '学历证明';
|
|
|
}
|
|
|
- if(in_array('other_certification',explode(',', $recruit->forms))){
|
|
|
+ if(in_array('other_certification',explode(',', $recruit->forms)) || in_array('internship',explode(',', $recruit->forms))){
|
|
|
$header[] = '其他证明';
|
|
|
}
|
|
|
$header[] = '审核状态';
|
|
@@ -1613,30 +1617,57 @@ class RecruitController extends Controller
|
|
|
$political_affiliation = '未知';
|
|
|
break;
|
|
|
}
|
|
|
- $item = [
|
|
|
- $v->realname,
|
|
|
- $v->sex == 0 ? '女' : '男',
|
|
|
- $v->birthday,
|
|
|
- "https://www.jucai.gov.cn" . $v->avatar,
|
|
|
- $v->nation,
|
|
|
- $v->native_place,
|
|
|
- $v->code . $v->name,
|
|
|
- $political_affiliation,
|
|
|
- $v->join_time,
|
|
|
- $v->titles,
|
|
|
- $v->work,
|
|
|
- $v->house_register,
|
|
|
- $v->education,
|
|
|
- $v->school,
|
|
|
- $v->degree,
|
|
|
- $v->pro,
|
|
|
- $v->address,
|
|
|
- '\''.$v->card,
|
|
|
- $v->mobile,
|
|
|
- $v->email,
|
|
|
- $v->concat_name,
|
|
|
- $v->concat_mobile
|
|
|
- ];
|
|
|
+ if(in_array('internship',explode(',', $recruit->forms))){
|
|
|
+ $header = ['姓名','性别','生日','头像','民族','籍贯','报名岗位','政治面貌','入党时间','户籍所在地','年级','就读院校','所学专业','是否接受调剂','通信地址','身份证号码','联系电话','电子邮箱','紧急联系人','紧急联系电话'];
|
|
|
+ $item = [
|
|
|
+ $v->realname,
|
|
|
+ $v->sex == 0 ? '女' : '男',
|
|
|
+ $v->birthday,
|
|
|
+ "https://www.jucai.gov.cn" . $v->avatar,
|
|
|
+ $v->nation,
|
|
|
+ $v->native_place,
|
|
|
+ $v->code . $v->name,
|
|
|
+ $political_affiliation,
|
|
|
+ $v->join_time,
|
|
|
+ $v->house_register,
|
|
|
+ $v->education,
|
|
|
+ $v->school,
|
|
|
+ $v->pro,
|
|
|
+ $v->adjust == 0 ? '否' : '是',
|
|
|
+ $v->address,
|
|
|
+ '\''.$v->card,
|
|
|
+ $v->mobile,
|
|
|
+ $v->email,
|
|
|
+ $v->concat_name,
|
|
|
+ $v->concat_mobile
|
|
|
+ ];
|
|
|
+ }else{
|
|
|
+ $item = [
|
|
|
+ $v->realname,
|
|
|
+ $v->sex == 0 ? '女' : '男',
|
|
|
+ $v->birthday,
|
|
|
+ "https://www.jucai.gov.cn" . $v->avatar,
|
|
|
+ $v->nation,
|
|
|
+ $v->native_place,
|
|
|
+ $v->code . $v->name,
|
|
|
+ $political_affiliation,
|
|
|
+ $v->join_time,
|
|
|
+ $v->titles,
|
|
|
+ $v->work,
|
|
|
+ $v->house_register,
|
|
|
+ $v->education,
|
|
|
+ $v->school,
|
|
|
+ $v->degree,
|
|
|
+ $v->pro,
|
|
|
+ $v->address,
|
|
|
+ '\''.$v->card,
|
|
|
+ $v->mobile,
|
|
|
+ $v->email,
|
|
|
+ $v->concat_name,
|
|
|
+ $v->concat_mobile
|
|
|
+ ];
|
|
|
+ }
|
|
|
+
|
|
|
if (in_array('expand_special', explode(',', $recruit->forms))) {
|
|
|
$material = json_decode($v->material, true);
|
|
|
$materials = [];
|
|
@@ -1652,7 +1683,7 @@ class RecruitController extends Controller
|
|
|
];
|
|
|
$item = array_merge($item, $special);
|
|
|
}
|
|
|
- if (in_array('detail', explode(',', $recruit->forms))) {
|
|
|
+ if (in_array('detail', explode(',', $recruit->forms)) || in_array('internship',explode(',', $recruit->forms))) {
|
|
|
$detail = [
|
|
|
$v->resume,
|
|
|
$v->train,
|
|
@@ -1713,7 +1744,7 @@ class RecruitController extends Controller
|
|
|
$familys[] = "称谓:" . $val['relation'] . ";姓名:".$val['realname'] . ';生日:'.$val['birthday'].';政治面貌:'.$political_affiliation.';职业:'.$val['work'];
|
|
|
}
|
|
|
$item[] = implode("\r\n", $familys);
|
|
|
- if (in_array('identification', explode(',', $recruit->forms))) {
|
|
|
+ if (in_array('identification', explode(',', $recruit->forms)) || in_array('internship',explode(',', $recruit->forms))) {
|
|
|
$identification = json_decode($v->identification, true);
|
|
|
$identifications = [];
|
|
|
foreach ($identification as $val){
|
|
@@ -1721,7 +1752,7 @@ class RecruitController extends Controller
|
|
|
}
|
|
|
array_push($item, implode("\r\n", $identifications));
|
|
|
}
|
|
|
- if (in_array('education_certification', explode(',', $recruit->forms))) {
|
|
|
+ if (in_array('education_certification', explode(',', $recruit->forms)) || in_array('internship',explode(',', $recruit->forms))) {
|
|
|
$education_certification = json_decode($v->education_certification, true);
|
|
|
$education_certifications = [];
|
|
|
foreach ($education_certification as $val){
|
|
@@ -1729,7 +1760,7 @@ class RecruitController extends Controller
|
|
|
}
|
|
|
array_push($item, implode("\r\n", $education_certifications));
|
|
|
}
|
|
|
- if (in_array('other_certification', explode(',', $recruit->forms))) {
|
|
|
+ if (in_array('other_certification', explode(',', $recruit->forms)) || in_array('internship',explode(',', $recruit->forms))) {
|
|
|
$other_certification = json_decode($v->other_certification, true);
|
|
|
$other_certifications = [];
|
|
|
if($other_certification){
|