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