Правка бага, в результате которого данные о скважине не присылалась на фронт

This commit is contained in:
Olga Nemt 2024-08-07 10:51:59 +05:00
parent b1dc4977ad
commit c71b9daca9

View File

@ -157,8 +157,8 @@ internal class SubsystemService : ISubsystemService
SumDepthInterval = sumDepthInterval, SumDepthInterval = sumDepthInterval,
OperationCount = operationCount, OperationCount = operationCount,
}; };
if(oscillationStat.SumOperationDepthInterval != 0d)
oscillationStat.KUsage = oscillationStat.SumDepthInterval / oscillationStat.SumOperationDepthInterval; oscillationStat.KUsage = oscillationStat.SumDepthInterval / oscillationStat.SumOperationDepthInterval;
return oscillationStat; return oscillationStat;
} }
@ -264,6 +264,9 @@ internal class SubsystemService : ISubsystemService
foreach (var well in wells) foreach (var well in wells)
{ {
if (well.Id == 676) {
;
}
var hoursOffset = well.Timezone.Hours; var hoursOffset = well.Timezone.Hours;
var geDateStartUtc = geDate?.ToUtcDateTimeOffset(hoursOffset); var geDateStartUtc = geDate?.ToUtcDateTimeOffset(hoursOffset);