select channel_id, channel_num,equipment_id, equipment_num, equipment_name, video_address,port, account,password,protocol_type, channel_details, del_flag, create_by, create_time, update_by, update_time, remark from channel_number insert into channel_number equipment_id, equipment_num, equipment_name, channel_num, video_address, account, port, password, protocol_type, channel_details, del_flag, create_by, create_time, update_by, update_time, remark, #{equipmentId}, #{equipmentNum}, #{equipmentName}, #{channelNum}, #{videoAddress}, #{account}, #{port}, #{password}, #{protocolType}, #{channelDetails}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update channel_number equipment_id = #{equipmentId}, equipment_num = #{equipmentNum}, equipment_name = #{equipmentName}, channel_num = #{channelNum}, video_address = #{videoAddress}, account = #{account}, port = #{port}, password = #{password}, protocol_type = #{protocolType}, channel_details = #{channelDetails}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where channel_id = #{channelId} delete from channel_number where channel_id = #{channelId} delete from channel_number where channel_id in #{channelId}