From 2b469ccd4032c53e08945790583ae18c4cb89df8 Mon Sep 17 00:00:00 2001 From: CZ Date: Mon, 8 Jul 2024 15:43:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=BE=E5=88=B0=E5=85=85=E7=94=B5SOC?= =?UTF-8?q?=E5=90=8E=E5=8F=96=E6=B6=88=E5=81=9C=E6=AD=A2=E5=85=85=E7=94=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Charger/MyTask/AutoChargeTask.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Service/Charger/MyTask/AutoChargeTask.cs b/Service/Charger/MyTask/AutoChargeTask.cs index 4766f4d..1afc403 100644 --- a/Service/Charger/MyTask/AutoChargeTask.cs +++ b/Service/Charger/MyTask/AutoChargeTask.cs @@ -153,16 +153,7 @@ public class AutoChargeTask : ITask List chargingList = binInfos.Where(it => it.ChargeStatus == 1).ToList(); Log.Info( $"chargingList={JsonConvert.SerializeObject(chargingList.Select(info => info.Code + "," + info.ChargerNo).ToList())}"); - if (canSwapList.Count >= needBatteryCount) - { - Log.Info($"can swap count {canSwapList.Count} > {needBatteryCount}, all stop={JsonConvert.SerializeObject(chargingList.Select(info => info.Code + "," + info.ChargerNo).ToList())}"); - foreach (var t in chargingList) - { - Log.Info($"auto stop charge {t.No}"); - ClientMgr.GetBySn(t.ChargerNo)?.SendRemoteStopCharging(); - } - } - else + if (canSwapList.Count <= needBatteryCount) { List canChargeList = binInfos.Where(it => it.Soc != null && Convert.ToSingle(it.Soc) < StaticStationInfo.SwapSoc &&