forked from ddrilling/AsbCloudServer
#5996638 исправление запроса параметров бурения для всех секций композитной скважины
This commit is contained in:
parent
07eb1bd878
commit
ed5f181754
@ -104,21 +104,26 @@ namespace AsbCloudInfrastructure.Services
|
||||
public async Task<IEnumerable<DrillParamsDto>> GetCompositeAllAsync(int idWell,
|
||||
CancellationToken token = default)
|
||||
{
|
||||
var allDrillParams = await db.WellComposites
|
||||
var allDrillParamsQuery = db.WellComposites
|
||||
.Where(c => c.IdWell == idWell)
|
||||
.Join(db.DrillParams,
|
||||
c => new { IdWell = c.IdWellSrc, IdSection = c.IdWellSectionType },
|
||||
p => new { IdWell = p.IdWell, IdSection = p.IdWellSectionType },
|
||||
(c, p) => p)
|
||||
c => c.IdWellSrc,
|
||||
p => p.IdWell,
|
||||
(c, p) => p);
|
||||
|
||||
var allDrillParams = await allDrillParamsQuery
|
||||
.AsNoTracking()
|
||||
.ToListAsync(token)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
var compositeWellDrillParams = await db.WellComposites
|
||||
var compositeWellDrillParamsQuery = db.WellComposites
|
||||
.Where(c => c.IdWell == idWell)
|
||||
.Join(db.DrillParams,
|
||||
c => new { IdWell = c.IdWellSrc, IdSection = c.IdWellSectionType },
|
||||
p => new { IdWell = p.IdWell, IdSection = p.IdWellSectionType },
|
||||
(c, p) => p)
|
||||
(c, p) => p);
|
||||
|
||||
var compositeWellDrillParams = await compositeWellDrillParamsQuery
|
||||
.AsNoTracking()
|
||||
.ToListAsync(token)
|
||||
.ConfigureAwait(false);
|
||||
|
Loading…
Reference in New Issue
Block a user