правка багов получения статистики качества

This commit is contained in:
Olga Nemt 2024-10-25 15:02:25 +05:00
parent 31cf44653c
commit 1889e378e7

View File

@ -127,7 +127,7 @@ public class DataSaubStatDrillingQualityService : IDataSaubStatDrillingQualitySe
while (indexEnd < dataSaub.Count() - 1)
{
indexStart = Array.FindIndex(dataSaub, indexEnd, t => t.IdFeedRegulator == idFeedRegulator);
if (indexStart < 0)
if (indexStart < 0 || indexStart == dataSaub.Count() - 1)
break;
indexEnd = FindIndexEnd(indexStart, idFeedRegulator, dataSaub);