select device_id,
product_id,
product_name,
device_sip_id,
device_name,
manufacturer,
model,
firmware,
transport,
stream_mode,
online,
register_time,
last_connect_time,
active_time,
ip,
port,
host_address,
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,
stream_mode,
online,
register_time,
last_connect_time,
active_time,
ip,
port,
host_address,
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},
stream_mode = #{streamMode},
online = #{online},
register_time = #{registerTime},
last_connect_time = #{lastConnectTime},
active_time = #{activeTime},
ip = #{ip},
port = #{port},
host_address = #{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},
last_connect_time = #{lastConnectTime},
active_time = #{activeTime},
ip = #{ip},
port = #{port},
host_address = #{hostAddress},
where device_sip_id = #{deviceSipId}
delete
from sip_device
where device_sip_id = #{deviceSipId}