where('is_invalid', '=', 0) ->where('is_settled', '=', 0) ->select(); if ($list->isEmpty()) { return $list; } // 整理订单信息 $with = ['goods' => ['refund']]; return OrderService::getOrderList($list, 'order_master', $with); } /** * 标记订单已失效(批量) * @param $ids * @return false|int */ public function setInvalid($ids) { return $this->isUpdate(true) ->save(['is_invalid' => 1], ['id' => ['in', $ids]]); } }