|
|
|
@ -146,15 +146,16 @@ public class CountDayOrderTask : ITask
|
|
|
|
|
.Sum(order => (order.SwapEndTime.Value - order.SwapBeginTime.Value).TotalMinutes);
|
|
|
|
|
// 赋值
|
|
|
|
|
|
|
|
|
|
dayCount.AvgChgTime = avgMinutes.ToString();
|
|
|
|
|
dayCount.AvgRepTime = avgRepTime.ToString();
|
|
|
|
|
dayCount.SwapDate = DateTime.Now.ToString();
|
|
|
|
|
dayCount.AvgChgTime = avgMinutes.ToString("F2");
|
|
|
|
|
dayCount.AvgRepTime = avgRepTime.ToString("F2");
|
|
|
|
|
dayCount.SwapDate = DateTime.Now.AddDays(-1).ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dayCount.FristSwapTime = firstSwapOrder?.SwapBeginTime?.ToString() ?? null;
|
|
|
|
|
dayCount.StopTime = lastSwapOrder?.SwapEndTime?.ToString() ?? null;
|
|
|
|
|
dayCount.ChgCount = chgCount;
|
|
|
|
|
dayCount.ToltalSwapCount = totalSwapCount;
|
|
|
|
|
dayCount.ToltalSwapAllTime = totalMinutes;
|
|
|
|
|
dayCount.ToltalSwapAllTime = Math.Round(totalMinutes, 2);
|
|
|
|
|
|
|
|
|
|
dayCount.State = StaticStationInfo.StationStatus;
|
|
|
|
|
_ExStationDayRunResultService.Insert(dayCount);
|
|
|
|
|