select id, host, tube_id, tube_name, tube_type, pipe_diameter, color, position, type, alarm_type, alarm_time, watcher, create_time, view_time from ard_alarm_tube insert into ard_alarm_tube id, host, tube_id, tube_name, tube_type, pipe_diameter, color, position, type, alarm_type, alarm_time, watcher, create_time, view_time, #{id}, #{host}, #{tubeId}, #{tubeName}, #{tubeType}, #{pipeDiameter}, #{color}, #{position}, #{type}, #{alarmType}, #{alarmTime}, #{watcher}, #{createTime}, #{viewTime}, update ard_alarm_tube host = #{host}, tube_id = #{tubeId}, tube_name = #{tubeName}, tube_type = #{tubeType}, pipe_diameter = #{pipeDiameter}, color = #{color}, position = #{position}, type = #{type}, alarm_type = #{alarmType}, alarm_time = #{alarmTime}, watcher = #{watcher}, create_time = #{createTime}, view_time = #{viewTime}, where id = #{id} delete from ard_alarm_tube where id = #{id} delete from ard_alarm_tube where id in #{id}