orderModel->select($this->orderModel->getModel()->getTable() . '.*')-> where('create_time', '>', strtotime("2018-10-25"))->join('yz_order_deduction', function ($query) { $query->on('yz_order_deduction.order_id', 'yz_order.id') ->on('yz_order_deduction.amount', '>', 'yz_order.deduction_price') ->where('yz_order_deduction.amount', '>', 0)->where('code', 'point'); })->where('status', -1); return view('order.index', $this->getData())->render(); } /** * @return string * @throws \Throwable */ public function errorPoint() { $this->orderModel->whereIn('order_sn', explode(',','SN20181026141637GP,SN20181026141840Rz,SN20181026142743XX,SN20181026143007AT,SN20181026154345AT,SN20181026203108FQ,SN20181026203129KM,SN20181027135712Vj')); return view('order.index', $this->getData())->render(); } }