[集群] 增加通道刷新状态消息

This commit is contained in:
648540858
2025-01-21 17:04:51 +08:00
parent 01f491c026
commit 4e66e2bc6d
5 changed files with 38 additions and 2 deletions

View File

@@ -346,6 +346,13 @@ public class DeviceServiceImpl implements IDeviceService {
@Override
public SyncStatus getChannelSyncStatus(String deviceId) {
Device device = deviceMapper.getDeviceByDeviceId(deviceId);
if (device == null) {
throw new ControllerException(ErrorCode.ERROR404.getCode(), "设备不存在");
}
if (!userSetting.getServerId().equals(device.getServerId())) {
return redisRpcService.getChannelSyncStatus(device.getServerId(), deviceId);
}
return catalogResponseMessageHandler.getChannelSyncProgress(deviceId);
}