Răsfoiți Sursa

高教卫健排除部门过期驳回

sugangqiang 1 an în urmă
părinte
comite
965a46f40e
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      app/job/Talent.php

+ 2 - 2
app/job/Talent.php

@@ -50,8 +50,8 @@ class Talent {
                                 ->leftJoin("new_talent_condition tc", "tc.id=ti.talent_condition")
                                 ->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
                                 ->leftJoin("(select description,mainId,last_state,new_state,state,createTime from new_talent_checklog where md5(concat(createTime,mainId,`type`)) in (select md5(concat(max(createTime),mainId,`type`)) from `new_talent_checklog` where `type`=1 and `step` is null and active=1 and typeFileId is null group by mainId,`type`)) tl", "`tl`.`mainId`=ti.id")
-                                ->where($where)->field("ti.*,tc.companyIds,tc.companyWithFileType")->find();
-                if ($talent_info) {
+                                ->where($where)->field("ti.*,tc.companyIds,tc.companyWithFileType,e.type as enterpriseType")->find();
+                if ($talent_info && !in_array($talent_info["enterpriseType"], [CommonConst::ENTERPRISE_WJ, CommonConst::ENTERPRISE_GJ])) {
                     $weekDay = date("w"); //0周日,6周六
                     if ($weekDay == 6) {
                         $delay = 2 * 24 * 3600;