|
@@ -115,7 +115,7 @@ class Talent {
|
|
|
}
|
|
|
break;
|
|
|
case 2:
|
|
|
- //超过批次提交时间驳回
|
|
|
+ //超过批次提交时间审核失败
|
|
|
$talentInfo = $data["talentInfo"];
|
|
|
$projectType = ProjectState::TALENT; //项目类型
|
|
|
$mainId = $talentInfo["id"]; //申报id
|
|
@@ -137,6 +137,33 @@ class Talent {
|
|
|
return true;
|
|
|
}
|
|
|
break;
|
|
|
+ case 3:
|
|
|
+ //撤销超时审核失败
|
|
|
+ $talentInfo = $data["talentInfo"];
|
|
|
+ $projectType = ProjectState::TALENT; //项目类型
|
|
|
+ $mainId = $talentInfo["id"]; //申报id
|
|
|
+ $checkState = TalentState::SCND_SAVE; //系统审核失败状态,初审不通过
|
|
|
+ $last_log = TalentLogApi::getLastLog($mainId, $projectType, 0, ["active", "=", 1]);
|
|
|
+ if ($talentInfo["checkState"] == TalentState::FST_VERIFY_FAIL && $last_log["state"] == TalentState::FST_VERIFY_FAIL && $last_log["createUser"] == "系统") {
|
|
|
+ $where = [];
|
|
|
+ $where[] = ["active", "=", 1];
|
|
|
+ $where[] = ["type", "=", $projectType];
|
|
|
+ $where[] = ["source", "=", $talentInfo["enterpriseType"]];
|
|
|
+ $where[] = ["batch", "=", $talentInfo["apply_year"]];
|
|
|
+ $whereRaw = sprintf("submitEndTime is null or submitEndTime<>'' or submitEndTime > '%s'", date("Y-m-d H:i:s"));
|
|
|
+ $batch = \app\common\model\Batch::where($where)->whereRaw($whereRaw)->find();
|
|
|
+ $extra_where[] = ["active", "=", 1];
|
|
|
+ $extra_where[] = ["createUser", "<>", "系统"];
|
|
|
+ $last_log = TalentLogApi::getLastLogEx($mainId, $projectType, 0, $extra_where);
|
|
|
+ if ($batch && $last_log) {
|
|
|
+ $save["id"] = $mainId;
|
|
|
+ $save["checkState"] = $checkState;
|
|
|
+ TalentModel::update($save);
|
|
|
+ TalentLogApi::write($projectType, $mainId, [$last_log["state"], $last_log["new_state"]], "该批次已经延长申报提交截止时间同时选择恢复被自动审核失败的申报,该申报已恢复至保存未提交状态", 1);
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ break;
|
|
|
}
|
|
|
return false;
|
|
|
}
|