|
|
@ -10,15 +10,16 @@ import java.util.List; |
|
|
|
@Repository |
|
|
|
public interface StreamProxyMapper { |
|
|
|
|
|
|
|
@Insert("INSERT INTO stream_proxy (type, app, stream,mediaServerId, url, src_url, dst_url, " + |
|
|
|
@Insert("INSERT INTO stream_proxy (type, name, app, stream,mediaServerId, url, src_url, dst_url, " + |
|
|
|
"timeout_ms, ffmpeg_cmd_key, rtp_type, enable_hls, enable_mp4, enable, status, enable_remove_none_reader, createTime) VALUES" + |
|
|
|
"('${type}','${app}', '${stream}', '${mediaServerId}','${url}', '${src_url}', '${dst_url}', " + |
|
|
|
"('${type}','${name}', '${app}', '${stream}', '${mediaServerId}','${url}', '${src_url}', '${dst_url}', " + |
|
|
|
"'${timeout_ms}', '${ffmpeg_cmd_key}', '${rtp_type}', ${enable_hls}, ${enable_mp4}, ${enable}, ${status}, " + |
|
|
|
"${enable_remove_none_reader}, '${createTime}' )") |
|
|
|
int add(StreamProxyItem streamProxyDto); |
|
|
|
|
|
|
|
@Update("UPDATE stream_proxy " + |
|
|
|
"SET type=#{type}, " + |
|
|
|
"name=#{name}," + |
|
|
|
"app=#{app}," + |
|
|
|
"stream=#{stream}," + |
|
|
|
"url=#{url}, " + |
|
|
|