diff --git a/Service/Execute/Step/SwapDoneState.cs b/Service/Execute/Step/SwapDoneState.cs index 8bd6f2c..4c160a9 100644 --- a/Service/Execute/Step/SwapDoneState.cs +++ b/Service/Execute/Step/SwapDoneState.cs @@ -43,14 +43,16 @@ public class SwapDoneState : IState _CommonMgr.UpdateAmtOrder(machine); } - - //新增换电成功上报云平台数据 - _CommonMgr.InsertCloudReportForSwapSuccess(machine); - //换电成功关于bininfo表的更新 - _CommonMgr.UpdateBinInfoForSwapSuccess(machine); - - //可人工确认换电成功标识 - machine.PlcSwapFlag = true; + Task.Run(() => + { + //新增换电成功上报云平台数据 + _CommonMgr.InsertCloudReportForSwapSuccess(machine); + //换电成功关于bininfo表的更新 + _CommonMgr.UpdateBinInfoForSwapSuccess(machine); + + //可人工确认换电成功标识 + machine.PlcSwapFlag = true; + }); if (machine.SwapStatus == (int)InfoEnum.SwapOrderResult.Success)