old mode 100644
new mode 100755
| | |
| | | redisCatchStorage.updateDevice(device); |
| | | deviceMapper.update(device); |
| | | //进行通道离线 |
| | | deviceChannelMapper.offlineByDeviceId(deviceId); |
| | | // deviceChannelMapper.offlineByDeviceId(deviceId); |
| | | // 离线释放所有ssrc |
| | | List<SsrcTransaction> ssrcTransactions = streamSession.getSsrcTransactionForAll(deviceId, null, null, null); |
| | | if (ssrcTransactions != null && ssrcTransactions.size() > 0) { |
| | |
| | | if (deviceInStore.getGeoCoordSys() != null) { |
| | | // 坐标系变化,需要重新计算GCJ02坐标和WGS84坐标 |
| | | if (!deviceInStore.getGeoCoordSys().equals(device.getGeoCoordSys())) { |
| | | updateDeviceChannelGeoCoordSys(device); |
| | | deviceInStore.setGeoCoordSys(device.getGeoCoordSys()); |
| | | updateDeviceChannelGeoCoordSys(deviceInStore); |
| | | } |
| | | }else { |
| | | device.setGeoCoordSys("WGS84"); |
| | | deviceInStore.setGeoCoordSys("WGS84"); |
| | | } |
| | | if (device.getCharset() == null) { |
| | | device.setCharset("GB2312"); |
| | | deviceInStore.setCharset("GB2312"); |
| | | } |
| | | |
| | | // 更新redis |
| | | redisCatchStorage.updateDevice(device); |
| | | deviceMapper.updateCustom(device); |
| | | deviceMapper.updateCustom(deviceInStore); |
| | | redisCatchStorage.removeDevice(deviceInStore.getDeviceId()); |
| | | } |
| | | |
| | | @Override |