|
@@ -307,17 +307,33 @@ class Talent extends AdminController {
|
|
|
* @auth {{/talentInfo/gotoIndex/4}}
|
|
|
*/
|
|
|
public function pre_list() {
|
|
|
- if ($this->user["type"] == 1) {
|
|
|
- $message = [
|
|
|
- "typeName" => "晋江市现代产业体系人才认定", "address" => "聚才网/人才晋江微信公众号", "dep" => "中共晋江市委人才办、晋江市纪委监委驻市人力资源和社会保障局纪检监察组或晋江市公共就业和人才服务中心",
|
|
|
- "phone" => "0595-85633128", "email" => "jjrc85661234@163.com"
|
|
|
- ];
|
|
|
- } else {
|
|
|
- $message = [
|
|
|
- "typeName" => "晋江市集成电路产业优秀人才认定", "address" => "福建(晋江)集成电路产业园官方网站及微信公众号", "dep" => "集成电路产业园区",
|
|
|
- "phone" => "0595-82250007、0595-82250001", "email" => "jjjcdr@163.com"
|
|
|
- ];
|
|
|
+ switch ($this->user["type"]){
|
|
|
+ case 1:
|
|
|
+ $message = [
|
|
|
+ "typeName" => "晋江市现代产业体系人才认定", "address" => "聚才网/人才晋江微信公众号", "dep" => "中共晋江市委人才办、晋江市纪委监委驻市人力资源和社会保障局纪检监察组或晋江市公共就业和人才服务中心",
|
|
|
+ "phone" => "0595-85633128", "email" => "jjrc85661234@163.com"
|
|
|
+ ];
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ $message = [
|
|
|
+ "typeName" => "晋江市集成电路产业优秀人才认定", "address" => "福建(晋江)集成电路产业园官方网站及微信公众号", "dep" => "集成电路产业园区",
|
|
|
+ "phone" => "0595-82250007、0595-82250001", "email" => "jjjcdr@163.com"
|
|
|
+ ];
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ $message = [
|
|
|
+ "typeName" => "晋江市医疗卫生人才认定", "address" => "“健康晋江”微信公众号", "dep" => "晋江市卫生健康局",
|
|
|
+ "phone" => "0595-85636159", "email" => "jjswjjrsk@163.com"
|
|
|
+ ];
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ $message = [
|
|
|
+ "typeName" => "晋江市高等教育人才认定", "address" => "“泉州市高教发展中心”微信公众号", "dep" => "泉州市高教发展中心",
|
|
|
+ "phone" => "0595-85002588", "email" => "jjsgjrc@126.com"
|
|
|
+ ];
|
|
|
+ break;
|
|
|
}
|
|
|
+
|
|
|
$commonAssigns = $this->getCommonAssigns();
|
|
|
$assigns = ["message" => $message];
|
|
|
$newAssigns = array_merge($assigns, $commonAssigns);
|
|
@@ -465,7 +481,21 @@ class Talent extends AdminController {
|
|
|
}
|
|
|
}
|
|
|
if ($rows) {
|
|
|
- $filename = "现代产业体系人才公示预览导出";
|
|
|
+ switch ($this->user["type"]){
|
|
|
+ case 1:
|
|
|
+ $filename = "现代产业体系人才公示预览导出";
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ $filename = "晋江市集成电路产业优秀人才公示预览导出";
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ $filename = "晋江市医疗卫生人才公示预览导出";
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ $filename = "晋江市高等教育人才公示预览导出";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
export($columns, $rows, $filename);
|
|
|
exit();
|
|
|
}
|
|
@@ -500,7 +530,20 @@ class Talent extends AdminController {
|
|
|
$i++;
|
|
|
}
|
|
|
if ($rows) {
|
|
|
- $filename = "现代产业体系人才公示导出";
|
|
|
+ switch ($this->user["type"]){
|
|
|
+ case 1:
|
|
|
+ $filename = "现代产业体系人才公示预览导出";
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ $filename = "晋江市集成电路产业优秀人才公示预览导出";
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ $filename = "晋江市医疗卫生人才公示预览导出";
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ $filename = "晋江市高等教育人才公示预览导出";
|
|
|
+ break;
|
|
|
+ }
|
|
|
export($columns, $rows, $filename);
|
|
|
exit();
|
|
|
}
|
|
@@ -662,7 +705,20 @@ class Talent extends AdminController {
|
|
|
}
|
|
|
}
|
|
|
$columns = ["序号", "批次", "姓名", "性别", "工作单位", "本人具备的认定条件", "认定人才层次", "审核状态", "备注"];
|
|
|
- $filename = "现代产业体系人才" . date("Ym") . "公布预览名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
|
|
|
+ switch ($this->user["type"]){
|
|
|
+ case 1:
|
|
|
+ $filename = "现代产业体系人才" . date("Ym") . "公布预览名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ $filename = "晋江市集成电路产业优秀人才" . date("Ym") . "公布预览名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ $filename = "晋江市医疗卫生人才" . date("Ym") . "公布预览名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ $filename = "晋江市高等教育人才" . date("Ym") . "公布预览名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
|
|
|
+ break;
|
|
|
+ }
|
|
|
if ($rows) {
|
|
|
export($columns, $rows, $filename);
|
|
|
exit();
|
|
@@ -696,8 +752,22 @@ class Talent extends AdminController {
|
|
|
$rows[] = $row;
|
|
|
$i++;
|
|
|
}
|
|
|
+
|
|
|
$columns = ["序号", "批次", "姓名", "性别", "工作单位", "本人具备的认定条件", "认定人才层次", "审核状态", "备注"];
|
|
|
- $filename = "现代产业体系人才" . date("Ym") . "公布名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
|
|
|
+ switch ($this->user["type"]){
|
|
|
+ case 1:
|
|
|
+ $filename = "现代产业体系人才" . date("Ym") . "公布名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ $filename = "晋江市集成电路产业优秀人才" . date("Ym") . "公布名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ $filename = "晋江市医疗卫生人才" . date("Ym") . "公布名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ $filename = "晋江市高等教育人才" . date("Ym") . "公布名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
|
|
|
+ break;
|
|
|
+ }
|
|
|
if ($rows) {
|
|
|
export($columns, $rows, $filename);
|
|
|
exit();
|
|
@@ -971,15 +1041,15 @@ class Talent extends AdminController {
|
|
|
if ($talent_info["isImport"] && $talent_info["isMatchZhiren"]) {
|
|
|
$data["pass_dept_check"] = 1;
|
|
|
}
|
|
|
- if (in_array($ep["type"], [CommonConst::ENTERPRISE_GJ, CommonConst::ENTERPRISE_WJ]) && $talent_info["is_fujian_talent"] == 1 && $talent_info["is_jinjiang_talent"] == 1) {
|
|
|
- $data["pass_dept_check"] = 1;
|
|
|
- }
|
|
|
+ /* if (in_array($ep["type"], [CommonConst::ENTERPRISE_GJ, CommonConst::ENTERPRISE_WJ]) && $talent_info["is_fujian_talent"] == 1 && $talent_info["is_jinjiang_talent"] == 1) {
|
|
|
+ $data["pass_dept_check"] = 1;
|
|
|
+ } */
|
|
|
} else if ($params["checkState"] == 4) {
|
|
|
- if ($talent_info["highProcess"] < 3)
|
|
|
+ if ($talent_info["highProcess"] < 3 && $ep["type"] != CommonConst::ENTERPRISE_GJ)
|
|
|
return json(["msg" => "只有曾经达到过部门并审,初审时才可以选择直接跳过部门并审阶段"]);
|
|
|
//审核成功,并设置越过部门并审。附加条件:最高进度曾经通过初审3,上级驳回后重新初审的
|
|
|
$log_checkState = $checkState = TalentState::FST_VERIFY_PASS; //初审成功
|
|
|
- if ($talent_info["highProcess"] >= 3) {
|
|
|
+ if ($talent_info["highProcess"] >= 3 || $ep["type"] == CommonConst::ENTERPRISE_GJ) {
|
|
|
$data["pass_dept_check"] = 1;
|
|
|
}
|
|
|
} else if ($params["checkState"] == 5) {
|
|
@@ -1100,7 +1170,7 @@ class Talent extends AdminController {
|
|
|
|
|
|
$where = [];
|
|
|
$where[] = ["status", "=", 1];
|
|
|
- $where[] = ["type", "=", $this->user["type"]];
|
|
|
+ //$where[] = ["type", "=", $this->user["type"]];
|
|
|
$where[] = ["companyId", "in", $unpass_companyIds];
|
|
|
$where[] = ["roleid", "<>", 1];
|
|
|
$regstr = ",(" . implode("|", $roleIds) . "),";
|
|
@@ -1285,7 +1355,7 @@ class Talent extends AdminController {
|
|
|
|
|
|
$where = [];
|
|
|
$where[] = ["status", "=", 1];
|
|
|
- $where[] = ["type", "=", $this->user["type"]];
|
|
|
+ $where[] = ["type", "=", $talent_info["enterprise_type"]];
|
|
|
$where[] = ["roleid", "<>", 1];
|
|
|
$regstr = ",(" . implode("|", $roleIds) . "),";
|
|
|
$whereRaw = "concat(',',roleid,',') REGEXP '$regstr'";
|
|
@@ -1560,6 +1630,7 @@ class Talent extends AdminController {
|
|
|
if ($ep["type"] != $this->user["type"] && in_array($checkState, [TalentState::FST_SUBMIT, TalentState::BASE_VERIFY_PASS, TalentState::SCND_SUBMIT, TalentState::DEPT_VERIFY_PASS])) {
|
|
|
return json(["msg" => "不能审核的人才类型"]);
|
|
|
}
|
|
|
+ $talent_info["enterprise_type"] = $ep["type"];
|
|
|
if ($checkState == TalentState::FST_SUBMIT) {
|
|
|
return $this->baseSubmitCheck($talent_info);
|
|
|
} else if ($checkState == TalentState::BASE_VERIFY_PASS) {
|