|
|
@ -1,11 +1,9 @@
|
|
|
|
using System.Collections.Concurrent;
|
|
|
|
using System.Collections.Concurrent;
|
|
|
|
using Autofac;
|
|
|
|
using Autofac;
|
|
|
|
using DotNetty.Common.Utilities;
|
|
|
|
|
|
|
|
using Entity.Constant;
|
|
|
|
using Entity.Constant;
|
|
|
|
using Entity.DbModel.Station;
|
|
|
|
using Entity.DbModel.Station;
|
|
|
|
using HybirdFrameworkCore.Autofac;
|
|
|
|
using HybirdFrameworkCore.Autofac;
|
|
|
|
using log4net;
|
|
|
|
using log4net;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
using Repository.Station;
|
|
|
|
using Repository.Station;
|
|
|
|
using Service.Charger.Client;
|
|
|
|
using Service.Charger.Client;
|
|
|
|
using Service.Execute.Api;
|
|
|
|
using Service.Execute.Api;
|
|
|
@ -73,7 +71,7 @@ public class SwappingStateMachine : IDisposable
|
|
|
|
["0"] = new StepModel { StepNo = 0, Status = 0, StepName = "空闲" },
|
|
|
|
["0"] = new StepModel { StepNo = 0, Status = 0, StepName = "空闲" },
|
|
|
|
["1"] = new StepModel { StepNo = 1, Status = 0, StepName = "车辆到站(入口雷达检测到车辆驶入)" },
|
|
|
|
["1"] = new StepModel { StepNo = 1, Status = 0, StepName = "车辆到站(入口雷达检测到车辆驶入)" },
|
|
|
|
["2"] = new StepModel { StepNo = 2, Status = 0, StepName = "rfid扫描完成" },
|
|
|
|
["2"] = new StepModel { StepNo = 2, Status = 0, StepName = "rfid扫描完成" },
|
|
|
|
["3"] = new StepModel { StepNo = 3, Status = 0, StepName = "云平台车辆认证" },
|
|
|
|
//["3"] = new StepModel { StepNo = 3, Status = 0, StepName = "云平台车辆认证" },
|
|
|
|
["4"] = new StepModel { StepNo = 4, Status = 0, StepName = "车辆到位" },
|
|
|
|
["4"] = new StepModel { StepNo = 4, Status = 0, StepName = "车辆到位" },
|
|
|
|
// ["5"] = new StepModel { StepNo = 5, Status = 0, StepName = "云平台下发换电指令" },
|
|
|
|
// ["5"] = new StepModel { StepNo = 5, Status = 0, StepName = "云平台下发换电指令" },
|
|
|
|
["5"] = new StepModel { StepNo = 5, Status = 0, StepName = "车辆解锁" },
|
|
|
|
["5"] = new StepModel { StepNo = 5, Status = 0, StepName = "车辆解锁" },
|
|
|
@ -81,13 +79,15 @@ public class SwappingStateMachine : IDisposable
|
|
|
|
|
|
|
|
|
|
|
|
["6"] = new StepModel { StepNo = 6, Status = 0, StepName = "开始换电" },
|
|
|
|
["6"] = new StepModel { StepNo = 6, Status = 0, StepName = "开始换电" },
|
|
|
|
["7"] = new StepModel { StepNo = 7, Status = 0, StepName = "拆旧电池完成" },
|
|
|
|
["7"] = new StepModel { StepNo = 7, Status = 0, StepName = "拆旧电池完成" },
|
|
|
|
["8"] = new StepModel { StepNo = 8, Status = 0, StepName = "入库旧电池完成" },
|
|
|
|
//["8"] = new StepModel { StepNo = 8, Status = 0, StepName = "入库旧电池完成" },
|
|
|
|
["9"] = new StepModel { StepNo = 9, Status = 0, StepName = "搬运新电池完成" },
|
|
|
|
//["9"] = new StepModel { StepNo = 9, Status = 0, StepName = "搬运新电池完成" },
|
|
|
|
["10"] = new StepModel { StepNo = 10, Status = 0, StepName = "安装新电池完成" },
|
|
|
|
["10"] = new StepModel { StepNo = 10, Status = 0, StepName = "安装新电池完成" },
|
|
|
|
["11"] = new StepModel { StepNo = 11, Status = 0, StepName = "安装完成" },
|
|
|
|
["11"] = new StepModel { StepNo = 11, Status = 0, StepName = "安装完成" },
|
|
|
|
["12"] = new StepModel { StepNo = 12, Status = 0, StepName = "车辆上锁" },
|
|
|
|
["12"] = new StepModel { StepNo = 12, Status = 0, StepName = "车辆上锁" },
|
|
|
|
["13"] = new StepModel { StepNo = 13, Status = 0, StepName = "换电完成(车辆驶离)" },
|
|
|
|
["13"] = new StepModel { StepNo = 13, Status = 0, StepName = "换电完成(车辆驶离)" },
|
|
|
|
["14"] = new StepModel { StepNo = 14, Status = 0, StepName = "换电失败(车辆驶离)" },
|
|
|
|
["14"] = new StepModel { StepNo = 14, Status = 0, StepName = "换电失败(车辆驶离)" },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#region 小步状态
|
|
|
|
#region 小步状态
|
|
|
|
|
|
|
|
|
|
|
|