Commit 31073704 by 朱继来

调整售后明细

parent 065302d1
Showing with 4 additions and 3 deletions
......@@ -14,10 +14,11 @@ class OrderServiceItemsModel extends Model
// 获取领取列表
public function lists($request, $export='')
{
$page = $request->input('page', 1);
$limit = $request->input('limit', 10);
$page = $request->input('page', 1);
$limit = $request->input('limit', 10);
$service_id = $request->input('service_id', 0);
$list = $this->orderBy('id', 'desc')->paginate($limit, ['*'], 'page', $page)->toArray();
$list = $this->where('service_id', $service_id)->orderBy('id', 'desc')->paginate($limit, ['*'], 'page', $page)->toArray();
$data = $this->handle($list['data']);
return [0, '获取成功', $data, $list['total']];
......
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 sign in to comment