From a8926683df3e6cf06e9f9a4e2d7d4f4e89117af3 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Fri, 17 Jul 2026 15:45:26 +0800 Subject: [PATCH] . --- YD_YiLu/Services/Impl/DeviceSyncService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() }; })