From 245bdf840331713d71fbff93a55adfdf4984f0fb Mon Sep 17 00:00:00 2001 From: CZ Date: Thu, 1 Aug 2024 09:15:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E7=94=B5=E5=B0=8F=E6=AD=A5=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=9B=9E=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Execute/Step/StationReadyState.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Service/Execute/Step/StationReadyState.cs b/Service/Execute/Step/StationReadyState.cs index 0b3fc97..e1c1811 100644 --- a/Service/Execute/Step/StationReadyState.cs +++ b/Service/Execute/Step/StationReadyState.cs @@ -153,11 +153,6 @@ public class StationReadyState : IState _log.Info("entrance radar true"); machine.RadarInFlag = true; - //添加小步状态 - _CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.Idel, - machine); - _CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.RadarInFlag, - machine); } }, () => { }, true, () => { }, 2, InvokeStatus.TimeOut); } @@ -240,6 +235,10 @@ public class StationReadyState : IState //新增换电订单 machine.SwapOrder = _CommonMgr.SaveOrder(BuildOrder(machine.RfidReadModel)); //新增小步 + _CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.Idel, + machine); + _CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.RadarInFlag, + machine); _CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.RfidReadFlag, machine); RfidApi.StopRead();