From f5285ee1ed30fe3a5c0d505798a90aa62c09c279 Mon Sep 17 00:00:00 2001 From: tq <1916474859@qq,com> Date: Fri, 12 Jul 2024 15:59:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=AD=A5=E5=BA=8F=E4=BA=91?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E4=B8=8B=E5=8F=91=E6=8D=A2=E7=94=B5=E6=8C=87?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Entity/Constant/InfoEnum.cs | 2 +- Service/Execute/Step/SwapCanStartState.cs | 4 ++-- Service/Execute/SwappingStateMachine.cs | 22 +++++++++++----------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Entity/Constant/InfoEnum.cs b/Entity/Constant/InfoEnum.cs index 3e121c3..1da050e 100644 --- a/Entity/Constant/InfoEnum.cs +++ b/Entity/Constant/InfoEnum.cs @@ -105,7 +105,7 @@ public class InfoEnum [Const("rfid扫描完成")] RfidReadFlag, [Const("云平台车辆认证")] CloudVelCheckFlag, [Const("车辆到位")] CarInPositionFlag, - [Const("云平台下发换电指令")] CloudCarCanStartFlag, + // [Const("云平台下发换电指令")] CloudCarCanStartFlag, [Const("车辆解锁")] VelUnlockFlag, // [Const("下发plc选包")] DistributeSelectPackFlag, diff --git a/Service/Execute/Step/SwapCanStartState.cs b/Service/Execute/Step/SwapCanStartState.cs index ee048d0..1c42e9d 100644 --- a/Service/Execute/Step/SwapCanStartState.cs +++ b/Service/Execute/Step/SwapCanStartState.cs @@ -69,8 +69,8 @@ public class SwapCanStartState : IState _swapOrderRepository.Update(machine.SwapOrder.CloudSn); machine.CloudCarCanStartFlag = true; - _swapOrderStepService.InsertSwapStepForSwapMain(InfoEnum.BusinessSwappingStep.CloudCarCanStartFlag, - machine.StepSort++, machine.SwapOrder.Sn); + // _swapOrderStepService.InsertSwapStepForSwapMain(InfoEnum.BusinessSwappingStep.CloudCarCanStartFlag, + // machine.StepSort++, machine.SwapOrder.Sn); } else { diff --git a/Service/Execute/SwappingStateMachine.cs b/Service/Execute/SwappingStateMachine.cs index 55c66bb..cac3323 100644 --- a/Service/Execute/SwappingStateMachine.cs +++ b/Service/Execute/SwappingStateMachine.cs @@ -75,19 +75,19 @@ public class SwappingStateMachine : IDisposable ["2"] = new StepModel { StepNo = 2, Status = 0, StepName = "rfid扫描完成" }, ["3"] = new StepModel { StepNo = 3, Status = 0, StepName = "云平台车辆认证" }, ["4"] = new StepModel { StepNo = 4, Status = 0, StepName = "车辆到位" }, - ["5"] = new StepModel { StepNo = 5, Status = 0, StepName = "云平台下发换电指令" }, - ["6"] = new StepModel { StepNo = 6, Status = 0, StepName = "车辆解锁" }, + // ["5"] = new StepModel { StepNo = 5, Status = 0, StepName = "云平台下发换电指令" }, + ["5"] = new StepModel { StepNo = 5, Status = 0, StepName = "车辆解锁" }, //["6"] = new StepModel { StepNo = 6, Status = 0, StepName = "下发plc选包" }, - ["7"] = new StepModel { StepNo = 7, Status = 0, StepName = "开始换电" }, - ["8"] = new StepModel { StepNo = 8, Status = 0, StepName = "拆旧电池完成" }, - ["9"] = new StepModel { StepNo = 9, Status = 0, StepName = "入库旧电池完成" }, - ["10"] = new StepModel { StepNo = 10, Status = 0, StepName = "搬运新电池完成" }, - ["11"] = new StepModel { StepNo = 11, Status = 0, StepName = "安装新电池完成" }, - ["12"] = new StepModel { StepNo = 12, Status = 0, StepName = "安装完成" }, - ["13"] = new StepModel { StepNo = 13, Status = 0, StepName = "车辆上锁" }, - ["14"] = new StepModel { StepNo = 14, Status = 0, StepName = "换电完成(车辆驶离)" }, - ["15"] = new StepModel { StepNo = 15, Status = 0, StepName = "换电失败(车辆驶离)" }, + ["6"] = new StepModel { StepNo = 6, Status = 0, StepName = "开始换电" }, + ["7"] = new StepModel { StepNo = 7, Status = 0, StepName = "拆旧电池完成" }, + ["8"] = new StepModel { StepNo = 8, Status = 0, StepName = "入库旧电池完成" }, + ["9"] = new StepModel { StepNo = 9, Status = 0, StepName = "搬运新电池完成" }, + ["10"] = new StepModel { StepNo = 10, Status = 0, StepName = "安装新电池完成" }, + ["11"] = new StepModel { StepNo = 11, Status = 0, StepName = "安装完成" }, + ["12"] = new StepModel { StepNo = 12, Status = 0, StepName = "车辆上锁" }, + ["13"] = new StepModel { StepNo = 13, Status = 0, StepName = "换电完成(车辆驶离)" }, + ["14"] = new StepModel { StepNo = 14, Status = 0, StepName = "换电失败(车辆驶离)" }, }; #region 小步状态