select id,
tenant_id,
tenant_name,
product_id,
product_name,
user_id,
user_name,
device_sip_id,
channel_sip_id,
channel_name,
register_time,
device_type,
channel_type,
cityCode,
civilCode,
manufacture,
model,
owner,
block,
address,
parentId,
ipAddress,
port,
password,
PTZType,
PTZTypeText,
status,
longitude,
latitude,
streamId,
subCount,
parental,
hasAudio,
del_flag,
create_by,
create_time,
update_by,
update_time,
remark
from sip_device_channel
insert into sip_device_channel
tenant_id,
tenant_name,
product_id,
product_name,
user_id,
user_name,
device_sip_id,
channel_sip_id,
channel_name,
register_time,
device_type,
channel_type,
cityCode,
civilCode,
manufacture,
model,
owner,
block,
address,
parentId,
ipAddress,
port,
password,
PTZType,
PTZTypeText,
status,
longitude,
latitude,
streamId,
subCount,
parental,
hasAudio,
del_flag,
create_by,
create_time,
update_by,
update_time,
remark,
#{tenantId},
#{tenantName},
#{productId},
#{productName},
#{userId},
#{userName},
#{deviceSipId},
#{channelSipId},
#{channelName},
#{registerTime},
#{deviceType},
#{channelType},
#{citycode},
#{civilcode},
#{manufacture},
#{model},
#{owner},
#{block},
#{address},
#{parentid},
#{ipaddress},
#{port},
#{password},
#{ptztype},
#{ptztypetext},
#{status},
#{longitude},
#{latitude},
#{streamid},
#{subcount},
#{parental},
#{hasaudio},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update sip_device_channel
tenant_id = #{tenantId},
tenant_name = #{tenantName},
product_id = #{productId},
product_name = #{productName},
user_id = #{userId},
user_name = #{userName},
device_sip_id = #{deviceSipId},
channel_sip_id = #{channelSipId},
channel_name = #{channelName},
register_time = #{registerTime},
device_type = #{deviceType},
channel_type = #{channelType},
cityCode = #{citycode},
civilCode = #{civilcode},
manufacture = #{manufacture},
model = #{model},
owner = #{owner},
block = #{block},
address = #{address},
parentId = #{parentid},
ipAddress = #{ipaddress},
port = #{port},
password = #{password},
PTZType = #{ptztype},
PTZTypeText = #{ptztypetext},
status = #{status},
longitude = #{longitude},
latitude = #{latitude},
streamId = #{streamid},
subCount = #{subcount},
parental = #{parental},
hasAudio = #{hasaudio},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where channel_sip_id = #{channelSipId}
delete
from sip_device_channel
where id = #{id}
delete from sip_device_channel where id in
#{id}
update sip_device_channel
streamId = #{streamid},
where id = #{id}
delete
from sip_device_channel
where device_sip_id = #{deviceSipId}