|
|
|
@ -84,12 +84,12 @@ class Merchant extends BaseModel |
|
|
|
|
* @return \think\Paginator |
|
|
|
|
* @throws \think\db\exception\DbException |
|
|
|
|
*/ |
|
|
|
|
public function getList(array $param = [], int $pageSize = 15): \think\Paginator |
|
|
|
|
public function getList(array $param = [], int $pageSize = 15, $sortField): \think\Paginator |
|
|
|
|
{ |
|
|
|
|
$res = $this->with(['logoImage']) |
|
|
|
|
->where($this->getFilter($param)) |
|
|
|
|
->where('is_delete', '=', 0) |
|
|
|
|
->order(['sort' => 'asc', $this->getPk()]) |
|
|
|
|
->order(['sort' => 'desc', $sortField]) |
|
|
|
|
->paginate($pageSize); |
|
|
|
|
|
|
|
|
|
return $res; |
|
|
|
|