select sc_id, sc_name, fee_type, charge_type, dict_value, charge_value, length_cm, width_cm, height_cm, over_weight_kg, extra_weight_kg, postcode_text, currency, round_mode, ss_code, is_del, country_code, block_title, sc_note, tms_id, created_by, create_time, updated_by, update_time from prc_surcharge insert into prc_surcharge ( sc_name, fee_type, charge_type, dict_value, charge_value, length_cm, width_cm, height_cm, over_weight_kg, extra_weight_kg, postcode_text, currency, round_mode, ss_code, is_del, country_code, block_title, sc_note, tms_id, created_by, create_time ) values ( #{scName}, #{feeType}, #{chargeType}, #{dictValue}, #{chargeValue}, #{lengthCm}, #{widthCm}, #{heightCm}, #{overWeightKg}, #{extraWeightKg}, #{postcodeText}, #{currency}, #{roundMode}, #{ssCode}, ifnull(#{isDel}, '0'), #{countryCode}, #{blockTitle}, #{scNote}, #{tmsId}, #{createBy}, sysdate() ) update prc_surcharge set ss_code = #{ssCode}, updated_by = #{operator}, update_time = sysdate() where ifnull(is_del, '0') = '0' and sc_id in #{scId} update pay_surcharge set sc_id = #{newScId}, fee_name = #{feeName}, zone_name = #{zoneName}, amount = #{amount}, currency = ifnull(#{currency}, currency), fee_desc = #{feeDesc}, calc_rule = #{calcRule}, charge_text = #{chargeText}, price_unit = ifnull(#{priceUnit}, price_unit) where sc_id = #{oldScId} and section_name = '附加费配置'