2025-04-25 12:01:15 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
2025-03-12 09:58:37 +08:00
|
|
|
|
using System.Threading.Tasks;
|
2025-03-14 14:38:08 +08:00
|
|
|
|
using JiShe.CollectBus.Ammeters;
|
|
|
|
|
|
using JiShe.CollectBus.GatherItem;
|
2025-04-23 16:17:29 +08:00
|
|
|
|
using JiShe.CollectBus.IotSystems.Ammeters;
|
2025-03-14 14:38:08 +08:00
|
|
|
|
using JiShe.CollectBus.IotSystems.Watermeter;
|
2025-03-12 14:57:42 +08:00
|
|
|
|
using Volo.Abp.Application.Services;
|
2025-03-12 09:58:37 +08:00
|
|
|
|
|
2025-03-14 14:38:08 +08:00
|
|
|
|
namespace JiShe.CollectBus.ScheduledMeterReading
|
2025-03-12 09:58:37 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 定时任务基础约束
|
|
|
|
|
|
/// </summary>
|
2025-03-12 14:57:42 +08:00
|
|
|
|
public interface IScheduledMeterReadingService : IApplicationService
|
2025-03-12 09:58:37 +08:00
|
|
|
|
{
|
2025-03-13 10:51:16 +08:00
|
|
|
|
|
2025-03-14 14:24:38 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取采集项列表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task<List<GatherItemInfo>> GetGatherItemByDataTypes();
|
|
|
|
|
|
|
2025-03-18 15:58:37 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 构建待处理的下发指令任务处理
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task CreateToBeIssueTasks();
|
|
|
|
|
|
|
2025-03-13 10:51:16 +08:00
|
|
|
|
#region 电表采集处理
|
2025-03-12 09:58:37 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取电表信息
|
|
|
|
|
|
/// </summary>
|
2025-03-12 14:57:42 +08:00
|
|
|
|
/// <param name="gatherCode">采集端Code</param>
|
2025-03-12 09:58:37 +08:00
|
|
|
|
/// <returns></returns>
|
2025-03-12 14:57:42 +08:00
|
|
|
|
Task<List<AmmeterInfo>> GetAmmeterInfoList(string gatherCode = "");
|
2025-03-14 14:38:08 +08:00
|
|
|
|
|
2025-03-12 09:58:37 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 初始化电表缓存数据
|
|
|
|
|
|
/// </summary>
|
2025-03-12 14:57:42 +08:00
|
|
|
|
/// <param name="gatherCode">采集端Code</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task InitAmmeterCacheData(string gatherCode = "");
|
|
|
|
|
|
|
2025-03-14 14:38:08 +08:00
|
|
|
|
/// <summary>
|
2025-03-18 15:58:37 +08:00
|
|
|
|
/// 1分钟采集电表数据,只获取任务数据下发,不构建任务
|
2025-03-14 14:38:08 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task AmmeterScheduledMeterOneMinuteReading();
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-03-18 15:58:37 +08:00
|
|
|
|
/// 5分钟采集电表数据,只获取任务数据下发,不构建任务
|
2025-03-14 14:38:08 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task AmmeterScheduledMeterFiveMinuteReading();
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-03-18 15:58:37 +08:00
|
|
|
|
/// 15分钟采集电表数据,只获取任务数据下发,不构建任务
|
2025-03-14 14:38:08 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task AmmeterScheduledMeterFifteenMinuteReading();
|
|
|
|
|
|
|
2025-04-23 16:17:29 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取电表阀控配置
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="currentTime">阀控的时间</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task<List<AmmeterAutoValveControlSetting>> GetAmmeterAutoValveControlSetting(string currentTime);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 电表自动阀控
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task AmmeterScheduledAutoValveControl();
|
|
|
|
|
|
|
2025-04-25 12:01:15 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 电表自动校时
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="timeDensity">采集频率</param>
|
2025-04-27 17:27:04 +08:00
|
|
|
|
/// <param name="ammeterInfo">电表信息</param>
|
|
|
|
|
|
/// <param name="groupIndex">集中器所在分组</param>
|
|
|
|
|
|
/// <param name="timestamps">采集频率对应的时间戳</param>
|
2025-04-25 12:01:15 +08:00
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task AmmeterScheduledAutomaticVerificationTime(int timeDensity, AmmeterInfo ammeterInfo, int groupIndex, DateTime timestamps);
|
|
|
|
|
|
|
2025-04-27 17:27:04 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 日冻结抄读
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="timeDensity">采集频率</param>
|
|
|
|
|
|
/// <param name="ammeterInfo">电表信息</param>
|
|
|
|
|
|
/// <param name="groupIndex">集中器所在分组</param>
|
|
|
|
|
|
/// <param name="timestamps">采集频率对应的时间戳</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task AmmeterScheduledGetAutomaticDayFreezeData(int timeDensity, AmmeterInfo ammeterInfo, int groupIndex, DateTime timestamps);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 月冻结数据抄读
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="timeDensity">采集频率</param>
|
|
|
|
|
|
/// <param name="ammeterInfo">电表信息</param>
|
|
|
|
|
|
/// <param name="groupIndex">集中器所在分组</param>
|
|
|
|
|
|
/// <param name="timestamps">采集频率对应的时间戳</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task AmmeterScheduledGetAutomaticMonthFreezeData(int timeDensity, AmmeterInfo ammeterInfo, int groupIndex, DateTime timestamps);
|
|
|
|
|
|
|
2025-04-27 09:40:31 +08:00
|
|
|
|
#endregion
|
2025-03-14 14:38:08 +08:00
|
|
|
|
|
|
|
|
|
|
#region 水表采集处理
|
2025-03-12 14:57:42 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取水表信息
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="gatherCode">采集端Code</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task<List<WatermeterInfo>> GetWatermeterInfoList(string gatherCode = "");
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-03-18 15:58:37 +08:00
|
|
|
|
/// 初始化水表缓存数据,只获取任务数据下发,不构建任务
|
2025-03-12 14:57:42 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="gatherCode">采集端Code</param>
|
2025-03-12 09:58:37 +08:00
|
|
|
|
/// <returns></returns>
|
2025-03-12 14:57:42 +08:00
|
|
|
|
Task InitWatermeterCacheData(string gatherCode = "");
|
2025-03-12 09:58:37 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-04-14 16:41:41 +08:00
|
|
|
|
/// 水表数据采集
|
2025-03-12 09:58:37 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
2025-04-29 10:02:10 +08:00
|
|
|
|
Task WatermeterScheduledMeterAutoReadding();
|
2025-04-27 09:40:31 +08:00
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region 集中器处理
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 自动获取终端版
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="timeDensity">采集频率</param>
|
|
|
|
|
|
/// <param name="ammeterInfo">电表信息</param>
|
|
|
|
|
|
/// <param name="groupIndex">集中器所在分组</param>
|
|
|
|
|
|
/// <param name="timestamps">采集频率对应的时间戳</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task ConcentratorScheduledAutomaticGetTerminalVersion(int timeDensity, AmmeterInfo ammeterInfo, int groupIndex, DateTime timestamps);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 自动获取远程通信模块(SIM)版本信息
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="timeDensity">采集频率</param>
|
|
|
|
|
|
/// <param name="ammeterInfo">电表信息</param>
|
|
|
|
|
|
/// <param name="groupIndex">集中器所在分组</param>
|
|
|
|
|
|
/// <param name="timestamps">采集频率对应的时间戳</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task ConcentratorScheduledAutomaticGetTelematicsModule(int timeDensity, AmmeterInfo ammeterInfo, int groupIndex, DateTime timestamps);
|
2025-03-14 14:38:08 +08:00
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-03-12 09:58:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|