2 Revize fbfd04a608 ... 5a58d157cb

Autor SHA1 Zpráva Datum
  zmw 5a58d157cb 修复部门复审错误 před 2 týdny
  zmw 906d45c66d 修复部门复审错误 před 2 týdny
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/admin/controller/TalentTypeChange.php

+ 2 - 2
app/admin/controller/TalentTypeChange.php

@@ -169,13 +169,13 @@ class TalentTypeChange extends AdminController {
                 }
             }
             if ($process == 2) {
-                $whrOtherDept[] = ["main", "=", $item["id"]];
+                $whrOtherDept[] = ["mainId", "=", $item["id"]];
                 $whrOtherDept[] = ["type", "=", ProjectState::LEVELCHANGE];
                 $otherDeptState = Db::table("un_talent_depcheckstate")->field("companyId,state")->where($whrOtherDept)->select();
                 foreach ($otherDeptState as &$ds) {
                     $companyInfo = getCacheById("Company", $ds["companyId"]);
                     $ds["companyName"] = $companyInfo["name"];
-                }unset($otherDeptState);
+                }
                 $list[$key]["otherDeptState"] = $otherDeptState;
             }
         }