2025-05-12 14:02:22 +08:00
|
|
|
|
//using JiShe.CollectBus.ScheduledMeterReading;
|
|
|
|
|
|
//using Microsoft.Extensions.Logging;
|
|
|
|
|
|
//using System;
|
|
|
|
|
|
//using System.Collections.Generic;
|
|
|
|
|
|
//using System.Linq;
|
|
|
|
|
|
//using System.Text;
|
|
|
|
|
|
//using System.Threading;
|
|
|
|
|
|
//using System.Threading.Tasks;
|
|
|
|
|
|
//using Volo.Abp.BackgroundWorkers.Hangfire;
|
|
|
|
|
|
//using Volo.Abp.DependencyInjection;
|
2025-04-29 09:16:48 +08:00
|
|
|
|
|
2025-05-12 14:02:22 +08:00
|
|
|
|
//namespace JiShe.CollectBus.Workers
|
|
|
|
|
|
//{
|
|
|
|
|
|
// /// <summary>
|
|
|
|
|
|
// /// 定时数据检测1小时一次
|
|
|
|
|
|
// /// </summary>
|
|
|
|
|
|
// public class DataDetectionFifteenMinuteWorker : HangfireBackgroundWorkerBase, ITransientDependency, ICollectWorker
|
|
|
|
|
|
// {
|
2025-04-29 09:16:48 +08:00
|
|
|
|
|
2025-05-12 14:02:22 +08:00
|
|
|
|
// private readonly ILogger<CreateToBeIssueTaskWorker> _logger;
|
|
|
|
|
|
// private readonly IScheduledMeterReadingService _scheduledMeterReadingService;
|
2025-04-29 09:16:48 +08:00
|
|
|
|
|
2025-05-12 14:02:22 +08:00
|
|
|
|
// public DataDetectionFifteenMinuteWorker(ILogger<CreateToBeIssueTaskWorker> logger, IScheduledMeterReadingService scheduledMeterReadingService)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// _logger = logger;
|
|
|
|
|
|
// RecurringJobId = nameof(CreateToBeIssueTaskWorker);
|
|
|
|
|
|
// CronExpression = "0 0 0/1 * * ?";
|
|
|
|
|
|
// TimeZone = TimeZoneInfo.Local;
|
|
|
|
|
|
// this._scheduledMeterReadingService = scheduledMeterReadingService;
|
|
|
|
|
|
// }
|
2025-04-29 09:16:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
2025-05-12 14:02:22 +08:00
|
|
|
|
// public override Task DoWorkAsync(CancellationToken cancellationToken = default)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// //throw new NotImplementedException();
|
|
|
|
|
|
// return Task.CompletedTask;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|