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

master
lxw 2 months ago
parent 8e621783dc
commit bc87c29823

@ -72,6 +72,7 @@ public class DoSwappingState : IState
{ {
return SwappingStateMachine.ReturnWithInvokeErr(oldBatteryCarryIn, ExceptionReason.None); return SwappingStateMachine.ReturnWithInvokeErr(oldBatteryCarryIn, ExceptionReason.None);
} }
_CommonMgr.SaveSwapBattery(machine);
//新电池搬运 //新电池搬运
InvokeStatus newBatteryCarryOut = NewBatteryCarryOut(machine); InvokeStatus newBatteryCarryOut = NewBatteryCarryOut(machine);
@ -93,7 +94,7 @@ public class DoSwappingState : IState
{ {
return SwappingStateMachine.ReturnWithInvokeErr(packFinish, ExceptionReason.None); return SwappingStateMachine.ReturnWithInvokeErr(packFinish, ExceptionReason.None);
} }
//航车回归安全位置 //航车回归安全位置
InvokeStatus toInvokeStatus = ToSafePosition(machine); InvokeStatus toInvokeStatus = ToSafePosition(machine);

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

Loading…
Cancel
Save