1078-部标通道添加音频控制

This commit is contained in:
648540858
2024-06-07 00:20:52 +08:00
parent 5d5d654410
commit 913d358a11
7 changed files with 23 additions and 2 deletions

View File

@@ -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 + '\'' +
'}';
}
}

View File

@@ -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}" +
")")