update
This commit is contained in:
parent
21b191979f
commit
87da163086
@ -65,7 +65,7 @@ class ProjectPlanLists extends BaseAdminDataLists implements ListsSearchInterfac
|
||||
$admin = Admin::field('name')->where('id',$item['project_manage'])->findOrEmpty();
|
||||
$item['project_name'] = $project['name'];
|
||||
$item['project_code'] = $project['project_code'];
|
||||
$item['project_manager_name'] = $admin['name'];
|
||||
$item['project_manager_name'] = !$admin->isEmpty() ? $admin['name'] : '';
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
|
@ -121,7 +121,7 @@ class ProjectPlanLogic extends BaseLogic
|
||||
$admin = Admin::field('name')->where('id',$data['project_manage'])->findOrEmpty();
|
||||
$data['project_name'] = $project['name'];
|
||||
$data['project_code'] = $project['project_code'];
|
||||
$data['project_manager_name'] = $admin['name'];
|
||||
$data['project_manager_name'] = !$admin->isEmpty() ? $admin['name'] : '';
|
||||
return $data;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user