Răsfoiți Sursa

修复部门复审错误

zmw 2 săptămâni în urmă
părinte
comite
e8d54f7e55
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      app/admin/controller/TalentTypeChange.php

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

@@ -171,7 +171,7 @@ class TalentTypeChange extends AdminController {
             if ($process == 2) {
                 $whrOtherDept[] = ["mainId", "=", $item["id"]];
                 $whrOtherDept[] = ["type", "=", ProjectState::LEVELCHANGE];
-                $otherDeptState = Db::table("un_talent_depcheckstate")->field("companyId,state")->where($whrOtherDept)->select();
+                $otherDeptState = Db::table("un_talent_depcheckstate as utd")->leftJoin("sys_company c", "c.id=utd.companyId")->field("utd.companyId,utd.state,c.name")->where($whrOtherDept)->select();
                 foreach ($otherDeptState as &$ds) {
                     $companyInfo = getCacheById("Company", $ds["companyId"]);
                     $ds["companyName"] = $companyInfo["name"];