input('user_id', 0); $status = request()->input('status', -1); $type = request()->input('type', -1); $where = []; $where[] = ['user_id',$user_id]; if ($status!=-1) $where[] = ['status', $status]; if ($type!=-1) $where[] = ['type', $type]; $list = LeverTransaction::where($where)->orderBy('id', 'DESC')->paginate(); return $this->layuiData($list); } }