forked from ddrilling/AsbCloudServer
Revert "Правка расчета сводной статистики по бурильщикам"
This reverts commit 5bf30956c8
.
This commit is contained in:
parent
5bf30956c8
commit
27b67010d4
@ -68,8 +68,13 @@ internal class SubsystemService : ISubsystemService
|
|||||||
var detectedOperations = await detectedOperationService
|
var detectedOperations = await detectedOperationService
|
||||||
.GetOperationsAsync(byWellRequest, token);
|
.GetOperationsAsync(byWellRequest, token);
|
||||||
|
|
||||||
var detectedOperationsByCurrentDriller = detectedOperations.Where(d => d.Driller?.Id == schedule.IdDriller);
|
var groupByDriller = detectedOperations
|
||||||
var drillerOperationsStat = await CalcStatAsync(detectedOperationsByCurrentDriller, token);
|
.Where(operation => operation.Driller is not null)
|
||||||
|
.GroupBy(operation => operation.Driller);
|
||||||
|
|
||||||
|
foreach (var entry in groupByDriller)
|
||||||
|
{
|
||||||
|
var drillerOperationsStat = await CalcStatAsync(entry, token);
|
||||||
var dto = new DrillerDetectedOperationStatDto
|
var dto = new DrillerDetectedOperationStatDto
|
||||||
{
|
{
|
||||||
Statistic = drillerOperationsStat,
|
Statistic = drillerOperationsStat,
|
||||||
@ -78,6 +83,7 @@ internal class SubsystemService : ISubsystemService
|
|||||||
};
|
};
|
||||||
result.Add(dto);
|
result.Add(dto);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user