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, Latitude = gCluster.Key.Latitude,
Longitude = gCluster.Key.Longitude, Longitude = gCluster.Key.Longitude,
Description = "", Description = "",
Wells = gCluster.Select(well => new WellDto Wells = gCluster.Select(well => {
{ var dto = well.Adapt<WellDto>();
Id = well.Id, dto.WellType = well.WellType?.Caption;
Caption = well.Caption, dto.LastTelemetryDate = wellService.GetLastTelemetryDate(well.Id);
Latitude = well.Latitude, dto.Cluster = gCluster.Key.Caption;
Longitude = well.Longitude, dto.Deposit = gDeposit.Key.Caption;
WellType = well.WellType?.Caption, return dto;
LastTelemetryDate = wellService.GetLastTelemetryDate(well.Id),
Cluster = gCluster.Key.Caption,
Deposit = gDeposit.Key.Caption,
}), }),
}), }),
}); });