修复默认新建设备未设置节点策略的BUG

This commit is contained in:
648540858
2024-10-21 09:27:36 +08:00
parent 7d669f74ec
commit 36409eb34c
4 changed files with 8 additions and 7 deletions

View File

@@ -168,15 +168,13 @@ public class DeviceServiceImpl implements IDeviceService {
}
}else {
if (deviceChannelMapper.queryChannelsByDeviceDbId(device.getId()).isEmpty()) {
log.info("[设备上线]: {}通道数为0,查询通道信息", device.getDeviceId());
sync(device);
}
deviceMapper.update(device);
redisCatchStorage.updateDevice(device);
}
if (deviceChannelMapper.queryChannelsByDeviceDbId(device.getId()).isEmpty()) {
log.info("[设备上线]: {}通道数为0,查询通道信息", device.getDeviceId());
sync(device);
}
}
// 刷新过期任务