修改上报云平台数据 新起线程处理,解决从站控角度处理云平台能立马收到数据

zw
lxw 6 months ago
parent 6ab33ee838
commit 1f745b55a7

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

@ -29,7 +29,7 @@ public class SwapOrderReportCloudTask : ITask
public int Interval() public int Interval()
{ {
return 1000 * 20; return 1000 * 3;
} }
public void Handle() public void Handle()

Loading…
Cancel
Save