From a8507690e34cb7d228bd728b1db24a5e777a527d Mon Sep 17 00:00:00 2001 From: Dai Date: Thu, 8 Aug 2024 15:42:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/admin/app/controller/StudentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/admin/app/controller/StudentController.php b/plugin/admin/app/controller/StudentController.php index ef7c920..469f634 100644 --- a/plugin/admin/app/controller/StudentController.php +++ b/plugin/admin/app/controller/StudentController.php @@ -177,7 +177,7 @@ class StudentController extends Crud // return parent::update($request); } - $parent = StudentParent::order('id asc')->field('id,parent_name,account')->select()->toArray(); + $parent = StudentParent::order('id desc')->field('id,parent_name,account')->select()->toArray(); return view('student/update', ['parent' => $parent]); }