From 083bfca88569ede7eaf67f466e0bdefe07a71542 Mon Sep 17 00:00:00 2001 From: CZ Date: Tue, 25 Jun 2024 20:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=85=E7=94=B5=E6=9C=BA=E5=8A=9F=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebStarter/Controllers/BinInfoController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebStarter/Controllers/BinInfoController.cs b/WebStarter/Controllers/BinInfoController.cs index 5b44519..6ab334c 100644 --- a/WebStarter/Controllers/BinInfoController.cs +++ b/WebStarter/Controllers/BinInfoController.cs @@ -104,7 +104,8 @@ public class BinInfoController : ControllerBase [HttpGet("ChargePower/{code}")] public Result 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; if (chargePower == null)