换电订单电池信息存储 提前

master
lxw 2 months ago
parent 8e621783dc
commit bc87c29823

@ -72,6 +72,7 @@ public class DoSwappingState : IState
{
return SwappingStateMachine.ReturnWithInvokeErr(oldBatteryCarryIn, ExceptionReason.None);
}
_CommonMgr.SaveSwapBattery(machine);
//新电池搬运
InvokeStatus newBatteryCarryOut = NewBatteryCarryOut(machine);

@ -35,8 +35,6 @@ public class SwapDoneState : IState
machine.SwapOrder.SwapEndTime = DateTime.Now;
machine.SwapOrder.FailReason = machine.SwapFailReason;
_CommonMgr.UpdateSwapOrder(machine);
_CommonMgr.SaveSwapBattery(machine);
//修改预约单
if (machine.SwapOrderBatteryInfo!.swapAmtOrder != null)

Loading…
Cancel
Save