This commit is contained in:
weiz 2024-01-27 16:41:20 +08:00
parent 21b191979f
commit 87da163086
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

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