OperationsStatService.GetTvdAsync()

Fin exception then empty operations.
This commit is contained in:
ngfrolov 2023-07-28 15:28:30 +05:00
parent 99fa1d83a7
commit f6ac5b5a98
Signed by: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -431,6 +431,9 @@ namespace AsbCloudInfrastructure.Services.WellOperationService
var tzOffsetHours = wellService.GetTimezone(idWell).Hours;
var merged = MergeArraysBySections(sectionsIds, wellOperationsPlan, wellOperationsFact).ToList();
if (merged.Count ==0)
return Enumerable.Empty<PlanFactPredictBase<WellOperationDto>>();
var tvd = new List<PlanFactPredictBase<WellOperationDto>>(merged.Count);
var (Plan, Fact) = merged.FirstOrDefault();
var dateStart = Plan?.DateStart ?? Fact!.DateStart;