forked from ddrilling/AsbCloudServer
nit WellOperationsStatService Add companies to wells with no operations
This commit is contained in:
parent
6439bba779
commit
80fdfce467
@ -106,6 +106,8 @@ namespace AsbCloudInfrastructure.Services.WellOperationService
|
||||
WellType = wellType.Caption
|
||||
};
|
||||
|
||||
statWellDto.Companies = await wellService.GetCompaniesAsync(well.Id, token);
|
||||
|
||||
if (well.WellOperations is null)
|
||||
return statWellDto;
|
||||
|
||||
@ -116,7 +118,6 @@ namespace AsbCloudInfrastructure.Services.WellOperationService
|
||||
if (!wellOperations.Any())
|
||||
return statWellDto;
|
||||
|
||||
statWellDto.Companies = await wellService.GetCompaniesAsync(well.Id, token);
|
||||
statWellDto.Sections = CalcSectionsStats(wellOperations);
|
||||
statWellDto.Total = GetStat(wellOperations);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user