forked from ddrilling/AsbCloudServer
fix определения операции, которая должна войти в композитную операцию
This commit is contained in:
parent
45f0f50a34
commit
fc2589b5a2
@ -179,9 +179,9 @@ namespace AsbCloudInfrastructure.Services
|
|||||||
WellSectionTypeCaption = g.First().WellSectionTypeCaption,
|
WellSectionTypeCaption = g.First().WellSectionTypeCaption,
|
||||||
});
|
});
|
||||||
|
|
||||||
var composite = aggreagtedByWell.GroupBy(g => g.DurationHours).Count() == 1
|
var composite = aggreagtedByWell.OrderBy(o => o.DurationHours).
|
||||||
? aggreagtedByWell.OrderByDescending(o => o.DepthStart).First()
|
ThenByDescending(o => o.DepthStart)
|
||||||
: aggreagtedByWell.OrderBy(o => o.DepthStart).First();
|
.First();
|
||||||
|
|
||||||
composite.IdWell = 0;
|
composite.IdWell = 0;
|
||||||
if (compositeDepth > composite.DepthStart)
|
if (compositeDepth > composite.DepthStart)
|
||||||
|
Loading…
Reference in New Issue
Block a user