后台订单倒序
This commit is contained in:
parent
7976bb7d3a
commit
37b4feff6c
|
|
@ -50,7 +50,7 @@ class OrderRepo
|
|||
*/
|
||||
private static function getListBuilder($customer = null): Builder
|
||||
{
|
||||
$builder = Order::query();
|
||||
$builder = Order::query()->orderByDesc('created_at');
|
||||
if ($customer) {
|
||||
$builder->where('customer_id', $customer->id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue