You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
649 B
27 lines
649 B
7 months ago
|
<?php
|
||
|
declare (strict_types=1);
|
||
|
|
||
|
namespace app\store\model\user;
|
||
|
|
||
|
use app\common\model\user\UserInvoice as UserInvoiceModel;
|
||
|
use think\db\exception\DbException;
|
||
|
use think\Paginator;
|
||
|
|
||
|
class UserInvoice extends UserInvoiceModel
|
||
|
{
|
||
|
/**
|
||
|
* @notes:获取列表
|
||
|
* @param array $where
|
||
|
* @param int $listRows
|
||
|
* @return Paginator
|
||
|
* @throws DbException
|
||
|
* @author: wanghousheng
|
||
|
*/
|
||
|
public function getList(array $where = [], int $listRows = 10): Paginator
|
||
|
{
|
||
|
return $this->with(['user.avatar'])
|
||
|
->where($where)
|
||
|
->order($this->getPk(), 'desc')
|
||
|
->paginate($listRows);
|
||
|
}
|
||
|
}
|