select thisTab.id, thisTab.dispatch_id, thisTab.free, thisTab.free_name, thisTab.price, thisTab.currency, thisTab.count, thisTab.sum, thisTab.is_yf, thisTab.service_provider_id, thisTab.service_provider_type, thisTab.is_cz_yf, thisTab.yf_id, thisTab.yf_price, thisTab.yf_count, thisTab.yf_sum, thisTab.yf_currency, thisTab.create_time, thisTab.update_time from tms_quote_fee AS thisTab select count(0) from tms_quote_fee as thisTab and thisTab.dispatch_id = #{dispatchId} and thisTab.free = #{free} and thisTab.free_name like concat('%', #{freeName}, '%') and thisTab.price = #{price} and thisTab.currency = #{currency} and thisTab.count = #{count} and thisTab.sum = #{sum} and thisTab.is_yf = #{isYF} and thisTab.service_provider_id = #{serviceProviderId} and thisTab.service_provider_type = #{serviceProviderType} and thisTab.is_cz_yf = #{isCZYF} and thisTab.yf_id = #{yfId} and thisTab.yf_price = #{yfPrice} and thisTab.yf_count = #{yfCount} and thisTab.yf_sum = #{yfSum} and thisTab.yf_currency = #{yfCurrency} insert into tms_quote_fee dispatch_id, free, free_name, price, currency, count, sum, is_yf, service_provider_id, service_provider_type, is_cz_yf, yf_id, yf_price, yf_count, yf_sum, yf_currency, create_time, update_time, #{dispatchId}, #{free}, #{freeName}, #{price}, #{currency}, #{count}, #{sum}, #{isYF}, #{serviceProviderId}, #{serviceProviderType}, #{isCZYF}, #{yfId}, #{yfPrice}, #{yfCount}, #{yfSum}, #{yfCurrency}, #{createTime}, #{updateTime}, insert into tms_quote_fee id,dispatch_id,free,free_name,price,currency,count,sum,is_yf,service_provider_id,service_provider_type,is_cz_yf,yf_id,yf_price,yf_count,yf_sum,yf_currency,create_time,update_time, #{item.id},#{item.dispatchId},#{item.free},#{item.freeName},#{item.price},#{item.currency},#{item.count},#{item.sum},#{item.isYF},#{item.serviceProviderId},#{item.serviceProviderType},#{item.isCZYF},#{item.yfId},#{item.yfPrice},#{item.yfCount},#{item.yfSum},#{item.yfCurrency},#{item.createTime},#{item.updateTime}, update tms_quote_fee dispatch_id = #{dispatchId}, free = #{free}, free_name = #{freeName}, price = #{price}, currency = #{currency}, count = #{count}, sum = #{sum}, is_yf = #{isYF}, service_provider_id = #{serviceProviderId}, service_provider_type = #{serviceProviderType}, is_cz_yf = #{isCZYF}, yf_id = #{yfId}, yf_price = #{yfPrice}, yf_count = #{yfCount}, yf_sum = #{yfSum}, yf_currency = #{yfCurrency}, create_time = #{createTime}, update_time = #{updateTime}, where id = #{id} update tms_quote_fee dispatch_id = #{item.dispatchId}, free = #{item.free}, free_name = #{item.freeName}, price = #{item.price}, currency = #{item.currency}, count = #{item.count}, sum = #{item.sum}, is_yf = #{item.isYF}, service_provider_id = #{item.serviceProviderId}, service_provider_type = #{item.serviceProviderType}, is_cz_yf = #{item.isCZYF}, yf_id = #{item.yfId}, yf_price = #{item.yfPrice}, yf_count = #{item.yfCount}, yf_sum = #{item.yfSum}, yf_currency = #{item.yfCurrency}, create_time = #{item.createTime}, update_time = #{item.updateTime}, where id = #{item.id} delete from tms_quote_fee where id = #{id} delete from tms_quote_fee where id in #{id}