From e2d72f93f03e161d9d392d93184fe5804403763b Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Wed, 10 Dec 2025 16:19:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/OtherController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/OtherController.php b/app/Http/Controllers/Admin/OtherController.php index 37b4c43..aa86ac7 100644 --- a/app/Http/Controllers/Admin/OtherController.php +++ b/app/Http/Controllers/Admin/OtherController.php @@ -32,7 +32,7 @@ class OtherController extends CommonController { $all = \request()->all(); $show_all = request('show_all', 0); - $list = Admin::where(function ($query) use ($all, $show_all) { + $list = Admin::with('department')->where(function ($query) use ($all, $show_all) { if (isset($all['department_id'])) { $query->where('department_id', $all['department_id']); }