2024-02-05 10:47:00 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Repositories
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Репозиторий работы с данными из таблицы t_data_daub_stat
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IDataSaubStatRepository
|
|
|
|
|
{
|
2024-02-12 16:55:50 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение записей по ключу телеметрии
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idTelemetry">ключ телеметрии</param>
|
2024-02-13 16:35:01 +05:00
|
|
|
|
/// <param name="geDepth">начальная глубина</param>
|
|
|
|
|
/// <param name="leDepth">конечная глубина</param>
|
2024-02-12 16:55:50 +05:00
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-02-13 16:35:01 +05:00
|
|
|
|
Task<IEnumerable<DataSaubStatDto>> GetAsync(int idTelemetry, double geDepth, double leDepth, CancellationToken token);
|
2024-02-12 16:55:50 +05:00
|
|
|
|
|
2024-02-05 10:47:00 +05:00
|
|
|
|
/// <summary>
|
2024-02-06 11:44:29 +05:00
|
|
|
|
/// Получение последних по дате окончания бурения записей в разрезе телеметрий
|
2024-02-05 10:47:00 +05:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idTelemetries">ключи телеметрий</param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-02-06 11:44:29 +05:00
|
|
|
|
Task<IEnumerable<DataSaubStatDto>> GetLastsAsync(int[] idTelemetries, CancellationToken token);
|
2024-02-05 10:47:00 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Вставка записей статистики
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataSaubStats"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<int> InsertRangeAsync(IEnumerable<DataSaubStatDto> dataSaubStats, CancellationToken token);
|
|
|
|
|
}
|
|
|
|
|
}
|