|
|
|
@ -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)
|
|
|
|
|
{
|
|
|
|
|