|
|
@ -104,7 +104,8 @@ public class BinInfoController : ControllerBase
|
|
|
|
[HttpGet("ChargePower/{code}")]
|
|
|
|
[HttpGet("ChargePower/{code}")]
|
|
|
|
public Result<float> ChargePower(string code)
|
|
|
|
public Result<float> ChargePower(string code)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
EquipInfo equipInfo = _equipInfoRepository.QueryByClause(i => i.Code == code);
|
|
|
|
string _code = _BinInfoRepository.QueryByClause(i => i.Code == code).ChargerNo;
|
|
|
|
|
|
|
|
EquipInfo equipInfo = _equipInfoRepository.QueryByClause(i => i.Code == _code);
|
|
|
|
|
|
|
|
|
|
|
|
float? chargePower = equipInfo.ChargePower;
|
|
|
|
float? chargePower = equipInfo.ChargePower;
|
|
|
|
if (chargePower == null)
|
|
|
|
if (chargePower == null)
|
|
|
|