From e229aa459b9ff9d4da9edfe79594ebd1e7f41589 Mon Sep 17 00:00:00 2001 From: lxw Date: Fri, 14 Jun 2024 14:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E8=A1=A8=E6=95=B0=E6=8D=AE=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=8E=BB=E6=8E=89=20=E5=85=85=E7=94=B5=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Charger/MyTask/EmeterEnergyRecordTask.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Service/Charger/MyTask/EmeterEnergyRecordTask.cs b/Service/Charger/MyTask/EmeterEnergyRecordTask.cs index e92f6ec..0d82708 100644 --- a/Service/Charger/MyTask/EmeterEnergyRecordTask.cs +++ b/Service/Charger/MyTask/EmeterEnergyRecordTask.cs @@ -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); - } + } } }