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 = [];