forked from ddrilling/AsbCloudServer
Fix ClusterService.CreateDepositDto(). Add IdState into WellDto
This commit is contained in:
parent
b6c2f60296
commit
7b3e979bac
@ -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;
|
||||
}),
|
||||
}),
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user