//代理分红
 public Task <AsyncTaskResult> HandleAsync(NewBalanceLogEvent evnt)
 {
     return(_commandService.SendAsync(CreatedNotificationCommand(
                                          evnt.AggregateRootId,
                                          "代理已分红",
                                          NotificationType.PartnerBalance,
                                          evnt.AggregateRootId,
                                          true)));
 }
示例#2
0
 public Task <AsyncTaskResult> HandleAsync(NewBalanceLogEvent evnt)
 {
     return(TryInsertRecordAsync(connection =>
     {
         var info = evnt.LogInfo;
         return connection.InsertAsync(new
         {
             Id = GuidUtil.NewSequentialId(),
             PartnerId = evnt.AggregateRootId,
             WalletId = info.WalletId,
             Region = info.Region,
             Amount = info.Amount,
             BalanceAmount = info.BalanceAmount,
             CashAmount = info.CashAmount,
             BenevolenceAmount = info.BenevolenceAmount,
             CreatedOn = evnt.Timestamp
         }, ConfigSettings.PartnerBalanceLogTable);
     }));
 }
示例#3
0
 private void Handle(NewBalanceLogEvent evnt)
 {
 }