Beispiel #1
0
 public static void Statistic(Order.Domain.Applyform.RefundOrScrapApplyform applyform)
 {
     if (applyform == null || applyform.IsInterior || applyform.Status != RefundApplyformStatus.Refunded)
     {
         return;
     }
     if (!(applyform is Domain.Applyform.RefundApplyform))
     {
         return;
     }
     try {
         var refundSpeed = (applyform.ProcessedTime.Value - applyform.AppliedTime).TotalSeconds;
         Service.Statistic.OrderStatisticService.SaveGeneralOrderRefundSpeed(applyform.ProviderId, applyform.Id, (int)refundSpeed, applyform.ProcessedTime.Value, getCarrier(applyform), getTicketType(applyform.Order));
     } catch (Exception ex) {
         LogService.SaveExceptionLog(ex, "保存退废票处理速度信息");
     }
 }
Beispiel #2
0
 static string getCarrier(Order.Domain.Applyform.RefundOrScrapApplyform applyform)
 {
     return(applyform.OriginalFlights.First().Carrier.Code);
 }