Merge pull request #1102 from xu-bin-bin/wvp-28181-2.0

修复在修改设备信息的移动位置订阅由非0值改为0值时不生效的问题
pull/1138/head
648540858 2023-10-27 15:42:32 +08:00 committed by GitHub
commit af911d4f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -546,6 +546,8 @@ public class DeviceServiceImpl implements IDeviceService {
}
}else if (device.getSubscribeCycleForMobilePosition() == 0) {
if (deviceInStore.getSubscribeCycleForMobilePosition() != 0) {
deviceInStore.setMobilePositionSubmissionInterval(device.getMobilePositionSubmissionInterval());
deviceInStore.setSubscribeCycleForMobilePosition(device.getSubscribeCycleForMobilePosition());
// 取消订阅
removeMobilePositionSubscribe(deviceInStore);
}