|
|
@ -80,9 +80,9 @@ public class SwapOrderSettleAnAccountTask : ITask
|
|
|
|
foreach (var swapOrderBattery in listSwapOrderBattery)
|
|
|
|
foreach (var swapOrderBattery in listSwapOrderBattery)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 换上的满电包soc*满电包的电池标量
|
|
|
|
// 换上的满电包soc*满电包的电池标量
|
|
|
|
decimal? upNominalEnergy = swapOrderBattery.UpBatterySoc * swapOrderBattery.UpNominalEnergy;
|
|
|
|
decimal? upNominalEnergy = swapOrderBattery.UpBatterySoc/100 * swapOrderBattery.UpNominalEnergy;
|
|
|
|
// 换下的亏电包soc*亏电包的电池标量
|
|
|
|
// 换下的亏电包soc*亏电包的电池标量
|
|
|
|
decimal? downNominalEnergy = swapOrderBattery.DownBatterySoc * swapOrderBattery.DownNominalEnergy;
|
|
|
|
decimal? downNominalEnergy = swapOrderBattery.DownBatterySoc/100 * swapOrderBattery.DownNominalEnergy;
|
|
|
|
|
|
|
|
|
|
|
|
// 电量费用
|
|
|
|
// 电量费用
|
|
|
|
decimal? electricCharge = (upNominalEnergy - downNominalEnergy) * electricityTotalFee;
|
|
|
|
decimal? electricCharge = (upNominalEnergy - downNominalEnergy) * electricityTotalFee;
|
|
|
|