去掉主线程里新起线程做云平台数据插入

master
lxw 6 months ago
parent 1f745b55a7
commit 0d0228b855

@ -43,8 +43,7 @@ public class SwapDoneState : IState
_CommonMgr.UpdateAmtOrder(machine);
}
Task.Run(() =>
{
//新增换电成功上报云平台数据
_CommonMgr.InsertCloudReportForSwapSuccess(machine);
//换电成功关于bininfo表的更新
@ -52,7 +51,7 @@ public class SwapDoneState : IState
//可人工确认换电成功标识
machine.PlcSwapFlag = true;
});
if (machine.SwapStatus == (int)InfoEnum.SwapOrderResult.Success)
{

Loading…
Cancel
Save