forked from ddrilling/AsbCloudServer
WellInfoService add another source for planned well depth.
This commit is contained in:
parent
9347e9610b
commit
2415647dce
@ -79,6 +79,7 @@ namespace AsbCloudInfrastructure.Services
|
|||||||
var wellLastFactSection = wellOperationsStat?.Sections.LastOrDefault(s => s.Fact is not null);
|
var wellLastFactSection = wellOperationsStat?.Sections.LastOrDefault(s => s.Fact is not null);
|
||||||
|
|
||||||
double? currentDepth = null;
|
double? currentDepth = null;
|
||||||
|
double? planTotalDepth = null;
|
||||||
DateTime lastTelemetryDate = default;
|
DateTime lastTelemetryDate = default;
|
||||||
|
|
||||||
if (well.IdTelemetry.HasValue)
|
if (well.IdTelemetry.HasValue)
|
||||||
@ -110,9 +111,12 @@ namespace AsbCloudInfrastructure.Services
|
|||||||
idSection ??= welllProcessMap?.IdWellSectionType;
|
idSection ??= welllProcessMap?.IdWellSectionType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
planTotalDepth = wellDepthByProcessMap.FirstOrDefault(p => p.Id == well.Id)?.DepthEnd;
|
||||||
|
planTotalDepth ??= wellOperationsStat?.Total.Plan?.WellDepthEnd;
|
||||||
|
|
||||||
wellMapInfo.WellDepth = new()
|
wellMapInfo.WellDepth = new()
|
||||||
{
|
{
|
||||||
Plan = wellDepthByProcessMap.FirstOrDefault(p => p.Id == well.Id)?.DepthEnd,
|
Plan = planTotalDepth,
|
||||||
Fact = currentDepth,
|
Fact = currentDepth,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user