From 2f0be3c8cd1813fae7ca1adccdd4d7e8b1222d1c Mon Sep 17 00:00:00 2001 From: CZ Date: Thu, 25 Jul 2024 14:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=B7=E8=BE=BE=E6=89=AB=E6=8F=8F=E5=88=B0?= =?UTF-8?q?=E8=BD=A6=E8=BE=86=E9=A9=B6=E5=85=A5=E6=B7=BB=E5=8A=A0=E5=B0=8F?= =?UTF-8?q?=E6=AD=A5=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Execute/Step/StationReadyState.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Service/Execute/Step/StationReadyState.cs b/Service/Execute/Step/StationReadyState.cs index 80a2798..0b3fc97 100644 --- a/Service/Execute/Step/StationReadyState.cs +++ b/Service/Execute/Step/StationReadyState.cs @@ -152,6 +152,12 @@ public class StationReadyState : IState machine.ExceptionReason = ExceptionReason.None; _log.Info("entrance radar true"); machine.RadarInFlag = true; + + //添加小步状态 + _CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.Idel, + machine); + _CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.RadarInFlag, + machine); } }, () => { }, true, () => { }, 2, InvokeStatus.TimeOut); } @@ -234,10 +240,6 @@ 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();