移仓完成判断增加待机中

master
lxw 5 months ago
parent 84580ebc79
commit 3e2d655b99

@ -24,7 +24,7 @@ public class ManualSuccState : IState
AppInfo.Container.Resolve<ManualOperationRecordRepository>();
public StateResult Handle(SwappingStateMachine machine)
{
_log.Info($"'goto ManualSucc");
_log.Info($"goto ManualSucc");
try
{
machine.ManualSwapSuccFlag = false;

@ -282,6 +282,8 @@ public class SwappingStateMachine : IDisposable
BusinessSwappingForCloudState = InfoEnum.BusinessSwappingForCloudState.Idle;
BusinessSwappingStateUpdateTime = DateTime.Now;
ExceptionReason = ExceptionReason.None;
OperateModel = null;
;
//换电实时状态 0开始 1成功 2:失败
SwapStatus = null;

@ -32,7 +32,7 @@ public class PlcTaskMgr
$"PlcTaskMgr.QueryPlcTask taskNo={taskNo} execute fail readPlcTaskStatus={readPlcTaskStatus}");
throw new Exception("PlcTaskMgr.QueryPlcTask readPlcTaskStatus=" + readPlcTaskStatus);
}
else if (9000 == readPlcTaskStatus)
else if (9000 == readPlcTaskStatus || 1001== readPlcTaskStatus )
{
isSuccess = true;
}

Loading…
Cancel
Save