|
@@ -57,7 +57,7 @@ class Talent extends AdminController {
|
|
|
TalentModel::update($data);
|
|
|
$counts++;
|
|
|
} else {
|
|
|
- //return json(["msg" => "不在审核范围"]);
|
|
|
+ return json(["msg" => "不在审核范围"]);
|
|
|
}
|
|
|
}
|
|
|
return json(["code" => 200, sprintf("%d个申请已审核失败", $counts)]);
|
|
@@ -379,28 +379,29 @@ class Talent extends AdminController {
|
|
|
return json(["msg" => "您的部门已经审核过了"]);
|
|
|
|
|
|
$over++;
|
|
|
- if ($dept_log["new_state"] == TalentState::DEPT_VERIFY_REJECT) {
|
|
|
+ if ($dept_log["new_state"] == TalentState::SCND_SUBMIT) {
|
|
|
$error++;
|
|
|
}
|
|
|
$logs = TalentLogApi::getListLogByTime($talent_info["id"], $talent_info["first_dept_check_time"]);
|
|
|
for ($i = 0; $i < count($logs); $i++) {
|
|
|
$over += $logs[$i]["active"] == 1 ? 1 : 0;
|
|
|
- if ($logs["new_state"] == TalentState::DEPT_VERIFY_REJECT) {
|
|
|
+ if ($logs["new_state"] == TalentState::SCND_SUBMIT) {
|
|
|
$error++;
|
|
|
}
|
|
|
}
|
|
|
if ($over == count($companys)) {
|
|
|
//全部已审核
|
|
|
- $checkState = TalentState::DEPT_VERIFY_REJECT;
|
|
|
+ $checkState = TalentState::SCND_SUBMIT;
|
|
|
+ $log_checkState = TalentState::DEPT_VERIFY_REJECT;
|
|
|
if ($error == 0) {
|
|
|
- $checkState = TalentState::DEPT_VERIFY_PASS;
|
|
|
+ $log_checkState = $checkState = TalentState::DEPT_VERIFY_PASS;
|
|
|
$data["highProcess"] = $nowProcess > $talent_info["highProcess"] ? $nowProcess : $talent_info["highProcess"];
|
|
|
}
|
|
|
$data["id"] = $talent_info["id"];
|
|
|
$data["checkState"] = $checkState;
|
|
|
$data["first_dept_check_time"] = null;
|
|
|
TalentModel::update($data);
|
|
|
- TalentLogApi::write(1, $talent_info["id"], $checkState, "部门审核结束", 1);
|
|
|
+ TalentLogApi::write(1, $talent_info["id"], [$log_checkState, $checkState], "部门审核结束", 1);
|
|
|
}
|
|
|
TalentLogApi::setActive($dept_log["id"], 1);
|
|
|
return json(["code" => 200, "msg" => "审核成功"]);
|