Browse Source

更新上下线关系

master
fyf 2 years ago
parent
commit
fb75abea35
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      DataVAPI/UpAndDown/ProcessServer.cs

+ 3
- 2
DataVAPI/UpAndDown/ProcessServer.cs View File

@@ -205,10 +205,11 @@ namespace DataVAPI.UpAndDown
deviceId = par.DeviceId
};
ConsoleHelper.WriteSuccessLine($"加载设备.{par.devtype} {par.remark}");
devModel.operatingDeviceStatus.data.Insert(0, devStatus);

DevStatus dev= devStatuses?.Find(k => k.deviceName == par.devicename);

if (dev != null && dev.DeviceZT == "在线") { devStatus.SetStatus(dev.DeviceZT); }
devModel.operatingDeviceStatus.data.Insert(0, devStatus);
if (dev != null && dev.DeviceZT == "在线")
{
OnOrOffline(dev.DeviceZT, devModel.operatingDeviceStatus.data, devStatus);


Loading…
Cancel
Save