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(); } }