|
|
@@ -179,7 +179,7 @@ namespace DataVAPI.UpAndDown |
|
|
|
JsonMsg<List<DeviceTable>> jsonMsg = deviceController.Query("", "", DateTime.MinValue, DateTime.MinValue); |
|
|
|
if (jsonMsg?.obj?.data.Count > 0) |
|
|
|
{ |
|
|
|
if (devStatuses.Count != devModel.operatingDeviceStatus.data.Count) |
|
|
|
//if ((devStatuses.Count != devModel.operatingDeviceStatus.data.Count) || devStatuses.Count<=0) |
|
|
|
{ |
|
|
|
devModel.operatingDeviceStatus.data.Clear(); |
|
|
|
jsonMsg?.obj?.data?.ForEach(par => |
|
|
@@ -267,7 +267,7 @@ namespace DataVAPI.UpAndDown |
|
|
|
//devModel?.infoMessage?.data?.Add(new DeviceBase { DeviceMC = receiveModel.deviceContext.deviceName, DeviceMS = $"设备{receiveModel.status.value}了!", DeviceSJ = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") }); |
|
|
|
|
|
|
|
DevStatus dev = devModel?.operatingDeviceStatus.data?.Find(par => par.deviceName == receiveModel.deviceContext.deviceName); |
|
|
|
if (dev != null) { LoadingShopInformation(); } |
|
|
|
if (dev == null) { LoadingShopInformation(); } |
|
|
|
dev = devModel?.operatingDeviceStatus.data?.Find(par => par.deviceName == receiveModel.deviceContext.deviceName); |
|
|
|
if (dev != null) |
|
|
|
{ |
|
|
|