系统配置默认充电功率

master
smartwyy 6 months ago
parent 7c708f741f
commit 9792612377

@ -426,7 +426,8 @@ public class ChargerClient : TcpClient<IBaseHandler, Decoder, Encoder>
redisHelper.SetKeyValueStr($"chargeNo{BinNo}Start", DateTime.Now.ToString("f"), TimeSpan.FromMinutes(1));
byte chargeSoc = StaticStationInfo.ChargeSoc;
string chargeOrderNo = SendRemoteStartCharging(chargeSoc);
float chargePower = StaticStationInfo.ChargePower;
string chargeOrderNo = SendRemoteStartCharging(chargeSoc, chargePower);
_chargeOrderRepository.Insert(new ChargeOrder()
{

@ -94,6 +94,12 @@ public class StaticStationInfo
get => byte.Parse(Resolve(StationParamConst.ChargeSoc));
set => Set(StationParamConst.ChargeSoc, value);
}
public static float ChargePower
{
get => float.Parse(Resolve(StationParamConst.ChargePower));
set => Set(StationParamConst.ChargeSoc, value);
}
/// <summary>
/// 0-关闭 1-开启

@ -189,6 +189,7 @@ public class StationParamConst
//充电soc
public static readonly string ChargeSoc = "Station.ChargeSoc";
public static readonly string ChargePower = "Station.ChargePower";
public static readonly string AutoChargeEnabled = "Station.AutoChargeEnabled";
public static readonly string Eid = "Station.Eid";
public static readonly string Oid = "Station.Oid";

Loading…
Cancel
Save