forked from ddrilling/AsbCloudServer
Доработка после ревью-2
This commit is contained in:
parent
411e420a61
commit
ef8d559739
@ -11,7 +11,7 @@ namespace AsbCloudApp.Data
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Скважина
|
/// Скважина
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public WellDto Well { get; set; } = new();
|
public WellDto Well { get; set; } = null!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Операции по скважине
|
/// Операции по скважине
|
||||||
|
@ -147,7 +147,7 @@ namespace AsbCloudInfrastructure.Services
|
|||||||
var categoriesDict = categories.ToDictionary(s => s.Id, s => s.Name);
|
var categoriesDict = categories.ToDictionary(s => s.Id, s => s.Name);
|
||||||
|
|
||||||
var wells = await wellService.GetAsync(new WellRequest { Ids = idsWells }, token);
|
var wells = await wellService.GetAsync(new WellRequest { Ids = idsWells }, token);
|
||||||
var wellsDict = wells.ToDictionary(w => w.Id, w => w.Caption);
|
var wellsDict = wells.ToDictionary(w => w.Id);
|
||||||
|
|
||||||
var idsWellSectionTypes = WellSectionTypesWithCategories.Select(t => t.IdSectionType).Distinct();
|
var idsWellSectionTypes = WellSectionTypesWithCategories.Select(t => t.IdSectionType).Distinct();
|
||||||
var usedCategories = WellSectionTypesWithCategories.Select(c => c.IdCategory).Distinct();
|
var usedCategories = WellSectionTypesWithCategories.Select(c => c.IdCategory).Distinct();
|
||||||
@ -215,7 +215,7 @@ namespace AsbCloudInfrastructure.Services
|
|||||||
Well = new WellDto()
|
Well = new WellDto()
|
||||||
{
|
{
|
||||||
Id = o.Key,
|
Id = o.Key,
|
||||||
Caption = wellsDict.TryGetValue(o.Key, out string? caption) ? caption : string.Empty,
|
Caption = wellsDict[o.Key].Caption,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user