修复在修改设备信息的移动位置订阅由非0值改为0值时不生效的问题。
This commit is contained in:
parent
205f1f1f60
commit
4084080a8e
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user