mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 06:50:51 +00:00
优化物流公司
This commit is contained in:
parent
ebd33098f0
commit
447f837cc6
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user