| | |
| | | }catch (Exception e) { |
| | | logger.error("[向上级转发移动位置失败] ", e); |
| | | } |
| | | if (mobilePosition.getChannelId() == null || mobilePosition.getChannelId().equals(mobilePosition.getDeviceId()) ) { |
| | | if (mobilePosition.getChannelId() == null || mobilePosition.getChannelId().equals(mobilePosition.getDeviceId())) { |
| | | List<DeviceChannel> channels = deviceChannelService.queryChaneListByDeviceId(mobilePosition.getDeviceId()); |
| | | channels.forEach(channel -> { |
| | | // 发送redis消息。 通知位置信息的变化 |
| | |
| | | } |
| | | taskQueue.clear(); |
| | | } |
| | | @Scheduled(fixedRate = 10000) |
| | | public void execute(){ |
| | | logger.info("[待处理Notify-移动位置订阅消息数量]: {}", taskQueue.size()); |
| | | } |
| | | // @Scheduled(fixedRate = 10000) |
| | | // public void execute(){ |
| | | // logger.debug("[待处理Notify-移动位置订阅消息数量]: {}", taskQueue.size()); |
| | | // } |
| | | } |