From bc87c29823b259b7bf4826f3b32c5ed727564697 Mon Sep 17 00:00:00 2001 From: lxw Date: Thu, 19 Sep 2024 15:18:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E7=94=B5=E8=AE=A2=E5=8D=95=E7=94=B5?= =?UTF-8?q?=E6=B1=A0=E4=BF=A1=E6=81=AF=E5=AD=98=E5=82=A8=20=E6=8F=90?= =?UTF-8?q?=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Execute/Step/DoSwappingState.cs | 3 ++- Service/Execute/Step/SwapDoneState.cs | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Service/Execute/Step/DoSwappingState.cs b/Service/Execute/Step/DoSwappingState.cs index ae2d6c3..2756436 100644 --- a/Service/Execute/Step/DoSwappingState.cs +++ b/Service/Execute/Step/DoSwappingState.cs @@ -72,6 +72,7 @@ public class DoSwappingState : IState { return SwappingStateMachine.ReturnWithInvokeErr(oldBatteryCarryIn, ExceptionReason.None); } + _CommonMgr.SaveSwapBattery(machine); //新电池搬运 InvokeStatus newBatteryCarryOut = NewBatteryCarryOut(machine); @@ -93,7 +94,7 @@ public class DoSwappingState : IState { return SwappingStateMachine.ReturnWithInvokeErr(packFinish, ExceptionReason.None); } - + //航车回归安全位置 InvokeStatus toInvokeStatus = ToSafePosition(machine); diff --git a/Service/Execute/Step/SwapDoneState.cs b/Service/Execute/Step/SwapDoneState.cs index 8af8aec..a07b49c 100644 --- a/Service/Execute/Step/SwapDoneState.cs +++ b/Service/Execute/Step/SwapDoneState.cs @@ -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)