<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.tanpu.fund.mapper.generator.TxFundRateMappingMapper">
  <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.TxFundRateMapping">
    <!--@mbg.generated-->
    <!--@Table tx_fund_rate_mapping-->
    <id column="fund_id" jdbcType="VARCHAR" property="fundId" />
    <result column="initial_unit_value" jdbcType="VARCHAR" property="initialUnitValue" />
    <result column="initial_size" jdbcType="DECIMAL" property="initialSize" />
    <result column="min_investment_share" jdbcType="DECIMAL" property="minInvestmentShare" />
    <result column="subsequent_investment_share" jdbcType="DECIMAL" property="subsequentInvestmentShare" />
    <result column="subscription_fee" jdbcType="DECIMAL" property="subscriptionFee" />
    <result column="subscription_fee_note" jdbcType="VARCHAR" property="subscriptionFeeNote" />
    <result column="redemption_fee" jdbcType="DECIMAL" property="redemptionFee" />
    <result column="redemption_fee_note" jdbcType="VARCHAR" property="redemptionFeeNote" />
    <result column="managementfee_deduction_frequency" jdbcType="VARCHAR" property="managementfeeDeductionFrequency" />
    <result column="managementfee_consult" jdbcType="DECIMAL" property="managementfeeConsult" />
    <result column="managementfee_trust" jdbcType="DECIMAL" property="managementfeeTrust" />
    <result column="managementfee_bank" jdbcType="DECIMAL" property="managementfeeBank" />
    <result column="performance_fee" jdbcType="DECIMAL" property="performanceFee" />
    <result column="performance_fee_deduction_method" jdbcType="INTEGER" property="performanceFeeDeductionMethod" />
    <result column="other_fee_note" jdbcType="VARCHAR" property="otherFeeNote" />
    <result column="guard_line" jdbcType="DECIMAL" property="guardLine" />
    <result column="stop_loss_line" jdbcType="DECIMAL" property="stopLossLine" />
    <result column="return_guarantees" jdbcType="DECIMAL" property="returnGuarantees" />
    <result column="expected_return" jdbcType="DECIMAL" property="expectedReturn" />
    <result column="hurdle_rate" jdbcType="DECIMAL" property="hurdleRate" />
    <result column="leverage" jdbcType="VARCHAR" property="leverage" />
    <result column="manager_participate_asset" jdbcType="VARCHAR" property="managerParticipateAsset" />
    <result column="posterior" jdbcType="DECIMAL" property="posterior" />
    <result column="intermediate" jdbcType="DECIMAL" property="intermediate" />
    <result column="priority" jdbcType="DECIMAL" property="priority" />
    <result column="outsourcing_fee" jdbcType="DECIMAL" property="outsourcingFee" />
    <result column="create_by" jdbcType="VARCHAR" property="createBy" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="delete_tag" jdbcType="INTEGER" property="deleteTag" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.TxFundRateMapping">
    <!--@mbg.generated-->
    <!--@Table tx_fund_rate_mapping-->
    <result column="performance_fee_note" jdbcType="LONGVARCHAR" property="performanceFeeNote" />
    <result column="dividend_rule" jdbcType="LONGVARCHAR" property="dividendRule" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--@mbg.generated-->
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <!--@mbg.generated-->
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    fund_id, initial_unit_value, initial_size, min_investment_share, subsequent_investment_share, 
    subscription_fee, subscription_fee_note, redemption_fee, redemption_fee_note, managementfee_deduction_frequency, 
    managementfee_consult, managementfee_trust, managementfee_bank, performance_fee, 
    performance_fee_deduction_method, other_fee_note, guard_line, stop_loss_line, return_guarantees, 
    expected_return, hurdle_rate, leverage, manager_participate_asset, posterior, intermediate, 
    priority, outsourcing_fee, create_by, create_time, update_by, update_time, delete_tag
  </sql>
  <sql id="Blob_Column_List">
    <!--@mbg.generated-->
    performance_fee_note, dividend_rule
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="com.tanpu.fund.entity.generator.TxFundRateMappingExample" resultMap="ResultMapWithBLOBs">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from tx_fund_rate_mapping
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.TxFundRateMappingExample" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from tx_fund_rate_mapping
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
    <!--@mbg.generated-->
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from tx_fund_rate_mapping
    where fund_id = #{fundId,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--@mbg.generated-->
    delete from tx_fund_rate_mapping
    where fund_id = #{fundId,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.TxFundRateMappingExample">
    <!--@mbg.generated-->
    delete from tx_fund_rate_mapping
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tanpu.fund.entity.generator.TxFundRateMapping">
    <!--@mbg.generated-->
    insert into tx_fund_rate_mapping (fund_id, initial_unit_value, initial_size, 
      min_investment_share, subsequent_investment_share, 
      subscription_fee, subscription_fee_note, redemption_fee, 
      redemption_fee_note, managementfee_deduction_frequency, 
      managementfee_consult, managementfee_trust, 
      managementfee_bank, performance_fee, performance_fee_deduction_method, 
      other_fee_note, guard_line, stop_loss_line, 
      return_guarantees, expected_return, hurdle_rate, 
      leverage, manager_participate_asset, posterior, 
      intermediate, priority, outsourcing_fee, 
      create_by, create_time, update_by, 
      update_time, delete_tag, performance_fee_note, 
      dividend_rule)
    values (#{fundId,jdbcType=VARCHAR}, #{initialUnitValue,jdbcType=VARCHAR}, #{initialSize,jdbcType=DECIMAL}, 
      #{minInvestmentShare,jdbcType=DECIMAL}, #{subsequentInvestmentShare,jdbcType=DECIMAL}, 
      #{subscriptionFee,jdbcType=DECIMAL}, #{subscriptionFeeNote,jdbcType=VARCHAR}, #{redemptionFee,jdbcType=DECIMAL}, 
      #{redemptionFeeNote,jdbcType=VARCHAR}, #{managementfeeDeductionFrequency,jdbcType=VARCHAR}, 
      #{managementfeeConsult,jdbcType=DECIMAL}, #{managementfeeTrust,jdbcType=DECIMAL}, 
      #{managementfeeBank,jdbcType=DECIMAL}, #{performanceFee,jdbcType=DECIMAL}, #{performanceFeeDeductionMethod,jdbcType=INTEGER}, 
      #{otherFeeNote,jdbcType=VARCHAR}, #{guardLine,jdbcType=DECIMAL}, #{stopLossLine,jdbcType=DECIMAL}, 
      #{returnGuarantees,jdbcType=DECIMAL}, #{expectedReturn,jdbcType=DECIMAL}, #{hurdleRate,jdbcType=DECIMAL}, 
      #{leverage,jdbcType=VARCHAR}, #{managerParticipateAsset,jdbcType=VARCHAR}, #{posterior,jdbcType=DECIMAL}, 
      #{intermediate,jdbcType=DECIMAL}, #{priority,jdbcType=DECIMAL}, #{outsourcingFee,jdbcType=DECIMAL}, 
      #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}, #{performanceFeeNote,jdbcType=LONGVARCHAR}, 
      #{dividendRule,jdbcType=LONGVARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.TxFundRateMapping">
    <!--@mbg.generated-->
    insert into tx_fund_rate_mapping
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="fundId != null">
        fund_id,
      </if>
      <if test="initialUnitValue != null">
        initial_unit_value,
      </if>
      <if test="initialSize != null">
        initial_size,
      </if>
      <if test="minInvestmentShare != null">
        min_investment_share,
      </if>
      <if test="subsequentInvestmentShare != null">
        subsequent_investment_share,
      </if>
      <if test="subscriptionFee != null">
        subscription_fee,
      </if>
      <if test="subscriptionFeeNote != null">
        subscription_fee_note,
      </if>
      <if test="redemptionFee != null">
        redemption_fee,
      </if>
      <if test="redemptionFeeNote != null">
        redemption_fee_note,
      </if>
      <if test="managementfeeDeductionFrequency != null">
        managementfee_deduction_frequency,
      </if>
      <if test="managementfeeConsult != null">
        managementfee_consult,
      </if>
      <if test="managementfeeTrust != null">
        managementfee_trust,
      </if>
      <if test="managementfeeBank != null">
        managementfee_bank,
      </if>
      <if test="performanceFee != null">
        performance_fee,
      </if>
      <if test="performanceFeeDeductionMethod != null">
        performance_fee_deduction_method,
      </if>
      <if test="otherFeeNote != null">
        other_fee_note,
      </if>
      <if test="guardLine != null">
        guard_line,
      </if>
      <if test="stopLossLine != null">
        stop_loss_line,
      </if>
      <if test="returnGuarantees != null">
        return_guarantees,
      </if>
      <if test="expectedReturn != null">
        expected_return,
      </if>
      <if test="hurdleRate != null">
        hurdle_rate,
      </if>
      <if test="leverage != null">
        leverage,
      </if>
      <if test="managerParticipateAsset != null">
        manager_participate_asset,
      </if>
      <if test="posterior != null">
        posterior,
      </if>
      <if test="intermediate != null">
        intermediate,
      </if>
      <if test="priority != null">
        priority,
      </if>
      <if test="outsourcingFee != null">
        outsourcing_fee,
      </if>
      <if test="createBy != null">
        create_by,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="updateBy != null">
        update_by,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="deleteTag != null">
        delete_tag,
      </if>
      <if test="performanceFeeNote != null">
        performance_fee_note,
      </if>
      <if test="dividendRule != null">
        dividend_rule,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="fundId != null">
        #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="initialUnitValue != null">
        #{initialUnitValue,jdbcType=VARCHAR},
      </if>
      <if test="initialSize != null">
        #{initialSize,jdbcType=DECIMAL},
      </if>
      <if test="minInvestmentShare != null">
        #{minInvestmentShare,jdbcType=DECIMAL},
      </if>
      <if test="subsequentInvestmentShare != null">
        #{subsequentInvestmentShare,jdbcType=DECIMAL},
      </if>
      <if test="subscriptionFee != null">
        #{subscriptionFee,jdbcType=DECIMAL},
      </if>
      <if test="subscriptionFeeNote != null">
        #{subscriptionFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="redemptionFee != null">
        #{redemptionFee,jdbcType=DECIMAL},
      </if>
      <if test="redemptionFeeNote != null">
        #{redemptionFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="managementfeeDeductionFrequency != null">
        #{managementfeeDeductionFrequency,jdbcType=VARCHAR},
      </if>
      <if test="managementfeeConsult != null">
        #{managementfeeConsult,jdbcType=DECIMAL},
      </if>
      <if test="managementfeeTrust != null">
        #{managementfeeTrust,jdbcType=DECIMAL},
      </if>
      <if test="managementfeeBank != null">
        #{managementfeeBank,jdbcType=DECIMAL},
      </if>
      <if test="performanceFee != null">
        #{performanceFee,jdbcType=DECIMAL},
      </if>
      <if test="performanceFeeDeductionMethod != null">
        #{performanceFeeDeductionMethod,jdbcType=INTEGER},
      </if>
      <if test="otherFeeNote != null">
        #{otherFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="guardLine != null">
        #{guardLine,jdbcType=DECIMAL},
      </if>
      <if test="stopLossLine != null">
        #{stopLossLine,jdbcType=DECIMAL},
      </if>
      <if test="returnGuarantees != null">
        #{returnGuarantees,jdbcType=DECIMAL},
      </if>
      <if test="expectedReturn != null">
        #{expectedReturn,jdbcType=DECIMAL},
      </if>
      <if test="hurdleRate != null">
        #{hurdleRate,jdbcType=DECIMAL},
      </if>
      <if test="leverage != null">
        #{leverage,jdbcType=VARCHAR},
      </if>
      <if test="managerParticipateAsset != null">
        #{managerParticipateAsset,jdbcType=VARCHAR},
      </if>
      <if test="posterior != null">
        #{posterior,jdbcType=DECIMAL},
      </if>
      <if test="intermediate != null">
        #{intermediate,jdbcType=DECIMAL},
      </if>
      <if test="priority != null">
        #{priority,jdbcType=DECIMAL},
      </if>
      <if test="outsourcingFee != null">
        #{outsourcingFee,jdbcType=DECIMAL},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="performanceFeeNote != null">
        #{performanceFeeNote,jdbcType=LONGVARCHAR},
      </if>
      <if test="dividendRule != null">
        #{dividendRule,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.TxFundRateMappingExample" resultType="java.lang.Long">
    <!--@mbg.generated-->
    select count(*) from tx_fund_rate_mapping
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--@mbg.generated-->
    update tx_fund_rate_mapping
    <set>
      <if test="record.fundId != null">
        fund_id = #{record.fundId,jdbcType=VARCHAR},
      </if>
      <if test="record.initialUnitValue != null">
        initial_unit_value = #{record.initialUnitValue,jdbcType=VARCHAR},
      </if>
      <if test="record.initialSize != null">
        initial_size = #{record.initialSize,jdbcType=DECIMAL},
      </if>
      <if test="record.minInvestmentShare != null">
        min_investment_share = #{record.minInvestmentShare,jdbcType=DECIMAL},
      </if>
      <if test="record.subsequentInvestmentShare != null">
        subsequent_investment_share = #{record.subsequentInvestmentShare,jdbcType=DECIMAL},
      </if>
      <if test="record.subscriptionFee != null">
        subscription_fee = #{record.subscriptionFee,jdbcType=DECIMAL},
      </if>
      <if test="record.subscriptionFeeNote != null">
        subscription_fee_note = #{record.subscriptionFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="record.redemptionFee != null">
        redemption_fee = #{record.redemptionFee,jdbcType=DECIMAL},
      </if>
      <if test="record.redemptionFeeNote != null">
        redemption_fee_note = #{record.redemptionFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="record.managementfeeDeductionFrequency != null">
        managementfee_deduction_frequency = #{record.managementfeeDeductionFrequency,jdbcType=VARCHAR},
      </if>
      <if test="record.managementfeeConsult != null">
        managementfee_consult = #{record.managementfeeConsult,jdbcType=DECIMAL},
      </if>
      <if test="record.managementfeeTrust != null">
        managementfee_trust = #{record.managementfeeTrust,jdbcType=DECIMAL},
      </if>
      <if test="record.managementfeeBank != null">
        managementfee_bank = #{record.managementfeeBank,jdbcType=DECIMAL},
      </if>
      <if test="record.performanceFee != null">
        performance_fee = #{record.performanceFee,jdbcType=DECIMAL},
      </if>
      <if test="record.performanceFeeDeductionMethod != null">
        performance_fee_deduction_method = #{record.performanceFeeDeductionMethod,jdbcType=INTEGER},
      </if>
      <if test="record.otherFeeNote != null">
        other_fee_note = #{record.otherFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="record.guardLine != null">
        guard_line = #{record.guardLine,jdbcType=DECIMAL},
      </if>
      <if test="record.stopLossLine != null">
        stop_loss_line = #{record.stopLossLine,jdbcType=DECIMAL},
      </if>
      <if test="record.returnGuarantees != null">
        return_guarantees = #{record.returnGuarantees,jdbcType=DECIMAL},
      </if>
      <if test="record.expectedReturn != null">
        expected_return = #{record.expectedReturn,jdbcType=DECIMAL},
      </if>
      <if test="record.hurdleRate != null">
        hurdle_rate = #{record.hurdleRate,jdbcType=DECIMAL},
      </if>
      <if test="record.leverage != null">
        leverage = #{record.leverage,jdbcType=VARCHAR},
      </if>
      <if test="record.managerParticipateAsset != null">
        manager_participate_asset = #{record.managerParticipateAsset,jdbcType=VARCHAR},
      </if>
      <if test="record.posterior != null">
        posterior = #{record.posterior,jdbcType=DECIMAL},
      </if>
      <if test="record.intermediate != null">
        intermediate = #{record.intermediate,jdbcType=DECIMAL},
      </if>
      <if test="record.priority != null">
        priority = #{record.priority,jdbcType=DECIMAL},
      </if>
      <if test="record.outsourcingFee != null">
        outsourcing_fee = #{record.outsourcingFee,jdbcType=DECIMAL},
      </if>
      <if test="record.createBy != null">
        create_by = #{record.createBy,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateBy != null">
        update_by = #{record.updateBy,jdbcType=VARCHAR},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.deleteTag != null">
        delete_tag = #{record.deleteTag,jdbcType=INTEGER},
      </if>
      <if test="record.performanceFeeNote != null">
        performance_fee_note = #{record.performanceFeeNote,jdbcType=LONGVARCHAR},
      </if>
      <if test="record.dividendRule != null">
        dividend_rule = #{record.dividendRule,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    <!--@mbg.generated-->
    update tx_fund_rate_mapping
    set fund_id = #{record.fundId,jdbcType=VARCHAR},
      initial_unit_value = #{record.initialUnitValue,jdbcType=VARCHAR},
      initial_size = #{record.initialSize,jdbcType=DECIMAL},
      min_investment_share = #{record.minInvestmentShare,jdbcType=DECIMAL},
      subsequent_investment_share = #{record.subsequentInvestmentShare,jdbcType=DECIMAL},
      subscription_fee = #{record.subscriptionFee,jdbcType=DECIMAL},
      subscription_fee_note = #{record.subscriptionFeeNote,jdbcType=VARCHAR},
      redemption_fee = #{record.redemptionFee,jdbcType=DECIMAL},
      redemption_fee_note = #{record.redemptionFeeNote,jdbcType=VARCHAR},
      managementfee_deduction_frequency = #{record.managementfeeDeductionFrequency,jdbcType=VARCHAR},
      managementfee_consult = #{record.managementfeeConsult,jdbcType=DECIMAL},
      managementfee_trust = #{record.managementfeeTrust,jdbcType=DECIMAL},
      managementfee_bank = #{record.managementfeeBank,jdbcType=DECIMAL},
      performance_fee = #{record.performanceFee,jdbcType=DECIMAL},
      performance_fee_deduction_method = #{record.performanceFeeDeductionMethod,jdbcType=INTEGER},
      other_fee_note = #{record.otherFeeNote,jdbcType=VARCHAR},
      guard_line = #{record.guardLine,jdbcType=DECIMAL},
      stop_loss_line = #{record.stopLossLine,jdbcType=DECIMAL},
      return_guarantees = #{record.returnGuarantees,jdbcType=DECIMAL},
      expected_return = #{record.expectedReturn,jdbcType=DECIMAL},
      hurdle_rate = #{record.hurdleRate,jdbcType=DECIMAL},
      leverage = #{record.leverage,jdbcType=VARCHAR},
      manager_participate_asset = #{record.managerParticipateAsset,jdbcType=VARCHAR},
      posterior = #{record.posterior,jdbcType=DECIMAL},
      intermediate = #{record.intermediate,jdbcType=DECIMAL},
      priority = #{record.priority,jdbcType=DECIMAL},
      outsourcing_fee = #{record.outsourcingFee,jdbcType=DECIMAL},
      create_by = #{record.createBy,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      update_by = #{record.updateBy,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      delete_tag = #{record.deleteTag,jdbcType=INTEGER},
      performance_fee_note = #{record.performanceFeeNote,jdbcType=LONGVARCHAR},
      dividend_rule = #{record.dividendRule,jdbcType=LONGVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--@mbg.generated-->
    update tx_fund_rate_mapping
    set fund_id = #{record.fundId,jdbcType=VARCHAR},
      initial_unit_value = #{record.initialUnitValue,jdbcType=VARCHAR},
      initial_size = #{record.initialSize,jdbcType=DECIMAL},
      min_investment_share = #{record.minInvestmentShare,jdbcType=DECIMAL},
      subsequent_investment_share = #{record.subsequentInvestmentShare,jdbcType=DECIMAL},
      subscription_fee = #{record.subscriptionFee,jdbcType=DECIMAL},
      subscription_fee_note = #{record.subscriptionFeeNote,jdbcType=VARCHAR},
      redemption_fee = #{record.redemptionFee,jdbcType=DECIMAL},
      redemption_fee_note = #{record.redemptionFeeNote,jdbcType=VARCHAR},
      managementfee_deduction_frequency = #{record.managementfeeDeductionFrequency,jdbcType=VARCHAR},
      managementfee_consult = #{record.managementfeeConsult,jdbcType=DECIMAL},
      managementfee_trust = #{record.managementfeeTrust,jdbcType=DECIMAL},
      managementfee_bank = #{record.managementfeeBank,jdbcType=DECIMAL},
      performance_fee = #{record.performanceFee,jdbcType=DECIMAL},
      performance_fee_deduction_method = #{record.performanceFeeDeductionMethod,jdbcType=INTEGER},
      other_fee_note = #{record.otherFeeNote,jdbcType=VARCHAR},
      guard_line = #{record.guardLine,jdbcType=DECIMAL},
      stop_loss_line = #{record.stopLossLine,jdbcType=DECIMAL},
      return_guarantees = #{record.returnGuarantees,jdbcType=DECIMAL},
      expected_return = #{record.expectedReturn,jdbcType=DECIMAL},
      hurdle_rate = #{record.hurdleRate,jdbcType=DECIMAL},
      leverage = #{record.leverage,jdbcType=VARCHAR},
      manager_participate_asset = #{record.managerParticipateAsset,jdbcType=VARCHAR},
      posterior = #{record.posterior,jdbcType=DECIMAL},
      intermediate = #{record.intermediate,jdbcType=DECIMAL},
      priority = #{record.priority,jdbcType=DECIMAL},
      outsourcing_fee = #{record.outsourcingFee,jdbcType=DECIMAL},
      create_by = #{record.createBy,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      update_by = #{record.updateBy,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      delete_tag = #{record.deleteTag,jdbcType=INTEGER}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.TxFundRateMapping">
    <!--@mbg.generated-->
    update tx_fund_rate_mapping
    <set>
      <if test="initialUnitValue != null">
        initial_unit_value = #{initialUnitValue,jdbcType=VARCHAR},
      </if>
      <if test="initialSize != null">
        initial_size = #{initialSize,jdbcType=DECIMAL},
      </if>
      <if test="minInvestmentShare != null">
        min_investment_share = #{minInvestmentShare,jdbcType=DECIMAL},
      </if>
      <if test="subsequentInvestmentShare != null">
        subsequent_investment_share = #{subsequentInvestmentShare,jdbcType=DECIMAL},
      </if>
      <if test="subscriptionFee != null">
        subscription_fee = #{subscriptionFee,jdbcType=DECIMAL},
      </if>
      <if test="subscriptionFeeNote != null">
        subscription_fee_note = #{subscriptionFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="redemptionFee != null">
        redemption_fee = #{redemptionFee,jdbcType=DECIMAL},
      </if>
      <if test="redemptionFeeNote != null">
        redemption_fee_note = #{redemptionFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="managementfeeDeductionFrequency != null">
        managementfee_deduction_frequency = #{managementfeeDeductionFrequency,jdbcType=VARCHAR},
      </if>
      <if test="managementfeeConsult != null">
        managementfee_consult = #{managementfeeConsult,jdbcType=DECIMAL},
      </if>
      <if test="managementfeeTrust != null">
        managementfee_trust = #{managementfeeTrust,jdbcType=DECIMAL},
      </if>
      <if test="managementfeeBank != null">
        managementfee_bank = #{managementfeeBank,jdbcType=DECIMAL},
      </if>
      <if test="performanceFee != null">
        performance_fee = #{performanceFee,jdbcType=DECIMAL},
      </if>
      <if test="performanceFeeDeductionMethod != null">
        performance_fee_deduction_method = #{performanceFeeDeductionMethod,jdbcType=INTEGER},
      </if>
      <if test="otherFeeNote != null">
        other_fee_note = #{otherFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="guardLine != null">
        guard_line = #{guardLine,jdbcType=DECIMAL},
      </if>
      <if test="stopLossLine != null">
        stop_loss_line = #{stopLossLine,jdbcType=DECIMAL},
      </if>
      <if test="returnGuarantees != null">
        return_guarantees = #{returnGuarantees,jdbcType=DECIMAL},
      </if>
      <if test="expectedReturn != null">
        expected_return = #{expectedReturn,jdbcType=DECIMAL},
      </if>
      <if test="hurdleRate != null">
        hurdle_rate = #{hurdleRate,jdbcType=DECIMAL},
      </if>
      <if test="leverage != null">
        leverage = #{leverage,jdbcType=VARCHAR},
      </if>
      <if test="managerParticipateAsset != null">
        manager_participate_asset = #{managerParticipateAsset,jdbcType=VARCHAR},
      </if>
      <if test="posterior != null">
        posterior = #{posterior,jdbcType=DECIMAL},
      </if>
      <if test="intermediate != null">
        intermediate = #{intermediate,jdbcType=DECIMAL},
      </if>
      <if test="priority != null">
        priority = #{priority,jdbcType=DECIMAL},
      </if>
      <if test="outsourcingFee != null">
        outsourcing_fee = #{outsourcingFee,jdbcType=DECIMAL},
      </if>
      <if test="createBy != null">
        create_by = #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        update_by = #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="performanceFeeNote != null">
        performance_fee_note = #{performanceFeeNote,jdbcType=LONGVARCHAR},
      </if>
      <if test="dividendRule != null">
        dividend_rule = #{dividendRule,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where fund_id = #{fundId,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tanpu.fund.entity.generator.TxFundRateMapping">
    <!--@mbg.generated-->
    update tx_fund_rate_mapping
    set initial_unit_value = #{initialUnitValue,jdbcType=VARCHAR},
      initial_size = #{initialSize,jdbcType=DECIMAL},
      min_investment_share = #{minInvestmentShare,jdbcType=DECIMAL},
      subsequent_investment_share = #{subsequentInvestmentShare,jdbcType=DECIMAL},
      subscription_fee = #{subscriptionFee,jdbcType=DECIMAL},
      subscription_fee_note = #{subscriptionFeeNote,jdbcType=VARCHAR},
      redemption_fee = #{redemptionFee,jdbcType=DECIMAL},
      redemption_fee_note = #{redemptionFeeNote,jdbcType=VARCHAR},
      managementfee_deduction_frequency = #{managementfeeDeductionFrequency,jdbcType=VARCHAR},
      managementfee_consult = #{managementfeeConsult,jdbcType=DECIMAL},
      managementfee_trust = #{managementfeeTrust,jdbcType=DECIMAL},
      managementfee_bank = #{managementfeeBank,jdbcType=DECIMAL},
      performance_fee = #{performanceFee,jdbcType=DECIMAL},
      performance_fee_deduction_method = #{performanceFeeDeductionMethod,jdbcType=INTEGER},
      other_fee_note = #{otherFeeNote,jdbcType=VARCHAR},
      guard_line = #{guardLine,jdbcType=DECIMAL},
      stop_loss_line = #{stopLossLine,jdbcType=DECIMAL},
      return_guarantees = #{returnGuarantees,jdbcType=DECIMAL},
      expected_return = #{expectedReturn,jdbcType=DECIMAL},
      hurdle_rate = #{hurdleRate,jdbcType=DECIMAL},
      leverage = #{leverage,jdbcType=VARCHAR},
      manager_participate_asset = #{managerParticipateAsset,jdbcType=VARCHAR},
      posterior = #{posterior,jdbcType=DECIMAL},
      intermediate = #{intermediate,jdbcType=DECIMAL},
      priority = #{priority,jdbcType=DECIMAL},
      outsourcing_fee = #{outsourcingFee,jdbcType=DECIMAL},
      create_by = #{createBy,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_by = #{updateBy,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      delete_tag = #{deleteTag,jdbcType=INTEGER},
      performance_fee_note = #{performanceFeeNote,jdbcType=LONGVARCHAR},
      dividend_rule = #{dividendRule,jdbcType=LONGVARCHAR}
    where fund_id = #{fundId,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.TxFundRateMapping">
    <!--@mbg.generated-->
    update tx_fund_rate_mapping
    set initial_unit_value = #{initialUnitValue,jdbcType=VARCHAR},
      initial_size = #{initialSize,jdbcType=DECIMAL},
      min_investment_share = #{minInvestmentShare,jdbcType=DECIMAL},
      subsequent_investment_share = #{subsequentInvestmentShare,jdbcType=DECIMAL},
      subscription_fee = #{subscriptionFee,jdbcType=DECIMAL},
      subscription_fee_note = #{subscriptionFeeNote,jdbcType=VARCHAR},
      redemption_fee = #{redemptionFee,jdbcType=DECIMAL},
      redemption_fee_note = #{redemptionFeeNote,jdbcType=VARCHAR},
      managementfee_deduction_frequency = #{managementfeeDeductionFrequency,jdbcType=VARCHAR},
      managementfee_consult = #{managementfeeConsult,jdbcType=DECIMAL},
      managementfee_trust = #{managementfeeTrust,jdbcType=DECIMAL},
      managementfee_bank = #{managementfeeBank,jdbcType=DECIMAL},
      performance_fee = #{performanceFee,jdbcType=DECIMAL},
      performance_fee_deduction_method = #{performanceFeeDeductionMethod,jdbcType=INTEGER},
      other_fee_note = #{otherFeeNote,jdbcType=VARCHAR},
      guard_line = #{guardLine,jdbcType=DECIMAL},
      stop_loss_line = #{stopLossLine,jdbcType=DECIMAL},
      return_guarantees = #{returnGuarantees,jdbcType=DECIMAL},
      expected_return = #{expectedReturn,jdbcType=DECIMAL},
      hurdle_rate = #{hurdleRate,jdbcType=DECIMAL},
      leverage = #{leverage,jdbcType=VARCHAR},
      manager_participate_asset = #{managerParticipateAsset,jdbcType=VARCHAR},
      posterior = #{posterior,jdbcType=DECIMAL},
      intermediate = #{intermediate,jdbcType=DECIMAL},
      priority = #{priority,jdbcType=DECIMAL},
      outsourcing_fee = #{outsourcingFee,jdbcType=DECIMAL},
      create_by = #{createBy,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_by = #{updateBy,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      delete_tag = #{deleteTag,jdbcType=INTEGER}
    where fund_id = #{fundId,jdbcType=VARCHAR}
  </update>
  <update id="updateBatch" parameterType="java.util.List">
    <!--@mbg.generated-->
    update tx_fund_rate_mapping
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="initial_unit_value = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.initialUnitValue,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="initial_size = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.initialSize,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="min_investment_share = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.minInvestmentShare,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="subsequent_investment_share = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.subsequentInvestmentShare,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="subscription_fee = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.subscriptionFee,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="subscription_fee_note = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.subscriptionFeeNote,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="redemption_fee = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.redemptionFee,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="redemption_fee_note = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.redemptionFeeNote,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="managementfee_deduction_frequency = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.managementfeeDeductionFrequency,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="managementfee_consult = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.managementfeeConsult,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="managementfee_trust = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.managementfeeTrust,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="managementfee_bank = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.managementfeeBank,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="performance_fee = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.performanceFee,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="performance_fee_deduction_method = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.performanceFeeDeductionMethod,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="other_fee_note = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.otherFeeNote,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="guard_line = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.guardLine,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="stop_loss_line = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.stopLossLine,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="return_guarantees = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.returnGuarantees,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="expected_return = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.expectedReturn,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="hurdle_rate = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.hurdleRate,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="leverage = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.leverage,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="manager_participate_asset = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.managerParticipateAsset,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="posterior = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.posterior,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="intermediate = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.intermediate,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="priority = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.priority,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="outsourcing_fee = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.outsourcingFee,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="create_by = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="create_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="update_by = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="update_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="delete_tag = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="performance_fee_note = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.performanceFeeNote,jdbcType=LONGVARCHAR}
        </foreach>
      </trim>
      <trim prefix="dividend_rule = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when fund_id = #{item.fundId,jdbcType=VARCHAR} then #{item.dividendRule,jdbcType=LONGVARCHAR}
        </foreach>
      </trim>
    </trim>
    where fund_id in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.fundId,jdbcType=VARCHAR}
    </foreach>
  </update>
  <insert id="batchInsert" parameterType="map">
    <!--@mbg.generated-->
    insert into tx_fund_rate_mapping
    (fund_id, initial_unit_value, initial_size, min_investment_share, subsequent_investment_share, 
      subscription_fee, subscription_fee_note, redemption_fee, redemption_fee_note, managementfee_deduction_frequency, 
      managementfee_consult, managementfee_trust, managementfee_bank, performance_fee, 
      performance_fee_deduction_method, other_fee_note, guard_line, stop_loss_line, return_guarantees, 
      expected_return, hurdle_rate, leverage, manager_participate_asset, posterior, intermediate, 
      priority, outsourcing_fee, create_by, create_time, update_by, update_time, delete_tag, 
      performance_fee_note, dividend_rule)
    values
    <foreach collection="list" item="item" separator=",">
      (#{item.fundId,jdbcType=VARCHAR}, #{item.initialUnitValue,jdbcType=VARCHAR}, #{item.initialSize,jdbcType=DECIMAL}, 
        #{item.minInvestmentShare,jdbcType=DECIMAL}, #{item.subsequentInvestmentShare,jdbcType=DECIMAL}, 
        #{item.subscriptionFee,jdbcType=DECIMAL}, #{item.subscriptionFeeNote,jdbcType=VARCHAR}, 
        #{item.redemptionFee,jdbcType=DECIMAL}, #{item.redemptionFeeNote,jdbcType=VARCHAR}, 
        #{item.managementfeeDeductionFrequency,jdbcType=VARCHAR}, #{item.managementfeeConsult,jdbcType=DECIMAL}, 
        #{item.managementfeeTrust,jdbcType=DECIMAL}, #{item.managementfeeBank,jdbcType=DECIMAL}, 
        #{item.performanceFee,jdbcType=DECIMAL}, #{item.performanceFeeDeductionMethod,jdbcType=INTEGER}, 
        #{item.otherFeeNote,jdbcType=VARCHAR}, #{item.guardLine,jdbcType=DECIMAL}, #{item.stopLossLine,jdbcType=DECIMAL}, 
        #{item.returnGuarantees,jdbcType=DECIMAL}, #{item.expectedReturn,jdbcType=DECIMAL}, 
        #{item.hurdleRate,jdbcType=DECIMAL}, #{item.leverage,jdbcType=VARCHAR}, #{item.managerParticipateAsset,jdbcType=VARCHAR}, 
        #{item.posterior,jdbcType=DECIMAL}, #{item.intermediate,jdbcType=DECIMAL}, #{item.priority,jdbcType=DECIMAL}, 
        #{item.outsourcingFee,jdbcType=DECIMAL}, #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, 
        #{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteTag,jdbcType=INTEGER}, 
        #{item.performanceFeeNote,jdbcType=LONGVARCHAR}, #{item.dividendRule,jdbcType=LONGVARCHAR}
        )
    </foreach>
  </insert>
  <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.TxFundRateMapping">
    <!--@mbg.generated-->
    insert into tx_fund_rate_mapping
    (fund_id, initial_unit_value, initial_size, min_investment_share, subsequent_investment_share, 
      subscription_fee, subscription_fee_note, redemption_fee, redemption_fee_note, managementfee_deduction_frequency, 
      managementfee_consult, managementfee_trust, managementfee_bank, performance_fee, 
      performance_fee_deduction_method, other_fee_note, guard_line, stop_loss_line, return_guarantees, 
      expected_return, hurdle_rate, leverage, manager_participate_asset, posterior, intermediate, 
      priority, outsourcing_fee, create_by, create_time, update_by, update_time, delete_tag
      )
    values
    (#{fundId,jdbcType=VARCHAR}, #{initialUnitValue,jdbcType=VARCHAR}, #{initialSize,jdbcType=DECIMAL}, 
      #{minInvestmentShare,jdbcType=DECIMAL}, #{subsequentInvestmentShare,jdbcType=DECIMAL}, 
      #{subscriptionFee,jdbcType=DECIMAL}, #{subscriptionFeeNote,jdbcType=VARCHAR}, #{redemptionFee,jdbcType=DECIMAL}, 
      #{redemptionFeeNote,jdbcType=VARCHAR}, #{managementfeeDeductionFrequency,jdbcType=VARCHAR}, 
      #{managementfeeConsult,jdbcType=DECIMAL}, #{managementfeeTrust,jdbcType=DECIMAL}, 
      #{managementfeeBank,jdbcType=DECIMAL}, #{performanceFee,jdbcType=DECIMAL}, #{performanceFeeDeductionMethod,jdbcType=INTEGER}, 
      #{otherFeeNote,jdbcType=VARCHAR}, #{guardLine,jdbcType=DECIMAL}, #{stopLossLine,jdbcType=DECIMAL}, 
      #{returnGuarantees,jdbcType=DECIMAL}, #{expectedReturn,jdbcType=DECIMAL}, #{hurdleRate,jdbcType=DECIMAL}, 
      #{leverage,jdbcType=VARCHAR}, #{managerParticipateAsset,jdbcType=VARCHAR}, #{posterior,jdbcType=DECIMAL}, 
      #{intermediate,jdbcType=DECIMAL}, #{priority,jdbcType=DECIMAL}, #{outsourcingFee,jdbcType=DECIMAL}, 
      #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER})
    on duplicate key update 
    fund_id = #{fundId,jdbcType=VARCHAR}, 
    initial_unit_value = #{initialUnitValue,jdbcType=VARCHAR}, 
    initial_size = #{initialSize,jdbcType=DECIMAL}, 
    min_investment_share = #{minInvestmentShare,jdbcType=DECIMAL}, 
    subsequent_investment_share = #{subsequentInvestmentShare,jdbcType=DECIMAL}, 
    subscription_fee = #{subscriptionFee,jdbcType=DECIMAL}, 
    subscription_fee_note = #{subscriptionFeeNote,jdbcType=VARCHAR}, 
    redemption_fee = #{redemptionFee,jdbcType=DECIMAL}, 
    redemption_fee_note = #{redemptionFeeNote,jdbcType=VARCHAR}, 
    managementfee_deduction_frequency = #{managementfeeDeductionFrequency,jdbcType=VARCHAR}, 
    managementfee_consult = #{managementfeeConsult,jdbcType=DECIMAL}, 
    managementfee_trust = #{managementfeeTrust,jdbcType=DECIMAL}, 
    managementfee_bank = #{managementfeeBank,jdbcType=DECIMAL}, 
    performance_fee = #{performanceFee,jdbcType=DECIMAL}, 
    performance_fee_deduction_method = #{performanceFeeDeductionMethod,jdbcType=INTEGER}, 
    other_fee_note = #{otherFeeNote,jdbcType=VARCHAR}, 
    guard_line = #{guardLine,jdbcType=DECIMAL}, 
    stop_loss_line = #{stopLossLine,jdbcType=DECIMAL}, 
    return_guarantees = #{returnGuarantees,jdbcType=DECIMAL}, 
    expected_return = #{expectedReturn,jdbcType=DECIMAL}, 
    hurdle_rate = #{hurdleRate,jdbcType=DECIMAL}, 
    leverage = #{leverage,jdbcType=VARCHAR}, 
    manager_participate_asset = #{managerParticipateAsset,jdbcType=VARCHAR}, 
    posterior = #{posterior,jdbcType=DECIMAL}, 
    intermediate = #{intermediate,jdbcType=DECIMAL}, 
    priority = #{priority,jdbcType=DECIMAL}, 
    outsourcing_fee = #{outsourcingFee,jdbcType=DECIMAL}, 
    create_by = #{createBy,jdbcType=VARCHAR}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    update_by = #{updateBy,jdbcType=VARCHAR}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    delete_tag = #{deleteTag,jdbcType=INTEGER}
  </insert>
  <insert id="insertOrUpdateWithBLOBs" parameterType="com.tanpu.fund.entity.generator.TxFundRateMapping">
    <!--@mbg.generated-->
    insert into tx_fund_rate_mapping
    (fund_id, initial_unit_value, initial_size, min_investment_share, subsequent_investment_share, 
      subscription_fee, subscription_fee_note, redemption_fee, redemption_fee_note, managementfee_deduction_frequency, 
      managementfee_consult, managementfee_trust, managementfee_bank, performance_fee, 
      performance_fee_deduction_method, other_fee_note, guard_line, stop_loss_line, return_guarantees, 
      expected_return, hurdle_rate, leverage, manager_participate_asset, posterior, intermediate, 
      priority, outsourcing_fee, create_by, create_time, update_by, update_time, delete_tag, 
      performance_fee_note, dividend_rule)
    values
    (#{fundId,jdbcType=VARCHAR}, #{initialUnitValue,jdbcType=VARCHAR}, #{initialSize,jdbcType=DECIMAL}, 
      #{minInvestmentShare,jdbcType=DECIMAL}, #{subsequentInvestmentShare,jdbcType=DECIMAL}, 
      #{subscriptionFee,jdbcType=DECIMAL}, #{subscriptionFeeNote,jdbcType=VARCHAR}, #{redemptionFee,jdbcType=DECIMAL}, 
      #{redemptionFeeNote,jdbcType=VARCHAR}, #{managementfeeDeductionFrequency,jdbcType=VARCHAR}, 
      #{managementfeeConsult,jdbcType=DECIMAL}, #{managementfeeTrust,jdbcType=DECIMAL}, 
      #{managementfeeBank,jdbcType=DECIMAL}, #{performanceFee,jdbcType=DECIMAL}, #{performanceFeeDeductionMethod,jdbcType=INTEGER}, 
      #{otherFeeNote,jdbcType=VARCHAR}, #{guardLine,jdbcType=DECIMAL}, #{stopLossLine,jdbcType=DECIMAL}, 
      #{returnGuarantees,jdbcType=DECIMAL}, #{expectedReturn,jdbcType=DECIMAL}, #{hurdleRate,jdbcType=DECIMAL}, 
      #{leverage,jdbcType=VARCHAR}, #{managerParticipateAsset,jdbcType=VARCHAR}, #{posterior,jdbcType=DECIMAL}, 
      #{intermediate,jdbcType=DECIMAL}, #{priority,jdbcType=DECIMAL}, #{outsourcingFee,jdbcType=DECIMAL}, 
      #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}, #{performanceFeeNote,jdbcType=LONGVARCHAR}, 
      #{dividendRule,jdbcType=LONGVARCHAR})
    on duplicate key update 
    fund_id = #{fundId,jdbcType=VARCHAR}, 
    initial_unit_value = #{initialUnitValue,jdbcType=VARCHAR}, 
    initial_size = #{initialSize,jdbcType=DECIMAL}, 
    min_investment_share = #{minInvestmentShare,jdbcType=DECIMAL}, 
    subsequent_investment_share = #{subsequentInvestmentShare,jdbcType=DECIMAL}, 
    subscription_fee = #{subscriptionFee,jdbcType=DECIMAL}, 
    subscription_fee_note = #{subscriptionFeeNote,jdbcType=VARCHAR}, 
    redemption_fee = #{redemptionFee,jdbcType=DECIMAL}, 
    redemption_fee_note = #{redemptionFeeNote,jdbcType=VARCHAR}, 
    managementfee_deduction_frequency = #{managementfeeDeductionFrequency,jdbcType=VARCHAR}, 
    managementfee_consult = #{managementfeeConsult,jdbcType=DECIMAL}, 
    managementfee_trust = #{managementfeeTrust,jdbcType=DECIMAL}, 
    managementfee_bank = #{managementfeeBank,jdbcType=DECIMAL}, 
    performance_fee = #{performanceFee,jdbcType=DECIMAL}, 
    performance_fee_deduction_method = #{performanceFeeDeductionMethod,jdbcType=INTEGER}, 
    other_fee_note = #{otherFeeNote,jdbcType=VARCHAR}, 
    guard_line = #{guardLine,jdbcType=DECIMAL}, 
    stop_loss_line = #{stopLossLine,jdbcType=DECIMAL}, 
    return_guarantees = #{returnGuarantees,jdbcType=DECIMAL}, 
    expected_return = #{expectedReturn,jdbcType=DECIMAL}, 
    hurdle_rate = #{hurdleRate,jdbcType=DECIMAL}, 
    leverage = #{leverage,jdbcType=VARCHAR}, 
    manager_participate_asset = #{managerParticipateAsset,jdbcType=VARCHAR}, 
    posterior = #{posterior,jdbcType=DECIMAL}, 
    intermediate = #{intermediate,jdbcType=DECIMAL}, 
    priority = #{priority,jdbcType=DECIMAL}, 
    outsourcing_fee = #{outsourcingFee,jdbcType=DECIMAL}, 
    create_by = #{createBy,jdbcType=VARCHAR}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    update_by = #{updateBy,jdbcType=VARCHAR}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    delete_tag = #{deleteTag,jdbcType=INTEGER}, 
    performance_fee_note = #{performanceFeeNote,jdbcType=LONGVARCHAR}, 
    dividend_rule = #{dividendRule,jdbcType=LONGVARCHAR}
  </insert>
  <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.TxFundRateMapping">
    <!--@mbg.generated-->
    insert into tx_fund_rate_mapping
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="fundId != null">
        fund_id,
      </if>
      <if test="initialUnitValue != null">
        initial_unit_value,
      </if>
      <if test="initialSize != null">
        initial_size,
      </if>
      <if test="minInvestmentShare != null">
        min_investment_share,
      </if>
      <if test="subsequentInvestmentShare != null">
        subsequent_investment_share,
      </if>
      <if test="subscriptionFee != null">
        subscription_fee,
      </if>
      <if test="subscriptionFeeNote != null">
        subscription_fee_note,
      </if>
      <if test="redemptionFee != null">
        redemption_fee,
      </if>
      <if test="redemptionFeeNote != null">
        redemption_fee_note,
      </if>
      <if test="managementfeeDeductionFrequency != null">
        managementfee_deduction_frequency,
      </if>
      <if test="managementfeeConsult != null">
        managementfee_consult,
      </if>
      <if test="managementfeeTrust != null">
        managementfee_trust,
      </if>
      <if test="managementfeeBank != null">
        managementfee_bank,
      </if>
      <if test="performanceFee != null">
        performance_fee,
      </if>
      <if test="performanceFeeDeductionMethod != null">
        performance_fee_deduction_method,
      </if>
      <if test="otherFeeNote != null">
        other_fee_note,
      </if>
      <if test="guardLine != null">
        guard_line,
      </if>
      <if test="stopLossLine != null">
        stop_loss_line,
      </if>
      <if test="returnGuarantees != null">
        return_guarantees,
      </if>
      <if test="expectedReturn != null">
        expected_return,
      </if>
      <if test="hurdleRate != null">
        hurdle_rate,
      </if>
      <if test="leverage != null">
        leverage,
      </if>
      <if test="managerParticipateAsset != null">
        manager_participate_asset,
      </if>
      <if test="posterior != null">
        posterior,
      </if>
      <if test="intermediate != null">
        intermediate,
      </if>
      <if test="priority != null">
        priority,
      </if>
      <if test="outsourcingFee != null">
        outsourcing_fee,
      </if>
      <if test="createBy != null">
        create_by,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="updateBy != null">
        update_by,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="deleteTag != null">
        delete_tag,
      </if>
      <if test="performanceFeeNote != null">
        performance_fee_note,
      </if>
      <if test="dividendRule != null">
        dividend_rule,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="fundId != null">
        #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="initialUnitValue != null">
        #{initialUnitValue,jdbcType=VARCHAR},
      </if>
      <if test="initialSize != null">
        #{initialSize,jdbcType=DECIMAL},
      </if>
      <if test="minInvestmentShare != null">
        #{minInvestmentShare,jdbcType=DECIMAL},
      </if>
      <if test="subsequentInvestmentShare != null">
        #{subsequentInvestmentShare,jdbcType=DECIMAL},
      </if>
      <if test="subscriptionFee != null">
        #{subscriptionFee,jdbcType=DECIMAL},
      </if>
      <if test="subscriptionFeeNote != null">
        #{subscriptionFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="redemptionFee != null">
        #{redemptionFee,jdbcType=DECIMAL},
      </if>
      <if test="redemptionFeeNote != null">
        #{redemptionFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="managementfeeDeductionFrequency != null">
        #{managementfeeDeductionFrequency,jdbcType=VARCHAR},
      </if>
      <if test="managementfeeConsult != null">
        #{managementfeeConsult,jdbcType=DECIMAL},
      </if>
      <if test="managementfeeTrust != null">
        #{managementfeeTrust,jdbcType=DECIMAL},
      </if>
      <if test="managementfeeBank != null">
        #{managementfeeBank,jdbcType=DECIMAL},
      </if>
      <if test="performanceFee != null">
        #{performanceFee,jdbcType=DECIMAL},
      </if>
      <if test="performanceFeeDeductionMethod != null">
        #{performanceFeeDeductionMethod,jdbcType=INTEGER},
      </if>
      <if test="otherFeeNote != null">
        #{otherFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="guardLine != null">
        #{guardLine,jdbcType=DECIMAL},
      </if>
      <if test="stopLossLine != null">
        #{stopLossLine,jdbcType=DECIMAL},
      </if>
      <if test="returnGuarantees != null">
        #{returnGuarantees,jdbcType=DECIMAL},
      </if>
      <if test="expectedReturn != null">
        #{expectedReturn,jdbcType=DECIMAL},
      </if>
      <if test="hurdleRate != null">
        #{hurdleRate,jdbcType=DECIMAL},
      </if>
      <if test="leverage != null">
        #{leverage,jdbcType=VARCHAR},
      </if>
      <if test="managerParticipateAsset != null">
        #{managerParticipateAsset,jdbcType=VARCHAR},
      </if>
      <if test="posterior != null">
        #{posterior,jdbcType=DECIMAL},
      </if>
      <if test="intermediate != null">
        #{intermediate,jdbcType=DECIMAL},
      </if>
      <if test="priority != null">
        #{priority,jdbcType=DECIMAL},
      </if>
      <if test="outsourcingFee != null">
        #{outsourcingFee,jdbcType=DECIMAL},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="performanceFeeNote != null">
        #{performanceFeeNote,jdbcType=LONGVARCHAR},
      </if>
      <if test="dividendRule != null">
        #{dividendRule,jdbcType=LONGVARCHAR},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="fundId != null">
        fund_id = #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="initialUnitValue != null">
        initial_unit_value = #{initialUnitValue,jdbcType=VARCHAR},
      </if>
      <if test="initialSize != null">
        initial_size = #{initialSize,jdbcType=DECIMAL},
      </if>
      <if test="minInvestmentShare != null">
        min_investment_share = #{minInvestmentShare,jdbcType=DECIMAL},
      </if>
      <if test="subsequentInvestmentShare != null">
        subsequent_investment_share = #{subsequentInvestmentShare,jdbcType=DECIMAL},
      </if>
      <if test="subscriptionFee != null">
        subscription_fee = #{subscriptionFee,jdbcType=DECIMAL},
      </if>
      <if test="subscriptionFeeNote != null">
        subscription_fee_note = #{subscriptionFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="redemptionFee != null">
        redemption_fee = #{redemptionFee,jdbcType=DECIMAL},
      </if>
      <if test="redemptionFeeNote != null">
        redemption_fee_note = #{redemptionFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="managementfeeDeductionFrequency != null">
        managementfee_deduction_frequency = #{managementfeeDeductionFrequency,jdbcType=VARCHAR},
      </if>
      <if test="managementfeeConsult != null">
        managementfee_consult = #{managementfeeConsult,jdbcType=DECIMAL},
      </if>
      <if test="managementfeeTrust != null">
        managementfee_trust = #{managementfeeTrust,jdbcType=DECIMAL},
      </if>
      <if test="managementfeeBank != null">
        managementfee_bank = #{managementfeeBank,jdbcType=DECIMAL},
      </if>
      <if test="performanceFee != null">
        performance_fee = #{performanceFee,jdbcType=DECIMAL},
      </if>
      <if test="performanceFeeDeductionMethod != null">
        performance_fee_deduction_method = #{performanceFeeDeductionMethod,jdbcType=INTEGER},
      </if>
      <if test="otherFeeNote != null">
        other_fee_note = #{otherFeeNote,jdbcType=VARCHAR},
      </if>
      <if test="guardLine != null">
        guard_line = #{guardLine,jdbcType=DECIMAL},
      </if>
      <if test="stopLossLine != null">
        stop_loss_line = #{stopLossLine,jdbcType=DECIMAL},
      </if>
      <if test="returnGuarantees != null">
        return_guarantees = #{returnGuarantees,jdbcType=DECIMAL},
      </if>
      <if test="expectedReturn != null">
        expected_return = #{expectedReturn,jdbcType=DECIMAL},
      </if>
      <if test="hurdleRate != null">
        hurdle_rate = #{hurdleRate,jdbcType=DECIMAL},
      </if>
      <if test="leverage != null">
        leverage = #{leverage,jdbcType=VARCHAR},
      </if>
      <if test="managerParticipateAsset != null">
        manager_participate_asset = #{managerParticipateAsset,jdbcType=VARCHAR},
      </if>
      <if test="posterior != null">
        posterior = #{posterior,jdbcType=DECIMAL},
      </if>
      <if test="intermediate != null">
        intermediate = #{intermediate,jdbcType=DECIMAL},
      </if>
      <if test="priority != null">
        priority = #{priority,jdbcType=DECIMAL},
      </if>
      <if test="outsourcingFee != null">
        outsourcing_fee = #{outsourcingFee,jdbcType=DECIMAL},
      </if>
      <if test="createBy != null">
        create_by = #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        update_by = #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="performanceFeeNote != null">
        performance_fee_note = #{performanceFeeNote,jdbcType=LONGVARCHAR},
      </if>
      <if test="dividendRule != null">
        dividend_rule = #{dividendRule,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
</mapper>