From 0fbc54e71504e41c9447278130cf59a7f8dc0418 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Wed, 5 Jul 2023 17:35:07 +0500 Subject: [PATCH] =?UTF-8?q?Fix=20#11111518=20=D0=9E=D1=88=D0=B8=D0=B1?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BF=D1=80=D0=B8=20=D0=B7=D0=B0=D0=B3=D1=80?= =?UTF-8?q?=D1=83=D0=B7=D0=BA=D0=B5=20=D0=A0=D0=A2=D0=9A=20-=20=D0=BE?= =?UTF-8?q?=D1=82=D1=87=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/ProcessMap/ProcessMapReportService.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/AsbCloudInfrastructure/Services/ProcessMap/ProcessMapReportService.cs b/AsbCloudInfrastructure/Services/ProcessMap/ProcessMapReportService.cs index 05414217..057dba60 100644 --- a/AsbCloudInfrastructure/Services/ProcessMap/ProcessMapReportService.cs +++ b/AsbCloudInfrastructure/Services/ProcessMap/ProcessMapReportService.cs @@ -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