站外充电机充电功率设置

master
CZ 4 months ago
parent 4ac43d97f5
commit 89711eed42

@ -23,7 +23,7 @@ public class PileAdjustPower: ASDU
/// <summary>
///期望运行 功率
/// </summary>
[Property(8, 16, PropertyReadConstant.Bit, 0.1, 1)]
[Property(16, 16, PropertyReadConstant.Bit, 0.1, 1)]
public float ExpectPower { get; set; }

@ -6,6 +6,7 @@ using Service.Charger.Client;
using Service.Charger.Common;
using Service.Charger.Msg.Http.Req;
using Service.Init;
using Service.Station;
namespace WebStarter.Controllers;
@ -18,10 +19,11 @@ namespace WebStarter.Controllers;
public class OutChargerController
{
private ChargeOrderRepository _chargeOrderRepository;
public OutChargerController(ChargeOrderRepository chargeOrderRepository)
private BinInfoService _binInfoService;
public OutChargerController(ChargeOrderRepository chargeOrderRepository,BinInfoService binInfoService)
{
_chargeOrderRepository = chargeOrderRepository;
_binInfoService = binInfoService;
}
/// <summary>
@ -114,7 +116,8 @@ public class OutChargerController
return Result<bool>.Fail("请选择1枪或者2枪");
}
ChargerClient? chargerClient = ClientMgr.GetBySn(code);
string _code = _binInfoService.QueryByClause(i => i.Code == code).ChargerNo;
ChargerClient? chargerClient = ClientMgr.GetBySn(_code);
if (chargerClient != null)
{

Loading…
Cancel
Save