This commit is contained in:
root 2019-11-29 01:44:37 +08:00
parent 8b06636572
commit 5454b5d702

View File

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