2024-10-09 13:31:36 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2024-10-16 18:02:38 +05:00
|
|
|
|
using AsbCloudApp.Requests;
|
2024-08-01 09:53:31 +05:00
|
|
|
|
using System;
|
2024-10-09 13:31:36 +05:00
|
|
|
|
using System.Collections.Generic;
|
2024-08-01 09:53:31 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
namespace AsbCloudApp.Services;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-10-08 11:23:25 +05:00
|
|
|
|
/// Сервис записи данных в таблицу t_data_saub_stat_drilling_quality, которая используется для построения РТК-отчета
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// </summary>
|
2024-10-08 11:23:25 +05:00
|
|
|
|
public interface IDataSaubStatDrillingQualityService
|
2024-08-01 09:53:31 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2024-10-09 13:31:36 +05:00
|
|
|
|
/// Расчет статистики DataSaubStatDrillingQuality и сохранение её в бд
|
2024-08-01 09:53:31 +05:00
|
|
|
|
/// </summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <param name="lastDaysFilter">
|
|
|
|
|
/// Количество дней за которые должны были приходить данные, чтобы телеметрия попала в обработку.
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <param name="onProgressCallback"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task CreateStatAsync(int lastDaysFilter, Action<string, double?> onProgressCallback, CancellationToken token);
|
2024-08-01 09:53:31 +05:00
|
|
|
|
|
2024-10-09 13:31:36 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Расчет статистики DataSaubStatDrillingQuality
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idTelemetry"></param>
|
|
|
|
|
/// <param name="geDate"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<IEnumerable<DataSaubStatDrillingQualityDto>> CreateStatDrillingQualityForTelemetry(
|
|
|
|
|
int idTelemetry,
|
|
|
|
|
DateTimeOffset geDate,
|
|
|
|
|
CancellationToken token);
|
|
|
|
|
|
2024-10-16 18:02:38 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение записей DrillingQualityDto по параметрам
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request">параметры запроса</param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<IEnumerable<DrillingQualityDto>> GetStatAsync(DrillingQualityRequest request, CancellationToken token);
|
2024-08-01 09:53:31 +05:00
|
|
|
|
}
|