修复在修改设备信息的移动位置订阅由非0值改为0值时不生效的问题。

This commit is contained in:
xubinbin 2023-10-10 15:17:06 +08:00
parent 205f1f1f60
commit 4084080a8e

View File

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