forked from ddrilling/AsbCloudServer
Правка багов, обнаруженных после попытки интеграции с фронтом
This commit is contained in:
parent
1b3cba8809
commit
bb47dd2333
@ -68,6 +68,14 @@ public class MessageRequest : MessageRequestBase
|
||||
/// </summary>
|
||||
public IEnumerable<int> IdsWell { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
public MessageRequest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// параметры для запроса списка сообщений (с ids скважин)
|
||||
/// </summary>
|
||||
|
@ -43,7 +43,9 @@ public class MessageService : IMessageService
|
||||
var telemetryMessages = await messageRepository.GetMessagesAsync(messageTelemetryRequest, token);
|
||||
|
||||
var groupedMessages = telemetryMessages.GroupBy(x => new { x.IdTelemetry, x.IdEvent });
|
||||
var events = messageTelemetryRequest.Events.ToDictionary(e => e.Id);
|
||||
var events = messageTelemetryRequest.Events
|
||||
.GroupBy(e => e.Id)
|
||||
.ToDictionary(e => e.Key, e => e.FirstOrDefault());
|
||||
|
||||
var idsWellsDict = messageTelemetryRequest.Telemetries.ToDictionary(e => e.Id, e => e.IdWell);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user