From 4f7031d0c28cad6cc588a9eb68d8b7a3e4d5a910 Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Wed, 9 Oct 2024 11:31:45 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B0=D0=BA=D1=82=D0=B8=D1=87=D0=B5?= =?UTF-8?q?=D1=81=D0=BA=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=D0=B0?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D0=B8=20=D0=BD=D0=B0=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B8=20=D0=BF=D0=BE=D0=B4=D1=81=D0=B8=D1=81=D1=82?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B2=D0=B5=D0=B4=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B2=20=D0=BF=D1=80=D0=BE=D1=86=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=BD=D0=BE=D0=B5=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Data/Subsystems/SubsystemStatPlanFactDto.cs | 12 ++++++------ .../Services/Subsystems/SubsystemService.cs | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/AsbCloudApp/Data/Subsystems/SubsystemStatPlanFactDto.cs b/AsbCloudApp/Data/Subsystems/SubsystemStatPlanFactDto.cs index f9290478..82427dc0 100644 --- a/AsbCloudApp/Data/Subsystems/SubsystemStatPlanFactDto.cs +++ b/AsbCloudApp/Data/Subsystems/SubsystemStatPlanFactDto.cs @@ -29,32 +29,32 @@ public class SubsystemPlanFactStatDto public double DepthEnd { get; set; } /// - /// Использование ротора (план) + /// Процент использования ротора (план) /// public double AutoRotorPlan { get; set; } /// - /// Использование слайда (план) + /// Процент использования слайда (план) /// public double AutoSlidePlan { get; set; } /// - /// Использование слайда с осцилляцией (план) + /// Процент использования слайда с осцилляцией (план) /// public double AutoOscillationPlan { get; set; } /// - /// Использование ротора (факт) + /// Процент использования ротора (факт) /// public double? AutoRotorFact { get; set; } /// - /// Использование слайда (факт) + /// Процент использования слайда (факт) /// public double? AutoSlideFact { get; set; } /// - /// Использование слайда (факт) + /// Процент использования слайда (факт) /// public double? AutoOscillationFact { get; set; } } diff --git a/AsbCloudInfrastructure/Services/Subsystems/SubsystemService.cs b/AsbCloudInfrastructure/Services/Subsystems/SubsystemService.cs index 0292d126..36ba866c 100644 --- a/AsbCloudInfrastructure/Services/Subsystems/SubsystemService.cs +++ b/AsbCloudInfrastructure/Services/Subsystems/SubsystemService.cs @@ -181,9 +181,9 @@ public class SubsystemService : ISubsystemService var subsystemStatFact = await GetStatAsync(subsystemRequest, token); var subsystemStatFactDict = subsystemStatFact.ToDictionary(s => s.IdSubsystem); - stat.AutoRotorFact = subsystemStatFactDict.GetValueOrDefault(IdSubsystemAPDRotor)?.KUsage; - stat.AutoSlideFact = subsystemStatFactDict.GetValueOrDefault(IdSubsystemAPDSlide)?.KUsage; - stat.AutoOscillationFact = subsystemStatFactDict.GetValueOrDefault(IdSubsystemOscillation)?.KUsage; + stat.AutoRotorFact = subsystemStatFactDict.GetValueOrDefault(IdSubsystemAPDRotor)?.KUsage * 100; + stat.AutoSlideFact = subsystemStatFactDict.GetValueOrDefault(IdSubsystemAPDSlide)?.KUsage * 100; + stat.AutoOscillationFact = subsystemStatFactDict.GetValueOrDefault(IdSubsystemOscillation)?.KUsage * 100; result.Add(stat); }