diff --git a/AsbCloudApp/Services/ITelemetryService.cs b/AsbCloudApp/Services/ITelemetryService.cs index 0ef66332..7b20c53b 100644 --- a/AsbCloudApp/Services/ITelemetryService.cs +++ b/AsbCloudApp/Services/ITelemetryService.cs @@ -54,12 +54,6 @@ public interface ITelemetryService /// TelemetryBaseDto? GetOrDefaultTelemetryByIdWell(int idWell); - /// - /// получить список телеметрии по ключам скважин - /// - /// ключи скважин - /// - IEnumerable GetOrDefaultTelemetriesByIdsWells(IEnumerable idsWells); /// /// получить диапазон дат за которые есть данные /// diff --git a/AsbCloudInfrastructure/Services/SAUB/TelemetryService.cs b/AsbCloudInfrastructure/Services/SAUB/TelemetryService.cs index 850de377..8c5f1783 100644 --- a/AsbCloudInfrastructure/Services/SAUB/TelemetryService.cs +++ b/AsbCloudInfrastructure/Services/SAUB/TelemetryService.cs @@ -184,27 +184,6 @@ public class TelemetryService : ITelemetryService return dto; } - public IEnumerable GetOrDefaultTelemetriesByIdsWells(IEnumerable idsWells) - { - var entities = GetTelemetryCache() - .Where(t => t.Well != null) - .Where(t => idsWells.Contains(t.Well!.Id)) - .Select(t => { - t.TimeZone = t.TimeZone.Hours != t.Well!.Timezone.Hours ? t.Well.Timezone : t.TimeZone; - - return t; - }); - - var dtos = entities.Select(t => { - var dto = t.Adapt(); - dto.IdWell = t.Well?.Id; - - return dto; - }); - - return dtos; - } - private Well? GetWellByTelemetryUid(string uid) { var telemetry = GetOrDefaultTelemetryByUid(uid);