浏览代码

修改部门驳回时短信提醒对象为审核企业对应的人才类型,而非审核人对应的人才类型

sugangqiang 1 年之前
父节点
当前提交
8608f01890
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      app/admin/controller/Talent.php

+ 3 - 2
app/admin/controller/Talent.php

@@ -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) {