| | |
| | | catalog.setParentId(parentPlatform.getDeviceGBId()); |
| | | } |
| | | DeviceChannel deviceChannel = new DeviceChannel(); |
| | | // 通道的类型,0->国标通道 1->直播流通道 2->业务分组/虚拟组织/行政区划 |
| | | deviceChannel.setChannelType(2); |
| | | deviceChannel.setChannelId(catalog.getId()); |
| | | deviceChannel.setName(catalog.getName()); |
| | | deviceChannel.setLongitude(0.0); |
| | | deviceChannel.setLatitude(0.0); |
| | | deviceChannel.setDeviceId(parentPlatform.getDeviceGBId()); |
| | | deviceChannel.setManufacture("wvp-pro"); |
| | | deviceChannel.setStatus(1); |
| | | deviceChannel.setParental(1); |
| | | deviceChannel.setParentId(catalog.getParentId()); |
| | | deviceChannel.setRegisterWay(1); |
| | | deviceChannel.setCivilCode(parentPlatform.getDeviceGBId().substring(0,6)); |
| | | deviceChannel.setModel("live"); |
| | | deviceChannel.setOwner("wvp-pro"); |
| | | deviceChannel.setSecrecy("0"); |
| | | if (catalog.getParentId() != null && catalog.getParentId().length() < 10) { |
| | | deviceChannel.setCivilCode(catalog.getParentId()); |
| | | }else { |
| | | deviceChannel.setCivilCode(parentPlatform.getAdministrativeDivision()); |
| | | } |
| | | allChannels.add(deviceChannel); |
| | | } |
| | | } |
| | |
| | | channel.setCatalogId(parentPlatform.getDeviceGBId()); |
| | | } |
| | | DeviceChannel deviceChannel = storage.queryChannel(channel.getDeviceId(), channel.getChannelId()); |
| | | // 通道的类型,0->国标通道 1->直播流通道 2->业务分组/虚拟组织/行政区划 |
| | | deviceChannel.setChannelType(0); |
| | | deviceChannel.setParental(0); |
| | | deviceChannel.setParentId(channel.getCatalogId()); |
| | | deviceChannel.setCivilCode(parentPlatform.getDeviceGBId().substring(0, 6)); |
| | | if (channel.getCatalogId() != null && channel.getCatalogId().length() < 10) { |
| | | deviceChannel.setCivilCode(channel.getCatalogId()); |
| | | }else { |
| | | deviceChannel.setCivilCode(parentPlatform.getAdministrativeDivision()); |
| | | } |
| | | allChannels.add(deviceChannel); |
| | | } |
| | | } |
| | |
| | | gbStream.setCatalogId(null); |
| | | } |
| | | DeviceChannel deviceChannel = new DeviceChannel(); |
| | | // 通道的类型,0->国标通道 1->直播流通道 2->业务分组/虚拟组织/行政区划 |
| | | deviceChannel.setChannelType(1); |
| | | deviceChannel.setChannelId(gbStream.getGbId()); |
| | | deviceChannel.setName(gbStream.getName()); |
| | | deviceChannel.setLongitude(gbStream.getLongitude()); |
| | |
| | | deviceChannel.setStatus(1); |
| | | deviceChannel.setParentId(gbStream.getCatalogId()); |
| | | deviceChannel.setRegisterWay(1); |
| | | deviceChannel.setCivilCode(parentPlatform.getDeviceGBId().substring(0,6)); |
| | | if (gbStream.getCatalogId() != null && gbStream.getCatalogId().length() < 10) { |
| | | deviceChannel.setCivilCode(gbStream.getCatalogId()); |
| | | }else { |
| | | deviceChannel.setCivilCode(parentPlatform.getAdministrativeDivision()); |
| | | } |
| | | deviceChannel.setModel("live"); |
| | | deviceChannel.setOwner("wvp-pro"); |
| | | deviceChannel.setParental(0); |