优化物流公司

This commit is contained in:
evoxwht 2023-06-28 17:47:29 +08:00
parent ebd33098f0
commit 447f837cc6

View File

@ -42,7 +42,7 @@ class ExpressDao extends BaseDao
*/
public function getExpressList(array $where, string $field, int $page, int $limit)
{
return $this->search($where)->field($field)->order('sort DESC,is_show DESC')
return $this->search($where)->field($field)->order('sort DESC,is_show DESC,id ASC')
->when($page > 0 && $limit > 0, function ($query) use ($page, $limit) {
$query->page($page, $limit);
})->select()->toArray();