Quellcode durchsuchen

取消电路审核端的即时短信

sugangqiang vor 1 Jahr
Ursprung
Commit
5ffa41a33d
2 geänderte Dateien mit 13 neuen und 0 gelöschten Zeilen
  1. 1 0
      app/admin/controller/Talent.php
  2. 12 0
      app/enterprise/controller/TalentQuit.php

+ 1 - 0
app/admin/controller/Talent.php

@@ -1448,6 +1448,7 @@ class Talent extends AdminController {
         if ($type == 1) {
             $where = [];
             $where[] = ["id", "in", $userIds];
+            $where[] = ["type", "<>", CommonConst::ENTERPRISE_JC]; //集成电路审核端停短信
             $phones = User::where($where)->column("phone");
             $phones = array_unique(array_filter($phones));
         }

+ 12 - 0
app/enterprise/controller/TalentQuit.php

@@ -207,6 +207,18 @@ class TalentQuit extends EnterpriseController {
             return $responseObj;
         }
         $ti = \app\common\api\VerifyApi::getTalentInfoById($talentQuit["talentId"]);
+        if (!$ti) {
+            unset($where);
+            $where[] = ["card_number", "=", $idCard];
+            $where[] = ["checkState", "=", \app\common\api\TalentState::CERTIFICATED];
+            $where[] = ["active", "=", 2];
+            $where[] = ["delete", "=", 0];
+            $ti = \app\enterprise\model\Talent::where($where)->order("createTime desc")->find();
+        }
+        if (!$ti) {
+            $responseObj->msg = "未匹配到人才数据";
+            return $responseObj;
+        }
         if ($ti["active"] == 1) {
             $responseObj->msg = "您所申报的优秀人才处于在职状态,请先办理离职后再做申请!";
             return $responseObj;