修改用户名

This commit is contained in:
yanwenwu
2020-02-10 13:04:27 +08:00
parent db9a9327e5
commit 81abf41e31

View File

@@ -55,7 +55,7 @@ class Users extends CatchModel
return $this->withoutField(['updated_at'], true) return $this->withoutField(['updated_at'], true)
->catchSearch() ->catchSearch()
->catchLeftJoin(Department::class, 'id', 'department_id', ['department_name']) ->catchLeftJoin(Department::class, 'id', 'department_id', ['department_name'])
->order('users.id', 'desc') ->order($this->getTable() . '.id', 'desc')
->paginate($search['limit'] ?? parent::LIMIT); ->paginate($search['limit'] ?? parent::LIMIT);
} }