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,
|
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,
|
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user