<?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.TxFundRiskStatsMapper">
  <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.TxFundRiskStats">
    <!--@mbg.generated-->
    <!--@Table tx_fund_risk_stats-->
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="fund_id" jdbcType="VARCHAR" property="fundId" />
    <result column="end_date" jdbcType="DATE" property="endDate" />
    <result column="stddev_1y" jdbcType="DECIMAL" property="stddev1y" />
    <result column="stddev_2y" jdbcType="DECIMAL" property="stddev2y" />
    <result column="stddev_3y" jdbcType="DECIMAL" property="stddev3y" />
    <result column="stddev_4y" jdbcType="DECIMAL" property="stddev4y" />
    <result column="stddev_5y" jdbcType="DECIMAL" property="stddev5y" />
    <result column="stddev_10y" jdbcType="DECIMAL" property="stddev10y" />
    <result column="stddev_incep" jdbcType="DECIMAL" property="stddevIncep" />
    <result column="stddev_ytd" jdbcType="DECIMAL" property="stddevYtd" />
    <result column="downsidedev_1y" jdbcType="DECIMAL" property="downsidedev1y" />
    <result column="downsidedev_2y" jdbcType="DECIMAL" property="downsidedev2y" />
    <result column="downsidedev_3y" jdbcType="DECIMAL" property="downsidedev3y" />
    <result column="downsidedev_4y" jdbcType="DECIMAL" property="downsidedev4y" />
    <result column="downsidedev_5y" jdbcType="DECIMAL" property="downsidedev5y" />
    <result column="downsidedev_10y" jdbcType="DECIMAL" property="downsidedev10y" />
    <result column="downsidedev_incep" jdbcType="DECIMAL" property="downsidedevIncep" />
    <result column="downsidedev_ytd" jdbcType="DECIMAL" property="downsidedevYtd" />
    <result column="alpha_1y" jdbcType="DECIMAL" property="alpha1y" />
    <result column="alpha_2y" jdbcType="DECIMAL" property="alpha2y" />
    <result column="alpha_3y" jdbcType="DECIMAL" property="alpha3y" />
    <result column="alpha_4y" jdbcType="DECIMAL" property="alpha4y" />
    <result column="alpha_5y" jdbcType="DECIMAL" property="alpha5y" />
    <result column="alpha_10y" jdbcType="DECIMAL" property="alpha10y" />
    <result column="alpha_incep" jdbcType="DECIMAL" property="alphaIncep" />
    <result column="alpha_ytd" jdbcType="DECIMAL" property="alphaYtd" />
    <result column="beta_1y" jdbcType="DECIMAL" property="beta1y" />
    <result column="beta_2y" jdbcType="DECIMAL" property="beta2y" />
    <result column="beta_3y" jdbcType="DECIMAL" property="beta3y" />
    <result column="beta_4y" jdbcType="DECIMAL" property="beta4y" />
    <result column="beta_5y" jdbcType="DECIMAL" property="beta5y" />
    <result column="beta_10y" jdbcType="DECIMAL" property="beta10y" />
    <result column="beta_incep" jdbcType="DECIMAL" property="betaIncep" />
    <result column="beta_ytd" jdbcType="DECIMAL" property="betaYtd" />
    <result column="r2_1y" jdbcType="DECIMAL" property="r21y" />
    <result column="r2_2y" jdbcType="DECIMAL" property="r22y" />
    <result column="r2_3y" jdbcType="DECIMAL" property="r23y" />
    <result column="r2_4y" jdbcType="DECIMAL" property="r24y" />
    <result column="r2_5y" jdbcType="DECIMAL" property="r25y" />
    <result column="r2_10y" jdbcType="DECIMAL" property="r210y" />
    <result column="r2_incep" jdbcType="DECIMAL" property="r2Incep" />
    <result column="r2_ytd" jdbcType="DECIMAL" property="r2Ytd" />
    <result column="skewness_1y" jdbcType="DECIMAL" property="skewness1y" />
    <result column="skewness_2y" jdbcType="DECIMAL" property="skewness2y" />
    <result column="skewness_3y" jdbcType="DECIMAL" property="skewness3y" />
    <result column="skewness_4y" jdbcType="DECIMAL" property="skewness4y" />
    <result column="skewness_5y" jdbcType="DECIMAL" property="skewness5y" />
    <result column="skewness_10y" jdbcType="DECIMAL" property="skewness10y" />
    <result column="skewness_incep" jdbcType="DECIMAL" property="skewnessIncep" />
    <result column="skewness_ytd" jdbcType="DECIMAL" property="skewnessYtd" />
    <result column="kurtosis_1y" jdbcType="DECIMAL" property="kurtosis1y" />
    <result column="kurtosis_2y" jdbcType="DECIMAL" property="kurtosis2y" />
    <result column="kurtosis_3y" jdbcType="DECIMAL" property="kurtosis3y" />
    <result column="kurtosis_4y" jdbcType="DECIMAL" property="kurtosis4y" />
    <result column="kurtosis_5y" jdbcType="DECIMAL" property="kurtosis5y" />
    <result column="kurtosis_10y" jdbcType="DECIMAL" property="kurtosis10y" />
    <result column="kurtosis_incep" jdbcType="DECIMAL" property="kurtosisIncep" />
    <result column="kurtosis_ytd" jdbcType="DECIMAL" property="kurtosisYtd" />
    <result column="worstmonth_1y" jdbcType="DECIMAL" property="worstmonth1y" />
    <result column="worstmonth_2y" jdbcType="DECIMAL" property="worstmonth2y" />
    <result column="worstmonth_3y" jdbcType="DECIMAL" property="worstmonth3y" />
    <result column="worstmonth_4y" jdbcType="DECIMAL" property="worstmonth4y" />
    <result column="worstmonth_5y" jdbcType="DECIMAL" property="worstmonth5y" />
    <result column="worstmonth_10y" jdbcType="DECIMAL" property="worstmonth10y" />
    <result column="worstmonth_incep" jdbcType="DECIMAL" property="worstmonthIncep" />
    <result column="worstmonth_ytd" jdbcType="DECIMAL" property="worstmonthYtd" />
    <result column="downmonth_percent_1y" jdbcType="DECIMAL" property="downmonthPercent1y" />
    <result column="downmonth_percent_2y" jdbcType="DECIMAL" property="downmonthPercent2y" />
    <result column="downmonth_percent_3y" jdbcType="DECIMAL" property="downmonthPercent3y" />
    <result column="downmonth_percent_4y" jdbcType="DECIMAL" property="downmonthPercent4y" />
    <result column="downmonth_percent_5y" jdbcType="DECIMAL" property="downmonthPercent5y" />
    <result column="downmonth_percent_10y" jdbcType="DECIMAL" property="downmonthPercent10y" />
    <result column="downmonth_percent_incep" jdbcType="DECIMAL" property="downmonthPercentIncep" />
    <result column="downmonth_percent_ytd" jdbcType="DECIMAL" property="downmonthPercentYtd" />
    <result column="battingaverage_1y" jdbcType="DECIMAL" property="battingaverage1y" />
    <result column="battingaverage_2y" jdbcType="DECIMAL" property="battingaverage2y" />
    <result column="battingaverage_3y" jdbcType="DECIMAL" property="battingaverage3y" />
    <result column="battingaverage_4y" jdbcType="DECIMAL" property="battingaverage4y" />
    <result column="battingaverage_5y" jdbcType="DECIMAL" property="battingaverage5y" />
    <result column="battingaverage_10y" jdbcType="DECIMAL" property="battingaverage10y" />
    <result column="battingaverage_incep" jdbcType="DECIMAL" property="battingaverageIncep" />
    <result column="battingaverage_ytd" jdbcType="DECIMAL" property="battingaverageYtd" />
    <result column="gainloss_ratio_1y" jdbcType="DECIMAL" property="gainlossRatio1y" />
    <result column="gainloss_ratio_2y" jdbcType="DECIMAL" property="gainlossRatio2y" />
    <result column="gainloss_ratio_3y" jdbcType="DECIMAL" property="gainlossRatio3y" />
    <result column="gainloss_ratio_4y" jdbcType="DECIMAL" property="gainlossRatio4y" />
    <result column="gainloss_ratio_5y" jdbcType="DECIMAL" property="gainlossRatio5y" />
    <result column="gainloss_ratio_10y" jdbcType="DECIMAL" property="gainlossRatio10y" />
    <result column="gainloss_ratio_incep" jdbcType="DECIMAL" property="gainlossRatioIncep" />
    <result column="gainloss_ratio_ytd" jdbcType="DECIMAL" property="gainlossRatioYtd" />
    <result column="longestdown_months_1y" jdbcType="INTEGER" property="longestdownMonths1y" />
    <result column="longestdown_months_2y" jdbcType="INTEGER" property="longestdownMonths2y" />
    <result column="longestdown_months_3y" jdbcType="INTEGER" property="longestdownMonths3y" />
    <result column="longestdown_months_4y" jdbcType="INTEGER" property="longestdownMonths4y" />
    <result column="longestdown_months_5y" jdbcType="INTEGER" property="longestdownMonths5y" />
    <result column="longestdown_months_10y" jdbcType="INTEGER" property="longestdownMonths10y" />
    <result column="longestdown_months_incep" jdbcType="INTEGER" property="longestdownMonthsIncep" />
    <result column="longestdown_months_ytd" jdbcType="INTEGER" property="longestdownMonthsYtd" />
    <result column="maxdrawdown_3m" jdbcType="DECIMAL" property="maxdrawdown3m" />
    <result column="maxdrawdown_ytd" jdbcType="DECIMAL" property="maxdrawdownYtd" />
    <result column="maxdrawdown_months_ytd" jdbcType="DECIMAL" property="maxdrawdownMonthsYtd" />
    <result column="maxdrawdown_peakdate_ytd" jdbcType="DECIMAL" property="maxdrawdownPeakdateYtd" />
    <result column="maxdrawdown_valleydate_ytd" jdbcType="DECIMAL" property="maxdrawdownValleydateYtd" />
    <result column="maxdrawdown_1y" jdbcType="DECIMAL" property="maxdrawdown1y" />
    <result column="maxdrawdown_months_1y" jdbcType="INTEGER" property="maxdrawdownMonths1y" />
    <result column="maxdrawdown_peakdate_1y" jdbcType="VARCHAR" property="maxdrawdownPeakdate1y" />
    <result column="maxdrawdown_valleydate_1y" jdbcType="VARCHAR" property="maxdrawdownValleydate1y" />
    <result column="maxdrawdown_recoverydate_1y" jdbcType="VARCHAR" property="maxdrawdownRecoverydate1y" />
    <result column="maxdrawdown_recoverymonths_1y" jdbcType="INTEGER" property="maxdrawdownRecoverymonths1y" />
    <result column="maxdrawdown_2y" jdbcType="DECIMAL" property="maxdrawdown2y" />
    <result column="maxdrawdown_months_2y" jdbcType="INTEGER" property="maxdrawdownMonths2y" />
    <result column="maxdrawdown_peakdate_2y" jdbcType="VARCHAR" property="maxdrawdownPeakdate2y" />
    <result column="maxdrawdown_valleydate_2y" jdbcType="VARCHAR" property="maxdrawdownValleydate2y" />
    <result column="maxdrawdown_recoverydate_2y" jdbcType="INTEGER" property="maxdrawdownRecoverydate2y" />
    <result column="maxdrawdown_recoverymonths_2y" jdbcType="INTEGER" property="maxdrawdownRecoverymonths2y" />
    <result column="maxdrawdown_3y" jdbcType="DECIMAL" property="maxdrawdown3y" />
    <result column="maxdrawdown_months_3y" jdbcType="INTEGER" property="maxdrawdownMonths3y" />
    <result column="maxdrawdown_peakdate_3y" jdbcType="VARCHAR" property="maxdrawdownPeakdate3y" />
    <result column="maxdrawdown_valleydate_3y" jdbcType="VARCHAR" property="maxdrawdownValleydate3y" />
    <result column="maxdrawdown_recoverydate_3y" jdbcType="VARCHAR" property="maxdrawdownRecoverydate3y" />
    <result column="maxdrawdown_recoverymonths_3y" jdbcType="INTEGER" property="maxdrawdownRecoverymonths3y" />
    <result column="maxdrawdown_4y" jdbcType="DECIMAL" property="maxdrawdown4y" />
    <result column="maxdrawdown_months_4y" jdbcType="INTEGER" property="maxdrawdownMonths4y" />
    <result column="maxdrawdown_peakdate_4y" jdbcType="VARCHAR" property="maxdrawdownPeakdate4y" />
    <result column="maxdrawdown_valleydate_4y" jdbcType="VARCHAR" property="maxdrawdownValleydate4y" />
    <result column="maxdrawdown_recoverydate_4y" jdbcType="VARCHAR" property="maxdrawdownRecoverydate4y" />
    <result column="maxdrawdown_recoverymonths_4y" jdbcType="INTEGER" property="maxdrawdownRecoverymonths4y" />
    <result column="maxdrawdown_5y" jdbcType="DECIMAL" property="maxdrawdown5y" />
    <result column="maxdrawdown_10y" jdbcType="DECIMAL" property="maxdrawdown10y" />
    <result column="maxdrawdown_months_5y" jdbcType="INTEGER" property="maxdrawdownMonths5y" />
    <result column="maxdrawdown_peakdate_5y" jdbcType="VARCHAR" property="maxdrawdownPeakdate5y" />
    <result column="maxdrawdown_valleydate_5y" jdbcType="VARCHAR" property="maxdrawdownValleydate5y" />
    <result column="maxdrawdown_recoverydate_5y" jdbcType="VARCHAR" property="maxdrawdownRecoverydate5y" />
    <result column="maxdrawdown_recoverymonths_5y" jdbcType="INTEGER" property="maxdrawdownRecoverymonths5y" />
    <result column="maxdrawdown_months_10y" jdbcType="INTEGER" property="maxdrawdownMonths10y" />
    <result column="maxdrawdown_peakdate_10y" jdbcType="VARCHAR" property="maxdrawdownPeakdate10y" />
    <result column="maxdrawdown_valleydate_10y" jdbcType="VARCHAR" property="maxdrawdownValleydate10y" />
    <result column="maxdrawdown_recoverydate_10y" jdbcType="VARCHAR" property="maxdrawdownRecoverydate10y" />
    <result column="maxdrawdown_recoverymonths_10y" jdbcType="INTEGER" property="maxdrawdownRecoverymonths10y" />
    <result column="maxdrawdown_incep" jdbcType="DECIMAL" property="maxdrawdownIncep" />
    <result column="maxdrawdown_months_incep" jdbcType="INTEGER" property="maxdrawdownMonthsIncep" />
    <result column="maxdrawdown_peakdate_incep" jdbcType="VARCHAR" property="maxdrawdownPeakdateIncep" />
    <result column="maxdrawdown_valleydate_incep" jdbcType="VARCHAR" property="maxdrawdownValleydateIncep" />
    <result column="maxdrawdown_recoverydate_incep" jdbcType="VARCHAR" property="maxdrawdownRecoverydateIncep" />
    <result column="maxdrawdown_recoverymonths_incep" jdbcType="INTEGER" property="maxdrawdownRecoverymonthsIncep" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="delete_tag" jdbcType="INTEGER" property="deleteTag" />
  </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-->
    id, fund_id, end_date, stddev_1y, stddev_2y, stddev_3y, stddev_4y, stddev_5y, stddev_10y, 
    stddev_incep, stddev_ytd, downsidedev_1y, downsidedev_2y, downsidedev_3y, downsidedev_4y, 
    downsidedev_5y, downsidedev_10y, downsidedev_incep, downsidedev_ytd, alpha_1y, alpha_2y, 
    alpha_3y, alpha_4y, alpha_5y, alpha_10y, alpha_incep, alpha_ytd, beta_1y, beta_2y, 
    beta_3y, beta_4y, beta_5y, beta_10y, beta_incep, beta_ytd, r2_1y, r2_2y, r2_3y, r2_4y, 
    r2_5y, r2_10y, r2_incep, r2_ytd, skewness_1y, skewness_2y, skewness_3y, skewness_4y, 
    skewness_5y, skewness_10y, skewness_incep, skewness_ytd, kurtosis_1y, kurtosis_2y, 
    kurtosis_3y, kurtosis_4y, kurtosis_5y, kurtosis_10y, kurtosis_incep, kurtosis_ytd, 
    worstmonth_1y, worstmonth_2y, worstmonth_3y, worstmonth_4y, worstmonth_5y, worstmonth_10y, 
    worstmonth_incep, worstmonth_ytd, downmonth_percent_1y, downmonth_percent_2y, downmonth_percent_3y, 
    downmonth_percent_4y, downmonth_percent_5y, downmonth_percent_10y, downmonth_percent_incep, 
    downmonth_percent_ytd, battingaverage_1y, battingaverage_2y, battingaverage_3y, battingaverage_4y, 
    battingaverage_5y, battingaverage_10y, battingaverage_incep, battingaverage_ytd, 
    gainloss_ratio_1y, gainloss_ratio_2y, gainloss_ratio_3y, gainloss_ratio_4y, gainloss_ratio_5y, 
    gainloss_ratio_10y, gainloss_ratio_incep, gainloss_ratio_ytd, longestdown_months_1y, 
    longestdown_months_2y, longestdown_months_3y, longestdown_months_4y, longestdown_months_5y, 
    longestdown_months_10y, longestdown_months_incep, longestdown_months_ytd, maxdrawdown_3m, 
    maxdrawdown_ytd, maxdrawdown_months_ytd, maxdrawdown_peakdate_ytd, maxdrawdown_valleydate_ytd, 
    maxdrawdown_1y, maxdrawdown_months_1y, maxdrawdown_peakdate_1y, maxdrawdown_valleydate_1y, 
    maxdrawdown_recoverydate_1y, maxdrawdown_recoverymonths_1y, maxdrawdown_2y, maxdrawdown_months_2y, 
    maxdrawdown_peakdate_2y, maxdrawdown_valleydate_2y, maxdrawdown_recoverydate_2y, 
    maxdrawdown_recoverymonths_2y, maxdrawdown_3y, maxdrawdown_months_3y, maxdrawdown_peakdate_3y, 
    maxdrawdown_valleydate_3y, maxdrawdown_recoverydate_3y, maxdrawdown_recoverymonths_3y, 
    maxdrawdown_4y, maxdrawdown_months_4y, maxdrawdown_peakdate_4y, maxdrawdown_valleydate_4y, 
    maxdrawdown_recoverydate_4y, maxdrawdown_recoverymonths_4y, maxdrawdown_5y, maxdrawdown_10y, 
    maxdrawdown_months_5y, maxdrawdown_peakdate_5y, maxdrawdown_valleydate_5y, maxdrawdown_recoverydate_5y, 
    maxdrawdown_recoverymonths_5y, maxdrawdown_months_10y, maxdrawdown_peakdate_10y, 
    maxdrawdown_valleydate_10y, maxdrawdown_recoverydate_10y, maxdrawdown_recoverymonths_10y, 
    maxdrawdown_incep, maxdrawdown_months_incep, maxdrawdown_peakdate_incep, maxdrawdown_valleydate_incep, 
    maxdrawdown_recoverydate_incep, maxdrawdown_recoverymonths_incep, update_time, create_time, 
    delete_tag
  </sql>
  <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.TxFundRiskStatsExample" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from tx_fund_risk_stats
    <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="BaseResultMap">
    <!--@mbg.generated-->
    select 
    <include refid="Base_Column_List" />
    from tx_fund_risk_stats
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--@mbg.generated-->
    delete from tx_fund_risk_stats
    where id = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.TxFundRiskStatsExample">
    <!--@mbg.generated-->
    delete from tx_fund_risk_stats
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tanpu.fund.entity.generator.TxFundRiskStats">
    <!--@mbg.generated-->
    insert into tx_fund_risk_stats (id, fund_id, end_date, 
      stddev_1y, stddev_2y, stddev_3y, 
      stddev_4y, stddev_5y, stddev_10y, 
      stddev_incep, stddev_ytd, downsidedev_1y, 
      downsidedev_2y, downsidedev_3y, downsidedev_4y, 
      downsidedev_5y, downsidedev_10y, downsidedev_incep, 
      downsidedev_ytd, alpha_1y, alpha_2y, 
      alpha_3y, alpha_4y, alpha_5y, 
      alpha_10y, alpha_incep, alpha_ytd, 
      beta_1y, beta_2y, beta_3y, 
      beta_4y, beta_5y, beta_10y, 
      beta_incep, beta_ytd, r2_1y, 
      r2_2y, r2_3y, r2_4y, r2_5y, 
      r2_10y, r2_incep, r2_ytd, 
      skewness_1y, skewness_2y, skewness_3y, 
      skewness_4y, skewness_5y, skewness_10y, 
      skewness_incep, skewness_ytd, kurtosis_1y, 
      kurtosis_2y, kurtosis_3y, kurtosis_4y, 
      kurtosis_5y, kurtosis_10y, kurtosis_incep, 
      kurtosis_ytd, worstmonth_1y, worstmonth_2y, 
      worstmonth_3y, worstmonth_4y, worstmonth_5y, 
      worstmonth_10y, worstmonth_incep, worstmonth_ytd, 
      downmonth_percent_1y, downmonth_percent_2y, 
      downmonth_percent_3y, downmonth_percent_4y, 
      downmonth_percent_5y, downmonth_percent_10y, 
      downmonth_percent_incep, downmonth_percent_ytd, 
      battingaverage_1y, battingaverage_2y, battingaverage_3y, 
      battingaverage_4y, battingaverage_5y, battingaverage_10y, 
      battingaverage_incep, battingaverage_ytd, 
      gainloss_ratio_1y, gainloss_ratio_2y, gainloss_ratio_3y, 
      gainloss_ratio_4y, gainloss_ratio_5y, gainloss_ratio_10y, 
      gainloss_ratio_incep, gainloss_ratio_ytd, longestdown_months_1y, 
      longestdown_months_2y, longestdown_months_3y, 
      longestdown_months_4y, longestdown_months_5y, 
      longestdown_months_10y, longestdown_months_incep, 
      longestdown_months_ytd, maxdrawdown_3m, maxdrawdown_ytd, 
      maxdrawdown_months_ytd, maxdrawdown_peakdate_ytd, 
      maxdrawdown_valleydate_ytd, maxdrawdown_1y, 
      maxdrawdown_months_1y, maxdrawdown_peakdate_1y, 
      maxdrawdown_valleydate_1y, maxdrawdown_recoverydate_1y, 
      maxdrawdown_recoverymonths_1y, maxdrawdown_2y, 
      maxdrawdown_months_2y, maxdrawdown_peakdate_2y, 
      maxdrawdown_valleydate_2y, maxdrawdown_recoverydate_2y, 
      maxdrawdown_recoverymonths_2y, maxdrawdown_3y, 
      maxdrawdown_months_3y, maxdrawdown_peakdate_3y, 
      maxdrawdown_valleydate_3y, maxdrawdown_recoverydate_3y, 
      maxdrawdown_recoverymonths_3y, maxdrawdown_4y, 
      maxdrawdown_months_4y, maxdrawdown_peakdate_4y, 
      maxdrawdown_valleydate_4y, maxdrawdown_recoverydate_4y, 
      maxdrawdown_recoverymonths_4y, maxdrawdown_5y, 
      maxdrawdown_10y, maxdrawdown_months_5y, maxdrawdown_peakdate_5y, 
      maxdrawdown_valleydate_5y, maxdrawdown_recoverydate_5y, 
      maxdrawdown_recoverymonths_5y, maxdrawdown_months_10y, 
      maxdrawdown_peakdate_10y, maxdrawdown_valleydate_10y, 
      maxdrawdown_recoverydate_10y, maxdrawdown_recoverymonths_10y, 
      maxdrawdown_incep, maxdrawdown_months_incep, 
      maxdrawdown_peakdate_incep, maxdrawdown_valleydate_incep, 
      maxdrawdown_recoverydate_incep, maxdrawdown_recoverymonths_incep, 
      update_time, create_time, delete_tag
      )
    values (#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{endDate,jdbcType=DATE}, 
      #{stddev1y,jdbcType=DECIMAL}, #{stddev2y,jdbcType=DECIMAL}, #{stddev3y,jdbcType=DECIMAL}, 
      #{stddev4y,jdbcType=DECIMAL}, #{stddev5y,jdbcType=DECIMAL}, #{stddev10y,jdbcType=DECIMAL}, 
      #{stddevIncep,jdbcType=DECIMAL}, #{stddevYtd,jdbcType=DECIMAL}, #{downsidedev1y,jdbcType=DECIMAL}, 
      #{downsidedev2y,jdbcType=DECIMAL}, #{downsidedev3y,jdbcType=DECIMAL}, #{downsidedev4y,jdbcType=DECIMAL}, 
      #{downsidedev5y,jdbcType=DECIMAL}, #{downsidedev10y,jdbcType=DECIMAL}, #{downsidedevIncep,jdbcType=DECIMAL}, 
      #{downsidedevYtd,jdbcType=DECIMAL}, #{alpha1y,jdbcType=DECIMAL}, #{alpha2y,jdbcType=DECIMAL}, 
      #{alpha3y,jdbcType=DECIMAL}, #{alpha4y,jdbcType=DECIMAL}, #{alpha5y,jdbcType=DECIMAL}, 
      #{alpha10y,jdbcType=DECIMAL}, #{alphaIncep,jdbcType=DECIMAL}, #{alphaYtd,jdbcType=DECIMAL}, 
      #{beta1y,jdbcType=DECIMAL}, #{beta2y,jdbcType=DECIMAL}, #{beta3y,jdbcType=DECIMAL}, 
      #{beta4y,jdbcType=DECIMAL}, #{beta5y,jdbcType=DECIMAL}, #{beta10y,jdbcType=DECIMAL}, 
      #{betaIncep,jdbcType=DECIMAL}, #{betaYtd,jdbcType=DECIMAL}, #{r21y,jdbcType=DECIMAL}, 
      #{r22y,jdbcType=DECIMAL}, #{r23y,jdbcType=DECIMAL}, #{r24y,jdbcType=DECIMAL}, #{r25y,jdbcType=DECIMAL}, 
      #{r210y,jdbcType=DECIMAL}, #{r2Incep,jdbcType=DECIMAL}, #{r2Ytd,jdbcType=DECIMAL}, 
      #{skewness1y,jdbcType=DECIMAL}, #{skewness2y,jdbcType=DECIMAL}, #{skewness3y,jdbcType=DECIMAL}, 
      #{skewness4y,jdbcType=DECIMAL}, #{skewness5y,jdbcType=DECIMAL}, #{skewness10y,jdbcType=DECIMAL}, 
      #{skewnessIncep,jdbcType=DECIMAL}, #{skewnessYtd,jdbcType=DECIMAL}, #{kurtosis1y,jdbcType=DECIMAL}, 
      #{kurtosis2y,jdbcType=DECIMAL}, #{kurtosis3y,jdbcType=DECIMAL}, #{kurtosis4y,jdbcType=DECIMAL}, 
      #{kurtosis5y,jdbcType=DECIMAL}, #{kurtosis10y,jdbcType=DECIMAL}, #{kurtosisIncep,jdbcType=DECIMAL}, 
      #{kurtosisYtd,jdbcType=DECIMAL}, #{worstmonth1y,jdbcType=DECIMAL}, #{worstmonth2y,jdbcType=DECIMAL}, 
      #{worstmonth3y,jdbcType=DECIMAL}, #{worstmonth4y,jdbcType=DECIMAL}, #{worstmonth5y,jdbcType=DECIMAL}, 
      #{worstmonth10y,jdbcType=DECIMAL}, #{worstmonthIncep,jdbcType=DECIMAL}, #{worstmonthYtd,jdbcType=DECIMAL}, 
      #{downmonthPercent1y,jdbcType=DECIMAL}, #{downmonthPercent2y,jdbcType=DECIMAL}, 
      #{downmonthPercent3y,jdbcType=DECIMAL}, #{downmonthPercent4y,jdbcType=DECIMAL}, 
      #{downmonthPercent5y,jdbcType=DECIMAL}, #{downmonthPercent10y,jdbcType=DECIMAL}, 
      #{downmonthPercentIncep,jdbcType=DECIMAL}, #{downmonthPercentYtd,jdbcType=DECIMAL}, 
      #{battingaverage1y,jdbcType=DECIMAL}, #{battingaverage2y,jdbcType=DECIMAL}, #{battingaverage3y,jdbcType=DECIMAL}, 
      #{battingaverage4y,jdbcType=DECIMAL}, #{battingaverage5y,jdbcType=DECIMAL}, #{battingaverage10y,jdbcType=DECIMAL}, 
      #{battingaverageIncep,jdbcType=DECIMAL}, #{battingaverageYtd,jdbcType=DECIMAL}, 
      #{gainlossRatio1y,jdbcType=DECIMAL}, #{gainlossRatio2y,jdbcType=DECIMAL}, #{gainlossRatio3y,jdbcType=DECIMAL}, 
      #{gainlossRatio4y,jdbcType=DECIMAL}, #{gainlossRatio5y,jdbcType=DECIMAL}, #{gainlossRatio10y,jdbcType=DECIMAL}, 
      #{gainlossRatioIncep,jdbcType=DECIMAL}, #{gainlossRatioYtd,jdbcType=DECIMAL}, #{longestdownMonths1y,jdbcType=INTEGER}, 
      #{longestdownMonths2y,jdbcType=INTEGER}, #{longestdownMonths3y,jdbcType=INTEGER}, 
      #{longestdownMonths4y,jdbcType=INTEGER}, #{longestdownMonths5y,jdbcType=INTEGER}, 
      #{longestdownMonths10y,jdbcType=INTEGER}, #{longestdownMonthsIncep,jdbcType=INTEGER}, 
      #{longestdownMonthsYtd,jdbcType=INTEGER}, #{maxdrawdown3m,jdbcType=DECIMAL}, #{maxdrawdownYtd,jdbcType=DECIMAL}, 
      #{maxdrawdownMonthsYtd,jdbcType=DECIMAL}, #{maxdrawdownPeakdateYtd,jdbcType=DECIMAL}, 
      #{maxdrawdownValleydateYtd,jdbcType=DECIMAL}, #{maxdrawdown1y,jdbcType=DECIMAL}, 
      #{maxdrawdownMonths1y,jdbcType=INTEGER}, #{maxdrawdownPeakdate1y,jdbcType=VARCHAR}, 
      #{maxdrawdownValleydate1y,jdbcType=VARCHAR}, #{maxdrawdownRecoverydate1y,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverymonths1y,jdbcType=INTEGER}, #{maxdrawdown2y,jdbcType=DECIMAL}, 
      #{maxdrawdownMonths2y,jdbcType=INTEGER}, #{maxdrawdownPeakdate2y,jdbcType=VARCHAR}, 
      #{maxdrawdownValleydate2y,jdbcType=VARCHAR}, #{maxdrawdownRecoverydate2y,jdbcType=INTEGER}, 
      #{maxdrawdownRecoverymonths2y,jdbcType=INTEGER}, #{maxdrawdown3y,jdbcType=DECIMAL}, 
      #{maxdrawdownMonths3y,jdbcType=INTEGER}, #{maxdrawdownPeakdate3y,jdbcType=VARCHAR}, 
      #{maxdrawdownValleydate3y,jdbcType=VARCHAR}, #{maxdrawdownRecoverydate3y,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverymonths3y,jdbcType=INTEGER}, #{maxdrawdown4y,jdbcType=DECIMAL}, 
      #{maxdrawdownMonths4y,jdbcType=INTEGER}, #{maxdrawdownPeakdate4y,jdbcType=VARCHAR}, 
      #{maxdrawdownValleydate4y,jdbcType=VARCHAR}, #{maxdrawdownRecoverydate4y,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverymonths4y,jdbcType=INTEGER}, #{maxdrawdown5y,jdbcType=DECIMAL}, 
      #{maxdrawdown10y,jdbcType=DECIMAL}, #{maxdrawdownMonths5y,jdbcType=INTEGER}, #{maxdrawdownPeakdate5y,jdbcType=VARCHAR}, 
      #{maxdrawdownValleydate5y,jdbcType=VARCHAR}, #{maxdrawdownRecoverydate5y,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverymonths5y,jdbcType=INTEGER}, #{maxdrawdownMonths10y,jdbcType=INTEGER}, 
      #{maxdrawdownPeakdate10y,jdbcType=VARCHAR}, #{maxdrawdownValleydate10y,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverydate10y,jdbcType=VARCHAR}, #{maxdrawdownRecoverymonths10y,jdbcType=INTEGER}, 
      #{maxdrawdownIncep,jdbcType=DECIMAL}, #{maxdrawdownMonthsIncep,jdbcType=INTEGER}, 
      #{maxdrawdownPeakdateIncep,jdbcType=VARCHAR}, #{maxdrawdownValleydateIncep,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverydateIncep,jdbcType=VARCHAR}, #{maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.TxFundRiskStats">
    <!--@mbg.generated-->
    insert into tx_fund_risk_stats
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="fundId != null">
        fund_id,
      </if>
      <if test="endDate != null">
        end_date,
      </if>
      <if test="stddev1y != null">
        stddev_1y,
      </if>
      <if test="stddev2y != null">
        stddev_2y,
      </if>
      <if test="stddev3y != null">
        stddev_3y,
      </if>
      <if test="stddev4y != null">
        stddev_4y,
      </if>
      <if test="stddev5y != null">
        stddev_5y,
      </if>
      <if test="stddev10y != null">
        stddev_10y,
      </if>
      <if test="stddevIncep != null">
        stddev_incep,
      </if>
      <if test="stddevYtd != null">
        stddev_ytd,
      </if>
      <if test="downsidedev1y != null">
        downsidedev_1y,
      </if>
      <if test="downsidedev2y != null">
        downsidedev_2y,
      </if>
      <if test="downsidedev3y != null">
        downsidedev_3y,
      </if>
      <if test="downsidedev4y != null">
        downsidedev_4y,
      </if>
      <if test="downsidedev5y != null">
        downsidedev_5y,
      </if>
      <if test="downsidedev10y != null">
        downsidedev_10y,
      </if>
      <if test="downsidedevIncep != null">
        downsidedev_incep,
      </if>
      <if test="downsidedevYtd != null">
        downsidedev_ytd,
      </if>
      <if test="alpha1y != null">
        alpha_1y,
      </if>
      <if test="alpha2y != null">
        alpha_2y,
      </if>
      <if test="alpha3y != null">
        alpha_3y,
      </if>
      <if test="alpha4y != null">
        alpha_4y,
      </if>
      <if test="alpha5y != null">
        alpha_5y,
      </if>
      <if test="alpha10y != null">
        alpha_10y,
      </if>
      <if test="alphaIncep != null">
        alpha_incep,
      </if>
      <if test="alphaYtd != null">
        alpha_ytd,
      </if>
      <if test="beta1y != null">
        beta_1y,
      </if>
      <if test="beta2y != null">
        beta_2y,
      </if>
      <if test="beta3y != null">
        beta_3y,
      </if>
      <if test="beta4y != null">
        beta_4y,
      </if>
      <if test="beta5y != null">
        beta_5y,
      </if>
      <if test="beta10y != null">
        beta_10y,
      </if>
      <if test="betaIncep != null">
        beta_incep,
      </if>
      <if test="betaYtd != null">
        beta_ytd,
      </if>
      <if test="r21y != null">
        r2_1y,
      </if>
      <if test="r22y != null">
        r2_2y,
      </if>
      <if test="r23y != null">
        r2_3y,
      </if>
      <if test="r24y != null">
        r2_4y,
      </if>
      <if test="r25y != null">
        r2_5y,
      </if>
      <if test="r210y != null">
        r2_10y,
      </if>
      <if test="r2Incep != null">
        r2_incep,
      </if>
      <if test="r2Ytd != null">
        r2_ytd,
      </if>
      <if test="skewness1y != null">
        skewness_1y,
      </if>
      <if test="skewness2y != null">
        skewness_2y,
      </if>
      <if test="skewness3y != null">
        skewness_3y,
      </if>
      <if test="skewness4y != null">
        skewness_4y,
      </if>
      <if test="skewness5y != null">
        skewness_5y,
      </if>
      <if test="skewness10y != null">
        skewness_10y,
      </if>
      <if test="skewnessIncep != null">
        skewness_incep,
      </if>
      <if test="skewnessYtd != null">
        skewness_ytd,
      </if>
      <if test="kurtosis1y != null">
        kurtosis_1y,
      </if>
      <if test="kurtosis2y != null">
        kurtosis_2y,
      </if>
      <if test="kurtosis3y != null">
        kurtosis_3y,
      </if>
      <if test="kurtosis4y != null">
        kurtosis_4y,
      </if>
      <if test="kurtosis5y != null">
        kurtosis_5y,
      </if>
      <if test="kurtosis10y != null">
        kurtosis_10y,
      </if>
      <if test="kurtosisIncep != null">
        kurtosis_incep,
      </if>
      <if test="kurtosisYtd != null">
        kurtosis_ytd,
      </if>
      <if test="worstmonth1y != null">
        worstmonth_1y,
      </if>
      <if test="worstmonth2y != null">
        worstmonth_2y,
      </if>
      <if test="worstmonth3y != null">
        worstmonth_3y,
      </if>
      <if test="worstmonth4y != null">
        worstmonth_4y,
      </if>
      <if test="worstmonth5y != null">
        worstmonth_5y,
      </if>
      <if test="worstmonth10y != null">
        worstmonth_10y,
      </if>
      <if test="worstmonthIncep != null">
        worstmonth_incep,
      </if>
      <if test="worstmonthYtd != null">
        worstmonth_ytd,
      </if>
      <if test="downmonthPercent1y != null">
        downmonth_percent_1y,
      </if>
      <if test="downmonthPercent2y != null">
        downmonth_percent_2y,
      </if>
      <if test="downmonthPercent3y != null">
        downmonth_percent_3y,
      </if>
      <if test="downmonthPercent4y != null">
        downmonth_percent_4y,
      </if>
      <if test="downmonthPercent5y != null">
        downmonth_percent_5y,
      </if>
      <if test="downmonthPercent10y != null">
        downmonth_percent_10y,
      </if>
      <if test="downmonthPercentIncep != null">
        downmonth_percent_incep,
      </if>
      <if test="downmonthPercentYtd != null">
        downmonth_percent_ytd,
      </if>
      <if test="battingaverage1y != null">
        battingaverage_1y,
      </if>
      <if test="battingaverage2y != null">
        battingaverage_2y,
      </if>
      <if test="battingaverage3y != null">
        battingaverage_3y,
      </if>
      <if test="battingaverage4y != null">
        battingaverage_4y,
      </if>
      <if test="battingaverage5y != null">
        battingaverage_5y,
      </if>
      <if test="battingaverage10y != null">
        battingaverage_10y,
      </if>
      <if test="battingaverageIncep != null">
        battingaverage_incep,
      </if>
      <if test="battingaverageYtd != null">
        battingaverage_ytd,
      </if>
      <if test="gainlossRatio1y != null">
        gainloss_ratio_1y,
      </if>
      <if test="gainlossRatio2y != null">
        gainloss_ratio_2y,
      </if>
      <if test="gainlossRatio3y != null">
        gainloss_ratio_3y,
      </if>
      <if test="gainlossRatio4y != null">
        gainloss_ratio_4y,
      </if>
      <if test="gainlossRatio5y != null">
        gainloss_ratio_5y,
      </if>
      <if test="gainlossRatio10y != null">
        gainloss_ratio_10y,
      </if>
      <if test="gainlossRatioIncep != null">
        gainloss_ratio_incep,
      </if>
      <if test="gainlossRatioYtd != null">
        gainloss_ratio_ytd,
      </if>
      <if test="longestdownMonths1y != null">
        longestdown_months_1y,
      </if>
      <if test="longestdownMonths2y != null">
        longestdown_months_2y,
      </if>
      <if test="longestdownMonths3y != null">
        longestdown_months_3y,
      </if>
      <if test="longestdownMonths4y != null">
        longestdown_months_4y,
      </if>
      <if test="longestdownMonths5y != null">
        longestdown_months_5y,
      </if>
      <if test="longestdownMonths10y != null">
        longestdown_months_10y,
      </if>
      <if test="longestdownMonthsIncep != null">
        longestdown_months_incep,
      </if>
      <if test="longestdownMonthsYtd != null">
        longestdown_months_ytd,
      </if>
      <if test="maxdrawdown3m != null">
        maxdrawdown_3m,
      </if>
      <if test="maxdrawdownYtd != null">
        maxdrawdown_ytd,
      </if>
      <if test="maxdrawdownMonthsYtd != null">
        maxdrawdown_months_ytd,
      </if>
      <if test="maxdrawdownPeakdateYtd != null">
        maxdrawdown_peakdate_ytd,
      </if>
      <if test="maxdrawdownValleydateYtd != null">
        maxdrawdown_valleydate_ytd,
      </if>
      <if test="maxdrawdown1y != null">
        maxdrawdown_1y,
      </if>
      <if test="maxdrawdownMonths1y != null">
        maxdrawdown_months_1y,
      </if>
      <if test="maxdrawdownPeakdate1y != null">
        maxdrawdown_peakdate_1y,
      </if>
      <if test="maxdrawdownValleydate1y != null">
        maxdrawdown_valleydate_1y,
      </if>
      <if test="maxdrawdownRecoverydate1y != null">
        maxdrawdown_recoverydate_1y,
      </if>
      <if test="maxdrawdownRecoverymonths1y != null">
        maxdrawdown_recoverymonths_1y,
      </if>
      <if test="maxdrawdown2y != null">
        maxdrawdown_2y,
      </if>
      <if test="maxdrawdownMonths2y != null">
        maxdrawdown_months_2y,
      </if>
      <if test="maxdrawdownPeakdate2y != null">
        maxdrawdown_peakdate_2y,
      </if>
      <if test="maxdrawdownValleydate2y != null">
        maxdrawdown_valleydate_2y,
      </if>
      <if test="maxdrawdownRecoverydate2y != null">
        maxdrawdown_recoverydate_2y,
      </if>
      <if test="maxdrawdownRecoverymonths2y != null">
        maxdrawdown_recoverymonths_2y,
      </if>
      <if test="maxdrawdown3y != null">
        maxdrawdown_3y,
      </if>
      <if test="maxdrawdownMonths3y != null">
        maxdrawdown_months_3y,
      </if>
      <if test="maxdrawdownPeakdate3y != null">
        maxdrawdown_peakdate_3y,
      </if>
      <if test="maxdrawdownValleydate3y != null">
        maxdrawdown_valleydate_3y,
      </if>
      <if test="maxdrawdownRecoverydate3y != null">
        maxdrawdown_recoverydate_3y,
      </if>
      <if test="maxdrawdownRecoverymonths3y != null">
        maxdrawdown_recoverymonths_3y,
      </if>
      <if test="maxdrawdown4y != null">
        maxdrawdown_4y,
      </if>
      <if test="maxdrawdownMonths4y != null">
        maxdrawdown_months_4y,
      </if>
      <if test="maxdrawdownPeakdate4y != null">
        maxdrawdown_peakdate_4y,
      </if>
      <if test="maxdrawdownValleydate4y != null">
        maxdrawdown_valleydate_4y,
      </if>
      <if test="maxdrawdownRecoverydate4y != null">
        maxdrawdown_recoverydate_4y,
      </if>
      <if test="maxdrawdownRecoverymonths4y != null">
        maxdrawdown_recoverymonths_4y,
      </if>
      <if test="maxdrawdown5y != null">
        maxdrawdown_5y,
      </if>
      <if test="maxdrawdown10y != null">
        maxdrawdown_10y,
      </if>
      <if test="maxdrawdownMonths5y != null">
        maxdrawdown_months_5y,
      </if>
      <if test="maxdrawdownPeakdate5y != null">
        maxdrawdown_peakdate_5y,
      </if>
      <if test="maxdrawdownValleydate5y != null">
        maxdrawdown_valleydate_5y,
      </if>
      <if test="maxdrawdownRecoverydate5y != null">
        maxdrawdown_recoverydate_5y,
      </if>
      <if test="maxdrawdownRecoverymonths5y != null">
        maxdrawdown_recoverymonths_5y,
      </if>
      <if test="maxdrawdownMonths10y != null">
        maxdrawdown_months_10y,
      </if>
      <if test="maxdrawdownPeakdate10y != null">
        maxdrawdown_peakdate_10y,
      </if>
      <if test="maxdrawdownValleydate10y != null">
        maxdrawdown_valleydate_10y,
      </if>
      <if test="maxdrawdownRecoverydate10y != null">
        maxdrawdown_recoverydate_10y,
      </if>
      <if test="maxdrawdownRecoverymonths10y != null">
        maxdrawdown_recoverymonths_10y,
      </if>
      <if test="maxdrawdownIncep != null">
        maxdrawdown_incep,
      </if>
      <if test="maxdrawdownMonthsIncep != null">
        maxdrawdown_months_incep,
      </if>
      <if test="maxdrawdownPeakdateIncep != null">
        maxdrawdown_peakdate_incep,
      </if>
      <if test="maxdrawdownValleydateIncep != null">
        maxdrawdown_valleydate_incep,
      </if>
      <if test="maxdrawdownRecoverydateIncep != null">
        maxdrawdown_recoverydate_incep,
      </if>
      <if test="maxdrawdownRecoverymonthsIncep != null">
        maxdrawdown_recoverymonths_incep,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="deleteTag != null">
        delete_tag,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="fundId != null">
        #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="endDate != null">
        #{endDate,jdbcType=DATE},
      </if>
      <if test="stddev1y != null">
        #{stddev1y,jdbcType=DECIMAL},
      </if>
      <if test="stddev2y != null">
        #{stddev2y,jdbcType=DECIMAL},
      </if>
      <if test="stddev3y != null">
        #{stddev3y,jdbcType=DECIMAL},
      </if>
      <if test="stddev4y != null">
        #{stddev4y,jdbcType=DECIMAL},
      </if>
      <if test="stddev5y != null">
        #{stddev5y,jdbcType=DECIMAL},
      </if>
      <if test="stddev10y != null">
        #{stddev10y,jdbcType=DECIMAL},
      </if>
      <if test="stddevIncep != null">
        #{stddevIncep,jdbcType=DECIMAL},
      </if>
      <if test="stddevYtd != null">
        #{stddevYtd,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev1y != null">
        #{downsidedev1y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev2y != null">
        #{downsidedev2y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev3y != null">
        #{downsidedev3y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev4y != null">
        #{downsidedev4y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev5y != null">
        #{downsidedev5y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev10y != null">
        #{downsidedev10y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedevIncep != null">
        #{downsidedevIncep,jdbcType=DECIMAL},
      </if>
      <if test="downsidedevYtd != null">
        #{downsidedevYtd,jdbcType=DECIMAL},
      </if>
      <if test="alpha1y != null">
        #{alpha1y,jdbcType=DECIMAL},
      </if>
      <if test="alpha2y != null">
        #{alpha2y,jdbcType=DECIMAL},
      </if>
      <if test="alpha3y != null">
        #{alpha3y,jdbcType=DECIMAL},
      </if>
      <if test="alpha4y != null">
        #{alpha4y,jdbcType=DECIMAL},
      </if>
      <if test="alpha5y != null">
        #{alpha5y,jdbcType=DECIMAL},
      </if>
      <if test="alpha10y != null">
        #{alpha10y,jdbcType=DECIMAL},
      </if>
      <if test="alphaIncep != null">
        #{alphaIncep,jdbcType=DECIMAL},
      </if>
      <if test="alphaYtd != null">
        #{alphaYtd,jdbcType=DECIMAL},
      </if>
      <if test="beta1y != null">
        #{beta1y,jdbcType=DECIMAL},
      </if>
      <if test="beta2y != null">
        #{beta2y,jdbcType=DECIMAL},
      </if>
      <if test="beta3y != null">
        #{beta3y,jdbcType=DECIMAL},
      </if>
      <if test="beta4y != null">
        #{beta4y,jdbcType=DECIMAL},
      </if>
      <if test="beta5y != null">
        #{beta5y,jdbcType=DECIMAL},
      </if>
      <if test="beta10y != null">
        #{beta10y,jdbcType=DECIMAL},
      </if>
      <if test="betaIncep != null">
        #{betaIncep,jdbcType=DECIMAL},
      </if>
      <if test="betaYtd != null">
        #{betaYtd,jdbcType=DECIMAL},
      </if>
      <if test="r21y != null">
        #{r21y,jdbcType=DECIMAL},
      </if>
      <if test="r22y != null">
        #{r22y,jdbcType=DECIMAL},
      </if>
      <if test="r23y != null">
        #{r23y,jdbcType=DECIMAL},
      </if>
      <if test="r24y != null">
        #{r24y,jdbcType=DECIMAL},
      </if>
      <if test="r25y != null">
        #{r25y,jdbcType=DECIMAL},
      </if>
      <if test="r210y != null">
        #{r210y,jdbcType=DECIMAL},
      </if>
      <if test="r2Incep != null">
        #{r2Incep,jdbcType=DECIMAL},
      </if>
      <if test="r2Ytd != null">
        #{r2Ytd,jdbcType=DECIMAL},
      </if>
      <if test="skewness1y != null">
        #{skewness1y,jdbcType=DECIMAL},
      </if>
      <if test="skewness2y != null">
        #{skewness2y,jdbcType=DECIMAL},
      </if>
      <if test="skewness3y != null">
        #{skewness3y,jdbcType=DECIMAL},
      </if>
      <if test="skewness4y != null">
        #{skewness4y,jdbcType=DECIMAL},
      </if>
      <if test="skewness5y != null">
        #{skewness5y,jdbcType=DECIMAL},
      </if>
      <if test="skewness10y != null">
        #{skewness10y,jdbcType=DECIMAL},
      </if>
      <if test="skewnessIncep != null">
        #{skewnessIncep,jdbcType=DECIMAL},
      </if>
      <if test="skewnessYtd != null">
        #{skewnessYtd,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis1y != null">
        #{kurtosis1y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis2y != null">
        #{kurtosis2y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis3y != null">
        #{kurtosis3y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis4y != null">
        #{kurtosis4y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis5y != null">
        #{kurtosis5y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis10y != null">
        #{kurtosis10y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosisIncep != null">
        #{kurtosisIncep,jdbcType=DECIMAL},
      </if>
      <if test="kurtosisYtd != null">
        #{kurtosisYtd,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth1y != null">
        #{worstmonth1y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth2y != null">
        #{worstmonth2y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth3y != null">
        #{worstmonth3y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth4y != null">
        #{worstmonth4y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth5y != null">
        #{worstmonth5y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth10y != null">
        #{worstmonth10y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonthIncep != null">
        #{worstmonthIncep,jdbcType=DECIMAL},
      </if>
      <if test="worstmonthYtd != null">
        #{worstmonthYtd,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent1y != null">
        #{downmonthPercent1y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent2y != null">
        #{downmonthPercent2y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent3y != null">
        #{downmonthPercent3y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent4y != null">
        #{downmonthPercent4y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent5y != null">
        #{downmonthPercent5y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent10y != null">
        #{downmonthPercent10y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercentIncep != null">
        #{downmonthPercentIncep,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercentYtd != null">
        #{downmonthPercentYtd,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage1y != null">
        #{battingaverage1y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage2y != null">
        #{battingaverage2y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage3y != null">
        #{battingaverage3y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage4y != null">
        #{battingaverage4y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage5y != null">
        #{battingaverage5y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage10y != null">
        #{battingaverage10y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverageIncep != null">
        #{battingaverageIncep,jdbcType=DECIMAL},
      </if>
      <if test="battingaverageYtd != null">
        #{battingaverageYtd,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio1y != null">
        #{gainlossRatio1y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio2y != null">
        #{gainlossRatio2y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio3y != null">
        #{gainlossRatio3y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio4y != null">
        #{gainlossRatio4y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio5y != null">
        #{gainlossRatio5y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio10y != null">
        #{gainlossRatio10y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatioIncep != null">
        #{gainlossRatioIncep,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatioYtd != null">
        #{gainlossRatioYtd,jdbcType=DECIMAL},
      </if>
      <if test="longestdownMonths1y != null">
        #{longestdownMonths1y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths2y != null">
        #{longestdownMonths2y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths3y != null">
        #{longestdownMonths3y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths4y != null">
        #{longestdownMonths4y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths5y != null">
        #{longestdownMonths5y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths10y != null">
        #{longestdownMonths10y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonthsIncep != null">
        #{longestdownMonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonthsYtd != null">
        #{longestdownMonthsYtd,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown3m != null">
        #{maxdrawdown3m,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownYtd != null">
        #{maxdrawdownYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonthsYtd != null">
        #{maxdrawdownMonthsYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownPeakdateYtd != null">
        #{maxdrawdownPeakdateYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownValleydateYtd != null">
        #{maxdrawdownValleydateYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown1y != null">
        #{maxdrawdown1y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths1y != null">
        #{maxdrawdownMonths1y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate1y != null">
        #{maxdrawdownPeakdate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate1y != null">
        #{maxdrawdownValleydate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate1y != null">
        #{maxdrawdownRecoverydate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths1y != null">
        #{maxdrawdownRecoverymonths1y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown2y != null">
        #{maxdrawdown2y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths2y != null">
        #{maxdrawdownMonths2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate2y != null">
        #{maxdrawdownPeakdate2y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate2y != null">
        #{maxdrawdownValleydate2y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate2y != null">
        #{maxdrawdownRecoverydate2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownRecoverymonths2y != null">
        #{maxdrawdownRecoverymonths2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown3y != null">
        #{maxdrawdown3y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths3y != null">
        #{maxdrawdownMonths3y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate3y != null">
        #{maxdrawdownPeakdate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate3y != null">
        #{maxdrawdownValleydate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate3y != null">
        #{maxdrawdownRecoverydate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths3y != null">
        #{maxdrawdownRecoverymonths3y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown4y != null">
        #{maxdrawdown4y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths4y != null">
        #{maxdrawdownMonths4y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate4y != null">
        #{maxdrawdownPeakdate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate4y != null">
        #{maxdrawdownValleydate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate4y != null">
        #{maxdrawdownRecoverydate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths4y != null">
        #{maxdrawdownRecoverymonths4y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown5y != null">
        #{maxdrawdown5y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown10y != null">
        #{maxdrawdown10y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths5y != null">
        #{maxdrawdownMonths5y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate5y != null">
        #{maxdrawdownPeakdate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate5y != null">
        #{maxdrawdownValleydate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate5y != null">
        #{maxdrawdownRecoverydate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths5y != null">
        #{maxdrawdownRecoverymonths5y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownMonths10y != null">
        #{maxdrawdownMonths10y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate10y != null">
        #{maxdrawdownPeakdate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate10y != null">
        #{maxdrawdownValleydate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate10y != null">
        #{maxdrawdownRecoverydate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths10y != null">
        #{maxdrawdownRecoverymonths10y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownIncep != null">
        #{maxdrawdownIncep,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonthsIncep != null">
        #{maxdrawdownMonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdateIncep != null">
        #{maxdrawdownPeakdateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydateIncep != null">
        #{maxdrawdownValleydateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydateIncep != null">
        #{maxdrawdownRecoverydateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonthsIncep != null">
        #{maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.TxFundRiskStatsExample" resultType="java.lang.Long">
    <!--@mbg.generated-->
    select count(*) from tx_fund_risk_stats
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--@mbg.generated-->
    update tx_fund_risk_stats
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.fundId != null">
        fund_id = #{record.fundId,jdbcType=VARCHAR},
      </if>
      <if test="record.endDate != null">
        end_date = #{record.endDate,jdbcType=DATE},
      </if>
      <if test="record.stddev1y != null">
        stddev_1y = #{record.stddev1y,jdbcType=DECIMAL},
      </if>
      <if test="record.stddev2y != null">
        stddev_2y = #{record.stddev2y,jdbcType=DECIMAL},
      </if>
      <if test="record.stddev3y != null">
        stddev_3y = #{record.stddev3y,jdbcType=DECIMAL},
      </if>
      <if test="record.stddev4y != null">
        stddev_4y = #{record.stddev4y,jdbcType=DECIMAL},
      </if>
      <if test="record.stddev5y != null">
        stddev_5y = #{record.stddev5y,jdbcType=DECIMAL},
      </if>
      <if test="record.stddev10y != null">
        stddev_10y = #{record.stddev10y,jdbcType=DECIMAL},
      </if>
      <if test="record.stddevIncep != null">
        stddev_incep = #{record.stddevIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.stddevYtd != null">
        stddev_ytd = #{record.stddevYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.downsidedev1y != null">
        downsidedev_1y = #{record.downsidedev1y,jdbcType=DECIMAL},
      </if>
      <if test="record.downsidedev2y != null">
        downsidedev_2y = #{record.downsidedev2y,jdbcType=DECIMAL},
      </if>
      <if test="record.downsidedev3y != null">
        downsidedev_3y = #{record.downsidedev3y,jdbcType=DECIMAL},
      </if>
      <if test="record.downsidedev4y != null">
        downsidedev_4y = #{record.downsidedev4y,jdbcType=DECIMAL},
      </if>
      <if test="record.downsidedev5y != null">
        downsidedev_5y = #{record.downsidedev5y,jdbcType=DECIMAL},
      </if>
      <if test="record.downsidedev10y != null">
        downsidedev_10y = #{record.downsidedev10y,jdbcType=DECIMAL},
      </if>
      <if test="record.downsidedevIncep != null">
        downsidedev_incep = #{record.downsidedevIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.downsidedevYtd != null">
        downsidedev_ytd = #{record.downsidedevYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.alpha1y != null">
        alpha_1y = #{record.alpha1y,jdbcType=DECIMAL},
      </if>
      <if test="record.alpha2y != null">
        alpha_2y = #{record.alpha2y,jdbcType=DECIMAL},
      </if>
      <if test="record.alpha3y != null">
        alpha_3y = #{record.alpha3y,jdbcType=DECIMAL},
      </if>
      <if test="record.alpha4y != null">
        alpha_4y = #{record.alpha4y,jdbcType=DECIMAL},
      </if>
      <if test="record.alpha5y != null">
        alpha_5y = #{record.alpha5y,jdbcType=DECIMAL},
      </if>
      <if test="record.alpha10y != null">
        alpha_10y = #{record.alpha10y,jdbcType=DECIMAL},
      </if>
      <if test="record.alphaIncep != null">
        alpha_incep = #{record.alphaIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.alphaYtd != null">
        alpha_ytd = #{record.alphaYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.beta1y != null">
        beta_1y = #{record.beta1y,jdbcType=DECIMAL},
      </if>
      <if test="record.beta2y != null">
        beta_2y = #{record.beta2y,jdbcType=DECIMAL},
      </if>
      <if test="record.beta3y != null">
        beta_3y = #{record.beta3y,jdbcType=DECIMAL},
      </if>
      <if test="record.beta4y != null">
        beta_4y = #{record.beta4y,jdbcType=DECIMAL},
      </if>
      <if test="record.beta5y != null">
        beta_5y = #{record.beta5y,jdbcType=DECIMAL},
      </if>
      <if test="record.beta10y != null">
        beta_10y = #{record.beta10y,jdbcType=DECIMAL},
      </if>
      <if test="record.betaIncep != null">
        beta_incep = #{record.betaIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.betaYtd != null">
        beta_ytd = #{record.betaYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.r21y != null">
        r2_1y = #{record.r21y,jdbcType=DECIMAL},
      </if>
      <if test="record.r22y != null">
        r2_2y = #{record.r22y,jdbcType=DECIMAL},
      </if>
      <if test="record.r23y != null">
        r2_3y = #{record.r23y,jdbcType=DECIMAL},
      </if>
      <if test="record.r24y != null">
        r2_4y = #{record.r24y,jdbcType=DECIMAL},
      </if>
      <if test="record.r25y != null">
        r2_5y = #{record.r25y,jdbcType=DECIMAL},
      </if>
      <if test="record.r210y != null">
        r2_10y = #{record.r210y,jdbcType=DECIMAL},
      </if>
      <if test="record.r2Incep != null">
        r2_incep = #{record.r2Incep,jdbcType=DECIMAL},
      </if>
      <if test="record.r2Ytd != null">
        r2_ytd = #{record.r2Ytd,jdbcType=DECIMAL},
      </if>
      <if test="record.skewness1y != null">
        skewness_1y = #{record.skewness1y,jdbcType=DECIMAL},
      </if>
      <if test="record.skewness2y != null">
        skewness_2y = #{record.skewness2y,jdbcType=DECIMAL},
      </if>
      <if test="record.skewness3y != null">
        skewness_3y = #{record.skewness3y,jdbcType=DECIMAL},
      </if>
      <if test="record.skewness4y != null">
        skewness_4y = #{record.skewness4y,jdbcType=DECIMAL},
      </if>
      <if test="record.skewness5y != null">
        skewness_5y = #{record.skewness5y,jdbcType=DECIMAL},
      </if>
      <if test="record.skewness10y != null">
        skewness_10y = #{record.skewness10y,jdbcType=DECIMAL},
      </if>
      <if test="record.skewnessIncep != null">
        skewness_incep = #{record.skewnessIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.skewnessYtd != null">
        skewness_ytd = #{record.skewnessYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.kurtosis1y != null">
        kurtosis_1y = #{record.kurtosis1y,jdbcType=DECIMAL},
      </if>
      <if test="record.kurtosis2y != null">
        kurtosis_2y = #{record.kurtosis2y,jdbcType=DECIMAL},
      </if>
      <if test="record.kurtosis3y != null">
        kurtosis_3y = #{record.kurtosis3y,jdbcType=DECIMAL},
      </if>
      <if test="record.kurtosis4y != null">
        kurtosis_4y = #{record.kurtosis4y,jdbcType=DECIMAL},
      </if>
      <if test="record.kurtosis5y != null">
        kurtosis_5y = #{record.kurtosis5y,jdbcType=DECIMAL},
      </if>
      <if test="record.kurtosis10y != null">
        kurtosis_10y = #{record.kurtosis10y,jdbcType=DECIMAL},
      </if>
      <if test="record.kurtosisIncep != null">
        kurtosis_incep = #{record.kurtosisIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.kurtosisYtd != null">
        kurtosis_ytd = #{record.kurtosisYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.worstmonth1y != null">
        worstmonth_1y = #{record.worstmonth1y,jdbcType=DECIMAL},
      </if>
      <if test="record.worstmonth2y != null">
        worstmonth_2y = #{record.worstmonth2y,jdbcType=DECIMAL},
      </if>
      <if test="record.worstmonth3y != null">
        worstmonth_3y = #{record.worstmonth3y,jdbcType=DECIMAL},
      </if>
      <if test="record.worstmonth4y != null">
        worstmonth_4y = #{record.worstmonth4y,jdbcType=DECIMAL},
      </if>
      <if test="record.worstmonth5y != null">
        worstmonth_5y = #{record.worstmonth5y,jdbcType=DECIMAL},
      </if>
      <if test="record.worstmonth10y != null">
        worstmonth_10y = #{record.worstmonth10y,jdbcType=DECIMAL},
      </if>
      <if test="record.worstmonthIncep != null">
        worstmonth_incep = #{record.worstmonthIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.worstmonthYtd != null">
        worstmonth_ytd = #{record.worstmonthYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.downmonthPercent1y != null">
        downmonth_percent_1y = #{record.downmonthPercent1y,jdbcType=DECIMAL},
      </if>
      <if test="record.downmonthPercent2y != null">
        downmonth_percent_2y = #{record.downmonthPercent2y,jdbcType=DECIMAL},
      </if>
      <if test="record.downmonthPercent3y != null">
        downmonth_percent_3y = #{record.downmonthPercent3y,jdbcType=DECIMAL},
      </if>
      <if test="record.downmonthPercent4y != null">
        downmonth_percent_4y = #{record.downmonthPercent4y,jdbcType=DECIMAL},
      </if>
      <if test="record.downmonthPercent5y != null">
        downmonth_percent_5y = #{record.downmonthPercent5y,jdbcType=DECIMAL},
      </if>
      <if test="record.downmonthPercent10y != null">
        downmonth_percent_10y = #{record.downmonthPercent10y,jdbcType=DECIMAL},
      </if>
      <if test="record.downmonthPercentIncep != null">
        downmonth_percent_incep = #{record.downmonthPercentIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.downmonthPercentYtd != null">
        downmonth_percent_ytd = #{record.downmonthPercentYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.battingaverage1y != null">
        battingaverage_1y = #{record.battingaverage1y,jdbcType=DECIMAL},
      </if>
      <if test="record.battingaverage2y != null">
        battingaverage_2y = #{record.battingaverage2y,jdbcType=DECIMAL},
      </if>
      <if test="record.battingaverage3y != null">
        battingaverage_3y = #{record.battingaverage3y,jdbcType=DECIMAL},
      </if>
      <if test="record.battingaverage4y != null">
        battingaverage_4y = #{record.battingaverage4y,jdbcType=DECIMAL},
      </if>
      <if test="record.battingaverage5y != null">
        battingaverage_5y = #{record.battingaverage5y,jdbcType=DECIMAL},
      </if>
      <if test="record.battingaverage10y != null">
        battingaverage_10y = #{record.battingaverage10y,jdbcType=DECIMAL},
      </if>
      <if test="record.battingaverageIncep != null">
        battingaverage_incep = #{record.battingaverageIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.battingaverageYtd != null">
        battingaverage_ytd = #{record.battingaverageYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.gainlossRatio1y != null">
        gainloss_ratio_1y = #{record.gainlossRatio1y,jdbcType=DECIMAL},
      </if>
      <if test="record.gainlossRatio2y != null">
        gainloss_ratio_2y = #{record.gainlossRatio2y,jdbcType=DECIMAL},
      </if>
      <if test="record.gainlossRatio3y != null">
        gainloss_ratio_3y = #{record.gainlossRatio3y,jdbcType=DECIMAL},
      </if>
      <if test="record.gainlossRatio4y != null">
        gainloss_ratio_4y = #{record.gainlossRatio4y,jdbcType=DECIMAL},
      </if>
      <if test="record.gainlossRatio5y != null">
        gainloss_ratio_5y = #{record.gainlossRatio5y,jdbcType=DECIMAL},
      </if>
      <if test="record.gainlossRatio10y != null">
        gainloss_ratio_10y = #{record.gainlossRatio10y,jdbcType=DECIMAL},
      </if>
      <if test="record.gainlossRatioIncep != null">
        gainloss_ratio_incep = #{record.gainlossRatioIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.gainlossRatioYtd != null">
        gainloss_ratio_ytd = #{record.gainlossRatioYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.longestdownMonths1y != null">
        longestdown_months_1y = #{record.longestdownMonths1y,jdbcType=INTEGER},
      </if>
      <if test="record.longestdownMonths2y != null">
        longestdown_months_2y = #{record.longestdownMonths2y,jdbcType=INTEGER},
      </if>
      <if test="record.longestdownMonths3y != null">
        longestdown_months_3y = #{record.longestdownMonths3y,jdbcType=INTEGER},
      </if>
      <if test="record.longestdownMonths4y != null">
        longestdown_months_4y = #{record.longestdownMonths4y,jdbcType=INTEGER},
      </if>
      <if test="record.longestdownMonths5y != null">
        longestdown_months_5y = #{record.longestdownMonths5y,jdbcType=INTEGER},
      </if>
      <if test="record.longestdownMonths10y != null">
        longestdown_months_10y = #{record.longestdownMonths10y,jdbcType=INTEGER},
      </if>
      <if test="record.longestdownMonthsIncep != null">
        longestdown_months_incep = #{record.longestdownMonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="record.longestdownMonthsYtd != null">
        longestdown_months_ytd = #{record.longestdownMonthsYtd,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdown3m != null">
        maxdrawdown_3m = #{record.maxdrawdown3m,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdownYtd != null">
        maxdrawdown_ytd = #{record.maxdrawdownYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdownMonthsYtd != null">
        maxdrawdown_months_ytd = #{record.maxdrawdownMonthsYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdownPeakdateYtd != null">
        maxdrawdown_peakdate_ytd = #{record.maxdrawdownPeakdateYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdownValleydateYtd != null">
        maxdrawdown_valleydate_ytd = #{record.maxdrawdownValleydateYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdown1y != null">
        maxdrawdown_1y = #{record.maxdrawdown1y,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdownMonths1y != null">
        maxdrawdown_months_1y = #{record.maxdrawdownMonths1y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdownPeakdate1y != null">
        maxdrawdown_peakdate_1y = #{record.maxdrawdownPeakdate1y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownValleydate1y != null">
        maxdrawdown_valleydate_1y = #{record.maxdrawdownValleydate1y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverydate1y != null">
        maxdrawdown_recoverydate_1y = #{record.maxdrawdownRecoverydate1y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverymonths1y != null">
        maxdrawdown_recoverymonths_1y = #{record.maxdrawdownRecoverymonths1y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdown2y != null">
        maxdrawdown_2y = #{record.maxdrawdown2y,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdownMonths2y != null">
        maxdrawdown_months_2y = #{record.maxdrawdownMonths2y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdownPeakdate2y != null">
        maxdrawdown_peakdate_2y = #{record.maxdrawdownPeakdate2y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownValleydate2y != null">
        maxdrawdown_valleydate_2y = #{record.maxdrawdownValleydate2y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverydate2y != null">
        maxdrawdown_recoverydate_2y = #{record.maxdrawdownRecoverydate2y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdownRecoverymonths2y != null">
        maxdrawdown_recoverymonths_2y = #{record.maxdrawdownRecoverymonths2y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdown3y != null">
        maxdrawdown_3y = #{record.maxdrawdown3y,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdownMonths3y != null">
        maxdrawdown_months_3y = #{record.maxdrawdownMonths3y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdownPeakdate3y != null">
        maxdrawdown_peakdate_3y = #{record.maxdrawdownPeakdate3y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownValleydate3y != null">
        maxdrawdown_valleydate_3y = #{record.maxdrawdownValleydate3y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverydate3y != null">
        maxdrawdown_recoverydate_3y = #{record.maxdrawdownRecoverydate3y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverymonths3y != null">
        maxdrawdown_recoverymonths_3y = #{record.maxdrawdownRecoverymonths3y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdown4y != null">
        maxdrawdown_4y = #{record.maxdrawdown4y,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdownMonths4y != null">
        maxdrawdown_months_4y = #{record.maxdrawdownMonths4y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdownPeakdate4y != null">
        maxdrawdown_peakdate_4y = #{record.maxdrawdownPeakdate4y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownValleydate4y != null">
        maxdrawdown_valleydate_4y = #{record.maxdrawdownValleydate4y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverydate4y != null">
        maxdrawdown_recoverydate_4y = #{record.maxdrawdownRecoverydate4y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverymonths4y != null">
        maxdrawdown_recoverymonths_4y = #{record.maxdrawdownRecoverymonths4y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdown5y != null">
        maxdrawdown_5y = #{record.maxdrawdown5y,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdown10y != null">
        maxdrawdown_10y = #{record.maxdrawdown10y,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdownMonths5y != null">
        maxdrawdown_months_5y = #{record.maxdrawdownMonths5y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdownPeakdate5y != null">
        maxdrawdown_peakdate_5y = #{record.maxdrawdownPeakdate5y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownValleydate5y != null">
        maxdrawdown_valleydate_5y = #{record.maxdrawdownValleydate5y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverydate5y != null">
        maxdrawdown_recoverydate_5y = #{record.maxdrawdownRecoverydate5y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverymonths5y != null">
        maxdrawdown_recoverymonths_5y = #{record.maxdrawdownRecoverymonths5y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdownMonths10y != null">
        maxdrawdown_months_10y = #{record.maxdrawdownMonths10y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdownPeakdate10y != null">
        maxdrawdown_peakdate_10y = #{record.maxdrawdownPeakdate10y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownValleydate10y != null">
        maxdrawdown_valleydate_10y = #{record.maxdrawdownValleydate10y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverydate10y != null">
        maxdrawdown_recoverydate_10y = #{record.maxdrawdownRecoverydate10y,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverymonths10y != null">
        maxdrawdown_recoverymonths_10y = #{record.maxdrawdownRecoverymonths10y,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdownIncep != null">
        maxdrawdown_incep = #{record.maxdrawdownIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdownMonthsIncep != null">
        maxdrawdown_months_incep = #{record.maxdrawdownMonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="record.maxdrawdownPeakdateIncep != null">
        maxdrawdown_peakdate_incep = #{record.maxdrawdownPeakdateIncep,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownValleydateIncep != null">
        maxdrawdown_valleydate_incep = #{record.maxdrawdownValleydateIncep,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverydateIncep != null">
        maxdrawdown_recoverydate_incep = #{record.maxdrawdownRecoverydateIncep,jdbcType=VARCHAR},
      </if>
      <if test="record.maxdrawdownRecoverymonthsIncep != null">
        maxdrawdown_recoverymonths_incep = #{record.maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.deleteTag != null">
        delete_tag = #{record.deleteTag,jdbcType=INTEGER},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--@mbg.generated-->
    update tx_fund_risk_stats
    set id = #{record.id,jdbcType=VARCHAR},
      fund_id = #{record.fundId,jdbcType=VARCHAR},
      end_date = #{record.endDate,jdbcType=DATE},
      stddev_1y = #{record.stddev1y,jdbcType=DECIMAL},
      stddev_2y = #{record.stddev2y,jdbcType=DECIMAL},
      stddev_3y = #{record.stddev3y,jdbcType=DECIMAL},
      stddev_4y = #{record.stddev4y,jdbcType=DECIMAL},
      stddev_5y = #{record.stddev5y,jdbcType=DECIMAL},
      stddev_10y = #{record.stddev10y,jdbcType=DECIMAL},
      stddev_incep = #{record.stddevIncep,jdbcType=DECIMAL},
      stddev_ytd = #{record.stddevYtd,jdbcType=DECIMAL},
      downsidedev_1y = #{record.downsidedev1y,jdbcType=DECIMAL},
      downsidedev_2y = #{record.downsidedev2y,jdbcType=DECIMAL},
      downsidedev_3y = #{record.downsidedev3y,jdbcType=DECIMAL},
      downsidedev_4y = #{record.downsidedev4y,jdbcType=DECIMAL},
      downsidedev_5y = #{record.downsidedev5y,jdbcType=DECIMAL},
      downsidedev_10y = #{record.downsidedev10y,jdbcType=DECIMAL},
      downsidedev_incep = #{record.downsidedevIncep,jdbcType=DECIMAL},
      downsidedev_ytd = #{record.downsidedevYtd,jdbcType=DECIMAL},
      alpha_1y = #{record.alpha1y,jdbcType=DECIMAL},
      alpha_2y = #{record.alpha2y,jdbcType=DECIMAL},
      alpha_3y = #{record.alpha3y,jdbcType=DECIMAL},
      alpha_4y = #{record.alpha4y,jdbcType=DECIMAL},
      alpha_5y = #{record.alpha5y,jdbcType=DECIMAL},
      alpha_10y = #{record.alpha10y,jdbcType=DECIMAL},
      alpha_incep = #{record.alphaIncep,jdbcType=DECIMAL},
      alpha_ytd = #{record.alphaYtd,jdbcType=DECIMAL},
      beta_1y = #{record.beta1y,jdbcType=DECIMAL},
      beta_2y = #{record.beta2y,jdbcType=DECIMAL},
      beta_3y = #{record.beta3y,jdbcType=DECIMAL},
      beta_4y = #{record.beta4y,jdbcType=DECIMAL},
      beta_5y = #{record.beta5y,jdbcType=DECIMAL},
      beta_10y = #{record.beta10y,jdbcType=DECIMAL},
      beta_incep = #{record.betaIncep,jdbcType=DECIMAL},
      beta_ytd = #{record.betaYtd,jdbcType=DECIMAL},
      r2_1y = #{record.r21y,jdbcType=DECIMAL},
      r2_2y = #{record.r22y,jdbcType=DECIMAL},
      r2_3y = #{record.r23y,jdbcType=DECIMAL},
      r2_4y = #{record.r24y,jdbcType=DECIMAL},
      r2_5y = #{record.r25y,jdbcType=DECIMAL},
      r2_10y = #{record.r210y,jdbcType=DECIMAL},
      r2_incep = #{record.r2Incep,jdbcType=DECIMAL},
      r2_ytd = #{record.r2Ytd,jdbcType=DECIMAL},
      skewness_1y = #{record.skewness1y,jdbcType=DECIMAL},
      skewness_2y = #{record.skewness2y,jdbcType=DECIMAL},
      skewness_3y = #{record.skewness3y,jdbcType=DECIMAL},
      skewness_4y = #{record.skewness4y,jdbcType=DECIMAL},
      skewness_5y = #{record.skewness5y,jdbcType=DECIMAL},
      skewness_10y = #{record.skewness10y,jdbcType=DECIMAL},
      skewness_incep = #{record.skewnessIncep,jdbcType=DECIMAL},
      skewness_ytd = #{record.skewnessYtd,jdbcType=DECIMAL},
      kurtosis_1y = #{record.kurtosis1y,jdbcType=DECIMAL},
      kurtosis_2y = #{record.kurtosis2y,jdbcType=DECIMAL},
      kurtosis_3y = #{record.kurtosis3y,jdbcType=DECIMAL},
      kurtosis_4y = #{record.kurtosis4y,jdbcType=DECIMAL},
      kurtosis_5y = #{record.kurtosis5y,jdbcType=DECIMAL},
      kurtosis_10y = #{record.kurtosis10y,jdbcType=DECIMAL},
      kurtosis_incep = #{record.kurtosisIncep,jdbcType=DECIMAL},
      kurtosis_ytd = #{record.kurtosisYtd,jdbcType=DECIMAL},
      worstmonth_1y = #{record.worstmonth1y,jdbcType=DECIMAL},
      worstmonth_2y = #{record.worstmonth2y,jdbcType=DECIMAL},
      worstmonth_3y = #{record.worstmonth3y,jdbcType=DECIMAL},
      worstmonth_4y = #{record.worstmonth4y,jdbcType=DECIMAL},
      worstmonth_5y = #{record.worstmonth5y,jdbcType=DECIMAL},
      worstmonth_10y = #{record.worstmonth10y,jdbcType=DECIMAL},
      worstmonth_incep = #{record.worstmonthIncep,jdbcType=DECIMAL},
      worstmonth_ytd = #{record.worstmonthYtd,jdbcType=DECIMAL},
      downmonth_percent_1y = #{record.downmonthPercent1y,jdbcType=DECIMAL},
      downmonth_percent_2y = #{record.downmonthPercent2y,jdbcType=DECIMAL},
      downmonth_percent_3y = #{record.downmonthPercent3y,jdbcType=DECIMAL},
      downmonth_percent_4y = #{record.downmonthPercent4y,jdbcType=DECIMAL},
      downmonth_percent_5y = #{record.downmonthPercent5y,jdbcType=DECIMAL},
      downmonth_percent_10y = #{record.downmonthPercent10y,jdbcType=DECIMAL},
      downmonth_percent_incep = #{record.downmonthPercentIncep,jdbcType=DECIMAL},
      downmonth_percent_ytd = #{record.downmonthPercentYtd,jdbcType=DECIMAL},
      battingaverage_1y = #{record.battingaverage1y,jdbcType=DECIMAL},
      battingaverage_2y = #{record.battingaverage2y,jdbcType=DECIMAL},
      battingaverage_3y = #{record.battingaverage3y,jdbcType=DECIMAL},
      battingaverage_4y = #{record.battingaverage4y,jdbcType=DECIMAL},
      battingaverage_5y = #{record.battingaverage5y,jdbcType=DECIMAL},
      battingaverage_10y = #{record.battingaverage10y,jdbcType=DECIMAL},
      battingaverage_incep = #{record.battingaverageIncep,jdbcType=DECIMAL},
      battingaverage_ytd = #{record.battingaverageYtd,jdbcType=DECIMAL},
      gainloss_ratio_1y = #{record.gainlossRatio1y,jdbcType=DECIMAL},
      gainloss_ratio_2y = #{record.gainlossRatio2y,jdbcType=DECIMAL},
      gainloss_ratio_3y = #{record.gainlossRatio3y,jdbcType=DECIMAL},
      gainloss_ratio_4y = #{record.gainlossRatio4y,jdbcType=DECIMAL},
      gainloss_ratio_5y = #{record.gainlossRatio5y,jdbcType=DECIMAL},
      gainloss_ratio_10y = #{record.gainlossRatio10y,jdbcType=DECIMAL},
      gainloss_ratio_incep = #{record.gainlossRatioIncep,jdbcType=DECIMAL},
      gainloss_ratio_ytd = #{record.gainlossRatioYtd,jdbcType=DECIMAL},
      longestdown_months_1y = #{record.longestdownMonths1y,jdbcType=INTEGER},
      longestdown_months_2y = #{record.longestdownMonths2y,jdbcType=INTEGER},
      longestdown_months_3y = #{record.longestdownMonths3y,jdbcType=INTEGER},
      longestdown_months_4y = #{record.longestdownMonths4y,jdbcType=INTEGER},
      longestdown_months_5y = #{record.longestdownMonths5y,jdbcType=INTEGER},
      longestdown_months_10y = #{record.longestdownMonths10y,jdbcType=INTEGER},
      longestdown_months_incep = #{record.longestdownMonthsIncep,jdbcType=INTEGER},
      longestdown_months_ytd = #{record.longestdownMonthsYtd,jdbcType=INTEGER},
      maxdrawdown_3m = #{record.maxdrawdown3m,jdbcType=DECIMAL},
      maxdrawdown_ytd = #{record.maxdrawdownYtd,jdbcType=DECIMAL},
      maxdrawdown_months_ytd = #{record.maxdrawdownMonthsYtd,jdbcType=DECIMAL},
      maxdrawdown_peakdate_ytd = #{record.maxdrawdownPeakdateYtd,jdbcType=DECIMAL},
      maxdrawdown_valleydate_ytd = #{record.maxdrawdownValleydateYtd,jdbcType=DECIMAL},
      maxdrawdown_1y = #{record.maxdrawdown1y,jdbcType=DECIMAL},
      maxdrawdown_months_1y = #{record.maxdrawdownMonths1y,jdbcType=INTEGER},
      maxdrawdown_peakdate_1y = #{record.maxdrawdownPeakdate1y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_1y = #{record.maxdrawdownValleydate1y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_1y = #{record.maxdrawdownRecoverydate1y,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_1y = #{record.maxdrawdownRecoverymonths1y,jdbcType=INTEGER},
      maxdrawdown_2y = #{record.maxdrawdown2y,jdbcType=DECIMAL},
      maxdrawdown_months_2y = #{record.maxdrawdownMonths2y,jdbcType=INTEGER},
      maxdrawdown_peakdate_2y = #{record.maxdrawdownPeakdate2y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_2y = #{record.maxdrawdownValleydate2y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_2y = #{record.maxdrawdownRecoverydate2y,jdbcType=INTEGER},
      maxdrawdown_recoverymonths_2y = #{record.maxdrawdownRecoverymonths2y,jdbcType=INTEGER},
      maxdrawdown_3y = #{record.maxdrawdown3y,jdbcType=DECIMAL},
      maxdrawdown_months_3y = #{record.maxdrawdownMonths3y,jdbcType=INTEGER},
      maxdrawdown_peakdate_3y = #{record.maxdrawdownPeakdate3y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_3y = #{record.maxdrawdownValleydate3y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_3y = #{record.maxdrawdownRecoverydate3y,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_3y = #{record.maxdrawdownRecoverymonths3y,jdbcType=INTEGER},
      maxdrawdown_4y = #{record.maxdrawdown4y,jdbcType=DECIMAL},
      maxdrawdown_months_4y = #{record.maxdrawdownMonths4y,jdbcType=INTEGER},
      maxdrawdown_peakdate_4y = #{record.maxdrawdownPeakdate4y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_4y = #{record.maxdrawdownValleydate4y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_4y = #{record.maxdrawdownRecoverydate4y,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_4y = #{record.maxdrawdownRecoverymonths4y,jdbcType=INTEGER},
      maxdrawdown_5y = #{record.maxdrawdown5y,jdbcType=DECIMAL},
      maxdrawdown_10y = #{record.maxdrawdown10y,jdbcType=DECIMAL},
      maxdrawdown_months_5y = #{record.maxdrawdownMonths5y,jdbcType=INTEGER},
      maxdrawdown_peakdate_5y = #{record.maxdrawdownPeakdate5y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_5y = #{record.maxdrawdownValleydate5y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_5y = #{record.maxdrawdownRecoverydate5y,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_5y = #{record.maxdrawdownRecoverymonths5y,jdbcType=INTEGER},
      maxdrawdown_months_10y = #{record.maxdrawdownMonths10y,jdbcType=INTEGER},
      maxdrawdown_peakdate_10y = #{record.maxdrawdownPeakdate10y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_10y = #{record.maxdrawdownValleydate10y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_10y = #{record.maxdrawdownRecoverydate10y,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_10y = #{record.maxdrawdownRecoverymonths10y,jdbcType=INTEGER},
      maxdrawdown_incep = #{record.maxdrawdownIncep,jdbcType=DECIMAL},
      maxdrawdown_months_incep = #{record.maxdrawdownMonthsIncep,jdbcType=INTEGER},
      maxdrawdown_peakdate_incep = #{record.maxdrawdownPeakdateIncep,jdbcType=VARCHAR},
      maxdrawdown_valleydate_incep = #{record.maxdrawdownValleydateIncep,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_incep = #{record.maxdrawdownRecoverydateIncep,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_incep = #{record.maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      create_time = #{record.createTime,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.TxFundRiskStats">
    <!--@mbg.generated-->
    update tx_fund_risk_stats
    <set>
      <if test="fundId != null">
        fund_id = #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="endDate != null">
        end_date = #{endDate,jdbcType=DATE},
      </if>
      <if test="stddev1y != null">
        stddev_1y = #{stddev1y,jdbcType=DECIMAL},
      </if>
      <if test="stddev2y != null">
        stddev_2y = #{stddev2y,jdbcType=DECIMAL},
      </if>
      <if test="stddev3y != null">
        stddev_3y = #{stddev3y,jdbcType=DECIMAL},
      </if>
      <if test="stddev4y != null">
        stddev_4y = #{stddev4y,jdbcType=DECIMAL},
      </if>
      <if test="stddev5y != null">
        stddev_5y = #{stddev5y,jdbcType=DECIMAL},
      </if>
      <if test="stddev10y != null">
        stddev_10y = #{stddev10y,jdbcType=DECIMAL},
      </if>
      <if test="stddevIncep != null">
        stddev_incep = #{stddevIncep,jdbcType=DECIMAL},
      </if>
      <if test="stddevYtd != null">
        stddev_ytd = #{stddevYtd,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev1y != null">
        downsidedev_1y = #{downsidedev1y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev2y != null">
        downsidedev_2y = #{downsidedev2y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev3y != null">
        downsidedev_3y = #{downsidedev3y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev4y != null">
        downsidedev_4y = #{downsidedev4y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev5y != null">
        downsidedev_5y = #{downsidedev5y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev10y != null">
        downsidedev_10y = #{downsidedev10y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedevIncep != null">
        downsidedev_incep = #{downsidedevIncep,jdbcType=DECIMAL},
      </if>
      <if test="downsidedevYtd != null">
        downsidedev_ytd = #{downsidedevYtd,jdbcType=DECIMAL},
      </if>
      <if test="alpha1y != null">
        alpha_1y = #{alpha1y,jdbcType=DECIMAL},
      </if>
      <if test="alpha2y != null">
        alpha_2y = #{alpha2y,jdbcType=DECIMAL},
      </if>
      <if test="alpha3y != null">
        alpha_3y = #{alpha3y,jdbcType=DECIMAL},
      </if>
      <if test="alpha4y != null">
        alpha_4y = #{alpha4y,jdbcType=DECIMAL},
      </if>
      <if test="alpha5y != null">
        alpha_5y = #{alpha5y,jdbcType=DECIMAL},
      </if>
      <if test="alpha10y != null">
        alpha_10y = #{alpha10y,jdbcType=DECIMAL},
      </if>
      <if test="alphaIncep != null">
        alpha_incep = #{alphaIncep,jdbcType=DECIMAL},
      </if>
      <if test="alphaYtd != null">
        alpha_ytd = #{alphaYtd,jdbcType=DECIMAL},
      </if>
      <if test="beta1y != null">
        beta_1y = #{beta1y,jdbcType=DECIMAL},
      </if>
      <if test="beta2y != null">
        beta_2y = #{beta2y,jdbcType=DECIMAL},
      </if>
      <if test="beta3y != null">
        beta_3y = #{beta3y,jdbcType=DECIMAL},
      </if>
      <if test="beta4y != null">
        beta_4y = #{beta4y,jdbcType=DECIMAL},
      </if>
      <if test="beta5y != null">
        beta_5y = #{beta5y,jdbcType=DECIMAL},
      </if>
      <if test="beta10y != null">
        beta_10y = #{beta10y,jdbcType=DECIMAL},
      </if>
      <if test="betaIncep != null">
        beta_incep = #{betaIncep,jdbcType=DECIMAL},
      </if>
      <if test="betaYtd != null">
        beta_ytd = #{betaYtd,jdbcType=DECIMAL},
      </if>
      <if test="r21y != null">
        r2_1y = #{r21y,jdbcType=DECIMAL},
      </if>
      <if test="r22y != null">
        r2_2y = #{r22y,jdbcType=DECIMAL},
      </if>
      <if test="r23y != null">
        r2_3y = #{r23y,jdbcType=DECIMAL},
      </if>
      <if test="r24y != null">
        r2_4y = #{r24y,jdbcType=DECIMAL},
      </if>
      <if test="r25y != null">
        r2_5y = #{r25y,jdbcType=DECIMAL},
      </if>
      <if test="r210y != null">
        r2_10y = #{r210y,jdbcType=DECIMAL},
      </if>
      <if test="r2Incep != null">
        r2_incep = #{r2Incep,jdbcType=DECIMAL},
      </if>
      <if test="r2Ytd != null">
        r2_ytd = #{r2Ytd,jdbcType=DECIMAL},
      </if>
      <if test="skewness1y != null">
        skewness_1y = #{skewness1y,jdbcType=DECIMAL},
      </if>
      <if test="skewness2y != null">
        skewness_2y = #{skewness2y,jdbcType=DECIMAL},
      </if>
      <if test="skewness3y != null">
        skewness_3y = #{skewness3y,jdbcType=DECIMAL},
      </if>
      <if test="skewness4y != null">
        skewness_4y = #{skewness4y,jdbcType=DECIMAL},
      </if>
      <if test="skewness5y != null">
        skewness_5y = #{skewness5y,jdbcType=DECIMAL},
      </if>
      <if test="skewness10y != null">
        skewness_10y = #{skewness10y,jdbcType=DECIMAL},
      </if>
      <if test="skewnessIncep != null">
        skewness_incep = #{skewnessIncep,jdbcType=DECIMAL},
      </if>
      <if test="skewnessYtd != null">
        skewness_ytd = #{skewnessYtd,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis1y != null">
        kurtosis_1y = #{kurtosis1y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis2y != null">
        kurtosis_2y = #{kurtosis2y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis3y != null">
        kurtosis_3y = #{kurtosis3y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis4y != null">
        kurtosis_4y = #{kurtosis4y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis5y != null">
        kurtosis_5y = #{kurtosis5y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis10y != null">
        kurtosis_10y = #{kurtosis10y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosisIncep != null">
        kurtosis_incep = #{kurtosisIncep,jdbcType=DECIMAL},
      </if>
      <if test="kurtosisYtd != null">
        kurtosis_ytd = #{kurtosisYtd,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth1y != null">
        worstmonth_1y = #{worstmonth1y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth2y != null">
        worstmonth_2y = #{worstmonth2y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth3y != null">
        worstmonth_3y = #{worstmonth3y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth4y != null">
        worstmonth_4y = #{worstmonth4y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth5y != null">
        worstmonth_5y = #{worstmonth5y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth10y != null">
        worstmonth_10y = #{worstmonth10y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonthIncep != null">
        worstmonth_incep = #{worstmonthIncep,jdbcType=DECIMAL},
      </if>
      <if test="worstmonthYtd != null">
        worstmonth_ytd = #{worstmonthYtd,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent1y != null">
        downmonth_percent_1y = #{downmonthPercent1y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent2y != null">
        downmonth_percent_2y = #{downmonthPercent2y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent3y != null">
        downmonth_percent_3y = #{downmonthPercent3y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent4y != null">
        downmonth_percent_4y = #{downmonthPercent4y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent5y != null">
        downmonth_percent_5y = #{downmonthPercent5y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent10y != null">
        downmonth_percent_10y = #{downmonthPercent10y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercentIncep != null">
        downmonth_percent_incep = #{downmonthPercentIncep,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercentYtd != null">
        downmonth_percent_ytd = #{downmonthPercentYtd,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage1y != null">
        battingaverage_1y = #{battingaverage1y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage2y != null">
        battingaverage_2y = #{battingaverage2y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage3y != null">
        battingaverage_3y = #{battingaverage3y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage4y != null">
        battingaverage_4y = #{battingaverage4y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage5y != null">
        battingaverage_5y = #{battingaverage5y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage10y != null">
        battingaverage_10y = #{battingaverage10y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverageIncep != null">
        battingaverage_incep = #{battingaverageIncep,jdbcType=DECIMAL},
      </if>
      <if test="battingaverageYtd != null">
        battingaverage_ytd = #{battingaverageYtd,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio1y != null">
        gainloss_ratio_1y = #{gainlossRatio1y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio2y != null">
        gainloss_ratio_2y = #{gainlossRatio2y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio3y != null">
        gainloss_ratio_3y = #{gainlossRatio3y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio4y != null">
        gainloss_ratio_4y = #{gainlossRatio4y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio5y != null">
        gainloss_ratio_5y = #{gainlossRatio5y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio10y != null">
        gainloss_ratio_10y = #{gainlossRatio10y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatioIncep != null">
        gainloss_ratio_incep = #{gainlossRatioIncep,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatioYtd != null">
        gainloss_ratio_ytd = #{gainlossRatioYtd,jdbcType=DECIMAL},
      </if>
      <if test="longestdownMonths1y != null">
        longestdown_months_1y = #{longestdownMonths1y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths2y != null">
        longestdown_months_2y = #{longestdownMonths2y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths3y != null">
        longestdown_months_3y = #{longestdownMonths3y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths4y != null">
        longestdown_months_4y = #{longestdownMonths4y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths5y != null">
        longestdown_months_5y = #{longestdownMonths5y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths10y != null">
        longestdown_months_10y = #{longestdownMonths10y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonthsIncep != null">
        longestdown_months_incep = #{longestdownMonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonthsYtd != null">
        longestdown_months_ytd = #{longestdownMonthsYtd,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown3m != null">
        maxdrawdown_3m = #{maxdrawdown3m,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownYtd != null">
        maxdrawdown_ytd = #{maxdrawdownYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonthsYtd != null">
        maxdrawdown_months_ytd = #{maxdrawdownMonthsYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownPeakdateYtd != null">
        maxdrawdown_peakdate_ytd = #{maxdrawdownPeakdateYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownValleydateYtd != null">
        maxdrawdown_valleydate_ytd = #{maxdrawdownValleydateYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown1y != null">
        maxdrawdown_1y = #{maxdrawdown1y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths1y != null">
        maxdrawdown_months_1y = #{maxdrawdownMonths1y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate1y != null">
        maxdrawdown_peakdate_1y = #{maxdrawdownPeakdate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate1y != null">
        maxdrawdown_valleydate_1y = #{maxdrawdownValleydate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate1y != null">
        maxdrawdown_recoverydate_1y = #{maxdrawdownRecoverydate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths1y != null">
        maxdrawdown_recoverymonths_1y = #{maxdrawdownRecoverymonths1y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown2y != null">
        maxdrawdown_2y = #{maxdrawdown2y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths2y != null">
        maxdrawdown_months_2y = #{maxdrawdownMonths2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate2y != null">
        maxdrawdown_peakdate_2y = #{maxdrawdownPeakdate2y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate2y != null">
        maxdrawdown_valleydate_2y = #{maxdrawdownValleydate2y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate2y != null">
        maxdrawdown_recoverydate_2y = #{maxdrawdownRecoverydate2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownRecoverymonths2y != null">
        maxdrawdown_recoverymonths_2y = #{maxdrawdownRecoverymonths2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown3y != null">
        maxdrawdown_3y = #{maxdrawdown3y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths3y != null">
        maxdrawdown_months_3y = #{maxdrawdownMonths3y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate3y != null">
        maxdrawdown_peakdate_3y = #{maxdrawdownPeakdate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate3y != null">
        maxdrawdown_valleydate_3y = #{maxdrawdownValleydate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate3y != null">
        maxdrawdown_recoverydate_3y = #{maxdrawdownRecoverydate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths3y != null">
        maxdrawdown_recoverymonths_3y = #{maxdrawdownRecoverymonths3y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown4y != null">
        maxdrawdown_4y = #{maxdrawdown4y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths4y != null">
        maxdrawdown_months_4y = #{maxdrawdownMonths4y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate4y != null">
        maxdrawdown_peakdate_4y = #{maxdrawdownPeakdate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate4y != null">
        maxdrawdown_valleydate_4y = #{maxdrawdownValleydate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate4y != null">
        maxdrawdown_recoverydate_4y = #{maxdrawdownRecoverydate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths4y != null">
        maxdrawdown_recoverymonths_4y = #{maxdrawdownRecoverymonths4y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown5y != null">
        maxdrawdown_5y = #{maxdrawdown5y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown10y != null">
        maxdrawdown_10y = #{maxdrawdown10y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths5y != null">
        maxdrawdown_months_5y = #{maxdrawdownMonths5y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate5y != null">
        maxdrawdown_peakdate_5y = #{maxdrawdownPeakdate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate5y != null">
        maxdrawdown_valleydate_5y = #{maxdrawdownValleydate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate5y != null">
        maxdrawdown_recoverydate_5y = #{maxdrawdownRecoverydate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths5y != null">
        maxdrawdown_recoverymonths_5y = #{maxdrawdownRecoverymonths5y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownMonths10y != null">
        maxdrawdown_months_10y = #{maxdrawdownMonths10y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate10y != null">
        maxdrawdown_peakdate_10y = #{maxdrawdownPeakdate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate10y != null">
        maxdrawdown_valleydate_10y = #{maxdrawdownValleydate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate10y != null">
        maxdrawdown_recoverydate_10y = #{maxdrawdownRecoverydate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths10y != null">
        maxdrawdown_recoverymonths_10y = #{maxdrawdownRecoverymonths10y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownIncep != null">
        maxdrawdown_incep = #{maxdrawdownIncep,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonthsIncep != null">
        maxdrawdown_months_incep = #{maxdrawdownMonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdateIncep != null">
        maxdrawdown_peakdate_incep = #{maxdrawdownPeakdateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydateIncep != null">
        maxdrawdown_valleydate_incep = #{maxdrawdownValleydateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydateIncep != null">
        maxdrawdown_recoverydate_incep = #{maxdrawdownRecoverydateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonthsIncep != null">
        maxdrawdown_recoverymonths_incep = #{maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
      </if>
    </set>
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.TxFundRiskStats">
    <!--@mbg.generated-->
    update tx_fund_risk_stats
    set fund_id = #{fundId,jdbcType=VARCHAR},
      end_date = #{endDate,jdbcType=DATE},
      stddev_1y = #{stddev1y,jdbcType=DECIMAL},
      stddev_2y = #{stddev2y,jdbcType=DECIMAL},
      stddev_3y = #{stddev3y,jdbcType=DECIMAL},
      stddev_4y = #{stddev4y,jdbcType=DECIMAL},
      stddev_5y = #{stddev5y,jdbcType=DECIMAL},
      stddev_10y = #{stddev10y,jdbcType=DECIMAL},
      stddev_incep = #{stddevIncep,jdbcType=DECIMAL},
      stddev_ytd = #{stddevYtd,jdbcType=DECIMAL},
      downsidedev_1y = #{downsidedev1y,jdbcType=DECIMAL},
      downsidedev_2y = #{downsidedev2y,jdbcType=DECIMAL},
      downsidedev_3y = #{downsidedev3y,jdbcType=DECIMAL},
      downsidedev_4y = #{downsidedev4y,jdbcType=DECIMAL},
      downsidedev_5y = #{downsidedev5y,jdbcType=DECIMAL},
      downsidedev_10y = #{downsidedev10y,jdbcType=DECIMAL},
      downsidedev_incep = #{downsidedevIncep,jdbcType=DECIMAL},
      downsidedev_ytd = #{downsidedevYtd,jdbcType=DECIMAL},
      alpha_1y = #{alpha1y,jdbcType=DECIMAL},
      alpha_2y = #{alpha2y,jdbcType=DECIMAL},
      alpha_3y = #{alpha3y,jdbcType=DECIMAL},
      alpha_4y = #{alpha4y,jdbcType=DECIMAL},
      alpha_5y = #{alpha5y,jdbcType=DECIMAL},
      alpha_10y = #{alpha10y,jdbcType=DECIMAL},
      alpha_incep = #{alphaIncep,jdbcType=DECIMAL},
      alpha_ytd = #{alphaYtd,jdbcType=DECIMAL},
      beta_1y = #{beta1y,jdbcType=DECIMAL},
      beta_2y = #{beta2y,jdbcType=DECIMAL},
      beta_3y = #{beta3y,jdbcType=DECIMAL},
      beta_4y = #{beta4y,jdbcType=DECIMAL},
      beta_5y = #{beta5y,jdbcType=DECIMAL},
      beta_10y = #{beta10y,jdbcType=DECIMAL},
      beta_incep = #{betaIncep,jdbcType=DECIMAL},
      beta_ytd = #{betaYtd,jdbcType=DECIMAL},
      r2_1y = #{r21y,jdbcType=DECIMAL},
      r2_2y = #{r22y,jdbcType=DECIMAL},
      r2_3y = #{r23y,jdbcType=DECIMAL},
      r2_4y = #{r24y,jdbcType=DECIMAL},
      r2_5y = #{r25y,jdbcType=DECIMAL},
      r2_10y = #{r210y,jdbcType=DECIMAL},
      r2_incep = #{r2Incep,jdbcType=DECIMAL},
      r2_ytd = #{r2Ytd,jdbcType=DECIMAL},
      skewness_1y = #{skewness1y,jdbcType=DECIMAL},
      skewness_2y = #{skewness2y,jdbcType=DECIMAL},
      skewness_3y = #{skewness3y,jdbcType=DECIMAL},
      skewness_4y = #{skewness4y,jdbcType=DECIMAL},
      skewness_5y = #{skewness5y,jdbcType=DECIMAL},
      skewness_10y = #{skewness10y,jdbcType=DECIMAL},
      skewness_incep = #{skewnessIncep,jdbcType=DECIMAL},
      skewness_ytd = #{skewnessYtd,jdbcType=DECIMAL},
      kurtosis_1y = #{kurtosis1y,jdbcType=DECIMAL},
      kurtosis_2y = #{kurtosis2y,jdbcType=DECIMAL},
      kurtosis_3y = #{kurtosis3y,jdbcType=DECIMAL},
      kurtosis_4y = #{kurtosis4y,jdbcType=DECIMAL},
      kurtosis_5y = #{kurtosis5y,jdbcType=DECIMAL},
      kurtosis_10y = #{kurtosis10y,jdbcType=DECIMAL},
      kurtosis_incep = #{kurtosisIncep,jdbcType=DECIMAL},
      kurtosis_ytd = #{kurtosisYtd,jdbcType=DECIMAL},
      worstmonth_1y = #{worstmonth1y,jdbcType=DECIMAL},
      worstmonth_2y = #{worstmonth2y,jdbcType=DECIMAL},
      worstmonth_3y = #{worstmonth3y,jdbcType=DECIMAL},
      worstmonth_4y = #{worstmonth4y,jdbcType=DECIMAL},
      worstmonth_5y = #{worstmonth5y,jdbcType=DECIMAL},
      worstmonth_10y = #{worstmonth10y,jdbcType=DECIMAL},
      worstmonth_incep = #{worstmonthIncep,jdbcType=DECIMAL},
      worstmonth_ytd = #{worstmonthYtd,jdbcType=DECIMAL},
      downmonth_percent_1y = #{downmonthPercent1y,jdbcType=DECIMAL},
      downmonth_percent_2y = #{downmonthPercent2y,jdbcType=DECIMAL},
      downmonth_percent_3y = #{downmonthPercent3y,jdbcType=DECIMAL},
      downmonth_percent_4y = #{downmonthPercent4y,jdbcType=DECIMAL},
      downmonth_percent_5y = #{downmonthPercent5y,jdbcType=DECIMAL},
      downmonth_percent_10y = #{downmonthPercent10y,jdbcType=DECIMAL},
      downmonth_percent_incep = #{downmonthPercentIncep,jdbcType=DECIMAL},
      downmonth_percent_ytd = #{downmonthPercentYtd,jdbcType=DECIMAL},
      battingaverage_1y = #{battingaverage1y,jdbcType=DECIMAL},
      battingaverage_2y = #{battingaverage2y,jdbcType=DECIMAL},
      battingaverage_3y = #{battingaverage3y,jdbcType=DECIMAL},
      battingaverage_4y = #{battingaverage4y,jdbcType=DECIMAL},
      battingaverage_5y = #{battingaverage5y,jdbcType=DECIMAL},
      battingaverage_10y = #{battingaverage10y,jdbcType=DECIMAL},
      battingaverage_incep = #{battingaverageIncep,jdbcType=DECIMAL},
      battingaverage_ytd = #{battingaverageYtd,jdbcType=DECIMAL},
      gainloss_ratio_1y = #{gainlossRatio1y,jdbcType=DECIMAL},
      gainloss_ratio_2y = #{gainlossRatio2y,jdbcType=DECIMAL},
      gainloss_ratio_3y = #{gainlossRatio3y,jdbcType=DECIMAL},
      gainloss_ratio_4y = #{gainlossRatio4y,jdbcType=DECIMAL},
      gainloss_ratio_5y = #{gainlossRatio5y,jdbcType=DECIMAL},
      gainloss_ratio_10y = #{gainlossRatio10y,jdbcType=DECIMAL},
      gainloss_ratio_incep = #{gainlossRatioIncep,jdbcType=DECIMAL},
      gainloss_ratio_ytd = #{gainlossRatioYtd,jdbcType=DECIMAL},
      longestdown_months_1y = #{longestdownMonths1y,jdbcType=INTEGER},
      longestdown_months_2y = #{longestdownMonths2y,jdbcType=INTEGER},
      longestdown_months_3y = #{longestdownMonths3y,jdbcType=INTEGER},
      longestdown_months_4y = #{longestdownMonths4y,jdbcType=INTEGER},
      longestdown_months_5y = #{longestdownMonths5y,jdbcType=INTEGER},
      longestdown_months_10y = #{longestdownMonths10y,jdbcType=INTEGER},
      longestdown_months_incep = #{longestdownMonthsIncep,jdbcType=INTEGER},
      longestdown_months_ytd = #{longestdownMonthsYtd,jdbcType=INTEGER},
      maxdrawdown_3m = #{maxdrawdown3m,jdbcType=DECIMAL},
      maxdrawdown_ytd = #{maxdrawdownYtd,jdbcType=DECIMAL},
      maxdrawdown_months_ytd = #{maxdrawdownMonthsYtd,jdbcType=DECIMAL},
      maxdrawdown_peakdate_ytd = #{maxdrawdownPeakdateYtd,jdbcType=DECIMAL},
      maxdrawdown_valleydate_ytd = #{maxdrawdownValleydateYtd,jdbcType=DECIMAL},
      maxdrawdown_1y = #{maxdrawdown1y,jdbcType=DECIMAL},
      maxdrawdown_months_1y = #{maxdrawdownMonths1y,jdbcType=INTEGER},
      maxdrawdown_peakdate_1y = #{maxdrawdownPeakdate1y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_1y = #{maxdrawdownValleydate1y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_1y = #{maxdrawdownRecoverydate1y,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_1y = #{maxdrawdownRecoverymonths1y,jdbcType=INTEGER},
      maxdrawdown_2y = #{maxdrawdown2y,jdbcType=DECIMAL},
      maxdrawdown_months_2y = #{maxdrawdownMonths2y,jdbcType=INTEGER},
      maxdrawdown_peakdate_2y = #{maxdrawdownPeakdate2y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_2y = #{maxdrawdownValleydate2y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_2y = #{maxdrawdownRecoverydate2y,jdbcType=INTEGER},
      maxdrawdown_recoverymonths_2y = #{maxdrawdownRecoverymonths2y,jdbcType=INTEGER},
      maxdrawdown_3y = #{maxdrawdown3y,jdbcType=DECIMAL},
      maxdrawdown_months_3y = #{maxdrawdownMonths3y,jdbcType=INTEGER},
      maxdrawdown_peakdate_3y = #{maxdrawdownPeakdate3y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_3y = #{maxdrawdownValleydate3y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_3y = #{maxdrawdownRecoverydate3y,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_3y = #{maxdrawdownRecoverymonths3y,jdbcType=INTEGER},
      maxdrawdown_4y = #{maxdrawdown4y,jdbcType=DECIMAL},
      maxdrawdown_months_4y = #{maxdrawdownMonths4y,jdbcType=INTEGER},
      maxdrawdown_peakdate_4y = #{maxdrawdownPeakdate4y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_4y = #{maxdrawdownValleydate4y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_4y = #{maxdrawdownRecoverydate4y,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_4y = #{maxdrawdownRecoverymonths4y,jdbcType=INTEGER},
      maxdrawdown_5y = #{maxdrawdown5y,jdbcType=DECIMAL},
      maxdrawdown_10y = #{maxdrawdown10y,jdbcType=DECIMAL},
      maxdrawdown_months_5y = #{maxdrawdownMonths5y,jdbcType=INTEGER},
      maxdrawdown_peakdate_5y = #{maxdrawdownPeakdate5y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_5y = #{maxdrawdownValleydate5y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_5y = #{maxdrawdownRecoverydate5y,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_5y = #{maxdrawdownRecoverymonths5y,jdbcType=INTEGER},
      maxdrawdown_months_10y = #{maxdrawdownMonths10y,jdbcType=INTEGER},
      maxdrawdown_peakdate_10y = #{maxdrawdownPeakdate10y,jdbcType=VARCHAR},
      maxdrawdown_valleydate_10y = #{maxdrawdownValleydate10y,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_10y = #{maxdrawdownRecoverydate10y,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_10y = #{maxdrawdownRecoverymonths10y,jdbcType=INTEGER},
      maxdrawdown_incep = #{maxdrawdownIncep,jdbcType=DECIMAL},
      maxdrawdown_months_incep = #{maxdrawdownMonthsIncep,jdbcType=INTEGER},
      maxdrawdown_peakdate_incep = #{maxdrawdownPeakdateIncep,jdbcType=VARCHAR},
      maxdrawdown_valleydate_incep = #{maxdrawdownValleydateIncep,jdbcType=VARCHAR},
      maxdrawdown_recoverydate_incep = #{maxdrawdownRecoverydateIncep,jdbcType=VARCHAR},
      maxdrawdown_recoverymonths_incep = #{maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      delete_tag = #{deleteTag,jdbcType=INTEGER}
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateBatch" parameterType="java.util.List">
    <!--@mbg.generated-->
    update tx_fund_risk_stats
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="fund_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.fundId,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="end_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.endDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="stddev_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="stddev_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="stddev_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="stddev_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="stddev_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="stddev_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.stddev10y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="stddev_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.stddevIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="stddev_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.stddevYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downsidedev_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downsidedev1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downsidedev_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downsidedev2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downsidedev_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downsidedev3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downsidedev_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downsidedev4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downsidedev_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downsidedev5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downsidedev_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downsidedev10y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downsidedev_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downsidedevIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downsidedev_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downsidedevYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="alpha_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.alpha1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="alpha_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.alpha2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="alpha_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.alpha3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="alpha_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.alpha4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="alpha_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.alpha5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="alpha_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.alpha10y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="alpha_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.alphaIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="alpha_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.alphaYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="beta_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.beta1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="beta_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.beta2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="beta_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.beta3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="beta_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.beta4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="beta_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.beta5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="beta_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.beta10y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="beta_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.betaIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="beta_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.betaYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="r2_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.r21y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="r2_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.r22y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="r2_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.r23y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="r2_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.r24y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="r2_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.r25y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="r2_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.r210y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="r2_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.r2Incep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="r2_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.r2Ytd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="skewness_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.skewness1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="skewness_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.skewness2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="skewness_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.skewness3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="skewness_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.skewness4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="skewness_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.skewness5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="skewness_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.skewness10y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="skewness_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.skewnessIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="skewness_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.skewnessYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="kurtosis_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.kurtosis1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="kurtosis_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.kurtosis2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="kurtosis_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.kurtosis3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="kurtosis_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.kurtosis4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="kurtosis_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.kurtosis5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="kurtosis_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.kurtosis10y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="kurtosis_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.kurtosisIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="kurtosis_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.kurtosisYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="worstmonth_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.worstmonth1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="worstmonth_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.worstmonth2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="worstmonth_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.worstmonth3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="worstmonth_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.worstmonth4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="worstmonth_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.worstmonth5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="worstmonth_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.worstmonth10y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="worstmonth_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.worstmonthIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="worstmonth_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.worstmonthYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downmonth_percent_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downmonthPercent1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downmonth_percent_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downmonthPercent2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downmonth_percent_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downmonthPercent3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downmonth_percent_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downmonthPercent4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downmonth_percent_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downmonthPercent5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downmonth_percent_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downmonthPercent10y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downmonth_percent_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downmonthPercentIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="downmonth_percent_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.downmonthPercentYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="battingaverage_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.battingaverage1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="battingaverage_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.battingaverage2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="battingaverage_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.battingaverage3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="battingaverage_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.battingaverage4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="battingaverage_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.battingaverage5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="battingaverage_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.battingaverage10y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="battingaverage_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.battingaverageIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="battingaverage_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.battingaverageYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="gainloss_ratio_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.gainlossRatio1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="gainloss_ratio_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.gainlossRatio2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="gainloss_ratio_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.gainlossRatio3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="gainloss_ratio_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.gainlossRatio4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="gainloss_ratio_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.gainlossRatio5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="gainloss_ratio_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.gainlossRatio10y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="gainloss_ratio_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.gainlossRatioIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="gainloss_ratio_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.gainlossRatioYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="longestdown_months_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.longestdownMonths1y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="longestdown_months_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.longestdownMonths2y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="longestdown_months_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.longestdownMonths3y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="longestdown_months_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.longestdownMonths4y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="longestdown_months_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.longestdownMonths5y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="longestdown_months_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.longestdownMonths10y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="longestdown_months_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.longestdownMonthsIncep,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="longestdown_months_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.longestdownMonthsYtd,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_3m = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown3m,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_months_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownMonthsYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_peakdate_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownPeakdateYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_valleydate_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownValleydateYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_months_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownMonths1y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_peakdate_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownPeakdate1y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_valleydate_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownValleydate1y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverydate_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverydate1y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverymonths_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverymonths1y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_months_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownMonths2y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_peakdate_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownPeakdate2y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_valleydate_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownValleydate2y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverydate_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverydate2y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverymonths_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverymonths2y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_months_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownMonths3y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_peakdate_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownPeakdate3y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_valleydate_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownValleydate3y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverydate_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverydate3y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverymonths_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverymonths3y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_months_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownMonths4y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_peakdate_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownPeakdate4y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_valleydate_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownValleydate4y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverydate_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverydate4y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverymonths_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverymonths4y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdown10y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_months_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownMonths5y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_peakdate_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownPeakdate5y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_valleydate_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownValleydate5y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverydate_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverydate5y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverymonths_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverymonths5y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_months_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownMonths10y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_peakdate_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownPeakdate10y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_valleydate_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownValleydate10y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverydate_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverydate10y,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverymonths_10y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverymonths10y,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_months_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownMonthsIncep,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_peakdate_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownPeakdateIncep,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_valleydate_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownValleydateIncep,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverydate_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverydateIncep,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="maxdrawdown_recoverymonths_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="update_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="create_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="delete_tag = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
        </foreach>
      </trim>
    </trim>
    where id in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.id,jdbcType=VARCHAR}
    </foreach>
  </update>
  <insert id="batchInsert" parameterType="map">
    <!--@mbg.generated-->
    insert into tx_fund_risk_stats
    (id, fund_id, end_date, stddev_1y, stddev_2y, stddev_3y, stddev_4y, stddev_5y, stddev_10y, 
      stddev_incep, stddev_ytd, downsidedev_1y, downsidedev_2y, downsidedev_3y, downsidedev_4y, 
      downsidedev_5y, downsidedev_10y, downsidedev_incep, downsidedev_ytd, alpha_1y, 
      alpha_2y, alpha_3y, alpha_4y, alpha_5y, alpha_10y, alpha_incep, alpha_ytd, beta_1y, 
      beta_2y, beta_3y, beta_4y, beta_5y, beta_10y, beta_incep, beta_ytd, r2_1y, r2_2y, 
      r2_3y, r2_4y, r2_5y, r2_10y, r2_incep, r2_ytd, skewness_1y, skewness_2y, skewness_3y, 
      skewness_4y, skewness_5y, skewness_10y, skewness_incep, skewness_ytd, kurtosis_1y, 
      kurtosis_2y, kurtosis_3y, kurtosis_4y, kurtosis_5y, kurtosis_10y, kurtosis_incep, 
      kurtosis_ytd, worstmonth_1y, worstmonth_2y, worstmonth_3y, worstmonth_4y, worstmonth_5y, 
      worstmonth_10y, worstmonth_incep, worstmonth_ytd, downmonth_percent_1y, downmonth_percent_2y, 
      downmonth_percent_3y, downmonth_percent_4y, downmonth_percent_5y, downmonth_percent_10y, 
      downmonth_percent_incep, downmonth_percent_ytd, battingaverage_1y, battingaverage_2y, 
      battingaverage_3y, battingaverage_4y, battingaverage_5y, battingaverage_10y, battingaverage_incep, 
      battingaverage_ytd, gainloss_ratio_1y, gainloss_ratio_2y, gainloss_ratio_3y, gainloss_ratio_4y, 
      gainloss_ratio_5y, gainloss_ratio_10y, gainloss_ratio_incep, gainloss_ratio_ytd, 
      longestdown_months_1y, longestdown_months_2y, longestdown_months_3y, longestdown_months_4y, 
      longestdown_months_5y, longestdown_months_10y, longestdown_months_incep, longestdown_months_ytd, 
      maxdrawdown_3m, maxdrawdown_ytd, maxdrawdown_months_ytd, maxdrawdown_peakdate_ytd, 
      maxdrawdown_valleydate_ytd, maxdrawdown_1y, maxdrawdown_months_1y, maxdrawdown_peakdate_1y, 
      maxdrawdown_valleydate_1y, maxdrawdown_recoverydate_1y, maxdrawdown_recoverymonths_1y, 
      maxdrawdown_2y, maxdrawdown_months_2y, maxdrawdown_peakdate_2y, maxdrawdown_valleydate_2y, 
      maxdrawdown_recoverydate_2y, maxdrawdown_recoverymonths_2y, maxdrawdown_3y, maxdrawdown_months_3y, 
      maxdrawdown_peakdate_3y, maxdrawdown_valleydate_3y, maxdrawdown_recoverydate_3y, 
      maxdrawdown_recoverymonths_3y, maxdrawdown_4y, maxdrawdown_months_4y, maxdrawdown_peakdate_4y, 
      maxdrawdown_valleydate_4y, maxdrawdown_recoverydate_4y, maxdrawdown_recoverymonths_4y, 
      maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_months_5y, maxdrawdown_peakdate_5y, 
      maxdrawdown_valleydate_5y, maxdrawdown_recoverydate_5y, maxdrawdown_recoverymonths_5y, 
      maxdrawdown_months_10y, maxdrawdown_peakdate_10y, maxdrawdown_valleydate_10y, maxdrawdown_recoverydate_10y, 
      maxdrawdown_recoverymonths_10y, maxdrawdown_incep, maxdrawdown_months_incep, maxdrawdown_peakdate_incep, 
      maxdrawdown_valleydate_incep, maxdrawdown_recoverydate_incep, maxdrawdown_recoverymonths_incep, 
      update_time, create_time, delete_tag)
    values
    <foreach collection="list" item="item" separator=",">
      (#{item.id,jdbcType=VARCHAR}, #{item.fundId,jdbcType=VARCHAR}, #{item.endDate,jdbcType=DATE}, 
        #{item.stddev1y,jdbcType=DECIMAL}, #{item.stddev2y,jdbcType=DECIMAL}, #{item.stddev3y,jdbcType=DECIMAL}, 
        #{item.stddev4y,jdbcType=DECIMAL}, #{item.stddev5y,jdbcType=DECIMAL}, #{item.stddev10y,jdbcType=DECIMAL}, 
        #{item.stddevIncep,jdbcType=DECIMAL}, #{item.stddevYtd,jdbcType=DECIMAL}, #{item.downsidedev1y,jdbcType=DECIMAL}, 
        #{item.downsidedev2y,jdbcType=DECIMAL}, #{item.downsidedev3y,jdbcType=DECIMAL}, 
        #{item.downsidedev4y,jdbcType=DECIMAL}, #{item.downsidedev5y,jdbcType=DECIMAL}, 
        #{item.downsidedev10y,jdbcType=DECIMAL}, #{item.downsidedevIncep,jdbcType=DECIMAL}, 
        #{item.downsidedevYtd,jdbcType=DECIMAL}, #{item.alpha1y,jdbcType=DECIMAL}, #{item.alpha2y,jdbcType=DECIMAL}, 
        #{item.alpha3y,jdbcType=DECIMAL}, #{item.alpha4y,jdbcType=DECIMAL}, #{item.alpha5y,jdbcType=DECIMAL}, 
        #{item.alpha10y,jdbcType=DECIMAL}, #{item.alphaIncep,jdbcType=DECIMAL}, #{item.alphaYtd,jdbcType=DECIMAL}, 
        #{item.beta1y,jdbcType=DECIMAL}, #{item.beta2y,jdbcType=DECIMAL}, #{item.beta3y,jdbcType=DECIMAL}, 
        #{item.beta4y,jdbcType=DECIMAL}, #{item.beta5y,jdbcType=DECIMAL}, #{item.beta10y,jdbcType=DECIMAL}, 
        #{item.betaIncep,jdbcType=DECIMAL}, #{item.betaYtd,jdbcType=DECIMAL}, #{item.r21y,jdbcType=DECIMAL}, 
        #{item.r22y,jdbcType=DECIMAL}, #{item.r23y,jdbcType=DECIMAL}, #{item.r24y,jdbcType=DECIMAL}, 
        #{item.r25y,jdbcType=DECIMAL}, #{item.r210y,jdbcType=DECIMAL}, #{item.r2Incep,jdbcType=DECIMAL}, 
        #{item.r2Ytd,jdbcType=DECIMAL}, #{item.skewness1y,jdbcType=DECIMAL}, #{item.skewness2y,jdbcType=DECIMAL}, 
        #{item.skewness3y,jdbcType=DECIMAL}, #{item.skewness4y,jdbcType=DECIMAL}, #{item.skewness5y,jdbcType=DECIMAL}, 
        #{item.skewness10y,jdbcType=DECIMAL}, #{item.skewnessIncep,jdbcType=DECIMAL}, #{item.skewnessYtd,jdbcType=DECIMAL}, 
        #{item.kurtosis1y,jdbcType=DECIMAL}, #{item.kurtosis2y,jdbcType=DECIMAL}, #{item.kurtosis3y,jdbcType=DECIMAL}, 
        #{item.kurtosis4y,jdbcType=DECIMAL}, #{item.kurtosis5y,jdbcType=DECIMAL}, #{item.kurtosis10y,jdbcType=DECIMAL}, 
        #{item.kurtosisIncep,jdbcType=DECIMAL}, #{item.kurtosisYtd,jdbcType=DECIMAL}, #{item.worstmonth1y,jdbcType=DECIMAL}, 
        #{item.worstmonth2y,jdbcType=DECIMAL}, #{item.worstmonth3y,jdbcType=DECIMAL}, #{item.worstmonth4y,jdbcType=DECIMAL}, 
        #{item.worstmonth5y,jdbcType=DECIMAL}, #{item.worstmonth10y,jdbcType=DECIMAL}, 
        #{item.worstmonthIncep,jdbcType=DECIMAL}, #{item.worstmonthYtd,jdbcType=DECIMAL}, 
        #{item.downmonthPercent1y,jdbcType=DECIMAL}, #{item.downmonthPercent2y,jdbcType=DECIMAL}, 
        #{item.downmonthPercent3y,jdbcType=DECIMAL}, #{item.downmonthPercent4y,jdbcType=DECIMAL}, 
        #{item.downmonthPercent5y,jdbcType=DECIMAL}, #{item.downmonthPercent10y,jdbcType=DECIMAL}, 
        #{item.downmonthPercentIncep,jdbcType=DECIMAL}, #{item.downmonthPercentYtd,jdbcType=DECIMAL}, 
        #{item.battingaverage1y,jdbcType=DECIMAL}, #{item.battingaverage2y,jdbcType=DECIMAL}, 
        #{item.battingaverage3y,jdbcType=DECIMAL}, #{item.battingaverage4y,jdbcType=DECIMAL}, 
        #{item.battingaverage5y,jdbcType=DECIMAL}, #{item.battingaverage10y,jdbcType=DECIMAL}, 
        #{item.battingaverageIncep,jdbcType=DECIMAL}, #{item.battingaverageYtd,jdbcType=DECIMAL}, 
        #{item.gainlossRatio1y,jdbcType=DECIMAL}, #{item.gainlossRatio2y,jdbcType=DECIMAL}, 
        #{item.gainlossRatio3y,jdbcType=DECIMAL}, #{item.gainlossRatio4y,jdbcType=DECIMAL}, 
        #{item.gainlossRatio5y,jdbcType=DECIMAL}, #{item.gainlossRatio10y,jdbcType=DECIMAL}, 
        #{item.gainlossRatioIncep,jdbcType=DECIMAL}, #{item.gainlossRatioYtd,jdbcType=DECIMAL}, 
        #{item.longestdownMonths1y,jdbcType=INTEGER}, #{item.longestdownMonths2y,jdbcType=INTEGER}, 
        #{item.longestdownMonths3y,jdbcType=INTEGER}, #{item.longestdownMonths4y,jdbcType=INTEGER}, 
        #{item.longestdownMonths5y,jdbcType=INTEGER}, #{item.longestdownMonths10y,jdbcType=INTEGER}, 
        #{item.longestdownMonthsIncep,jdbcType=INTEGER}, #{item.longestdownMonthsYtd,jdbcType=INTEGER}, 
        #{item.maxdrawdown3m,jdbcType=DECIMAL}, #{item.maxdrawdownYtd,jdbcType=DECIMAL}, 
        #{item.maxdrawdownMonthsYtd,jdbcType=DECIMAL}, #{item.maxdrawdownPeakdateYtd,jdbcType=DECIMAL}, 
        #{item.maxdrawdownValleydateYtd,jdbcType=DECIMAL}, #{item.maxdrawdown1y,jdbcType=DECIMAL}, 
        #{item.maxdrawdownMonths1y,jdbcType=INTEGER}, #{item.maxdrawdownPeakdate1y,jdbcType=VARCHAR}, 
        #{item.maxdrawdownValleydate1y,jdbcType=VARCHAR}, #{item.maxdrawdownRecoverydate1y,jdbcType=VARCHAR}, 
        #{item.maxdrawdownRecoverymonths1y,jdbcType=INTEGER}, #{item.maxdrawdown2y,jdbcType=DECIMAL}, 
        #{item.maxdrawdownMonths2y,jdbcType=INTEGER}, #{item.maxdrawdownPeakdate2y,jdbcType=VARCHAR}, 
        #{item.maxdrawdownValleydate2y,jdbcType=VARCHAR}, #{item.maxdrawdownRecoverydate2y,jdbcType=INTEGER}, 
        #{item.maxdrawdownRecoverymonths2y,jdbcType=INTEGER}, #{item.maxdrawdown3y,jdbcType=DECIMAL}, 
        #{item.maxdrawdownMonths3y,jdbcType=INTEGER}, #{item.maxdrawdownPeakdate3y,jdbcType=VARCHAR}, 
        #{item.maxdrawdownValleydate3y,jdbcType=VARCHAR}, #{item.maxdrawdownRecoverydate3y,jdbcType=VARCHAR}, 
        #{item.maxdrawdownRecoverymonths3y,jdbcType=INTEGER}, #{item.maxdrawdown4y,jdbcType=DECIMAL}, 
        #{item.maxdrawdownMonths4y,jdbcType=INTEGER}, #{item.maxdrawdownPeakdate4y,jdbcType=VARCHAR}, 
        #{item.maxdrawdownValleydate4y,jdbcType=VARCHAR}, #{item.maxdrawdownRecoverydate4y,jdbcType=VARCHAR}, 
        #{item.maxdrawdownRecoverymonths4y,jdbcType=INTEGER}, #{item.maxdrawdown5y,jdbcType=DECIMAL}, 
        #{item.maxdrawdown10y,jdbcType=DECIMAL}, #{item.maxdrawdownMonths5y,jdbcType=INTEGER}, 
        #{item.maxdrawdownPeakdate5y,jdbcType=VARCHAR}, #{item.maxdrawdownValleydate5y,jdbcType=VARCHAR}, 
        #{item.maxdrawdownRecoverydate5y,jdbcType=VARCHAR}, #{item.maxdrawdownRecoverymonths5y,jdbcType=INTEGER}, 
        #{item.maxdrawdownMonths10y,jdbcType=INTEGER}, #{item.maxdrawdownPeakdate10y,jdbcType=VARCHAR}, 
        #{item.maxdrawdownValleydate10y,jdbcType=VARCHAR}, #{item.maxdrawdownRecoverydate10y,jdbcType=VARCHAR}, 
        #{item.maxdrawdownRecoverymonths10y,jdbcType=INTEGER}, #{item.maxdrawdownIncep,jdbcType=DECIMAL}, 
        #{item.maxdrawdownMonthsIncep,jdbcType=INTEGER}, #{item.maxdrawdownPeakdateIncep,jdbcType=VARCHAR}, 
        #{item.maxdrawdownValleydateIncep,jdbcType=VARCHAR}, #{item.maxdrawdownRecoverydateIncep,jdbcType=VARCHAR}, 
        #{item.maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER}, #{item.updateTime,jdbcType=TIMESTAMP}, 
        #{item.createTime,jdbcType=TIMESTAMP}, #{item.deleteTag,jdbcType=INTEGER})
    </foreach>
  </insert>
  <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.TxFundRiskStats">
    <!--@mbg.generated-->
    insert into tx_fund_risk_stats
    (id, fund_id, end_date, stddev_1y, stddev_2y, stddev_3y, stddev_4y, stddev_5y, stddev_10y, 
      stddev_incep, stddev_ytd, downsidedev_1y, downsidedev_2y, downsidedev_3y, downsidedev_4y, 
      downsidedev_5y, downsidedev_10y, downsidedev_incep, downsidedev_ytd, alpha_1y, 
      alpha_2y, alpha_3y, alpha_4y, alpha_5y, alpha_10y, alpha_incep, alpha_ytd, beta_1y, 
      beta_2y, beta_3y, beta_4y, beta_5y, beta_10y, beta_incep, beta_ytd, r2_1y, r2_2y, 
      r2_3y, r2_4y, r2_5y, r2_10y, r2_incep, r2_ytd, skewness_1y, skewness_2y, skewness_3y, 
      skewness_4y, skewness_5y, skewness_10y, skewness_incep, skewness_ytd, kurtosis_1y, 
      kurtosis_2y, kurtosis_3y, kurtosis_4y, kurtosis_5y, kurtosis_10y, kurtosis_incep, 
      kurtosis_ytd, worstmonth_1y, worstmonth_2y, worstmonth_3y, worstmonth_4y, worstmonth_5y, 
      worstmonth_10y, worstmonth_incep, worstmonth_ytd, downmonth_percent_1y, downmonth_percent_2y, 
      downmonth_percent_3y, downmonth_percent_4y, downmonth_percent_5y, downmonth_percent_10y, 
      downmonth_percent_incep, downmonth_percent_ytd, battingaverage_1y, battingaverage_2y, 
      battingaverage_3y, battingaverage_4y, battingaverage_5y, battingaverage_10y, battingaverage_incep, 
      battingaverage_ytd, gainloss_ratio_1y, gainloss_ratio_2y, gainloss_ratio_3y, gainloss_ratio_4y, 
      gainloss_ratio_5y, gainloss_ratio_10y, gainloss_ratio_incep, gainloss_ratio_ytd, 
      longestdown_months_1y, longestdown_months_2y, longestdown_months_3y, longestdown_months_4y, 
      longestdown_months_5y, longestdown_months_10y, longestdown_months_incep, longestdown_months_ytd, 
      maxdrawdown_3m, maxdrawdown_ytd, maxdrawdown_months_ytd, maxdrawdown_peakdate_ytd, 
      maxdrawdown_valleydate_ytd, maxdrawdown_1y, maxdrawdown_months_1y, maxdrawdown_peakdate_1y, 
      maxdrawdown_valleydate_1y, maxdrawdown_recoverydate_1y, maxdrawdown_recoverymonths_1y, 
      maxdrawdown_2y, maxdrawdown_months_2y, maxdrawdown_peakdate_2y, maxdrawdown_valleydate_2y, 
      maxdrawdown_recoverydate_2y, maxdrawdown_recoverymonths_2y, maxdrawdown_3y, maxdrawdown_months_3y, 
      maxdrawdown_peakdate_3y, maxdrawdown_valleydate_3y, maxdrawdown_recoverydate_3y, 
      maxdrawdown_recoverymonths_3y, maxdrawdown_4y, maxdrawdown_months_4y, maxdrawdown_peakdate_4y, 
      maxdrawdown_valleydate_4y, maxdrawdown_recoverydate_4y, maxdrawdown_recoverymonths_4y, 
      maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_months_5y, maxdrawdown_peakdate_5y, 
      maxdrawdown_valleydate_5y, maxdrawdown_recoverydate_5y, maxdrawdown_recoverymonths_5y, 
      maxdrawdown_months_10y, maxdrawdown_peakdate_10y, maxdrawdown_valleydate_10y, maxdrawdown_recoverydate_10y, 
      maxdrawdown_recoverymonths_10y, maxdrawdown_incep, maxdrawdown_months_incep, maxdrawdown_peakdate_incep, 
      maxdrawdown_valleydate_incep, maxdrawdown_recoverydate_incep, maxdrawdown_recoverymonths_incep, 
      update_time, create_time, delete_tag)
    values
    (#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{endDate,jdbcType=DATE}, #{stddev1y,jdbcType=DECIMAL}, 
      #{stddev2y,jdbcType=DECIMAL}, #{stddev3y,jdbcType=DECIMAL}, #{stddev4y,jdbcType=DECIMAL}, 
      #{stddev5y,jdbcType=DECIMAL}, #{stddev10y,jdbcType=DECIMAL}, #{stddevIncep,jdbcType=DECIMAL}, 
      #{stddevYtd,jdbcType=DECIMAL}, #{downsidedev1y,jdbcType=DECIMAL}, #{downsidedev2y,jdbcType=DECIMAL}, 
      #{downsidedev3y,jdbcType=DECIMAL}, #{downsidedev4y,jdbcType=DECIMAL}, #{downsidedev5y,jdbcType=DECIMAL}, 
      #{downsidedev10y,jdbcType=DECIMAL}, #{downsidedevIncep,jdbcType=DECIMAL}, #{downsidedevYtd,jdbcType=DECIMAL}, 
      #{alpha1y,jdbcType=DECIMAL}, #{alpha2y,jdbcType=DECIMAL}, #{alpha3y,jdbcType=DECIMAL}, 
      #{alpha4y,jdbcType=DECIMAL}, #{alpha5y,jdbcType=DECIMAL}, #{alpha10y,jdbcType=DECIMAL}, 
      #{alphaIncep,jdbcType=DECIMAL}, #{alphaYtd,jdbcType=DECIMAL}, #{beta1y,jdbcType=DECIMAL}, 
      #{beta2y,jdbcType=DECIMAL}, #{beta3y,jdbcType=DECIMAL}, #{beta4y,jdbcType=DECIMAL}, 
      #{beta5y,jdbcType=DECIMAL}, #{beta10y,jdbcType=DECIMAL}, #{betaIncep,jdbcType=DECIMAL}, 
      #{betaYtd,jdbcType=DECIMAL}, #{r21y,jdbcType=DECIMAL}, #{r22y,jdbcType=DECIMAL}, 
      #{r23y,jdbcType=DECIMAL}, #{r24y,jdbcType=DECIMAL}, #{r25y,jdbcType=DECIMAL}, #{r210y,jdbcType=DECIMAL}, 
      #{r2Incep,jdbcType=DECIMAL}, #{r2Ytd,jdbcType=DECIMAL}, #{skewness1y,jdbcType=DECIMAL}, 
      #{skewness2y,jdbcType=DECIMAL}, #{skewness3y,jdbcType=DECIMAL}, #{skewness4y,jdbcType=DECIMAL}, 
      #{skewness5y,jdbcType=DECIMAL}, #{skewness10y,jdbcType=DECIMAL}, #{skewnessIncep,jdbcType=DECIMAL}, 
      #{skewnessYtd,jdbcType=DECIMAL}, #{kurtosis1y,jdbcType=DECIMAL}, #{kurtosis2y,jdbcType=DECIMAL}, 
      #{kurtosis3y,jdbcType=DECIMAL}, #{kurtosis4y,jdbcType=DECIMAL}, #{kurtosis5y,jdbcType=DECIMAL}, 
      #{kurtosis10y,jdbcType=DECIMAL}, #{kurtosisIncep,jdbcType=DECIMAL}, #{kurtosisYtd,jdbcType=DECIMAL}, 
      #{worstmonth1y,jdbcType=DECIMAL}, #{worstmonth2y,jdbcType=DECIMAL}, #{worstmonth3y,jdbcType=DECIMAL}, 
      #{worstmonth4y,jdbcType=DECIMAL}, #{worstmonth5y,jdbcType=DECIMAL}, #{worstmonth10y,jdbcType=DECIMAL}, 
      #{worstmonthIncep,jdbcType=DECIMAL}, #{worstmonthYtd,jdbcType=DECIMAL}, #{downmonthPercent1y,jdbcType=DECIMAL}, 
      #{downmonthPercent2y,jdbcType=DECIMAL}, #{downmonthPercent3y,jdbcType=DECIMAL}, 
      #{downmonthPercent4y,jdbcType=DECIMAL}, #{downmonthPercent5y,jdbcType=DECIMAL}, 
      #{downmonthPercent10y,jdbcType=DECIMAL}, #{downmonthPercentIncep,jdbcType=DECIMAL}, 
      #{downmonthPercentYtd,jdbcType=DECIMAL}, #{battingaverage1y,jdbcType=DECIMAL}, 
      #{battingaverage2y,jdbcType=DECIMAL}, #{battingaverage3y,jdbcType=DECIMAL}, #{battingaverage4y,jdbcType=DECIMAL}, 
      #{battingaverage5y,jdbcType=DECIMAL}, #{battingaverage10y,jdbcType=DECIMAL}, #{battingaverageIncep,jdbcType=DECIMAL}, 
      #{battingaverageYtd,jdbcType=DECIMAL}, #{gainlossRatio1y,jdbcType=DECIMAL}, #{gainlossRatio2y,jdbcType=DECIMAL}, 
      #{gainlossRatio3y,jdbcType=DECIMAL}, #{gainlossRatio4y,jdbcType=DECIMAL}, #{gainlossRatio5y,jdbcType=DECIMAL}, 
      #{gainlossRatio10y,jdbcType=DECIMAL}, #{gainlossRatioIncep,jdbcType=DECIMAL}, #{gainlossRatioYtd,jdbcType=DECIMAL}, 
      #{longestdownMonths1y,jdbcType=INTEGER}, #{longestdownMonths2y,jdbcType=INTEGER}, 
      #{longestdownMonths3y,jdbcType=INTEGER}, #{longestdownMonths4y,jdbcType=INTEGER}, 
      #{longestdownMonths5y,jdbcType=INTEGER}, #{longestdownMonths10y,jdbcType=INTEGER}, 
      #{longestdownMonthsIncep,jdbcType=INTEGER}, #{longestdownMonthsYtd,jdbcType=INTEGER}, 
      #{maxdrawdown3m,jdbcType=DECIMAL}, #{maxdrawdownYtd,jdbcType=DECIMAL}, #{maxdrawdownMonthsYtd,jdbcType=DECIMAL}, 
      #{maxdrawdownPeakdateYtd,jdbcType=DECIMAL}, #{maxdrawdownValleydateYtd,jdbcType=DECIMAL}, 
      #{maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdownMonths1y,jdbcType=INTEGER}, #{maxdrawdownPeakdate1y,jdbcType=VARCHAR}, 
      #{maxdrawdownValleydate1y,jdbcType=VARCHAR}, #{maxdrawdownRecoverydate1y,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverymonths1y,jdbcType=INTEGER}, #{maxdrawdown2y,jdbcType=DECIMAL}, 
      #{maxdrawdownMonths2y,jdbcType=INTEGER}, #{maxdrawdownPeakdate2y,jdbcType=VARCHAR}, 
      #{maxdrawdownValleydate2y,jdbcType=VARCHAR}, #{maxdrawdownRecoverydate2y,jdbcType=INTEGER}, 
      #{maxdrawdownRecoverymonths2y,jdbcType=INTEGER}, #{maxdrawdown3y,jdbcType=DECIMAL}, 
      #{maxdrawdownMonths3y,jdbcType=INTEGER}, #{maxdrawdownPeakdate3y,jdbcType=VARCHAR}, 
      #{maxdrawdownValleydate3y,jdbcType=VARCHAR}, #{maxdrawdownRecoverydate3y,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverymonths3y,jdbcType=INTEGER}, #{maxdrawdown4y,jdbcType=DECIMAL}, 
      #{maxdrawdownMonths4y,jdbcType=INTEGER}, #{maxdrawdownPeakdate4y,jdbcType=VARCHAR}, 
      #{maxdrawdownValleydate4y,jdbcType=VARCHAR}, #{maxdrawdownRecoverydate4y,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverymonths4y,jdbcType=INTEGER}, #{maxdrawdown5y,jdbcType=DECIMAL}, 
      #{maxdrawdown10y,jdbcType=DECIMAL}, #{maxdrawdownMonths5y,jdbcType=INTEGER}, #{maxdrawdownPeakdate5y,jdbcType=VARCHAR}, 
      #{maxdrawdownValleydate5y,jdbcType=VARCHAR}, #{maxdrawdownRecoverydate5y,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverymonths5y,jdbcType=INTEGER}, #{maxdrawdownMonths10y,jdbcType=INTEGER}, 
      #{maxdrawdownPeakdate10y,jdbcType=VARCHAR}, #{maxdrawdownValleydate10y,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverydate10y,jdbcType=VARCHAR}, #{maxdrawdownRecoverymonths10y,jdbcType=INTEGER}, 
      #{maxdrawdownIncep,jdbcType=DECIMAL}, #{maxdrawdownMonthsIncep,jdbcType=INTEGER}, 
      #{maxdrawdownPeakdateIncep,jdbcType=VARCHAR}, #{maxdrawdownValleydateIncep,jdbcType=VARCHAR}, 
      #{maxdrawdownRecoverydateIncep,jdbcType=VARCHAR}, #{maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}
      )
    on duplicate key update 
    id = #{id,jdbcType=VARCHAR}, 
    fund_id = #{fundId,jdbcType=VARCHAR}, 
    end_date = #{endDate,jdbcType=DATE}, 
    stddev_1y = #{stddev1y,jdbcType=DECIMAL}, 
    stddev_2y = #{stddev2y,jdbcType=DECIMAL}, 
    stddev_3y = #{stddev3y,jdbcType=DECIMAL}, 
    stddev_4y = #{stddev4y,jdbcType=DECIMAL}, 
    stddev_5y = #{stddev5y,jdbcType=DECIMAL}, 
    stddev_10y = #{stddev10y,jdbcType=DECIMAL}, 
    stddev_incep = #{stddevIncep,jdbcType=DECIMAL}, 
    stddev_ytd = #{stddevYtd,jdbcType=DECIMAL}, 
    downsidedev_1y = #{downsidedev1y,jdbcType=DECIMAL}, 
    downsidedev_2y = #{downsidedev2y,jdbcType=DECIMAL}, 
    downsidedev_3y = #{downsidedev3y,jdbcType=DECIMAL}, 
    downsidedev_4y = #{downsidedev4y,jdbcType=DECIMAL}, 
    downsidedev_5y = #{downsidedev5y,jdbcType=DECIMAL}, 
    downsidedev_10y = #{downsidedev10y,jdbcType=DECIMAL}, 
    downsidedev_incep = #{downsidedevIncep,jdbcType=DECIMAL}, 
    downsidedev_ytd = #{downsidedevYtd,jdbcType=DECIMAL}, 
    alpha_1y = #{alpha1y,jdbcType=DECIMAL}, 
    alpha_2y = #{alpha2y,jdbcType=DECIMAL}, 
    alpha_3y = #{alpha3y,jdbcType=DECIMAL}, 
    alpha_4y = #{alpha4y,jdbcType=DECIMAL}, 
    alpha_5y = #{alpha5y,jdbcType=DECIMAL}, 
    alpha_10y = #{alpha10y,jdbcType=DECIMAL}, 
    alpha_incep = #{alphaIncep,jdbcType=DECIMAL}, 
    alpha_ytd = #{alphaYtd,jdbcType=DECIMAL}, 
    beta_1y = #{beta1y,jdbcType=DECIMAL}, 
    beta_2y = #{beta2y,jdbcType=DECIMAL}, 
    beta_3y = #{beta3y,jdbcType=DECIMAL}, 
    beta_4y = #{beta4y,jdbcType=DECIMAL}, 
    beta_5y = #{beta5y,jdbcType=DECIMAL}, 
    beta_10y = #{beta10y,jdbcType=DECIMAL}, 
    beta_incep = #{betaIncep,jdbcType=DECIMAL}, 
    beta_ytd = #{betaYtd,jdbcType=DECIMAL}, 
    r2_1y = #{r21y,jdbcType=DECIMAL}, 
    r2_2y = #{r22y,jdbcType=DECIMAL}, 
    r2_3y = #{r23y,jdbcType=DECIMAL}, 
    r2_4y = #{r24y,jdbcType=DECIMAL}, 
    r2_5y = #{r25y,jdbcType=DECIMAL}, 
    r2_10y = #{r210y,jdbcType=DECIMAL}, 
    r2_incep = #{r2Incep,jdbcType=DECIMAL}, 
    r2_ytd = #{r2Ytd,jdbcType=DECIMAL}, 
    skewness_1y = #{skewness1y,jdbcType=DECIMAL}, 
    skewness_2y = #{skewness2y,jdbcType=DECIMAL}, 
    skewness_3y = #{skewness3y,jdbcType=DECIMAL}, 
    skewness_4y = #{skewness4y,jdbcType=DECIMAL}, 
    skewness_5y = #{skewness5y,jdbcType=DECIMAL}, 
    skewness_10y = #{skewness10y,jdbcType=DECIMAL}, 
    skewness_incep = #{skewnessIncep,jdbcType=DECIMAL}, 
    skewness_ytd = #{skewnessYtd,jdbcType=DECIMAL}, 
    kurtosis_1y = #{kurtosis1y,jdbcType=DECIMAL}, 
    kurtosis_2y = #{kurtosis2y,jdbcType=DECIMAL}, 
    kurtosis_3y = #{kurtosis3y,jdbcType=DECIMAL}, 
    kurtosis_4y = #{kurtosis4y,jdbcType=DECIMAL}, 
    kurtosis_5y = #{kurtosis5y,jdbcType=DECIMAL}, 
    kurtosis_10y = #{kurtosis10y,jdbcType=DECIMAL}, 
    kurtosis_incep = #{kurtosisIncep,jdbcType=DECIMAL}, 
    kurtosis_ytd = #{kurtosisYtd,jdbcType=DECIMAL}, 
    worstmonth_1y = #{worstmonth1y,jdbcType=DECIMAL}, 
    worstmonth_2y = #{worstmonth2y,jdbcType=DECIMAL}, 
    worstmonth_3y = #{worstmonth3y,jdbcType=DECIMAL}, 
    worstmonth_4y = #{worstmonth4y,jdbcType=DECIMAL}, 
    worstmonth_5y = #{worstmonth5y,jdbcType=DECIMAL}, 
    worstmonth_10y = #{worstmonth10y,jdbcType=DECIMAL}, 
    worstmonth_incep = #{worstmonthIncep,jdbcType=DECIMAL}, 
    worstmonth_ytd = #{worstmonthYtd,jdbcType=DECIMAL}, 
    downmonth_percent_1y = #{downmonthPercent1y,jdbcType=DECIMAL}, 
    downmonth_percent_2y = #{downmonthPercent2y,jdbcType=DECIMAL}, 
    downmonth_percent_3y = #{downmonthPercent3y,jdbcType=DECIMAL}, 
    downmonth_percent_4y = #{downmonthPercent4y,jdbcType=DECIMAL}, 
    downmonth_percent_5y = #{downmonthPercent5y,jdbcType=DECIMAL}, 
    downmonth_percent_10y = #{downmonthPercent10y,jdbcType=DECIMAL}, 
    downmonth_percent_incep = #{downmonthPercentIncep,jdbcType=DECIMAL}, 
    downmonth_percent_ytd = #{downmonthPercentYtd,jdbcType=DECIMAL}, 
    battingaverage_1y = #{battingaverage1y,jdbcType=DECIMAL}, 
    battingaverage_2y = #{battingaverage2y,jdbcType=DECIMAL}, 
    battingaverage_3y = #{battingaverage3y,jdbcType=DECIMAL}, 
    battingaverage_4y = #{battingaverage4y,jdbcType=DECIMAL}, 
    battingaverage_5y = #{battingaverage5y,jdbcType=DECIMAL}, 
    battingaverage_10y = #{battingaverage10y,jdbcType=DECIMAL}, 
    battingaverage_incep = #{battingaverageIncep,jdbcType=DECIMAL}, 
    battingaverage_ytd = #{battingaverageYtd,jdbcType=DECIMAL}, 
    gainloss_ratio_1y = #{gainlossRatio1y,jdbcType=DECIMAL}, 
    gainloss_ratio_2y = #{gainlossRatio2y,jdbcType=DECIMAL}, 
    gainloss_ratio_3y = #{gainlossRatio3y,jdbcType=DECIMAL}, 
    gainloss_ratio_4y = #{gainlossRatio4y,jdbcType=DECIMAL}, 
    gainloss_ratio_5y = #{gainlossRatio5y,jdbcType=DECIMAL}, 
    gainloss_ratio_10y = #{gainlossRatio10y,jdbcType=DECIMAL}, 
    gainloss_ratio_incep = #{gainlossRatioIncep,jdbcType=DECIMAL}, 
    gainloss_ratio_ytd = #{gainlossRatioYtd,jdbcType=DECIMAL}, 
    longestdown_months_1y = #{longestdownMonths1y,jdbcType=INTEGER}, 
    longestdown_months_2y = #{longestdownMonths2y,jdbcType=INTEGER}, 
    longestdown_months_3y = #{longestdownMonths3y,jdbcType=INTEGER}, 
    longestdown_months_4y = #{longestdownMonths4y,jdbcType=INTEGER}, 
    longestdown_months_5y = #{longestdownMonths5y,jdbcType=INTEGER}, 
    longestdown_months_10y = #{longestdownMonths10y,jdbcType=INTEGER}, 
    longestdown_months_incep = #{longestdownMonthsIncep,jdbcType=INTEGER}, 
    longestdown_months_ytd = #{longestdownMonthsYtd,jdbcType=INTEGER}, 
    maxdrawdown_3m = #{maxdrawdown3m,jdbcType=DECIMAL}, 
    maxdrawdown_ytd = #{maxdrawdownYtd,jdbcType=DECIMAL}, 
    maxdrawdown_months_ytd = #{maxdrawdownMonthsYtd,jdbcType=DECIMAL}, 
    maxdrawdown_peakdate_ytd = #{maxdrawdownPeakdateYtd,jdbcType=DECIMAL}, 
    maxdrawdown_valleydate_ytd = #{maxdrawdownValleydateYtd,jdbcType=DECIMAL}, 
    maxdrawdown_1y = #{maxdrawdown1y,jdbcType=DECIMAL}, 
    maxdrawdown_months_1y = #{maxdrawdownMonths1y,jdbcType=INTEGER}, 
    maxdrawdown_peakdate_1y = #{maxdrawdownPeakdate1y,jdbcType=VARCHAR}, 
    maxdrawdown_valleydate_1y = #{maxdrawdownValleydate1y,jdbcType=VARCHAR}, 
    maxdrawdown_recoverydate_1y = #{maxdrawdownRecoverydate1y,jdbcType=VARCHAR}, 
    maxdrawdown_recoverymonths_1y = #{maxdrawdownRecoverymonths1y,jdbcType=INTEGER}, 
    maxdrawdown_2y = #{maxdrawdown2y,jdbcType=DECIMAL}, 
    maxdrawdown_months_2y = #{maxdrawdownMonths2y,jdbcType=INTEGER}, 
    maxdrawdown_peakdate_2y = #{maxdrawdownPeakdate2y,jdbcType=VARCHAR}, 
    maxdrawdown_valleydate_2y = #{maxdrawdownValleydate2y,jdbcType=VARCHAR}, 
    maxdrawdown_recoverydate_2y = #{maxdrawdownRecoverydate2y,jdbcType=INTEGER}, 
    maxdrawdown_recoverymonths_2y = #{maxdrawdownRecoverymonths2y,jdbcType=INTEGER}, 
    maxdrawdown_3y = #{maxdrawdown3y,jdbcType=DECIMAL}, 
    maxdrawdown_months_3y = #{maxdrawdownMonths3y,jdbcType=INTEGER}, 
    maxdrawdown_peakdate_3y = #{maxdrawdownPeakdate3y,jdbcType=VARCHAR}, 
    maxdrawdown_valleydate_3y = #{maxdrawdownValleydate3y,jdbcType=VARCHAR}, 
    maxdrawdown_recoverydate_3y = #{maxdrawdownRecoverydate3y,jdbcType=VARCHAR}, 
    maxdrawdown_recoverymonths_3y = #{maxdrawdownRecoverymonths3y,jdbcType=INTEGER}, 
    maxdrawdown_4y = #{maxdrawdown4y,jdbcType=DECIMAL}, 
    maxdrawdown_months_4y = #{maxdrawdownMonths4y,jdbcType=INTEGER}, 
    maxdrawdown_peakdate_4y = #{maxdrawdownPeakdate4y,jdbcType=VARCHAR}, 
    maxdrawdown_valleydate_4y = #{maxdrawdownValleydate4y,jdbcType=VARCHAR}, 
    maxdrawdown_recoverydate_4y = #{maxdrawdownRecoverydate4y,jdbcType=VARCHAR}, 
    maxdrawdown_recoverymonths_4y = #{maxdrawdownRecoverymonths4y,jdbcType=INTEGER}, 
    maxdrawdown_5y = #{maxdrawdown5y,jdbcType=DECIMAL}, 
    maxdrawdown_10y = #{maxdrawdown10y,jdbcType=DECIMAL}, 
    maxdrawdown_months_5y = #{maxdrawdownMonths5y,jdbcType=INTEGER}, 
    maxdrawdown_peakdate_5y = #{maxdrawdownPeakdate5y,jdbcType=VARCHAR}, 
    maxdrawdown_valleydate_5y = #{maxdrawdownValleydate5y,jdbcType=VARCHAR}, 
    maxdrawdown_recoverydate_5y = #{maxdrawdownRecoverydate5y,jdbcType=VARCHAR}, 
    maxdrawdown_recoverymonths_5y = #{maxdrawdownRecoverymonths5y,jdbcType=INTEGER}, 
    maxdrawdown_months_10y = #{maxdrawdownMonths10y,jdbcType=INTEGER}, 
    maxdrawdown_peakdate_10y = #{maxdrawdownPeakdate10y,jdbcType=VARCHAR}, 
    maxdrawdown_valleydate_10y = #{maxdrawdownValleydate10y,jdbcType=VARCHAR}, 
    maxdrawdown_recoverydate_10y = #{maxdrawdownRecoverydate10y,jdbcType=VARCHAR}, 
    maxdrawdown_recoverymonths_10y = #{maxdrawdownRecoverymonths10y,jdbcType=INTEGER}, 
    maxdrawdown_incep = #{maxdrawdownIncep,jdbcType=DECIMAL}, 
    maxdrawdown_months_incep = #{maxdrawdownMonthsIncep,jdbcType=INTEGER}, 
    maxdrawdown_peakdate_incep = #{maxdrawdownPeakdateIncep,jdbcType=VARCHAR}, 
    maxdrawdown_valleydate_incep = #{maxdrawdownValleydateIncep,jdbcType=VARCHAR}, 
    maxdrawdown_recoverydate_incep = #{maxdrawdownRecoverydateIncep,jdbcType=VARCHAR}, 
    maxdrawdown_recoverymonths_incep = #{maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    delete_tag = #{deleteTag,jdbcType=INTEGER}
  </insert>
  <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.TxFundRiskStats">
    <!--@mbg.generated-->
    insert into tx_fund_risk_stats
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="fundId != null">
        fund_id,
      </if>
      <if test="endDate != null">
        end_date,
      </if>
      <if test="stddev1y != null">
        stddev_1y,
      </if>
      <if test="stddev2y != null">
        stddev_2y,
      </if>
      <if test="stddev3y != null">
        stddev_3y,
      </if>
      <if test="stddev4y != null">
        stddev_4y,
      </if>
      <if test="stddev5y != null">
        stddev_5y,
      </if>
      <if test="stddev10y != null">
        stddev_10y,
      </if>
      <if test="stddevIncep != null">
        stddev_incep,
      </if>
      <if test="stddevYtd != null">
        stddev_ytd,
      </if>
      <if test="downsidedev1y != null">
        downsidedev_1y,
      </if>
      <if test="downsidedev2y != null">
        downsidedev_2y,
      </if>
      <if test="downsidedev3y != null">
        downsidedev_3y,
      </if>
      <if test="downsidedev4y != null">
        downsidedev_4y,
      </if>
      <if test="downsidedev5y != null">
        downsidedev_5y,
      </if>
      <if test="downsidedev10y != null">
        downsidedev_10y,
      </if>
      <if test="downsidedevIncep != null">
        downsidedev_incep,
      </if>
      <if test="downsidedevYtd != null">
        downsidedev_ytd,
      </if>
      <if test="alpha1y != null">
        alpha_1y,
      </if>
      <if test="alpha2y != null">
        alpha_2y,
      </if>
      <if test="alpha3y != null">
        alpha_3y,
      </if>
      <if test="alpha4y != null">
        alpha_4y,
      </if>
      <if test="alpha5y != null">
        alpha_5y,
      </if>
      <if test="alpha10y != null">
        alpha_10y,
      </if>
      <if test="alphaIncep != null">
        alpha_incep,
      </if>
      <if test="alphaYtd != null">
        alpha_ytd,
      </if>
      <if test="beta1y != null">
        beta_1y,
      </if>
      <if test="beta2y != null">
        beta_2y,
      </if>
      <if test="beta3y != null">
        beta_3y,
      </if>
      <if test="beta4y != null">
        beta_4y,
      </if>
      <if test="beta5y != null">
        beta_5y,
      </if>
      <if test="beta10y != null">
        beta_10y,
      </if>
      <if test="betaIncep != null">
        beta_incep,
      </if>
      <if test="betaYtd != null">
        beta_ytd,
      </if>
      <if test="r21y != null">
        r2_1y,
      </if>
      <if test="r22y != null">
        r2_2y,
      </if>
      <if test="r23y != null">
        r2_3y,
      </if>
      <if test="r24y != null">
        r2_4y,
      </if>
      <if test="r25y != null">
        r2_5y,
      </if>
      <if test="r210y != null">
        r2_10y,
      </if>
      <if test="r2Incep != null">
        r2_incep,
      </if>
      <if test="r2Ytd != null">
        r2_ytd,
      </if>
      <if test="skewness1y != null">
        skewness_1y,
      </if>
      <if test="skewness2y != null">
        skewness_2y,
      </if>
      <if test="skewness3y != null">
        skewness_3y,
      </if>
      <if test="skewness4y != null">
        skewness_4y,
      </if>
      <if test="skewness5y != null">
        skewness_5y,
      </if>
      <if test="skewness10y != null">
        skewness_10y,
      </if>
      <if test="skewnessIncep != null">
        skewness_incep,
      </if>
      <if test="skewnessYtd != null">
        skewness_ytd,
      </if>
      <if test="kurtosis1y != null">
        kurtosis_1y,
      </if>
      <if test="kurtosis2y != null">
        kurtosis_2y,
      </if>
      <if test="kurtosis3y != null">
        kurtosis_3y,
      </if>
      <if test="kurtosis4y != null">
        kurtosis_4y,
      </if>
      <if test="kurtosis5y != null">
        kurtosis_5y,
      </if>
      <if test="kurtosis10y != null">
        kurtosis_10y,
      </if>
      <if test="kurtosisIncep != null">
        kurtosis_incep,
      </if>
      <if test="kurtosisYtd != null">
        kurtosis_ytd,
      </if>
      <if test="worstmonth1y != null">
        worstmonth_1y,
      </if>
      <if test="worstmonth2y != null">
        worstmonth_2y,
      </if>
      <if test="worstmonth3y != null">
        worstmonth_3y,
      </if>
      <if test="worstmonth4y != null">
        worstmonth_4y,
      </if>
      <if test="worstmonth5y != null">
        worstmonth_5y,
      </if>
      <if test="worstmonth10y != null">
        worstmonth_10y,
      </if>
      <if test="worstmonthIncep != null">
        worstmonth_incep,
      </if>
      <if test="worstmonthYtd != null">
        worstmonth_ytd,
      </if>
      <if test="downmonthPercent1y != null">
        downmonth_percent_1y,
      </if>
      <if test="downmonthPercent2y != null">
        downmonth_percent_2y,
      </if>
      <if test="downmonthPercent3y != null">
        downmonth_percent_3y,
      </if>
      <if test="downmonthPercent4y != null">
        downmonth_percent_4y,
      </if>
      <if test="downmonthPercent5y != null">
        downmonth_percent_5y,
      </if>
      <if test="downmonthPercent10y != null">
        downmonth_percent_10y,
      </if>
      <if test="downmonthPercentIncep != null">
        downmonth_percent_incep,
      </if>
      <if test="downmonthPercentYtd != null">
        downmonth_percent_ytd,
      </if>
      <if test="battingaverage1y != null">
        battingaverage_1y,
      </if>
      <if test="battingaverage2y != null">
        battingaverage_2y,
      </if>
      <if test="battingaverage3y != null">
        battingaverage_3y,
      </if>
      <if test="battingaverage4y != null">
        battingaverage_4y,
      </if>
      <if test="battingaverage5y != null">
        battingaverage_5y,
      </if>
      <if test="battingaverage10y != null">
        battingaverage_10y,
      </if>
      <if test="battingaverageIncep != null">
        battingaverage_incep,
      </if>
      <if test="battingaverageYtd != null">
        battingaverage_ytd,
      </if>
      <if test="gainlossRatio1y != null">
        gainloss_ratio_1y,
      </if>
      <if test="gainlossRatio2y != null">
        gainloss_ratio_2y,
      </if>
      <if test="gainlossRatio3y != null">
        gainloss_ratio_3y,
      </if>
      <if test="gainlossRatio4y != null">
        gainloss_ratio_4y,
      </if>
      <if test="gainlossRatio5y != null">
        gainloss_ratio_5y,
      </if>
      <if test="gainlossRatio10y != null">
        gainloss_ratio_10y,
      </if>
      <if test="gainlossRatioIncep != null">
        gainloss_ratio_incep,
      </if>
      <if test="gainlossRatioYtd != null">
        gainloss_ratio_ytd,
      </if>
      <if test="longestdownMonths1y != null">
        longestdown_months_1y,
      </if>
      <if test="longestdownMonths2y != null">
        longestdown_months_2y,
      </if>
      <if test="longestdownMonths3y != null">
        longestdown_months_3y,
      </if>
      <if test="longestdownMonths4y != null">
        longestdown_months_4y,
      </if>
      <if test="longestdownMonths5y != null">
        longestdown_months_5y,
      </if>
      <if test="longestdownMonths10y != null">
        longestdown_months_10y,
      </if>
      <if test="longestdownMonthsIncep != null">
        longestdown_months_incep,
      </if>
      <if test="longestdownMonthsYtd != null">
        longestdown_months_ytd,
      </if>
      <if test="maxdrawdown3m != null">
        maxdrawdown_3m,
      </if>
      <if test="maxdrawdownYtd != null">
        maxdrawdown_ytd,
      </if>
      <if test="maxdrawdownMonthsYtd != null">
        maxdrawdown_months_ytd,
      </if>
      <if test="maxdrawdownPeakdateYtd != null">
        maxdrawdown_peakdate_ytd,
      </if>
      <if test="maxdrawdownValleydateYtd != null">
        maxdrawdown_valleydate_ytd,
      </if>
      <if test="maxdrawdown1y != null">
        maxdrawdown_1y,
      </if>
      <if test="maxdrawdownMonths1y != null">
        maxdrawdown_months_1y,
      </if>
      <if test="maxdrawdownPeakdate1y != null">
        maxdrawdown_peakdate_1y,
      </if>
      <if test="maxdrawdownValleydate1y != null">
        maxdrawdown_valleydate_1y,
      </if>
      <if test="maxdrawdownRecoverydate1y != null">
        maxdrawdown_recoverydate_1y,
      </if>
      <if test="maxdrawdownRecoverymonths1y != null">
        maxdrawdown_recoverymonths_1y,
      </if>
      <if test="maxdrawdown2y != null">
        maxdrawdown_2y,
      </if>
      <if test="maxdrawdownMonths2y != null">
        maxdrawdown_months_2y,
      </if>
      <if test="maxdrawdownPeakdate2y != null">
        maxdrawdown_peakdate_2y,
      </if>
      <if test="maxdrawdownValleydate2y != null">
        maxdrawdown_valleydate_2y,
      </if>
      <if test="maxdrawdownRecoverydate2y != null">
        maxdrawdown_recoverydate_2y,
      </if>
      <if test="maxdrawdownRecoverymonths2y != null">
        maxdrawdown_recoverymonths_2y,
      </if>
      <if test="maxdrawdown3y != null">
        maxdrawdown_3y,
      </if>
      <if test="maxdrawdownMonths3y != null">
        maxdrawdown_months_3y,
      </if>
      <if test="maxdrawdownPeakdate3y != null">
        maxdrawdown_peakdate_3y,
      </if>
      <if test="maxdrawdownValleydate3y != null">
        maxdrawdown_valleydate_3y,
      </if>
      <if test="maxdrawdownRecoverydate3y != null">
        maxdrawdown_recoverydate_3y,
      </if>
      <if test="maxdrawdownRecoverymonths3y != null">
        maxdrawdown_recoverymonths_3y,
      </if>
      <if test="maxdrawdown4y != null">
        maxdrawdown_4y,
      </if>
      <if test="maxdrawdownMonths4y != null">
        maxdrawdown_months_4y,
      </if>
      <if test="maxdrawdownPeakdate4y != null">
        maxdrawdown_peakdate_4y,
      </if>
      <if test="maxdrawdownValleydate4y != null">
        maxdrawdown_valleydate_4y,
      </if>
      <if test="maxdrawdownRecoverydate4y != null">
        maxdrawdown_recoverydate_4y,
      </if>
      <if test="maxdrawdownRecoverymonths4y != null">
        maxdrawdown_recoverymonths_4y,
      </if>
      <if test="maxdrawdown5y != null">
        maxdrawdown_5y,
      </if>
      <if test="maxdrawdown10y != null">
        maxdrawdown_10y,
      </if>
      <if test="maxdrawdownMonths5y != null">
        maxdrawdown_months_5y,
      </if>
      <if test="maxdrawdownPeakdate5y != null">
        maxdrawdown_peakdate_5y,
      </if>
      <if test="maxdrawdownValleydate5y != null">
        maxdrawdown_valleydate_5y,
      </if>
      <if test="maxdrawdownRecoverydate5y != null">
        maxdrawdown_recoverydate_5y,
      </if>
      <if test="maxdrawdownRecoverymonths5y != null">
        maxdrawdown_recoverymonths_5y,
      </if>
      <if test="maxdrawdownMonths10y != null">
        maxdrawdown_months_10y,
      </if>
      <if test="maxdrawdownPeakdate10y != null">
        maxdrawdown_peakdate_10y,
      </if>
      <if test="maxdrawdownValleydate10y != null">
        maxdrawdown_valleydate_10y,
      </if>
      <if test="maxdrawdownRecoverydate10y != null">
        maxdrawdown_recoverydate_10y,
      </if>
      <if test="maxdrawdownRecoverymonths10y != null">
        maxdrawdown_recoverymonths_10y,
      </if>
      <if test="maxdrawdownIncep != null">
        maxdrawdown_incep,
      </if>
      <if test="maxdrawdownMonthsIncep != null">
        maxdrawdown_months_incep,
      </if>
      <if test="maxdrawdownPeakdateIncep != null">
        maxdrawdown_peakdate_incep,
      </if>
      <if test="maxdrawdownValleydateIncep != null">
        maxdrawdown_valleydate_incep,
      </if>
      <if test="maxdrawdownRecoverydateIncep != null">
        maxdrawdown_recoverydate_incep,
      </if>
      <if test="maxdrawdownRecoverymonthsIncep != null">
        maxdrawdown_recoverymonths_incep,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="deleteTag != null">
        delete_tag,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="fundId != null">
        #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="endDate != null">
        #{endDate,jdbcType=DATE},
      </if>
      <if test="stddev1y != null">
        #{stddev1y,jdbcType=DECIMAL},
      </if>
      <if test="stddev2y != null">
        #{stddev2y,jdbcType=DECIMAL},
      </if>
      <if test="stddev3y != null">
        #{stddev3y,jdbcType=DECIMAL},
      </if>
      <if test="stddev4y != null">
        #{stddev4y,jdbcType=DECIMAL},
      </if>
      <if test="stddev5y != null">
        #{stddev5y,jdbcType=DECIMAL},
      </if>
      <if test="stddev10y != null">
        #{stddev10y,jdbcType=DECIMAL},
      </if>
      <if test="stddevIncep != null">
        #{stddevIncep,jdbcType=DECIMAL},
      </if>
      <if test="stddevYtd != null">
        #{stddevYtd,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev1y != null">
        #{downsidedev1y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev2y != null">
        #{downsidedev2y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev3y != null">
        #{downsidedev3y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev4y != null">
        #{downsidedev4y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev5y != null">
        #{downsidedev5y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev10y != null">
        #{downsidedev10y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedevIncep != null">
        #{downsidedevIncep,jdbcType=DECIMAL},
      </if>
      <if test="downsidedevYtd != null">
        #{downsidedevYtd,jdbcType=DECIMAL},
      </if>
      <if test="alpha1y != null">
        #{alpha1y,jdbcType=DECIMAL},
      </if>
      <if test="alpha2y != null">
        #{alpha2y,jdbcType=DECIMAL},
      </if>
      <if test="alpha3y != null">
        #{alpha3y,jdbcType=DECIMAL},
      </if>
      <if test="alpha4y != null">
        #{alpha4y,jdbcType=DECIMAL},
      </if>
      <if test="alpha5y != null">
        #{alpha5y,jdbcType=DECIMAL},
      </if>
      <if test="alpha10y != null">
        #{alpha10y,jdbcType=DECIMAL},
      </if>
      <if test="alphaIncep != null">
        #{alphaIncep,jdbcType=DECIMAL},
      </if>
      <if test="alphaYtd != null">
        #{alphaYtd,jdbcType=DECIMAL},
      </if>
      <if test="beta1y != null">
        #{beta1y,jdbcType=DECIMAL},
      </if>
      <if test="beta2y != null">
        #{beta2y,jdbcType=DECIMAL},
      </if>
      <if test="beta3y != null">
        #{beta3y,jdbcType=DECIMAL},
      </if>
      <if test="beta4y != null">
        #{beta4y,jdbcType=DECIMAL},
      </if>
      <if test="beta5y != null">
        #{beta5y,jdbcType=DECIMAL},
      </if>
      <if test="beta10y != null">
        #{beta10y,jdbcType=DECIMAL},
      </if>
      <if test="betaIncep != null">
        #{betaIncep,jdbcType=DECIMAL},
      </if>
      <if test="betaYtd != null">
        #{betaYtd,jdbcType=DECIMAL},
      </if>
      <if test="r21y != null">
        #{r21y,jdbcType=DECIMAL},
      </if>
      <if test="r22y != null">
        #{r22y,jdbcType=DECIMAL},
      </if>
      <if test="r23y != null">
        #{r23y,jdbcType=DECIMAL},
      </if>
      <if test="r24y != null">
        #{r24y,jdbcType=DECIMAL},
      </if>
      <if test="r25y != null">
        #{r25y,jdbcType=DECIMAL},
      </if>
      <if test="r210y != null">
        #{r210y,jdbcType=DECIMAL},
      </if>
      <if test="r2Incep != null">
        #{r2Incep,jdbcType=DECIMAL},
      </if>
      <if test="r2Ytd != null">
        #{r2Ytd,jdbcType=DECIMAL},
      </if>
      <if test="skewness1y != null">
        #{skewness1y,jdbcType=DECIMAL},
      </if>
      <if test="skewness2y != null">
        #{skewness2y,jdbcType=DECIMAL},
      </if>
      <if test="skewness3y != null">
        #{skewness3y,jdbcType=DECIMAL},
      </if>
      <if test="skewness4y != null">
        #{skewness4y,jdbcType=DECIMAL},
      </if>
      <if test="skewness5y != null">
        #{skewness5y,jdbcType=DECIMAL},
      </if>
      <if test="skewness10y != null">
        #{skewness10y,jdbcType=DECIMAL},
      </if>
      <if test="skewnessIncep != null">
        #{skewnessIncep,jdbcType=DECIMAL},
      </if>
      <if test="skewnessYtd != null">
        #{skewnessYtd,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis1y != null">
        #{kurtosis1y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis2y != null">
        #{kurtosis2y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis3y != null">
        #{kurtosis3y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis4y != null">
        #{kurtosis4y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis5y != null">
        #{kurtosis5y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis10y != null">
        #{kurtosis10y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosisIncep != null">
        #{kurtosisIncep,jdbcType=DECIMAL},
      </if>
      <if test="kurtosisYtd != null">
        #{kurtosisYtd,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth1y != null">
        #{worstmonth1y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth2y != null">
        #{worstmonth2y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth3y != null">
        #{worstmonth3y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth4y != null">
        #{worstmonth4y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth5y != null">
        #{worstmonth5y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth10y != null">
        #{worstmonth10y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonthIncep != null">
        #{worstmonthIncep,jdbcType=DECIMAL},
      </if>
      <if test="worstmonthYtd != null">
        #{worstmonthYtd,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent1y != null">
        #{downmonthPercent1y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent2y != null">
        #{downmonthPercent2y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent3y != null">
        #{downmonthPercent3y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent4y != null">
        #{downmonthPercent4y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent5y != null">
        #{downmonthPercent5y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent10y != null">
        #{downmonthPercent10y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercentIncep != null">
        #{downmonthPercentIncep,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercentYtd != null">
        #{downmonthPercentYtd,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage1y != null">
        #{battingaverage1y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage2y != null">
        #{battingaverage2y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage3y != null">
        #{battingaverage3y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage4y != null">
        #{battingaverage4y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage5y != null">
        #{battingaverage5y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage10y != null">
        #{battingaverage10y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverageIncep != null">
        #{battingaverageIncep,jdbcType=DECIMAL},
      </if>
      <if test="battingaverageYtd != null">
        #{battingaverageYtd,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio1y != null">
        #{gainlossRatio1y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio2y != null">
        #{gainlossRatio2y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio3y != null">
        #{gainlossRatio3y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio4y != null">
        #{gainlossRatio4y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio5y != null">
        #{gainlossRatio5y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio10y != null">
        #{gainlossRatio10y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatioIncep != null">
        #{gainlossRatioIncep,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatioYtd != null">
        #{gainlossRatioYtd,jdbcType=DECIMAL},
      </if>
      <if test="longestdownMonths1y != null">
        #{longestdownMonths1y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths2y != null">
        #{longestdownMonths2y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths3y != null">
        #{longestdownMonths3y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths4y != null">
        #{longestdownMonths4y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths5y != null">
        #{longestdownMonths5y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths10y != null">
        #{longestdownMonths10y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonthsIncep != null">
        #{longestdownMonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonthsYtd != null">
        #{longestdownMonthsYtd,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown3m != null">
        #{maxdrawdown3m,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownYtd != null">
        #{maxdrawdownYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonthsYtd != null">
        #{maxdrawdownMonthsYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownPeakdateYtd != null">
        #{maxdrawdownPeakdateYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownValleydateYtd != null">
        #{maxdrawdownValleydateYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown1y != null">
        #{maxdrawdown1y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths1y != null">
        #{maxdrawdownMonths1y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate1y != null">
        #{maxdrawdownPeakdate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate1y != null">
        #{maxdrawdownValleydate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate1y != null">
        #{maxdrawdownRecoverydate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths1y != null">
        #{maxdrawdownRecoverymonths1y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown2y != null">
        #{maxdrawdown2y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths2y != null">
        #{maxdrawdownMonths2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate2y != null">
        #{maxdrawdownPeakdate2y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate2y != null">
        #{maxdrawdownValleydate2y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate2y != null">
        #{maxdrawdownRecoverydate2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownRecoverymonths2y != null">
        #{maxdrawdownRecoverymonths2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown3y != null">
        #{maxdrawdown3y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths3y != null">
        #{maxdrawdownMonths3y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate3y != null">
        #{maxdrawdownPeakdate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate3y != null">
        #{maxdrawdownValleydate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate3y != null">
        #{maxdrawdownRecoverydate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths3y != null">
        #{maxdrawdownRecoverymonths3y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown4y != null">
        #{maxdrawdown4y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths4y != null">
        #{maxdrawdownMonths4y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate4y != null">
        #{maxdrawdownPeakdate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate4y != null">
        #{maxdrawdownValleydate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate4y != null">
        #{maxdrawdownRecoverydate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths4y != null">
        #{maxdrawdownRecoverymonths4y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown5y != null">
        #{maxdrawdown5y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown10y != null">
        #{maxdrawdown10y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths5y != null">
        #{maxdrawdownMonths5y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate5y != null">
        #{maxdrawdownPeakdate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate5y != null">
        #{maxdrawdownValleydate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate5y != null">
        #{maxdrawdownRecoverydate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths5y != null">
        #{maxdrawdownRecoverymonths5y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownMonths10y != null">
        #{maxdrawdownMonths10y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate10y != null">
        #{maxdrawdownPeakdate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate10y != null">
        #{maxdrawdownValleydate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate10y != null">
        #{maxdrawdownRecoverydate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths10y != null">
        #{maxdrawdownRecoverymonths10y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownIncep != null">
        #{maxdrawdownIncep,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonthsIncep != null">
        #{maxdrawdownMonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdateIncep != null">
        #{maxdrawdownPeakdateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydateIncep != null">
        #{maxdrawdownValleydateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydateIncep != null">
        #{maxdrawdownRecoverydateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonthsIncep != null">
        #{maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
        id = #{id,jdbcType=VARCHAR},
      </if>
      <if test="fundId != null">
        fund_id = #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="endDate != null">
        end_date = #{endDate,jdbcType=DATE},
      </if>
      <if test="stddev1y != null">
        stddev_1y = #{stddev1y,jdbcType=DECIMAL},
      </if>
      <if test="stddev2y != null">
        stddev_2y = #{stddev2y,jdbcType=DECIMAL},
      </if>
      <if test="stddev3y != null">
        stddev_3y = #{stddev3y,jdbcType=DECIMAL},
      </if>
      <if test="stddev4y != null">
        stddev_4y = #{stddev4y,jdbcType=DECIMAL},
      </if>
      <if test="stddev5y != null">
        stddev_5y = #{stddev5y,jdbcType=DECIMAL},
      </if>
      <if test="stddev10y != null">
        stddev_10y = #{stddev10y,jdbcType=DECIMAL},
      </if>
      <if test="stddevIncep != null">
        stddev_incep = #{stddevIncep,jdbcType=DECIMAL},
      </if>
      <if test="stddevYtd != null">
        stddev_ytd = #{stddevYtd,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev1y != null">
        downsidedev_1y = #{downsidedev1y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev2y != null">
        downsidedev_2y = #{downsidedev2y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev3y != null">
        downsidedev_3y = #{downsidedev3y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev4y != null">
        downsidedev_4y = #{downsidedev4y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev5y != null">
        downsidedev_5y = #{downsidedev5y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedev10y != null">
        downsidedev_10y = #{downsidedev10y,jdbcType=DECIMAL},
      </if>
      <if test="downsidedevIncep != null">
        downsidedev_incep = #{downsidedevIncep,jdbcType=DECIMAL},
      </if>
      <if test="downsidedevYtd != null">
        downsidedev_ytd = #{downsidedevYtd,jdbcType=DECIMAL},
      </if>
      <if test="alpha1y != null">
        alpha_1y = #{alpha1y,jdbcType=DECIMAL},
      </if>
      <if test="alpha2y != null">
        alpha_2y = #{alpha2y,jdbcType=DECIMAL},
      </if>
      <if test="alpha3y != null">
        alpha_3y = #{alpha3y,jdbcType=DECIMAL},
      </if>
      <if test="alpha4y != null">
        alpha_4y = #{alpha4y,jdbcType=DECIMAL},
      </if>
      <if test="alpha5y != null">
        alpha_5y = #{alpha5y,jdbcType=DECIMAL},
      </if>
      <if test="alpha10y != null">
        alpha_10y = #{alpha10y,jdbcType=DECIMAL},
      </if>
      <if test="alphaIncep != null">
        alpha_incep = #{alphaIncep,jdbcType=DECIMAL},
      </if>
      <if test="alphaYtd != null">
        alpha_ytd = #{alphaYtd,jdbcType=DECIMAL},
      </if>
      <if test="beta1y != null">
        beta_1y = #{beta1y,jdbcType=DECIMAL},
      </if>
      <if test="beta2y != null">
        beta_2y = #{beta2y,jdbcType=DECIMAL},
      </if>
      <if test="beta3y != null">
        beta_3y = #{beta3y,jdbcType=DECIMAL},
      </if>
      <if test="beta4y != null">
        beta_4y = #{beta4y,jdbcType=DECIMAL},
      </if>
      <if test="beta5y != null">
        beta_5y = #{beta5y,jdbcType=DECIMAL},
      </if>
      <if test="beta10y != null">
        beta_10y = #{beta10y,jdbcType=DECIMAL},
      </if>
      <if test="betaIncep != null">
        beta_incep = #{betaIncep,jdbcType=DECIMAL},
      </if>
      <if test="betaYtd != null">
        beta_ytd = #{betaYtd,jdbcType=DECIMAL},
      </if>
      <if test="r21y != null">
        r2_1y = #{r21y,jdbcType=DECIMAL},
      </if>
      <if test="r22y != null">
        r2_2y = #{r22y,jdbcType=DECIMAL},
      </if>
      <if test="r23y != null">
        r2_3y = #{r23y,jdbcType=DECIMAL},
      </if>
      <if test="r24y != null">
        r2_4y = #{r24y,jdbcType=DECIMAL},
      </if>
      <if test="r25y != null">
        r2_5y = #{r25y,jdbcType=DECIMAL},
      </if>
      <if test="r210y != null">
        r2_10y = #{r210y,jdbcType=DECIMAL},
      </if>
      <if test="r2Incep != null">
        r2_incep = #{r2Incep,jdbcType=DECIMAL},
      </if>
      <if test="r2Ytd != null">
        r2_ytd = #{r2Ytd,jdbcType=DECIMAL},
      </if>
      <if test="skewness1y != null">
        skewness_1y = #{skewness1y,jdbcType=DECIMAL},
      </if>
      <if test="skewness2y != null">
        skewness_2y = #{skewness2y,jdbcType=DECIMAL},
      </if>
      <if test="skewness3y != null">
        skewness_3y = #{skewness3y,jdbcType=DECIMAL},
      </if>
      <if test="skewness4y != null">
        skewness_4y = #{skewness4y,jdbcType=DECIMAL},
      </if>
      <if test="skewness5y != null">
        skewness_5y = #{skewness5y,jdbcType=DECIMAL},
      </if>
      <if test="skewness10y != null">
        skewness_10y = #{skewness10y,jdbcType=DECIMAL},
      </if>
      <if test="skewnessIncep != null">
        skewness_incep = #{skewnessIncep,jdbcType=DECIMAL},
      </if>
      <if test="skewnessYtd != null">
        skewness_ytd = #{skewnessYtd,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis1y != null">
        kurtosis_1y = #{kurtosis1y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis2y != null">
        kurtosis_2y = #{kurtosis2y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis3y != null">
        kurtosis_3y = #{kurtosis3y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis4y != null">
        kurtosis_4y = #{kurtosis4y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis5y != null">
        kurtosis_5y = #{kurtosis5y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosis10y != null">
        kurtosis_10y = #{kurtosis10y,jdbcType=DECIMAL},
      </if>
      <if test="kurtosisIncep != null">
        kurtosis_incep = #{kurtosisIncep,jdbcType=DECIMAL},
      </if>
      <if test="kurtosisYtd != null">
        kurtosis_ytd = #{kurtosisYtd,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth1y != null">
        worstmonth_1y = #{worstmonth1y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth2y != null">
        worstmonth_2y = #{worstmonth2y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth3y != null">
        worstmonth_3y = #{worstmonth3y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth4y != null">
        worstmonth_4y = #{worstmonth4y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth5y != null">
        worstmonth_5y = #{worstmonth5y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonth10y != null">
        worstmonth_10y = #{worstmonth10y,jdbcType=DECIMAL},
      </if>
      <if test="worstmonthIncep != null">
        worstmonth_incep = #{worstmonthIncep,jdbcType=DECIMAL},
      </if>
      <if test="worstmonthYtd != null">
        worstmonth_ytd = #{worstmonthYtd,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent1y != null">
        downmonth_percent_1y = #{downmonthPercent1y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent2y != null">
        downmonth_percent_2y = #{downmonthPercent2y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent3y != null">
        downmonth_percent_3y = #{downmonthPercent3y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent4y != null">
        downmonth_percent_4y = #{downmonthPercent4y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent5y != null">
        downmonth_percent_5y = #{downmonthPercent5y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercent10y != null">
        downmonth_percent_10y = #{downmonthPercent10y,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercentIncep != null">
        downmonth_percent_incep = #{downmonthPercentIncep,jdbcType=DECIMAL},
      </if>
      <if test="downmonthPercentYtd != null">
        downmonth_percent_ytd = #{downmonthPercentYtd,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage1y != null">
        battingaverage_1y = #{battingaverage1y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage2y != null">
        battingaverage_2y = #{battingaverage2y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage3y != null">
        battingaverage_3y = #{battingaverage3y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage4y != null">
        battingaverage_4y = #{battingaverage4y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage5y != null">
        battingaverage_5y = #{battingaverage5y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverage10y != null">
        battingaverage_10y = #{battingaverage10y,jdbcType=DECIMAL},
      </if>
      <if test="battingaverageIncep != null">
        battingaverage_incep = #{battingaverageIncep,jdbcType=DECIMAL},
      </if>
      <if test="battingaverageYtd != null">
        battingaverage_ytd = #{battingaverageYtd,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio1y != null">
        gainloss_ratio_1y = #{gainlossRatio1y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio2y != null">
        gainloss_ratio_2y = #{gainlossRatio2y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio3y != null">
        gainloss_ratio_3y = #{gainlossRatio3y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio4y != null">
        gainloss_ratio_4y = #{gainlossRatio4y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio5y != null">
        gainloss_ratio_5y = #{gainlossRatio5y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatio10y != null">
        gainloss_ratio_10y = #{gainlossRatio10y,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatioIncep != null">
        gainloss_ratio_incep = #{gainlossRatioIncep,jdbcType=DECIMAL},
      </if>
      <if test="gainlossRatioYtd != null">
        gainloss_ratio_ytd = #{gainlossRatioYtd,jdbcType=DECIMAL},
      </if>
      <if test="longestdownMonths1y != null">
        longestdown_months_1y = #{longestdownMonths1y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths2y != null">
        longestdown_months_2y = #{longestdownMonths2y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths3y != null">
        longestdown_months_3y = #{longestdownMonths3y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths4y != null">
        longestdown_months_4y = #{longestdownMonths4y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths5y != null">
        longestdown_months_5y = #{longestdownMonths5y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonths10y != null">
        longestdown_months_10y = #{longestdownMonths10y,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonthsIncep != null">
        longestdown_months_incep = #{longestdownMonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="longestdownMonthsYtd != null">
        longestdown_months_ytd = #{longestdownMonthsYtd,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown3m != null">
        maxdrawdown_3m = #{maxdrawdown3m,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownYtd != null">
        maxdrawdown_ytd = #{maxdrawdownYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonthsYtd != null">
        maxdrawdown_months_ytd = #{maxdrawdownMonthsYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownPeakdateYtd != null">
        maxdrawdown_peakdate_ytd = #{maxdrawdownPeakdateYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownValleydateYtd != null">
        maxdrawdown_valleydate_ytd = #{maxdrawdownValleydateYtd,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown1y != null">
        maxdrawdown_1y = #{maxdrawdown1y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths1y != null">
        maxdrawdown_months_1y = #{maxdrawdownMonths1y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate1y != null">
        maxdrawdown_peakdate_1y = #{maxdrawdownPeakdate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate1y != null">
        maxdrawdown_valleydate_1y = #{maxdrawdownValleydate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate1y != null">
        maxdrawdown_recoverydate_1y = #{maxdrawdownRecoverydate1y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths1y != null">
        maxdrawdown_recoverymonths_1y = #{maxdrawdownRecoverymonths1y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown2y != null">
        maxdrawdown_2y = #{maxdrawdown2y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths2y != null">
        maxdrawdown_months_2y = #{maxdrawdownMonths2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate2y != null">
        maxdrawdown_peakdate_2y = #{maxdrawdownPeakdate2y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate2y != null">
        maxdrawdown_valleydate_2y = #{maxdrawdownValleydate2y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate2y != null">
        maxdrawdown_recoverydate_2y = #{maxdrawdownRecoverydate2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownRecoverymonths2y != null">
        maxdrawdown_recoverymonths_2y = #{maxdrawdownRecoverymonths2y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown3y != null">
        maxdrawdown_3y = #{maxdrawdown3y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths3y != null">
        maxdrawdown_months_3y = #{maxdrawdownMonths3y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate3y != null">
        maxdrawdown_peakdate_3y = #{maxdrawdownPeakdate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate3y != null">
        maxdrawdown_valleydate_3y = #{maxdrawdownValleydate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate3y != null">
        maxdrawdown_recoverydate_3y = #{maxdrawdownRecoverydate3y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths3y != null">
        maxdrawdown_recoverymonths_3y = #{maxdrawdownRecoverymonths3y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown4y != null">
        maxdrawdown_4y = #{maxdrawdown4y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths4y != null">
        maxdrawdown_months_4y = #{maxdrawdownMonths4y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate4y != null">
        maxdrawdown_peakdate_4y = #{maxdrawdownPeakdate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate4y != null">
        maxdrawdown_valleydate_4y = #{maxdrawdownValleydate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate4y != null">
        maxdrawdown_recoverydate_4y = #{maxdrawdownRecoverydate4y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths4y != null">
        maxdrawdown_recoverymonths_4y = #{maxdrawdownRecoverymonths4y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdown5y != null">
        maxdrawdown_5y = #{maxdrawdown5y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown10y != null">
        maxdrawdown_10y = #{maxdrawdown10y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonths5y != null">
        maxdrawdown_months_5y = #{maxdrawdownMonths5y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate5y != null">
        maxdrawdown_peakdate_5y = #{maxdrawdownPeakdate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate5y != null">
        maxdrawdown_valleydate_5y = #{maxdrawdownValleydate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate5y != null">
        maxdrawdown_recoverydate_5y = #{maxdrawdownRecoverydate5y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths5y != null">
        maxdrawdown_recoverymonths_5y = #{maxdrawdownRecoverymonths5y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownMonths10y != null">
        maxdrawdown_months_10y = #{maxdrawdownMonths10y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdate10y != null">
        maxdrawdown_peakdate_10y = #{maxdrawdownPeakdate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydate10y != null">
        maxdrawdown_valleydate_10y = #{maxdrawdownValleydate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydate10y != null">
        maxdrawdown_recoverydate_10y = #{maxdrawdownRecoverydate10y,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonths10y != null">
        maxdrawdown_recoverymonths_10y = #{maxdrawdownRecoverymonths10y,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownIncep != null">
        maxdrawdown_incep = #{maxdrawdownIncep,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownMonthsIncep != null">
        maxdrawdown_months_incep = #{maxdrawdownMonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="maxdrawdownPeakdateIncep != null">
        maxdrawdown_peakdate_incep = #{maxdrawdownPeakdateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownValleydateIncep != null">
        maxdrawdown_valleydate_incep = #{maxdrawdownValleydateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverydateIncep != null">
        maxdrawdown_recoverydate_incep = #{maxdrawdownRecoverydateIncep,jdbcType=VARCHAR},
      </if>
      <if test="maxdrawdownRecoverymonthsIncep != null">
        maxdrawdown_recoverymonths_incep = #{maxdrawdownRecoverymonthsIncep,jdbcType=INTEGER},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
</mapper>