mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-24 22:17:49 +08:00
1078-部标通道添加音频控制
This commit is contained in:
parent
5d5d654410
commit
913d358a11
@ -28,6 +28,12 @@ public class JTChannel {
|
|||||||
@Schema(description = "通道ID")
|
@Schema(description = "通道ID")
|
||||||
private Integer channelId;
|
private Integer channelId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否含有音频
|
||||||
|
*/
|
||||||
|
@Schema(description = "是否含有音频")
|
||||||
|
private Boolean hasAudio;
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
private String createTime;
|
private String createTime;
|
||||||
@ -83,6 +89,14 @@ public class JTChannel {
|
|||||||
this.channelId = channelId;
|
this.channelId = channelId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Boolean getHasAudio() {
|
||||||
|
return hasAudio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHasAudio(Boolean hasAudio) {
|
||||||
|
this.hasAudio = hasAudio;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "JTChannel{" +
|
return "JTChannel{" +
|
||||||
@ -92,6 +106,7 @@ public class JTChannel {
|
|||||||
", channelId=" + channelId +
|
", channelId=" + channelId +
|
||||||
", createTime='" + createTime + '\'' +
|
", createTime='" + createTime + '\'' +
|
||||||
", updateTime='" + updateTime + '\'' +
|
", updateTime='" + updateTime + '\'' +
|
||||||
|
", hasAudio='" + hasAudio + '\'' +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,6 +26,7 @@ public interface JTChannelMapper {
|
|||||||
"UPDATE wvp_jt_channel " +
|
"UPDATE wvp_jt_channel " +
|
||||||
"SET update_time=#{updateTime}" +
|
"SET update_time=#{updateTime}" +
|
||||||
"<if test=\"terminalId != null\">, terminal_id=#{terminalId}</if>" +
|
"<if test=\"terminalId != null\">, terminal_id=#{terminalId}</if>" +
|
||||||
|
"<if test=\"hasAudio != null\">, has_audio=#{hasAudio}</if>" +
|
||||||
"<if test=\"name != null\">, name=#{name}</if>" +
|
"<if test=\"name != null\">, name=#{name}</if>" +
|
||||||
"<if test=\"channelId != null\">, channelId=#{channelId}</if>" +
|
"<if test=\"channelId != null\">, channelId=#{channelId}</if>" +
|
||||||
"WHERE id=#{id}"+
|
"WHERE id=#{id}"+
|
||||||
@ -36,12 +37,14 @@ public interface JTChannelMapper {
|
|||||||
"terminal_id,"+
|
"terminal_id,"+
|
||||||
"channel_id,"+
|
"channel_id,"+
|
||||||
"name,"+
|
"name,"+
|
||||||
|
"has_audio,"+
|
||||||
"create_time,"+
|
"create_time,"+
|
||||||
"update_time"+
|
"update_time"+
|
||||||
") VALUES (" +
|
") VALUES (" +
|
||||||
"#{terminalId}," +
|
"#{terminalId}," +
|
||||||
"#{channelId}," +
|
"#{channelId}," +
|
||||||
"#{name}," +
|
"#{name}," +
|
||||||
|
"#{hasAudio}," +
|
||||||
"#{createTime}," +
|
"#{createTime}," +
|
||||||
"#{updateTime}" +
|
"#{updateTime}" +
|
||||||
")")
|
")")
|
||||||
|
|||||||
@ -359,7 +359,7 @@ export default {
|
|||||||
updateChannel: function (row) {
|
updateChannel: function (row) {
|
||||||
this.$axios({
|
this.$axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: `/api/device/query/channel/update/${this.deviceId}`,
|
url: `/api/jt1078/terminal/channel/update`,
|
||||||
params: row
|
params: row
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
console.log(JSON.stringify(res));
|
console.log(JSON.stringify(res));
|
||||||
@ -414,7 +414,6 @@ export default {
|
|||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
setTimeout(this.getList, 200)
|
setTimeout(this.getList, 200)
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
treeNodeClickEvent: function (device, data, isCatalog) {
|
treeNodeClickEvent: function (device, data, isCatalog) {
|
||||||
|
|||||||
@ -340,6 +340,7 @@ create table wvp_jt_channel (
|
|||||||
id serial primary key,
|
id serial primary key,
|
||||||
channel_id integer,
|
channel_id integer,
|
||||||
terminal_id integer,
|
terminal_id integer,
|
||||||
|
has_audio bool default false,
|
||||||
name character varying(255),
|
name character varying(255),
|
||||||
update_time character varying(50) not null,
|
update_time character varying(50) not null,
|
||||||
create_time character varying(50) not null,
|
create_time character varying(50) not null,
|
||||||
|
|||||||
@ -340,6 +340,7 @@ create table wvp_jt_channel (
|
|||||||
id serial primary key,
|
id serial primary key,
|
||||||
channel_id integer,
|
channel_id integer,
|
||||||
terminal_id integer,
|
terminal_id integer,
|
||||||
|
has_audio bool default false,
|
||||||
name character varying(255),
|
name character varying(255),
|
||||||
update_time character varying(50) not null,
|
update_time character varying(50) not null,
|
||||||
create_time character varying(50) not null,
|
create_time character varying(50) not null,
|
||||||
|
|||||||
@ -24,6 +24,7 @@ create table wvp_jt_channel (
|
|||||||
id serial primary key,
|
id serial primary key,
|
||||||
terminal_id integer,
|
terminal_id integer,
|
||||||
channel_id integer,
|
channel_id integer,
|
||||||
|
has_audio bool default false,
|
||||||
name character varying(255),
|
name character varying(255),
|
||||||
update_time character varying(50) not null,
|
update_time character varying(50) not null,
|
||||||
create_time character varying(50) not null
|
create_time character varying(50) not null
|
||||||
|
|||||||
@ -23,6 +23,7 @@ create table wvp_jt_channel (
|
|||||||
id serial primary key,
|
id serial primary key,
|
||||||
channel_id integer,
|
channel_id integer,
|
||||||
terminal_id integer,
|
terminal_id integer,
|
||||||
|
has_audio bool default false,
|
||||||
name character varying(255),
|
name character varying(255),
|
||||||
update_time character varying(50) not null,
|
update_time character varying(50) not null,
|
||||||
create_time character varying(50) not null,
|
create_time character varying(50) not null,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user