select device_id,
product_id,
product_name,
device_sip_id,
device_name,
manufacturer,
model,
firmware,
transport,
streamMode,
online,
registerTime,
lastConnectTime,
active_time,
ip,
port,
hostAddress,
del_flag,
create_by,
create_time,
update_by,
update_time,
remark
from sip_device
insert into sip_device
product_id,
product_name,
device_sip_id,
device_name,
manufacturer,
model,
firmware,
transport,
streamMode,
online,
registerTime,
lastConnectTime,
active_time,
ip,
port,
hostAddress,
del_flag,
create_by,
create_time,
update_by,
update_time,
remark,
#{productId},
#{productName},
#{deviceSipId},
#{deviceName},
#{manufacturer},
#{model},
#{firmware},
#{transport},
#{streammode},
#{online},
#{registertime},
#{lastconnecttime},
#{activeTime},
#{ip},
#{port},
#{hostaddress},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update sip_device
product_id = #{productId},
product_name = #{productName},
device_sip_id = #{deviceSipId},
device_name = #{deviceName},
manufacturer = #{manufacturer},
model = #{model},
firmware = #{firmware},
transport = #{transport},
streamMode = #{streammode},
online = #{online},
registerTime = #{registertime},
lastConnectTime = #{lastconnecttime},
active_time = #{activeTime},
ip = #{ip},
port = #{port},
hostAddress = #{hostaddress},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where device_id = #{deviceId}
delete
from sip_device
where device_id = #{deviceId}
delete from sip_device where device_id in
#{deviceId}
update sip_device
online = #{online},
lastConnectTime = #{lastconnecttime},
active_time = #{activeTime},
ip = #{ip},
port = #{port},
hostaddress = #{hostaddress},
where device_sip_id = #{deviceSipId}
delete
from sip_device
where device_sip_id = #{deviceSipId}