Commit af911d4f02426d6541eaa7abf8a850efb7cd1baf
Committed by
GitHub
Merge pull request #1102 from xu-bin-bin/wvp-28181-2.0
修复在修改设备信息的移动位置订阅由非0值改为0值时不生效的问题
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java
| ... | ... | @@ -546,6 +546,8 @@ public class DeviceServiceImpl implements IDeviceService { |
| 546 | 546 | } |
| 547 | 547 | }else if (device.getSubscribeCycleForMobilePosition() == 0) { |
| 548 | 548 | if (deviceInStore.getSubscribeCycleForMobilePosition() != 0) { |
| 549 | + deviceInStore.setMobilePositionSubmissionInterval(device.getMobilePositionSubmissionInterval()); | |
| 550 | + deviceInStore.setSubscribeCycleForMobilePosition(device.getSubscribeCycleForMobilePosition()); | |
| 549 | 551 | // 取消订阅 |
| 550 | 552 | removeMobilePositionSubscribe(deviceInStore); |
| 551 | 553 | } | ... | ... |