2024-10-04 15:22:43 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2024-07-23 17:26:23 +05:00
|
|
|
|
using AsbCloudApp.Services;
|
2024-02-14 15:28:37 +05:00
|
|
|
|
using System;
|
2024-02-05 10:47:00 +05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
namespace AsbCloudApp.Repositories;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-10-07 15:46:57 +05:00
|
|
|
|
/// Репозиторий работы с данными, реализующими интерфейс IDataSaubStatDto
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// </summary>
|
2024-10-07 15:46:57 +05:00
|
|
|
|
public interface IDataSaubStatRepository<TDto> : ITelemetryDataEditorService
|
|
|
|
|
where TDto : IDataSaubStatDto
|
2024-02-05 10:47:00 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2024-10-16 18:02:38 +05:00
|
|
|
|
/// Получение записей по ключам телеметрий
|
2024-02-05 10:47:00 +05:00
|
|
|
|
/// </summary>
|
2024-10-16 18:02:38 +05:00
|
|
|
|
/// <param name="idsTelemetries">ключи телеметрий</param>
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <param name="geDate">начальная дата</param>
|
|
|
|
|
/// <param name="leDate">конечная дата</param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-10-16 18:02:38 +05:00
|
|
|
|
Task<IEnumerable<TDto>> GetAsync(IEnumerable<int> idsTelemetries, DateTimeOffset geDate, DateTimeOffset leDate, CancellationToken token);
|
2024-02-12 16:55:50 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
2024-10-07 16:09:50 +05:00
|
|
|
|
/// Получение последних по дате окончания бурения записей в разрезе телеметрий
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idTelemetries">ключи телеметрий</param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-10-07 15:46:57 +05:00
|
|
|
|
Task<IEnumerable<TDto>> GetLastsAsync(int[] idTelemetries, CancellationToken token);
|
2024-02-05 10:47:00 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
2024-10-07 16:10:32 +05:00
|
|
|
|
/// Вставка записей
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataSaubStats"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-10-07 15:46:57 +05:00
|
|
|
|
Task<int> InsertRangeAsync(IEnumerable<TDto> dataSaubStats, CancellationToken token);
|
2024-02-05 10:47:00 +05:00
|
|
|
|
}
|