Commit 387562b3 by LiuJunYi

订单搜索分页BUG

parent 435c8b0d
...@@ -59,7 +59,7 @@ class Order extends AuthBase ...@@ -59,7 +59,7 @@ class Order extends AuthBase
//根据筛选条件查询 //根据筛选条件查询
$order_list = $this->order_model->with(['project' => function ($query) { $order_list = $this->order_model->with(['project' => function ($query) {
}])->where($condition)->order('created_at desc')->paginate(10, false, ['query' => ['status' => $status, 'start_time' => $start_time, 'end_time' => $end_time, 'type' => $type]])->each(function ($item) { }])->where($condition)->order('created_at desc')->paginate(10, false, ['query' => $_GET])->each(function ($item) {
$project = \app\common\model\Project::withTrashed()->find($item['pid']); $project = \app\common\model\Project::withTrashed()->find($item['pid']);
$item['project_poster'] = $project['poster']; $item['project_poster'] = $project['poster'];
$item['project_title'] = $project['title']; $item['project_title'] = $project['title'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment