private void Handle(StoreOrderCreatedEvent evnt) { _walletId = evnt.WalletId; _storeOwnerWalletId = evnt.StoreOwnerWalletId; _info = evnt.Info; _expressAddressInfo = evnt.ExpressAddressInfo; _orderGoodses = evnt.OrderGoodses; _status = StoreOrderStatus.Placed; }
public IEnumerable <StoreOrderDetails> UserStoreOrderDetails(Guid userId, StoreOrderStatus status) { using (var connection = GetConnection()) { var storeorders = connection.QueryList <StoreOrderDetails>(new { UserId = userId, Status = (int)status }, ConfigSettings.StoreOrderTable); foreach (var storeorder in storeorders) { storeorder.StoreOrderGoodses = connection.QueryList <StoreOrderGoods>(new { OrderId = storeorder.Id }, ConfigSettings.OrderGoodsTable).ToList(); } return(storeorders); } }
private void Handle(AgreeReturnEvent evnt) { _status = StoreOrderStatus.AgreeReturn; }
private void Handle(AgreeRefundedEvent evnt) { _status = StoreOrderStatus.Closed; }
private void Handle(ApplyReturnAndRefundedEvent evnt) { _refoundApplyInfo = evnt.RefoundApplyInfo; _status = StoreOrderStatus.ReturnAndRefund; }
private void Handle(StoreOrderConfirmExpressedEvent evnt) { _status = StoreOrderStatus.Success; }
private void Handle(StoreOrderExpressedEvent evnt) { _status = StoreOrderStatus.Expressing; }