From 81abf41e3177dc7ac2ec11c4dad3d6b4966242be Mon Sep 17 00:00:00 2001 From: yanwenwu Date: Mon, 10 Feb 2020 13:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/user/model/Users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catch/user/model/Users.php b/catch/user/model/Users.php index 1be7e98..8105c70 100644 --- a/catch/user/model/Users.php +++ b/catch/user/model/Users.php @@ -55,7 +55,7 @@ class Users extends CatchModel return $this->withoutField(['updated_at'], true) ->catchSearch() ->catchLeftJoin(Department::class, 'id', 'department_id', ['department_name']) - ->order('users.id', 'desc') + ->order($this->getTable() . '.id', 'desc') ->paginate($search['limit'] ?? parent::LIMIT); }