|
@@ -96,7 +96,6 @@ class Api extends BaseController
|
|
|
$res['user_total'] = UserModel::count();
|
|
|
|
|
|
|
|
|
-
|
|
|
return json($res);
|
|
|
}
|
|
|
|
|
@@ -120,9 +119,9 @@ class Api extends BaseController
|
|
|
];
|
|
|
$recruit_age = [
|
|
|
'30岁及以下' => ['name' => '30岁及以下', 'count' => 0],
|
|
|
- '30到35岁' => ['name' => '30到35岁', 'count' => 0],
|
|
|
- '35到40岁' => ['name' => '35到40岁', 'count' => 0],
|
|
|
- '40岁以上' => ['name' => '40岁以上', 'count' => 0],
|
|
|
+ '30到35岁' => ['name' => '30到35岁', 'count' => 0],
|
|
|
+ '35到40岁' => ['name' => '35到40岁', 'count' => 0],
|
|
|
+ '40岁以上' => ['name' => '40岁以上', 'count' => 0],
|
|
|
];
|
|
|
$year = date('Y');
|
|
|
foreach ($recruit_apply_data as $v) {
|
|
@@ -156,4 +155,96 @@ class Api extends BaseController
|
|
|
|
|
|
return json($setting);
|
|
|
}
|
|
|
+
|
|
|
+ public function bi_talent()
|
|
|
+ {
|
|
|
+ $talent = SettingModel::getConfigValue(SettingModel::TALENT);
|
|
|
+ $industry = SettingModel::getConfigValue(SettingModel::INDUSTRY);
|
|
|
+
|
|
|
+ $data = [];
|
|
|
+
|
|
|
+ $data['talent_total'] = $talent['talent_total'];
|
|
|
+ $data['talent_problem_total'] = $talent['talent_problem_total'];
|
|
|
+ $data['talent_problem_deal'] = $talent['talent_problem_deal'];
|
|
|
+
|
|
|
+
|
|
|
+ $data['industry_institution_num'] = $industry['industry_institution_num'];
|
|
|
+ $data['industry_institution_turnover'] = $industry['industry_institution_turnover'];
|
|
|
+ $data['industry_institution_employee'] = $industry['industry_institution_employee'];
|
|
|
+
|
|
|
+
|
|
|
+ $data['industry_enterprise_num'] = $industry['industry_enterprise_num'];
|
|
|
+ $data['industry_service_num'] = $industry['industry_service_num'];
|
|
|
+
|
|
|
+
|
|
|
+ $data['talent_problem_cate'] = [
|
|
|
+ ['name' => '人才津贴', 'count' => $talent['talent_problem_talent']],
|
|
|
+ ['name' => '人才认定', 'count' => $talent['talent_problem_determine']],
|
|
|
+ ['name' => '交通补贴', 'count' => $talent['talent_problem_traffic']],
|
|
|
+ ['name' => '购房补贴', 'count' => $talent['talent_problem_house']],
|
|
|
+ ['name' => '人才活动', 'count' => $talent['talent_problem_activity']],
|
|
|
+ ['name' => '子女就学', 'count' => $talent['talent_problem_children']],
|
|
|
+ ['name' => '配偶就业', 'count' => $talent['talent_problem_spouse']],
|
|
|
+ ['name' => '其他问题', 'count' => $talent['talent_problem_other']],
|
|
|
+ ];
|
|
|
+
|
|
|
+
|
|
|
+ $data['talent_level'] = [
|
|
|
+ ['name' => '第一层次', 'count' => $talent['talent_level_1']],
|
|
|
+ ['name' => '第二层次', 'count' => $talent['talent_level_2']],
|
|
|
+ ['name' => '第三层次', 'count' => $talent['talent_level_3']],
|
|
|
+ ['name' => '第四层次', 'count' => $talent['talent_level_4']],
|
|
|
+ ['name' => '第五层次', 'count' => $talent['talent_level_5']],
|
|
|
+ ['name' => '第六层次', 'count' => $talent['talent_level_6']],
|
|
|
+ ['name' => '第七层次', 'count' => $talent['talent_level_7']],
|
|
|
+ ];
|
|
|
+
|
|
|
+
|
|
|
+ $data['industry_institution_type'] = [
|
|
|
+ ['name' => '软件技术', 'count' => $industry['industry_institution_type_software']],
|
|
|
+ ['name' => '管理咨询', 'count' => $industry['industry_institution_type_consult']],
|
|
|
+ ['name' => '培训教育', 'count' => $industry['industry_institution_type_train']],
|
|
|
+ ['name' => '灵活用工', 'count' => $industry['industry_institution_type_flexible']],
|
|
|
+ ['name' => '派遣外包', 'count' => $industry['industry_institution_type_dispatch']],
|
|
|
+ ['name' => '人才猎聘', 'count' => $industry['industry_institution_type_talent']],
|
|
|
+ ['name' => '测评背调', 'count' => $industry['industry_institution_type_evaluation']],
|
|
|
+ ['name' => '劳务输出', 'count' => $industry['industry_institution_type_labor']],
|
|
|
+ ['name' => '商业保险', 'count' => $industry['industry_institution_type_insurance']],
|
|
|
+ ['name' => '其他', 'count' => $industry['industry_institution_type_other']],
|
|
|
+ ];
|
|
|
+
|
|
|
+
|
|
|
+ $data['talent_industry'] = [
|
|
|
+ ['name' => '贸易/进出口', 'count' => $talent['talent_industry_trade']],
|
|
|
+ ['name' => '消费品(食/饮/烟酒)', 'count' => $talent['talent_industry_goods']],
|
|
|
+ ['name' => '服装/纺织/皮革', 'count' => $talent['talent_industry_clothing']],
|
|
|
+ ['name' => '制药/生物工程', 'count' => $talent['talent_industry_drug']],
|
|
|
+ ['name' => '医疗设备/器械', 'count' => $talent['talent_industry_medical']],
|
|
|
+ ['name' => '酒店/旅游', 'count' => $talent['talent_industry_hotel']],
|
|
|
+ ['name' => '交通/运输/物流', 'count' => $talent['talent_industry_traffic']],
|
|
|
+ ['name' => '其他', 'count' => $talent['talent_industry_other']],
|
|
|
+ ];
|
|
|
+ $data['talent_age'] = [
|
|
|
+ ['name' => '30岁以下', 'count' => $talent['talent_age_1']],
|
|
|
+ ['name' => '30-39岁', 'count' => $talent['talent_age_2']],
|
|
|
+ ['name' => '40-49岁', 'count' => $talent['talent_age_3']],
|
|
|
+ ['name' => '50岁以上', 'count' => $talent['talent_age_4']],
|
|
|
+ ];
|
|
|
+ $data['talent_education'] = [
|
|
|
+ ['name' => '硕士', 'count' => $talent['talent_education_1']],
|
|
|
+ ['name' => '博士', 'count' => $talent['talent_education_2']],
|
|
|
+ ['name' => '博士后', 'count' => $talent['talent_education_3']],
|
|
|
+ ];
|
|
|
+
|
|
|
+
|
|
|
+ $data['talent_channel'] = [
|
|
|
+ ['name' => '来电咨询', 'count' => $talent['talent_channel_call']],
|
|
|
+ ['name' => '微信咨询', 'count' => $talent['talent_channel_wechat']],
|
|
|
+ ['name' => '上门拜访', 'count' => $talent['talent_channel_door']],
|
|
|
+ ['name' => '现场咨询', 'count' => $talent['talent_channel_scene']],
|
|
|
+ ['name' => '其他渠道', 'count' => $talent['talent_channel_other']],
|
|
|
+ ];
|
|
|
+
|
|
|
+ return json($data);
|
|
|
+ }
|
|
|
}
|