|
@@ -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"];
|