修改排序
This commit is contained in:
parent
3357a4b95e
commit
a9dbb67a36
@ -158,7 +158,7 @@ class Order extends Model
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$result = $query->paginate($per_page, $fields, "page", $page);
|
$result = $query->orderBy('created_at')->paginate($per_page, $fields, "page", $page);
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$data['current_page'] = $result->currentPage();// 当前页码
|
$data['current_page'] = $result->currentPage();// 当前页码
|
||||||
@ -297,7 +297,8 @@ class Order extends Model
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$result = $query->paginate($per_page, $fields, "page", $page);
|
$result = $query->orderBy('created_at')
|
||||||
|
->paginate($per_page, $fields, "page", $page);
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$data['current_page'] = $result->currentPage();// 当前页码
|
$data['current_page'] = $result->currentPage();// 当前页码
|
||||||
@ -348,6 +349,6 @@ class Order extends Model
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
return $query->get($fields);
|
return $query->orderBy('created_at')->get($fields);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user