diff --git a/YD_YiLu/Services/Impl/DeviceSyncService.cs b/YD_YiLu/Services/Impl/DeviceSyncService.cs index 033b665..86d15f1 100644 --- a/YD_YiLu/Services/Impl/DeviceSyncService.cs +++ b/YD_YiLu/Services/Impl/DeviceSyncService.cs @@ -1125,7 +1125,7 @@ namespace YD_YiLu.Api.Services.Impl new YtpGradeListItem { Time = GetYtpSummaryTime(dto.DateType), - Duration = "0", + Duration = SecondsToWholeHours(0), Count = "0" } }; @@ -1138,7 +1138,7 @@ namespace YD_YiLu.Api.Services.Impl .Select(day => new YtpGradeListItem { Time = day.ToString("MM-dd"), - Duration = "0", + Duration = SecondsToWholeHours(0), Count = "0" }) .ToList(); @@ -1158,7 +1158,7 @@ namespace YD_YiLu.Api.Services.Impl new YtpGradeListItem { Time = GetYtpSummaryTime(dto.DateType), - Duration = SecondsToHours(totalSeconds), + Duration = SecondsToWholeHours(totalSeconds), Count = trains.Count.ToString() } }; @@ -1176,7 +1176,7 @@ namespace YD_YiLu.Api.Services.Impl return new YtpGradeListItem { Time = day.ToString("MM-dd"), - Duration = SecondsToHours(daySeconds), + Duration = SecondsToWholeHours(daySeconds), Count = dayTrains.Count.ToString() }; })