合并主线
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());
|
||||
|
||||
@@ -222,7 +222,7 @@ export default {
|
||||
if (command === "params") {
|
||||
this.$router.push(`/jtDeviceParams/${itemData.phoneNumber}`);
|
||||
}else if (command === "connection") {
|
||||
this.queryCloudRecords(itemData)
|
||||
// this.queryCloudRecords(itemData)
|
||||
}else {
|
||||
this.$message.info("尚不支持");
|
||||
}
|
||||
|
||||
@@ -73,10 +73,6 @@ export default new VueRouter({
|
||||
path: '/jtChannelList/:deviceId',
|
||||
component: jtChannelList,
|
||||
},
|
||||
{
|
||||
path: '/pushVideoList',
|
||||
component: pushVideoList,
|
||||
},
|
||||
{
|
||||
path: '/streamProxyList',
|
||||
component: streamProxyList,
|
||||
@@ -116,11 +112,6 @@ export default new VueRouter({
|
||||
name: 'jtChannelEditAdd',
|
||||
component: jtChannelEdit,
|
||||
},
|
||||
{
|
||||
path: '/parentPlatformList/:count/:page',
|
||||
name: 'parentPlatformList',
|
||||
component: parentPlatformList,
|
||||
},
|
||||
{
|
||||
path: '/map/:deviceId/:parentChannelId/:count/:page',
|
||||
name: 'map',
|
||||
|
||||
@@ -149,10 +149,12 @@ create table wvp_device_channel
|
||||
gb_svc_time_support_mode integer,
|
||||
stream_push_id integer,
|
||||
stream_proxy_id integer,
|
||||
jt_channel_id integer,
|
||||
constraint uk_wvp_device_channel_unique_device_channel unique (device_db_id, device_id),
|
||||
constraint uk_wvp_unique_channel unique (gb_device_id),
|
||||
constraint uk_wvp_unique_stream_push_id unique (stream_push_id),
|
||||
constraint uk_wvp_unique_stream_proxy_id unique (stream_proxy_id)
|
||||
constraint uk_wvp_unique_stream_proxy_id unique (stream_proxy_id),
|
||||
constraint uk_wvp_unique_jt_channel_id unique (jt_channel_id)
|
||||
);
|
||||
|
||||
create index uk_wvp_device_db_id on wvp_device_channel (device_db_id);
|
||||
@@ -427,3 +429,36 @@ CREATE TABLE wvp_common_region
|
||||
constraint uk_common_region_device_id unique (device_id)
|
||||
);
|
||||
|
||||
create table wvp_jt_terminal (
|
||||
id serial primary key,
|
||||
phone_number character varying(50),
|
||||
terminal_id character varying(50),
|
||||
province_id character varying(50),
|
||||
province_text character varying(100),
|
||||
city_id character varying(50),
|
||||
city_text character varying(100),
|
||||
maker_id character varying(50),
|
||||
model character varying(50),
|
||||
plate_color character varying(50),
|
||||
plate_no character varying(50),
|
||||
authentication_code character varying(255),
|
||||
longitude double precision,
|
||||
latitude double precision,
|
||||
status bool default false,
|
||||
register_time character varying(50) default null,
|
||||
update_time character varying(50) not null,
|
||||
create_time character varying(50) not null,
|
||||
constraint uk_jt_device_id_device_id unique (id, phone_number)
|
||||
);
|
||||
|
||||
create table wvp_jt_channel (
|
||||
id serial primary key,
|
||||
terminal_db_id integer,
|
||||
channel_id integer,
|
||||
has_audio bool default false,
|
||||
name character varying(255),
|
||||
update_time character varying(50) not null,
|
||||
create_time character varying(50) not null,
|
||||
constraint uk_jt_device_id_device_id unique (terminal_db_id, channel_id)
|
||||
);
|
||||
|
||||
|
||||
@@ -165,10 +165,12 @@ create table wvp_device_channel
|
||||
gb_svc_time_support_mode integer,
|
||||
stream_push_id integer,
|
||||
stream_proxy_id integer,
|
||||
jt_channel_id integer,
|
||||
constraint uk_wvp_device_channel_unique_device_channel unique (device_db_id, device_id),
|
||||
constraint uk_wvp_unique_channel unique (gb_device_id),
|
||||
constraint uk_wvp_unique_stream_push_id unique (stream_push_id),
|
||||
constraint uk_wvp_unique_stream_proxy_id unique (stream_proxy_id)
|
||||
constraint uk_wvp_unique_stream_proxy_id unique (stream_proxy_id),
|
||||
constraint uk_wvp_unique_jt_channel_id unique (jt_channel_id)
|
||||
);
|
||||
|
||||
create index uk_wvp_device_db_id on wvp_device_channel (device_db_id);
|
||||
@@ -444,3 +446,36 @@ CREATE TABLE wvp_common_region
|
||||
constraint uk_common_region_device_id unique (device_id)
|
||||
);
|
||||
|
||||
create table wvp_jt_terminal (
|
||||
id serial primary key,
|
||||
phone_number character varying(50),
|
||||
terminal_id character varying(50),
|
||||
province_id character varying(50),
|
||||
province_text character varying(100),
|
||||
city_id character varying(50),
|
||||
city_text character varying(100),
|
||||
maker_id character varying(50),
|
||||
model character varying(50),
|
||||
plate_color character varying(50),
|
||||
plate_no character varying(50),
|
||||
authentication_code character varying(255),
|
||||
longitude double precision,
|
||||
latitude double precision,
|
||||
status bool default false,
|
||||
register_time character varying(50) default null,
|
||||
update_time character varying(50) not null,
|
||||
create_time character varying(50) not null,
|
||||
constraint uk_jt_device_id_device_id unique (id, phone_number)
|
||||
);
|
||||
|
||||
create table wvp_jt_channel (
|
||||
id serial primary key,
|
||||
terminal_db_id integer,
|
||||
channel_id integer,
|
||||
has_audio bool default false,
|
||||
name character varying(255),
|
||||
update_time character varying(50) not null,
|
||||
create_time character varying(50) not null,
|
||||
constraint uk_jt_device_id_device_id unique (terminal_db_id, channel_id)
|
||||
);
|
||||
|
||||
|
||||
@@ -333,38 +333,7 @@ create table wvp_user_api_key (
|
||||
update_time character varying(50)
|
||||
);
|
||||
|
||||
create table wvp_jt_terminal (
|
||||
id serial primary key,
|
||||
phone_number character varying(50),
|
||||
terminal_id character varying(50),
|
||||
province_id character varying(50),
|
||||
province_text character varying(100),
|
||||
city_id character varying(50),
|
||||
city_text character varying(100),
|
||||
maker_id character varying(50),
|
||||
model character varying(50),
|
||||
plate_color character varying(50),
|
||||
plate_no character varying(50),
|
||||
authentication_code character varying(255),
|
||||
longitude double precision,
|
||||
latitude double precision,
|
||||
status bool default false,
|
||||
register_time character varying(50) default null,
|
||||
update_time character varying(50) not null,
|
||||
create_time character varying(50) not null,
|
||||
constraint uk_jt_device_id_device_id unique (id, phone_number)
|
||||
);
|
||||
|
||||
create table wvp_jt_channel (
|
||||
id serial primary key,
|
||||
terminal_db_id integer,
|
||||
channel_id integer,
|
||||
has_audio bool default false,
|
||||
name character varying(255),
|
||||
update_time character varying(50) not null,
|
||||
create_time character varying(50) not null,
|
||||
constraint uk_jt_device_id_device_id unique (terminal_db_id, channel_id)
|
||||
);
|
||||
/*初始数据*/
|
||||
INSERT INTO wvp_user VALUES (1, 'admin','21232f297a57a5a743894a0e4a801fc3',1,'2021-04-13 14:14:57','2021-04-13 14:14:57','3e80d1762a324d5b0ff636e0bd16f1e3');
|
||||
INSERT INTO wvp_user_role VALUES (1, 'admin','0','2021-04-13 14:14:57','2021-04-13 14:14:57');
|
||||
|
||||
Reference in New Issue
Block a user