优化级联移动位置订阅位置更新

This commit is contained in:
648540858
2022-04-13 17:59:21 +08:00
parent 3955e6ed53
commit efc4a7bc8e
11 changed files with 137 additions and 49 deletions

View File

@@ -99,7 +99,10 @@ public class OnlineEventListener implements ApplicationListener<OnlineEvent> {
storager.updateDevice(device);
// 上线添加订阅
if (device.getSubscribeCycleForCatalog() > 0) {
// 查询在线设备那些开启了订阅,为设备开启定时的目录订阅
deviceService.addCatalogSubscribe(device);
}
if (device.getSubscribeCycleForMobilePosition() > 0) {
deviceService.addMobilePositionSubscribe(device);
}
}