From 2accac7df60ce37d53e1ea85fafd4a806212fc58 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 11 八月 2025 09:48:09 +0800
Subject: [PATCH] 临时修改国家电网折扣为95折
---
LifePayment/LifePayment.Worker/Worker/GetStaticsWorker.cs | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/LifePayment/LifePayment.Worker/Worker/GetStaticsWorker.cs b/LifePayment/LifePayment.Worker/Worker/GetStaticsWorker.cs
index d0e6ef7..03e5941 100644
--- a/LifePayment/LifePayment.Worker/Worker/GetStaticsWorker.cs
+++ b/LifePayment/LifePayment.Worker/Worker/GetStaticsWorker.cs
@@ -3,6 +3,7 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
+using NPOI.SS.Formula.Functions;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -16,14 +17,14 @@
{
public class GetStaticsWorker : AsyncPeriodicBackgroundWorkerBase
{
- private readonly ILifePayService _lifePayService;
+ private readonly IStatisticsService _statisticService;
private readonly int _doWorkHour = 0;
private readonly int _doWorkMinute = 30;
- public GetStaticsWorker(AbpAsyncTimer timer, IServiceScopeFactory serviceScopeFactory, ILifePayService lifePayService) : base(timer, serviceScopeFactory)
+ public GetStaticsWorker(AbpAsyncTimer timer, IServiceScopeFactory serviceScopeFactory, IStatisticsService statisticService) : base(timer, serviceScopeFactory)
{
- _lifePayService = lifePayService;
+ _statisticService = statisticService;
timer.Period = PeriodTool.CalcuPeriodFromEveryDayTime(_doWorkHour, _doWorkMinute, 0);
- //timer.Period =5 * 60000;
+ //timer.Period =1 * 60000;
}
[UnitOfWork]
@@ -31,7 +32,7 @@
{
try
{
- await _lifePayService.GetTopStatistics();
+ await _statisticService.GetTopStatistics(new List<string>());
Logger.LogError($"鑾峰彇缁熻淇℃伅寮�濮�: {DateTime.Now}");
}
catch (Exception ex)
--
Gitblit v1.9.1