diff --git a/application/admin/controller/User.php b/application/admin/controller/User.php index 87f797ad8..3b6ab99a6 100644 --- a/application/admin/controller/User.php +++ b/application/admin/controller/User.php @@ -45,8 +45,8 @@ class User extends Controller public function index() { $this->title = '系统用户管理'; - $where = ['is_deleted' => '0']; - $this->_query($this->table)->like('username,phone,mail')->dateBetween('login_at')->equal('status')->where($where)->page(); + $query = $this->_query($this->table)->like('username,phone,mail')->dateBetween('login_at')->equal('status'); + $query->where(['is_deleted' => '0'])->order('id desc')->page(); } /** diff --git a/application/admin/view/auth/index_search.html b/application/admin/view/auth/index_search.html index c6aacc422..84a9c232c 100644 --- a/application/admin/view/auth/index_search.html +++ b/application/admin/view/auth/index_search.html @@ -17,7 +17,7 @@