select quote_id, quote_key, customer_id, product_code, product_name, country_code, country_name, weight, biz_date, tms_id, match_source, match_message, price_set_id, price_set_code, price_set_name, set_type, bind_priority, customer_priceset_id, product_country_id, weight_min, weight_max, weight_label, effective_date, charge_weight, freight_rate, base_freight_rate, discount_percent, registration_fee, freight_amount, surcharge_amount, payable_total, currency, round_mode, created_by, created_at, updated_by, updated_at from prc_quote insert into prc_quote ( quote_id, quote_key, customer_id, product_code, product_name, country_code, country_name, weight, biz_date, tms_id, match_source, match_message, price_set_id, price_set_code, price_set_name, set_type, bind_priority, customer_priceset_id, product_country_id, weight_min, weight_max, weight_label, effective_date, charge_weight, freight_rate, base_freight_rate, discount_percent, registration_fee, freight_amount, surcharge_amount, payable_total, currency, round_mode, created_at ) values ( #{quoteId}, #{quoteKey}, #{customerId}, #{productCode}, #{productName}, #{countryCode}, #{countryName}, #{weight}, #{bizDate}, #{tmsId}, #{matchSource}, #{matchMessage}, #{priceSetId}, #{priceSetCode}, #{priceSetName}, #{setType}, #{bindPriority}, #{customerPricesetId}, #{productCountryId}, #{weightMin}, #{weightMax}, #{weightLabel}, #{effectiveDate}, #{chargeWeight}, #{freightRate}, #{baseFreightRate}, #{discountPercent}, #{registrationFee}, #{freightAmount}, #{surchargeAmount}, #{payableTotal}, #{currency}, #{roundMode}, sysdate() ) update prc_quote set surcharge_amount = #{surchargeAmount}, payable_total = #{payableTotal}, updated_at = sysdate() where quote_id = #{quoteId}