From e6c70995afccb57b080de7e5dc0393d8831c673b Mon Sep 17 00:00:00 2001 From: lxw Date: Wed, 12 Jun 2024 14:37:47 +0800 Subject: [PATCH] =?UTF-8?q?6.21=E7=8E=B0=E5=9C=BA=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Execute/Step/SwapDoneState.cs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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)