#更新实时消息具体字段

This commit is contained in:
2026-10-20 09:04:57 +08:00
parent 9e3ec6a1dd
commit e57699dbdf
7 changed files with 214 additions and 39 deletions

View File

@@ -350,6 +350,7 @@ public class DeviceThreadService {
}
// todo 删除实时消息推送里面的数据
siteMemory.removeMapPushDTO(deviceId);
siteMemory.removeVehicleMessage(deviceId);
}
statusChangePush(deviceId, siteId, 0);
@@ -386,12 +387,14 @@ public class DeviceThreadService {
if (slaveDevice != null) {
slaveDevice.setOnlineStatus(1);
slaveDevice.setDevice(device);
statusChangePush(deviceId, device.getSiteId(), 1);
}
} else {
// todo 推送设备上线
nettyDevice.status(1);
nettyDevice.setDevice(device);
statusChangePush(deviceId, nettyDevice.getDevice().getSiteId(), 1);
nettyDevice.setConnectorStatus(ConnectorStatus.ACTIVE);
statusChangePush(deviceId, device.getSiteId(), 1);
}
}
});