| | |
| | | if (pole == null) { |
| | | throw new BusinessException("灯杆不存在"); |
| | | } |
| | | pole.setUserId(clientId); |
| | | pole.setClientId(clientId); |
| | | if (!clientService.findClientId(clientId)) { |
| | | pole.setClientId(clientService.getClientId(clientId)); |
| | | pole.setUserId(clientService.getClientId(clientId)); |
| | | |
| | | } |
| | | r = updateById(pole); |
| | | |
| | |
| | | throw new BusinessException("设备不存在"); |
| | | } |
| | | //关闭推送 |
| | | SpringContextHolder.getBean(LightemitUtils.class).clear(xixun.getDeviceCode()); |
| | | |
| | | String clear = SpringContextHolder.getBean(LightemitUtils.class).clear(xixun.getDeviceCode()); |
| | | if (clear.contains("is not") || clear.contains("does not")) { |
| | | throw new BusinessException("设备不在线或设备未存在于服务器"); |
| | | } |
| | | } |
| | | |
| | | /** |