90 lines
2.7 KiB
C#
90 lines
2.7 KiB
C#
using System.Collections.Generic;
|
||
using System.Threading.Tasks;
|
||
using JiShe.CollectBus.Ammeters;
|
||
using JiShe.CollectBus.GatherItem;
|
||
using JiShe.CollectBus.IotSystems.Watermeter;
|
||
using Volo.Abp.Application.Services;
|
||
|
||
namespace JiShe.CollectBus.ScheduledMeterReading
|
||
{
|
||
/// <summary>
|
||
/// 定时任务基础约束
|
||
/// </summary>
|
||
public interface IScheduledMeterReadingService : IApplicationService
|
||
{
|
||
|
||
/// <summary>
|
||
/// 获取采集项列表
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
Task<List<GatherItemInfo>> GetGatherItemByDataTypes();
|
||
|
||
/// <summary>
|
||
/// 构建待处理的下发指令任务处理
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
Task CreateToBeIssueTasks();
|
||
|
||
#region 电表采集处理
|
||
/// <summary>
|
||
/// 获取电表信息
|
||
/// </summary>
|
||
/// <param name="gatherCode">采集端Code</param>
|
||
/// <returns></returns>
|
||
Task<List<AmmeterInfo>> GetAmmeterInfoList(string gatherCode = "");
|
||
|
||
/// <summary>
|
||
/// 初始化电表缓存数据
|
||
/// </summary>
|
||
/// <param name="gatherCode">采集端Code</param>
|
||
/// <returns></returns>
|
||
Task InitAmmeterCacheData(string gatherCode = "");
|
||
|
||
/// <summary>
|
||
/// 1分钟采集电表数据,只获取任务数据下发,不构建任务
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
Task AmmeterScheduledMeterOneMinuteReading();
|
||
|
||
/// <summary>
|
||
/// 5分钟采集电表数据,只获取任务数据下发,不构建任务
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
Task AmmeterScheduledMeterFiveMinuteReading();
|
||
|
||
/// <summary>
|
||
/// 15分钟采集电表数据,只获取任务数据下发,不构建任务
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
Task AmmeterScheduledMeterFifteenMinuteReading();
|
||
|
||
#endregion
|
||
|
||
|
||
#region 水表采集处理
|
||
/// <summary>
|
||
/// 获取水表信息
|
||
/// </summary>
|
||
/// <param name="gatherCode">采集端Code</param>
|
||
/// <returns></returns>
|
||
Task<List<WatermeterInfo>> GetWatermeterInfoList(string gatherCode = "");
|
||
|
||
/// <summary>
|
||
/// 初始化水表缓存数据,只获取任务数据下发,不构建任务
|
||
/// </summary>
|
||
/// <param name="gatherCode">采集端Code</param>
|
||
/// <returns></returns>
|
||
Task InitWatermeterCacheData(string gatherCode = "");
|
||
|
||
/// <summary>
|
||
/// 水表数据采集
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
Task WatermeterScheduledMeterAutoReading();
|
||
|
||
#endregion
|
||
|
||
|
||
}
|
||
}
|