nit WellOperationsStatService Add companies to wells with no operations

This commit is contained in:
Фролов 2021-10-13 15:53:43 +05:00
parent 6439bba779
commit 80fdfce467

View File

@ -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);