Commit 4084080a8e8162260afc4733865c347a8a816d49
1 parent
205f1f1f
修复在修改设备信息的移动位置订阅由非0值改为0值时不生效的问题。
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java
| @@ -544,6 +544,8 @@ public class DeviceServiceImpl implements IDeviceService { | @@ -544,6 +544,8 @@ public class DeviceServiceImpl implements IDeviceService { | ||
| 544 | } | 544 | } |
| 545 | }else if (device.getSubscribeCycleForMobilePosition() == 0) { | 545 | }else if (device.getSubscribeCycleForMobilePosition() == 0) { |
| 546 | if (deviceInStore.getSubscribeCycleForMobilePosition() != 0) { | 546 | if (deviceInStore.getSubscribeCycleForMobilePosition() != 0) { |
| 547 | + deviceInStore.setMobilePositionSubmissionInterval(device.getMobilePositionSubmissionInterval()); | ||
| 548 | + deviceInStore.setSubscribeCycleForMobilePosition(device.getSubscribeCycleForMobilePosition()); | ||
| 547 | // 取消订阅 | 549 | // 取消订阅 |
| 548 | removeMobilePositionSubscribe(deviceInStore); | 550 | removeMobilePositionSubscribe(deviceInStore); |
| 549 | } | 551 | } |