This commit is contained in:
root 2019-11-29 01:45:26 +08:00
parent 5454b5d702
commit 75a5b93abd

View File

@ -20,6 +20,9 @@ class OrderController extends Controller
if ($request->input('is_commission')) { if ($request->input('is_commission')) {
$orderModel->where('invite_user_id', '!=', NULL); $orderModel->where('invite_user_id', '!=', NULL);
} }
if ($request->input('id')) {
$orderModel->where('id', $request->input('id'));
}
$total = $orderModel->count(); $total = $orderModel->count();
$res = $orderModel->forPage($current, $pageSize) $res = $orderModel->forPage($current, $pageSize)
->get(); ->get();