|
|
|
@ -39,9 +39,7 @@ public class EmeterEnergyRecordTask : ITask
|
|
|
|
|
var chargerClient = keyValuePair.Value;
|
|
|
|
|
if (chargerClient.Connected)
|
|
|
|
|
{
|
|
|
|
|
//充电机工作中,正在充电中
|
|
|
|
|
if (chargerClient.Workstate == 2 && chargerClient.IsCharged)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
string id = DateTime.Now.ToString("yyyyMMddHHmmss");
|
|
|
|
|
EmeterEnergy emeterEnergy = new()
|
|
|
|
|
{
|
|
|
|
@ -61,7 +59,7 @@ public class EmeterEnergyRecordTask : ITask
|
|
|
|
|
UploadTime = DateTime.Now
|
|
|
|
|
};
|
|
|
|
|
EmeterEnergyChangeRepository.Insert(emeterEnergyChange);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|