lxw 5 months ago
parent ddbabbc482
commit 8d0bd3c3c2

@ -27,7 +27,7 @@ public class EmeterMinuteJob : AbstrackCronJob
protected override Task Handle() protected override Task Handle()
{ {
/*var now = DateTime.Now; var now = DateTime.Now;
Log.Info($"EmeterMinuteJob execute time={now}"); Log.Info($"EmeterMinuteJob execute time={now}");
//查询上一分钟的数据 //查询上一分钟的数据
string dateTime = now.AddMinutes(-1).ToString("yyyy-MM-dd HH:mm"); string dateTime = now.AddMinutes(-1).ToString("yyyy-MM-dd HH:mm");
@ -55,7 +55,7 @@ public class EmeterMinuteJob : AbstrackCronJob
{ {
Dictionary<string, List<EmeterEnergyChange>> dictionaryChange = Dictionary<string, List<EmeterEnergyChange>> dictionaryChange =
emeterEnergiesChange.GroupBy(i => i.Code).ToDictionary(i => i.Key, i => i.ToList()); emeterEnergiesChange.GroupBy(i => i.Code).ToDictionary(i => i.Key, i => i.ToList());
}*/ }
return Task.CompletedTask; return Task.CompletedTask;
} }

Loading…
Cancel
Save