|
@@ -1100,7 +1100,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 +1285,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 +1560,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) {
|