From 163027e4963220c61ba101ec8df5a753d7743b86 Mon Sep 17 00:00:00 2001 From: tq <1916474859@qq,com> Date: Tue, 22 Oct 2024 14:37:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E9=87=8F=E5=B7=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebStarter/Controllers/SwapOrderController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebStarter/Controllers/SwapOrderController.cs b/WebStarter/Controllers/SwapOrderController.cs index 5678d9c..c39a692 100644 --- a/WebStarter/Controllers/SwapOrderController.cs +++ b/WebStarter/Controllers/SwapOrderController.cs @@ -109,8 +109,8 @@ public class SwapOrderController : ControllerBase &&swapOrderBatteryResp.DownBatterySoc!=null ) { - swapOrder.ElectricQuantity = (swapOrderBatteryResp.UpNominalEnergy* swapOrderBatteryResp.UpBatterySoc- - swapOrderBatteryResp.DownNominalEnergy*swapOrderBatteryResp.DownBatterySoc).ToString(); + swapOrder.ElectricQuantity = (swapOrderBatteryResp.UpNominalEnergy* (swapOrderBatteryResp.UpBatterySoc/100)- + swapOrderBatteryResp.DownNominalEnergy*(swapOrderBatteryResp.DownBatterySoc/100)).ToString(); } }