示例#1
0
 private void Handle(StoreOrderCreatedEvent evnt)
 {
     _walletId           = evnt.WalletId;
     _storeOwnerWalletId = evnt.StoreOwnerWalletId;
     _info = evnt.Info;
     _expressAddressInfo = evnt.ExpressAddressInfo;
     _orderGoodses       = evnt.OrderGoodses;
     _status             = StoreOrderStatus.Placed;
 }
示例#2
0
 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);
     }
 }
示例#3
0
 private void Handle(AgreeReturnEvent evnt)
 {
     _status = StoreOrderStatus.AgreeReturn;
 }
示例#4
0
 private void Handle(AgreeRefundedEvent evnt)
 {
     _status = StoreOrderStatus.Closed;
 }
示例#5
0
 private void Handle(ApplyReturnAndRefundedEvent evnt)
 {
     _refoundApplyInfo = evnt.RefoundApplyInfo;
     _status           = StoreOrderStatus.ReturnAndRefund;
 }
示例#6
0
 private void Handle(StoreOrderConfirmExpressedEvent evnt)
 {
     _status = StoreOrderStatus.Success;
 }
示例#7
0
 private void Handle(StoreOrderExpressedEvent evnt)
 {
     _status = StoreOrderStatus.Expressing;
 }