充电机页面展示一些修改

zw
lxw 6 months ago
parent b64960b4b9
commit 1e8194189c

@ -182,4 +182,9 @@ public partial class BinInfoResp
/// 充电禁用标志 0:不可充电 1:可以充电
/// </summary>
public int CanChargeFlag { get; set; }
/// <summary>
/// 充电机是否连接
/// </summary>
public bool ChargeConnectFlag { get; set; }
}

@ -45,10 +45,12 @@ public class ChargeController : ControllerBase
// 功率赋值
foreach (var binInfoResp in binInfoList)
{
ChargerClient? chargerClient = ClientMgr.GetBySn(binInfoResp.Code);
ChargerClient? chargerClient = ClientMgr.GetBySn(binInfoResp.ChargerNo);
if (chargerClient != null)
{
binInfoResp.power = chargerClient.RealTimeChargePower;
binInfoResp.ChargeConnectFlag = chargerClient.Connected;
}
}

Loading…
Cancel
Save