1078-部标通道添加音频控制
This commit is contained in:
@@ -28,6 +28,12 @@ public class JTChannel {
|
||||
@Schema(description = "通道ID")
|
||||
private Integer channelId;
|
||||
|
||||
/**
|
||||
* 是否含有音频
|
||||
*/
|
||||
@Schema(description = "是否含有音频")
|
||||
private Boolean hasAudio;
|
||||
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
private String createTime;
|
||||
@@ -83,6 +89,14 @@ public class JTChannel {
|
||||
this.channelId = channelId;
|
||||
}
|
||||
|
||||
public Boolean getHasAudio() {
|
||||
return hasAudio;
|
||||
}
|
||||
|
||||
public void setHasAudio(Boolean hasAudio) {
|
||||
this.hasAudio = hasAudio;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "JTChannel{" +
|
||||
@@ -92,6 +106,7 @@ public class JTChannel {
|
||||
", channelId=" + channelId +
|
||||
", createTime='" + createTime + '\'' +
|
||||
", updateTime='" + updateTime + '\'' +
|
||||
", hasAudio='" + hasAudio + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ public interface JTChannelMapper {
|
||||
"UPDATE wvp_jt_channel " +
|
||||
"SET update_time=#{updateTime}" +
|
||||
"<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=\"channelId != null\">, channelId=#{channelId}</if>" +
|
||||
"WHERE id=#{id}"+
|
||||
@@ -36,12 +37,14 @@ public interface JTChannelMapper {
|
||||
"terminal_id,"+
|
||||
"channel_id,"+
|
||||
"name,"+
|
||||
"has_audio,"+
|
||||
"create_time,"+
|
||||
"update_time"+
|
||||
") VALUES (" +
|
||||
"#{terminalId}," +
|
||||
"#{channelId}," +
|
||||
"#{name}," +
|
||||
"#{hasAudio}," +
|
||||
"#{createTime}," +
|
||||
"#{updateTime}" +
|
||||
")")
|
||||
|
||||
@@ -359,7 +359,7 @@ export default {
|
||||
updateChannel: function (row) {
|
||||
this.$axios({
|
||||
method: 'post',
|
||||
url: `/api/device/query/channel/update/${this.deviceId}`,
|
||||
url: `/api/jt1078/terminal/channel/update`,
|
||||
params: row
|
||||
}).then(function (res) {
|
||||
console.log(JSON.stringify(res));
|
||||
@@ -414,7 +414,6 @@ export default {
|
||||
type: "success",
|
||||
});
|
||||
setTimeout(this.getList, 200)
|
||||
|
||||
})
|
||||
},
|
||||
treeNodeClickEvent: function (device, data, isCatalog) {
|
||||
|
||||
@@ -340,6 +340,7 @@ create table wvp_jt_channel (
|
||||
id serial primary key,
|
||||
channel_id integer,
|
||||
terminal_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,
|
||||
|
||||
@@ -340,6 +340,7 @@ create table wvp_jt_channel (
|
||||
id serial primary key,
|
||||
channel_id integer,
|
||||
terminal_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,
|
||||
|
||||
@@ -24,6 +24,7 @@ create table wvp_jt_channel (
|
||||
id serial primary key,
|
||||
terminal_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
|
||||
|
||||
@@ -23,6 +23,7 @@ create table wvp_jt_channel (
|
||||
id serial primary key,
|
||||
channel_id integer,
|
||||
terminal_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,
|
||||
|
||||
Reference in New Issue
Block a user