|
@@ -82,7 +82,7 @@ class User extends UserModel
|
|
|
* @return \think\Paginator
|
|
* @return \think\Paginator
|
|
|
* @throws \think\db\exception\DbException
|
|
* @throws \think\db\exception\DbException
|
|
|
*/
|
|
*/
|
|
|
- public function getList(array $param = [])
|
|
|
|
|
|
|
+ public function getList(array $param = [], int $listRows=15)
|
|
|
{
|
|
{
|
|
|
// 检索查询条件
|
|
// 检索查询条件
|
|
|
$filter = $this->getFilter($param);
|
|
$filter = $this->getFilter($param);
|
|
@@ -91,7 +91,7 @@ class User extends UserModel
|
|
|
->where($filter)
|
|
->where($filter)
|
|
|
->where('is_delete', '=', '0')
|
|
->where('is_delete', '=', '0')
|
|
|
->order(['create_time' => 'desc'])
|
|
->order(['create_time' => 'desc'])
|
|
|
- ->paginate(15);
|
|
|
|
|
|
|
+ ->paginate($listRows);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|