合并主线
This commit is contained in:
@@ -22,6 +22,7 @@ public interface CommonGBChannelMapper {
|
||||
"gb_device_id," +
|
||||
" <if test='streamProxyId != null' > stream_proxy_id,</if>" +
|
||||
" <if test='streamPushId != null' > stream_push_id,</if>" +
|
||||
" <if test='jtChannelId != null' > jt_channel_id,</if>" +
|
||||
"create_time," +
|
||||
"update_time," +
|
||||
"gb_name," +
|
||||
@@ -61,6 +62,7 @@ public interface CommonGBChannelMapper {
|
||||
"#{gbDeviceId}, " +
|
||||
" <if test='streamProxyId != null' > #{streamProxyId},</if>" +
|
||||
" <if test='streamPushId != null' > #{streamPushId},</if>" +
|
||||
" <if test='jtChannelId != null' > #{jtChannelId},</if>" +
|
||||
"#{createTime}, " +
|
||||
"#{updateTime}, " +
|
||||
"#{gbName}, " +
|
||||
@@ -169,6 +171,7 @@ public interface CommonGBChannelMapper {
|
||||
"gb_device_id," +
|
||||
"stream_proxy_id, " +
|
||||
"stream_push_id," +
|
||||
"jt_channel_id," +
|
||||
"create_time," +
|
||||
"update_time," +
|
||||
"gb_name," +
|
||||
@@ -206,7 +209,7 @@ public interface CommonGBChannelMapper {
|
||||
"gb_svc_time_support_mode ) " +
|
||||
"VALUES" +
|
||||
"<foreach collection='commonGBChannels' index='index' item='item' separator=','> " +
|
||||
"(#{item.gbDeviceId}, #{item.streamProxyId}, #{item.streamPushId},#{item.createTime},#{item.updateTime}," +
|
||||
"(#{item.gbDeviceId}, #{item.streamProxyId}, #{item.streamPushId}, #{item.jtChannelId},#{item.createTime},#{item.updateTime}," +
|
||||
"#{item.gbName},#{item.gbManufacturer}, #{item.gbModel}," +
|
||||
"#{item.gbOwner},#{item.gbCivilCode},#{item.gbBlock}, #{item.gbAddress}, #{item.gbParental}, #{item.gbParentId},#{item.gbSafetyWay}, " +
|
||||
"#{item.gbRegisterWay},#{item.gbCertNum},#{item.gbCertifiable},#{item.gbErrCode},#{item.gbEndTime}, #{item.gbSecrecy},#{item.gbIpAddress}," +
|
||||
|
||||
@@ -68,6 +68,7 @@ public interface PlatformChannelMapper {
|
||||
" wdc.device_db_id as gb_device_db_id,\n" +
|
||||
" wdc.stream_push_id,\n" +
|
||||
" wdc.stream_proxy_id,\n" +
|
||||
" wdc.jt_channel_id,\n" +
|
||||
" wdc.create_time,\n" +
|
||||
" wdc.update_time,\n" +
|
||||
" wpgc.custom_device_id, \n" +
|
||||
@@ -152,6 +153,7 @@ public interface PlatformChannelMapper {
|
||||
" <if test='channelType == 0'> AND wdc.device_db_id is not null</if> " +
|
||||
" <if test='channelType == 1'> AND wdc.stream_push_id is not null</if> " +
|
||||
" <if test='channelType == 2'> AND wdc.stream_proxy_id is not null</if> " +
|
||||
" <if test='channelType == 4'> AND wdc.jt_channel_id is not null</if> " +
|
||||
"</script>")
|
||||
List<PlatformChannel> queryForPlatformForWebList(@Param("platformId") Integer platformId, @Param("query") String query,
|
||||
@Param("channelType") Integer channelType, @Param("online") Boolean online,
|
||||
@@ -162,6 +164,7 @@ public interface PlatformChannelMapper {
|
||||
" wdc.device_db_id as gb_device_db_id,\n" +
|
||||
" wdc.stream_push_id,\n" +
|
||||
" wdc.stream_proxy_id,\n" +
|
||||
" wdc.jt_channel_id,\n" +
|
||||
" wdc.create_time,\n" +
|
||||
" wdc.update_time,\n" +
|
||||
" coalesce(wpgc.custom_device_id, wdc.gb_device_id, wdc.device_id) as gb_device_id,\n" +
|
||||
@@ -212,6 +215,7 @@ public interface PlatformChannelMapper {
|
||||
" wdc.device_db_id as gb_device_db_id,\n" +
|
||||
" wdc.stream_push_id,\n" +
|
||||
" wdc.stream_proxy_id,\n" +
|
||||
" wdc.jt_channel_id,\n" +
|
||||
" wdc.create_time,\n" +
|
||||
" wdc.update_time,\n" +
|
||||
" coalesce(wpgc.custom_device_id, wdc.gb_device_id, wdc.device_id) as gb_device_id,\n" +
|
||||
@@ -263,6 +267,7 @@ public interface PlatformChannelMapper {
|
||||
" wdc.device_db_id as gb_device_db_id,\n" +
|
||||
" wdc.stream_push_id,\n" +
|
||||
" wdc.stream_proxy_id,\n" +
|
||||
" wdc.jt_channel_id,\n" +
|
||||
" wdc.create_time,\n" +
|
||||
" wdc.update_time,\n" +
|
||||
" coalesce(wpgc.custom_device_id, wdc.gb_device_id, wdc.device_id) as gb_device_id,\n" +
|
||||
@@ -488,6 +493,7 @@ public interface PlatformChannelMapper {
|
||||
" wdc.device_db_id as gb_device_db_id,\n" +
|
||||
" wdc.stream_push_id,\n" +
|
||||
" wdc.stream_proxy_id,\n" +
|
||||
" wdc.jt_channel_id,\n" +
|
||||
" wdc.create_time,\n" +
|
||||
" wdc.update_time,\n" +
|
||||
" coalesce(wpgc.custom_device_id, wdc.gb_device_id, wdc.device_id) as gb_device_id,\n" +
|
||||
|
||||
@@ -15,6 +15,7 @@ public class ChannelProvider {
|
||||
" device_db_id as gb_device_db_id,\n" +
|
||||
" stream_push_id,\n" +
|
||||
" stream_proxy_id,\n" +
|
||||
" jt_channel_id,\n" +
|
||||
" create_time,\n" +
|
||||
" update_time,\n" +
|
||||
" coalesce(gb_device_id, device_id) as gb_device_id,\n" +
|
||||
@@ -60,6 +61,7 @@ public class ChannelProvider {
|
||||
" wdc.device_db_id as gb_device_db_id,\n" +
|
||||
" wdc.stream_push_id,\n" +
|
||||
" wdc.stream_proxy_id,\n" +
|
||||
" wdc.jt_channel_id,\n" +
|
||||
" wdc.create_time,\n" +
|
||||
" wdc.update_time,\n" +
|
||||
" coalesce(wpgc.custom_device_id, wdc.gb_device_id, wdc.device_id) as gb_device_id,\n" +
|
||||
@@ -144,6 +146,8 @@ public class ChannelProvider {
|
||||
sqlBuild.append(" AND stream_push_id is not null");
|
||||
}else if ((Integer)params.get("channelType") == 2) {
|
||||
sqlBuild.append(" AND stream_proxy_id is not null");
|
||||
}else if ((Integer)params.get("channelType") == 4) {
|
||||
sqlBuild.append(" AND jt_channel_id is not null");
|
||||
}
|
||||
}
|
||||
return sqlBuild.toString();
|
||||
@@ -177,6 +181,8 @@ public class ChannelProvider {
|
||||
sqlBuild.append(" AND stream_push_id is not null");
|
||||
}else if ((Integer)params.get("channelType") == 2) {
|
||||
sqlBuild.append(" AND stream_proxy_id is not null");
|
||||
}else if ((Integer)params.get("channelType") == 4) {
|
||||
sqlBuild.append(" AND jt_channel_id is not null");
|
||||
}
|
||||
}
|
||||
return sqlBuild.toString();
|
||||
|
||||
@@ -106,7 +106,7 @@ public class jt1078PlayServiceImpl implements Ijt1078PlayService {
|
||||
@Async("taskExecutor")
|
||||
@EventListener
|
||||
public void onApplicationEvent(MediaNotFoundEvent event) {
|
||||
if (!userSetting.isAutoApplyPlay()) {
|
||||
if (!userSetting.getAutoApplyPlay()) {
|
||||
return;
|
||||
}
|
||||
JTMediaStreamType jtMediaStreamType = checkStreamFromJt(event.getStream());
|
||||
@@ -250,7 +250,7 @@ public class jt1078PlayServiceImpl implements Ijt1078PlayService {
|
||||
|
||||
log.info("[1078-点播] phoneNumber: {}, channelId: {}, 端口: {}", phoneNumber, channelId, ssrcInfo.getPort());
|
||||
J9101 j9101 = new J9101();
|
||||
j9101.setChannel(Integer.valueOf(channelId));
|
||||
j9101.setChannel(channelId);
|
||||
j9101.setIp(mediaServer.getSdpIp());
|
||||
j9101.setRate(1);
|
||||
j9101.setTcpPort(ssrcInfo.getPort());
|
||||
|
||||
Reference in New Issue
Block a user