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