Merge branch 'master' into dev/数据库统合
commit
1c76f7bfea
|
@ -413,6 +413,10 @@ public interface DeviceChannelMapper {
|
||||||
"</script>")
|
"</script>")
|
||||||
void updateChannelStreamIdentification(DeviceChannel channel);
|
void updateChannelStreamIdentification(DeviceChannel channel);
|
||||||
|
|
||||||
|
@Update("<script>" +
|
||||||
|
"UPDATE wvp_device_channel SET stream_identification=#{streamIdentification}" +
|
||||||
|
"</script>")
|
||||||
|
void updateAllChannelStreamIdentification(@Param("streamIdentification") String streamIdentification);
|
||||||
|
|
||||||
@Update({"<script>" +
|
@Update({"<script>" +
|
||||||
"<foreach collection='channelList' item='item' separator=';'>" +
|
"<foreach collection='channelList' item='item' separator=';'>" +
|
||||||
|
|
|
@ -336,7 +336,11 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
|
||||||
log.info("[更新通道码流类型] 设备: {}, 通道:{}, 码流: {}", channel.getDeviceId(), channel.getDeviceId(),
|
log.info("[更新通道码流类型] 设备: {}, 通道:{}, 码流: {}", channel.getDeviceId(), channel.getDeviceId(),
|
||||||
channel.getStreamIdentification());
|
channel.getStreamIdentification());
|
||||||
}
|
}
|
||||||
channelMapper.updateChannelStreamIdentification(channel);
|
if (channel.getId() > 0) {
|
||||||
|
channelMapper.updateChannelStreamIdentification(channel);
|
||||||
|
}else {
|
||||||
|
channelMapper.updateAllChannelStreamIdentification(channel.getStreamIdentification());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -107,9 +107,9 @@ public class ZLMMediaNodeServerService implements IMediaNodeServerService {
|
||||||
throw new ControllerException(ErrorCode.ERROR100.getCode(), "读取配置失败");
|
throw new ControllerException(ErrorCode.ERROR100.getCode(), "读取配置失败");
|
||||||
}
|
}
|
||||||
mediaServer.setId(zlmServerConfig.getGeneralMediaServerId());
|
mediaServer.setId(zlmServerConfig.getGeneralMediaServerId());
|
||||||
mediaServer.setHttpSSlPort(zlmServerConfig.getHttpPort());
|
mediaServer.setHttpSSlPort(zlmServerConfig.getHttpSSLport());
|
||||||
mediaServer.setFlvSSLPort(zlmServerConfig.getHttpPort());
|
mediaServer.setFlvSSLPort(zlmServerConfig.getHttpSSLport());
|
||||||
mediaServer.setWsFlvSSLPort(zlmServerConfig.getHttpPort());
|
mediaServer.setWsFlvSSLPort(zlmServerConfig.getHttpSSLport());
|
||||||
mediaServer.setRtmpPort(zlmServerConfig.getRtmpPort());
|
mediaServer.setRtmpPort(zlmServerConfig.getRtmpPort());
|
||||||
mediaServer.setRtmpSSlPort(zlmServerConfig.getRtmpSslPort());
|
mediaServer.setRtmpSSlPort(zlmServerConfig.getRtmpSslPort());
|
||||||
mediaServer.setRtspPort(zlmServerConfig.getRtspPort());
|
mediaServer.setRtspPort(zlmServerConfig.getRtspPort());
|
||||||
|
|
Loading…
Reference in New Issue