total
This commit is contained in:
parent
3a22a9dda3
commit
d5c186aa0b
@ -41,8 +41,6 @@ class CardService extends Service
|
||||
$page = Request::get('page', 1);
|
||||
$conditions['type'] = [0];
|
||||
|
||||
$total = $this->orderCardPartitionRepository->withConditions($conditions)->count();
|
||||
|
||||
$select = [
|
||||
'id',
|
||||
'sim',
|
||||
@ -62,6 +60,8 @@ class CardService extends Service
|
||||
|
||||
$cards = static::transformer($cards);
|
||||
|
||||
$total = $this->orderCardPartitionRepository->withConditions($conditions)->count();
|
||||
|
||||
return new LengthAwarePaginator($cards, $total, $limit);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user