Fix ClusterService.CreateDepositDto(). Add IdState into WellDto

This commit is contained in:
Фролов 2021-11-18 11:32:13 +05:00
parent b6c2f60296
commit 7b3e979bac

View File

@ -137,16 +137,13 @@ namespace AsbCloudInfrastructure.Services
Latitude = gCluster.Key.Latitude,
Longitude = gCluster.Key.Longitude,
Description = "",
Wells = gCluster.Select(well => new WellDto
{
Id = well.Id,
Caption = well.Caption,
Latitude = well.Latitude,
Longitude = well.Longitude,
WellType = well.WellType?.Caption,
LastTelemetryDate = wellService.GetLastTelemetryDate(well.Id),
Cluster = gCluster.Key.Caption,
Deposit = gDeposit.Key.Caption,
Wells = gCluster.Select(well => {
var dto = well.Adapt<WellDto>();
dto.WellType = well.WellType?.Caption;
dto.LastTelemetryDate = wellService.GetLastTelemetryDate(well.Id);
dto.Cluster = gCluster.Key.Caption;
dto.Deposit = gDeposit.Key.Caption;
return dto;
}),
}),
});