public function getList(array $where, $page, $limit)
{
$query = $this->dao->search($where);
$total = $query->count($this->dao->getPk());
$data = $query->page($page, $limit)
->order($this->dao->getPk(), 'desc')
->with(['operatorInfo'])
->select();
return compact('total', 'data');
}
最佳答案
