checkRefundOrder(); $this->rollBackStockFlag = $this->orderInfo->cycle_id == $this->initTodayCycleId(); Db::transaction(function (){ $this->manageRefundOrder(); $this->manageOrderByRefund(); $this->manageSubCateringLog(); }); if ($this->rollBackStockFlag) { $this->sendStockMq($this->orderInfo->id,$this->orderInfo->status); } $this->eventDispatcher->dispatch(new RefundGoodOrderFinishEvent($this->orderInfo->id, $this->payInfo->id, $this->refundInfo->id)); } }