sugangqiang 7 月之前
父節點
當前提交
2ccda286c9
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      app/enterprise/controller/TalentTypeChange.php

+ 6 - 4
app/enterprise/controller/TalentTypeChange.php

@@ -138,10 +138,12 @@ class TalentTypeChange extends EnterpriseController {
             $response->msg = "不能重复提交审核";
             return $response;
         }
-        $condition_info = Db::table("new_talent_condition")->findOrEmpty($info["newIdentifyCondition"]);
-        if ($condition_info["bindFileTypes"]) {
-            $whr[] = ["id", "in", $condition_info["bindFileTypes"]];
-            $whr[] = ["must", "=", 1];
+        if ($info["type"] == \app\common\state\CommonConst::ENTERPRISE_NORMAL && in_array($info["newSource"], [3, 4, 5]) || $info["type"] == \app\common\state\CommonConst::ENTERPRISE_WJ || $info["type"] == \app\common\state\CommonConst::ENTERPRISE_GJ) {
+            $condition_info = Db::table("new_talent_condition")->findOrEmpty($info["newIdentifyCondition"]);
+            if ($condition_info["bindFileTypes"]) {
+                $whr[] = ["id", "in", $condition_info["bindFileTypes"]];
+                $whr[] = ["must", "=", 1];
+            }
         }
 
         $where = [];