select id, name, tp, brand, model, serial_number, status, install_date, config_channel_id, config_station_id, config_device_id, remark from config_device insert into config_device name, tp, brand, model, serial_number, status, install_date, config_channel_id, config_station_id, config_device_id, remark, #{name}, #{tp}, #{brand}, #{model}, #{serialNumber}, #{status}, #{installDate}, #{configChannelId}, #{configStationId}, #{configDeviceId}, #{remark}, update config_device name = #{name}, tp = #{tp}, brand = #{brand}, model = #{model}, serial_number = #{serialNumber}, status = #{status}, install_date = #{installDate}, config_channel_id = #{configChannelId}, config_station_id = #{configStationId}, config_device_id = #{configDeviceId}, remark = #{remark}, update_time = CURRENT_TIMESTAMP, where id = #{id} delete from config_device where id = #{id} delete from config_device where id in #{id}