diff --git a/Service/MyTask/SwapOrderSettleAnAccountTask.cs b/Service/MyTask/SwapOrderSettleAnAccountTask.cs index 351b285..0f18ab6 100644 --- a/Service/MyTask/SwapOrderSettleAnAccountTask.cs +++ b/Service/MyTask/SwapOrderSettleAnAccountTask.cs @@ -80,9 +80,9 @@ public class SwapOrderSettleAnAccountTask : ITask foreach (var swapOrderBattery in listSwapOrderBattery) { // 换上的满电包soc*满电包的电池标量 - decimal? upNominalEnergy = swapOrderBattery.UpBatterySoc * swapOrderBattery.UpNominalEnergy; + decimal? upNominalEnergy = swapOrderBattery.UpBatterySoc/100 * swapOrderBattery.UpNominalEnergy; // 换下的亏电包soc*亏电包的电池标量 - decimal? downNominalEnergy = swapOrderBattery.DownBatterySoc * swapOrderBattery.DownNominalEnergy; + decimal? downNominalEnergy = swapOrderBattery.DownBatterySoc/100 * swapOrderBattery.DownNominalEnergy; // 电量费用 decimal? electricCharge = (upNominalEnergy - downNominalEnergy) * electricityTotalFee;