From 8d0bd3c3c2c49dd4fcc50558939144e5a31b85d7 Mon Sep 17 00:00:00 2001 From: lxw Date: Tue, 2 Jul 2024 10:05:45 +0800 Subject: [PATCH] Job --- Service/MyJob/EmeterMinuteJob.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Service/MyJob/EmeterMinuteJob.cs b/Service/MyJob/EmeterMinuteJob.cs index 21cce42..2eb9b98 100644 --- a/Service/MyJob/EmeterMinuteJob.cs +++ b/Service/MyJob/EmeterMinuteJob.cs @@ -27,7 +27,7 @@ public class EmeterMinuteJob : AbstrackCronJob protected override Task Handle() { - /*var now = DateTime.Now; + var now = DateTime.Now; Log.Info($"EmeterMinuteJob execute time={now}"); //查询上一分钟的数据 string dateTime = now.AddMinutes(-1).ToString("yyyy-MM-dd HH:mm"); @@ -55,7 +55,7 @@ public class EmeterMinuteJob : AbstrackCronJob { Dictionary> dictionaryChange = emeterEnergiesChange.GroupBy(i => i.Code).ToDictionary(i => i.Key, i => i.ToList()); - }*/ + } return Task.CompletedTask; }