Fix #11111518 Ошибка при загрузке РТК - отчет

This commit is contained in:
ngfrolov 2023-07-05 17:35:07 +05:00
parent 1fac8ef565
commit 0fbc54e715
Signed by untrusted user who does not match committer: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -68,8 +68,13 @@ namespace AsbCloudInfrastructure.Services.ProcessMap
foreach (var interval in processMapIntervals)
{
// plans [ ][ ]
// interval [ ]
var processMapPlanInterval = processMapPlan
.Where(p => p.DepthStart >= interval.DepthStart && p.DepthEnd <= interval.DepthEnd);
.Where(p => p.DepthStart <= interval.DepthEnd && p.DepthEnd >= interval.DepthStart);
if (!processMapPlanInterval.Any())
continue;
var telemetryIndexEnd = Array.FindIndex(telemetryDataStat, telemetryIndexStart, t => t.WellDepthMin >= interval.DepthEnd);
if (telemetryIndexEnd < 0)
@ -206,7 +211,6 @@ namespace AsbCloudInfrastructure.Services.ProcessMap
return false;
}
}
class ParamStat