|
@@ -17,12 +17,13 @@ class ConfigPickupNodeRepository {
|
|
//列表
|
|
//列表
|
|
public function index($request)
|
|
public function index($request)
|
|
{
|
|
{
|
|
|
|
+ $perPage = isset($request['per_page']) ? $request['per_page'] : env('PER_PAGE');
|
|
$where = [];
|
|
$where = [];
|
|
if(isset($request['id'])){
|
|
if(isset($request['id'])){
|
|
$where[] = ['id', '=', $request['id']];
|
|
$where[] = ['id', '=', $request['id']];
|
|
}
|
|
}
|
|
|
|
|
|
- return $this->configPickupNode->where($where)->orderBy('id', 'asc')->paginate(20);
|
|
|
|
|
|
+ return $this->configPickupNode->where($where)->paginate($perPage);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|