|
@@ -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;
|
|
|
}
|
|
|
}
|