|
|
|
@ -36,6 +36,11 @@ public class EmeterEnergyRecordTask : ITask
|
|
|
|
|
{
|
|
|
|
|
List<EmeterEnergy> list = new List<EmeterEnergy>();
|
|
|
|
|
List<EmeterEnergyChange> listEmeterEnergyChanges = new List<EmeterEnergyChange>();
|
|
|
|
|
|
|
|
|
|
DateTime time = DateTime.Now.AddDays(-7);
|
|
|
|
|
EmeterEnergyRepository.Delete(i=>i.UploadTime<time);
|
|
|
|
|
EmeterEnergyChangeRepository.Delete(i=>i.UploadTime<time);
|
|
|
|
|
|
|
|
|
|
foreach (var keyValuePair in ClientMgr.Dictionary)
|
|
|
|
|
{
|
|
|
|
|
var chargerClient = keyValuePair.Value;
|
|
|
|
|