|
|
|
@ -153,7 +153,6 @@ public class AutoChargeTask : ITask
|
|
|
|
|
List<BinInfo> chargingList = binInfos.Where(it => it.ChargeStatus == 1).ToList();
|
|
|
|
|
if (canSwapList.Count >= needBatteryCount)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
int needStopCount = chargingList.Count - (canSwapList.Count - needBatteryCount);
|
|
|
|
|
//if (needStopCount > 0)
|
|
|
|
|
if (chargingList.Count > 0)
|
|
|
|
@ -203,7 +202,8 @@ public class AutoChargeTask : ITask
|
|
|
|
|
|
|
|
|
|
foreach (var VARIABLE in chargingList)
|
|
|
|
|
{
|
|
|
|
|
if (VARIABLE.Soc >= StaticStationInfo.ChargeSoc)
|
|
|
|
|
if (StaticStationInfo.ChargeSoc != 100)
|
|
|
|
|
if (VARIABLE.Soc >= StaticStationInfo.ChargeSoc + 1)
|
|
|
|
|
{
|
|
|
|
|
Log.Info($"auto stop charge {VARIABLE.No} soc>=chaegeSoc");
|
|
|
|
|
ClientMgr.GetBySn(VARIABLE.No)?.SendRemoteStopCharging();
|
|
|
|
|