forked from ddrilling/AsbCloudServer
Правка бага получения наработки по бурильщикам и скважинам
This commit is contained in:
parent
b1fc181477
commit
e4f3adb101
@ -67,22 +67,16 @@ internal class SubsystemService : ISubsystemService
|
||||
|
||||
var detectedOperations = await detectedOperationService
|
||||
.GetOperationsAsync(byWellRequest, token);
|
||||
var detectedOperationsByCurrentDriller = detectedOperations.Where(d => d.Driller?.Id == schedule.IdDriller);
|
||||
|
||||
var groupByDriller = detectedOperations
|
||||
.Where(operation => operation.Driller is not null)
|
||||
.GroupBy(operation => operation.Driller);
|
||||
|
||||
foreach (var entry in groupByDriller)
|
||||
var drillerOperationsStat = await CalcStatAsync(detectedOperationsByCurrentDriller, token);
|
||||
var dto = new DrillerDetectedOperationStatDto
|
||||
{
|
||||
var drillerOperationsStat = await CalcStatAsync(entry, token);
|
||||
var dto = new DrillerDetectedOperationStatDto
|
||||
{
|
||||
Statistic = drillerOperationsStat,
|
||||
Schedule = schedule,
|
||||
Well = well,
|
||||
};
|
||||
result.Add(dto);
|
||||
}
|
||||
Statistic = drillerOperationsStat,
|
||||
Schedule = schedule,
|
||||
Well = well,
|
||||
};
|
||||
result.Add(dto);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user