|
@@ -1144,7 +1144,8 @@ class Talent extends AdminController {
|
|
|
$companys = VerifyApi::getNewReCheckCompanyIds($re_check_companys, $companys, $pass_companyIds);
|
|
|
$pass_companyIds = TalentLogApi::getPassDepts($talent_info["id"], $talent_info["first_dept_check_time"]); //重审单位中已经通过的单位
|
|
|
}
|
|
|
-
|
|
|
+ $no_valid_companyIds = array_diff($pass_companyIds, $companys);
|
|
|
+ $pass_companyIds = array_diff($pass_companyIds, $no_valid_companyIds);
|
|
|
$over = $pass_companyIds ? count($pass_companyIds) : 0; //完成度,如果重审之前已有通过审核的部门,不用再审,直接按通过算
|
|
|
$error = 0; //失败数
|
|
|
$nowProcess = 4;
|
|
@@ -1155,7 +1156,7 @@ class Talent extends AdminController {
|
|
|
}
|
|
|
$logs = TalentLogApi::getListLogByTime($talent_info["id"], $talent_info["first_dept_check_time"]);
|
|
|
for ($i = 0; $i < count($logs); $i++) {
|
|
|
- if (!in_array($logs[$i]["companyId"], $pass_companyIds)) {
|
|
|
+ if (!in_array($logs[$i]["companyId"], $pass_companyIds) && in_array($logs[$i]["companyId"], $companys)) {
|
|
|
$over += $logs[$i]["active"] == 1 ? 1 : 0;
|
|
|
if ($logs[$i]["new_state"] == TalentState::SCND_SUBMIT) {
|
|
|
$error++;
|
|
@@ -1169,6 +1170,21 @@ class Talent extends AdminController {
|
|
|
if ($error == 0) {
|
|
|
$log_checkState = $checkState = TalentState::DEPT_VERIFY_PASS;
|
|
|
$data["highProcess"] = $nowProcess > $talent_info["highProcess"] ? $nowProcess : $talent_info["highProcess"];
|
|
|
+ $data["modify_files"] = null;
|
|
|
+ }
|
|
|
+ if ($log_checkState == TalentState::DEPT_VERIFY_REJECT) {
|
|
|
+ $talent_condition = TalentConditionApi::getOne($talent_info["talent_condition"]);
|
|
|
+ $cwfts = explode(";", $talent_condition["companyWithFileType"]);
|
|
|
+ $fileTypes = [];
|
|
|
+ foreach ($cwfts as $cwft) {
|
|
|
+ $_company_setting = explode(":", $cwft);
|
|
|
+ $_fileTypes = explode(",", $_company_setting[1]);
|
|
|
+ $fileTypes = array_merge($fileTypes, $_fileTypes);
|
|
|
+ }
|
|
|
+ $modify_files = explode(",", $talent_info["modify_files"]);
|
|
|
+ $removeFileTypes = array_diff($modify_files, $fileTypes);
|
|
|
+ $newModifyFiles = array_diff($modify_files, $removeFileTypes);
|
|
|
+ $data["modify_files"] = implode(",", $newModifyFiles);
|
|
|
}
|
|
|
$data["id"] = $talent_info["id"];
|
|
|
$data["checkState"] = $checkState;
|