From 0d0228b855821c05e4a0d586c2bfa162509ba7e4 Mon Sep 17 00:00:00 2001 From: lxw Date: Wed, 12 Jun 2024 11:25:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=B8=BB=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E9=87=8C=E6=96=B0=E8=B5=B7=E7=BA=BF=E7=A8=8B=E5=81=9A=E4=BA=91?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E6=95=B0=E6=8D=AE=E6=8F=92=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Execute/Step/SwapDoneState.cs | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Service/Execute/Step/SwapDoneState.cs b/Service/Execute/Step/SwapDoneState.cs index 20ab48c..8bd6f2c 100644 --- a/Service/Execute/Step/SwapDoneState.cs +++ b/Service/Execute/Step/SwapDoneState.cs @@ -43,16 +43,15 @@ public class SwapDoneState : IState _CommonMgr.UpdateAmtOrder(machine); } - Task.Run(() => - { - //新增换电成功上报云平台数据 - _CommonMgr.InsertCloudReportForSwapSuccess(machine); - //换电成功关于bininfo表的更新 - _CommonMgr.UpdateBinInfoForSwapSuccess(machine); - - //可人工确认换电成功标识 - machine.PlcSwapFlag = true; - }); + + //新增换电成功上报云平台数据 + _CommonMgr.InsertCloudReportForSwapSuccess(machine); + //换电成功关于bininfo表的更新 + _CommonMgr.UpdateBinInfoForSwapSuccess(machine); + + //可人工确认换电成功标识 + machine.PlcSwapFlag = true; + if (machine.SwapStatus == (int)InfoEnum.SwapOrderResult.Success) {