<?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.IfaImportedFundCountMapper">
  <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.IfaImportedFundCount">
    <!--@mbg.generated-->
    <!--@Table ifa_imported_fund_count-->
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="fund_id" jdbcType="VARCHAR" property="fundId" />
    <result column="strategy" jdbcType="INTEGER" property="strategy" />
    <result column="substrategy" jdbcType="INTEGER" property="substrategy" />
    <result column="type" jdbcType="INTEGER" property="type" />
    <result column="end_date" jdbcType="DATE" property="endDate" />
    <result column="price_date" jdbcType="DATE" property="priceDate" />
    <result column="net_nav" jdbcType="DECIMAL" property="netNav" />
    <result column="cumulative_nav" jdbcType="DECIMAL" property="cumulativeNav" />
    <result column="ret_1day" jdbcType="DECIMAL" property="ret1day" />
    <result column="ret_1day_bm1" jdbcType="DECIMAL" property="ret1dayBm1" />
    <result column="ret_1w" jdbcType="DECIMAL" property="ret1w" />
    <result column="ret_1w_bm1" jdbcType="DECIMAL" property="ret1wBm1" />
    <result column="ret_1m" jdbcType="DECIMAL" property="ret1m" />
    <result column="ret_1m_bm1" jdbcType="DECIMAL" property="ret1mBm1" />
    <result column="ret_3m" jdbcType="DECIMAL" property="ret3m" />
    <result column="ret_3m_bm1" jdbcType="DECIMAL" property="ret3mBm1" />
    <result column="ret_6m" jdbcType="DECIMAL" property="ret6m" />
    <result column="ret_6m_bm1" jdbcType="DECIMAL" property="ret6mBm1" />
    <result column="ret_1y" jdbcType="DECIMAL" property="ret1y" />
    <result column="ret_1y_bm1" jdbcType="DECIMAL" property="ret1yBm1" />
    <result column="ret_2y" jdbcType="DECIMAL" property="ret2y" />
    <result column="ret_2y_bm1" jdbcType="DECIMAL" property="ret2yBm1" />
    <result column="ret_2y_a" jdbcType="DECIMAL" property="ret2yA" />
    <result column="ret_2y_bm1_a" jdbcType="DECIMAL" property="ret2yBm1A" />
    <result column="ret_3y" jdbcType="DECIMAL" property="ret3y" />
    <result column="ret_3y_bm1" jdbcType="DECIMAL" property="ret3yBm1" />
    <result column="ret_3y_a" jdbcType="DECIMAL" property="ret3yA" />
    <result column="ret_3y_bm1_a" jdbcType="DECIMAL" property="ret3yBm1A" />
    <result column="ret_4y" jdbcType="DECIMAL" property="ret4y" />
    <result column="ret_4y_bm1" jdbcType="DECIMAL" property="ret4yBm1" />
    <result column="ret_4y_a" jdbcType="DECIMAL" property="ret4yA" />
    <result column="ret_4y_bm1_a" jdbcType="DECIMAL" property="ret4yBm1A" />
    <result column="ret_5y" jdbcType="DECIMAL" property="ret5y" />
    <result column="ret_5y_bm1" jdbcType="DECIMAL" property="ret5yBm1" />
    <result column="ret_5y_a" jdbcType="DECIMAL" property="ret5yA" />
    <result column="ret_5y_bm1_a" jdbcType="DECIMAL" property="ret5yBm1A" />
    <result column="ret_ytd" jdbcType="DECIMAL" property="retYtd" />
    <result column="ret_ytd_bm1" jdbcType="DECIMAL" property="retYtdBm1" />
    <result column="ret_incep" jdbcType="DECIMAL" property="retIncep" />
    <result column="ret_incep_bm1" jdbcType="DECIMAL" property="retIncepBm1" />
    <result column="ret_incep_a" jdbcType="DECIMAL" property="retIncepA" />
    <result column="ret_incep_bm1_a" jdbcType="DECIMAL" property="retIncepBm1A" />
    <result column="sharperatio_1y" jdbcType="DECIMAL" property="sharperatio1y" />
    <result column="sharperatio_2y" jdbcType="DECIMAL" property="sharperatio2y" />
    <result column="sharperatio_3y" jdbcType="DECIMAL" property="sharperatio3y" />
    <result column="sharperatio_4y" jdbcType="DECIMAL" property="sharperatio4y" />
    <result column="sharperatio_5y" jdbcType="DECIMAL" property="sharperatio5y" />
    <result column="sharperatio_incep" jdbcType="DECIMAL" property="sharperatioIncep" />
    <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="maxdrawdown_1y" jdbcType="DECIMAL" property="maxdrawdown1y" />
    <result column="maxdrawdown_2y" jdbcType="DECIMAL" property="maxdrawdown2y" />
    <result column="maxdrawdown_3y" jdbcType="DECIMAL" property="maxdrawdown3y" />
    <result column="maxdrawdown_4y" jdbcType="DECIMAL" property="maxdrawdown4y" />
    <result column="maxdrawdown_5y" jdbcType="DECIMAL" property="maxdrawdown5y" />
    <result column="maxdrawdown_10y" jdbcType="DECIMAL" property="maxdrawdown10y" />
    <result column="maxdrawdown_incep" jdbcType="DECIMAL" property="maxdrawdownIncep" />
    <result column="data_sources" jdbcType="INTEGER" property="dataSources" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="status" jdbcType="INTEGER" property="status" />
    <result column="sort" jdbcType="INTEGER" property="sort" />
    <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, strategy, substrategy, `type`, end_date, price_date, net_nav, cumulative_nav, 
    ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1, ret_3m, ret_3m_bm1, 
    ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, ret_2y_a, ret_2y_bm1_a, 
    ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_a, ret_4y, ret_4y_bm1, ret_4y_a, ret_4y_bm1_a, 
    ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_bm1, 
    ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3y, sharperatio_4y, 
    sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3y, stddev_4y, stddev_5y, 
    stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y, maxdrawdown_3y, 
    maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_incep, data_sources, 
    update_time, create_time, `status`, sort, delete_tag
  </sql>
  <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundCountExample" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from ifa_imported_fund_count
    <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 ifa_imported_fund_count
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--@mbg.generated-->
    delete from ifa_imported_fund_count
    where id = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundCountExample">
    <!--@mbg.generated-->
    delete from ifa_imported_fund_count
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundCount">
    <!--@mbg.generated-->
    insert into ifa_imported_fund_count (id, fund_id, strategy, 
      substrategy, `type`, end_date, 
      price_date, net_nav, cumulative_nav, 
      ret_1day, ret_1day_bm1, ret_1w, 
      ret_1w_bm1, ret_1m, ret_1m_bm1, 
      ret_3m, ret_3m_bm1, ret_6m, 
      ret_6m_bm1, ret_1y, ret_1y_bm1, 
      ret_2y, ret_2y_bm1, ret_2y_a, 
      ret_2y_bm1_a, ret_3y, ret_3y_bm1, 
      ret_3y_a, ret_3y_bm1_a, ret_4y, 
      ret_4y_bm1, ret_4y_a, ret_4y_bm1_a, 
      ret_5y, ret_5y_bm1, ret_5y_a, 
      ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, 
      ret_incep, ret_incep_bm1, ret_incep_a, 
      ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, 
      sharperatio_3y, sharperatio_4y, sharperatio_5y, 
      sharperatio_incep, stddev_1y, stddev_2y, 
      stddev_3y, stddev_4y, stddev_5y, 
      stddev_10y, stddev_incep, stddev_ytd, 
      maxdrawdown_1y, maxdrawdown_2y, maxdrawdown_3y, 
      maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, 
      maxdrawdown_incep, data_sources, update_time, 
      create_time, `status`, sort, 
      delete_tag)
    values (#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{strategy,jdbcType=INTEGER}, 
      #{substrategy,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{endDate,jdbcType=DATE}, 
      #{priceDate,jdbcType=DATE}, #{netNav,jdbcType=DECIMAL}, #{cumulativeNav,jdbcType=DECIMAL}, 
      #{ret1day,jdbcType=DECIMAL}, #{ret1dayBm1,jdbcType=DECIMAL}, #{ret1w,jdbcType=DECIMAL}, 
      #{ret1wBm1,jdbcType=DECIMAL}, #{ret1m,jdbcType=DECIMAL}, #{ret1mBm1,jdbcType=DECIMAL}, 
      #{ret3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL}, #{ret6m,jdbcType=DECIMAL}, 
      #{ret6mBm1,jdbcType=DECIMAL}, #{ret1y,jdbcType=DECIMAL}, #{ret1yBm1,jdbcType=DECIMAL}, 
      #{ret2y,jdbcType=DECIMAL}, #{ret2yBm1,jdbcType=DECIMAL}, #{ret2yA,jdbcType=DECIMAL}, 
      #{ret2yBm1A,jdbcType=DECIMAL}, #{ret3y,jdbcType=DECIMAL}, #{ret3yBm1,jdbcType=DECIMAL}, 
      #{ret3yA,jdbcType=DECIMAL}, #{ret3yBm1A,jdbcType=DECIMAL}, #{ret4y,jdbcType=DECIMAL}, 
      #{ret4yBm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL}, #{ret4yBm1A,jdbcType=DECIMAL}, 
      #{ret5y,jdbcType=DECIMAL}, #{ret5yBm1,jdbcType=DECIMAL}, #{ret5yA,jdbcType=DECIMAL}, 
      #{ret5yBm1A,jdbcType=DECIMAL}, #{retYtd,jdbcType=DECIMAL}, #{retYtdBm1,jdbcType=DECIMAL}, 
      #{retIncep,jdbcType=DECIMAL}, #{retIncepBm1,jdbcType=DECIMAL}, #{retIncepA,jdbcType=DECIMAL}, 
      #{retIncepBm1A,jdbcType=DECIMAL}, #{sharperatio1y,jdbcType=DECIMAL}, #{sharperatio2y,jdbcType=DECIMAL}, 
      #{sharperatio3y,jdbcType=DECIMAL}, #{sharperatio4y,jdbcType=DECIMAL}, #{sharperatio5y,jdbcType=DECIMAL}, 
      #{sharperatioIncep,jdbcType=DECIMAL}, #{stddev1y,jdbcType=DECIMAL}, #{stddev2y,jdbcType=DECIMAL}, 
      #{stddev3y,jdbcType=DECIMAL}, #{stddev4y,jdbcType=DECIMAL}, #{stddev5y,jdbcType=DECIMAL}, 
      #{stddev10y,jdbcType=DECIMAL}, #{stddevIncep,jdbcType=DECIMAL}, #{stddevYtd,jdbcType=DECIMAL}, 
      #{maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2y,jdbcType=DECIMAL}, #{maxdrawdown3y,jdbcType=DECIMAL}, 
      #{maxdrawdown4y,jdbcType=DECIMAL}, #{maxdrawdown5y,jdbcType=DECIMAL}, #{maxdrawdown10y,jdbcType=DECIMAL}, 
      #{maxdrawdownIncep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, 
      #{deleteTag,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundCount">
    <!--@mbg.generated-->
    insert into ifa_imported_fund_count
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="fundId != null">
        fund_id,
      </if>
      <if test="strategy != null">
        strategy,
      </if>
      <if test="substrategy != null">
        substrategy,
      </if>
      <if test="type != null">
        `type`,
      </if>
      <if test="endDate != null">
        end_date,
      </if>
      <if test="priceDate != null">
        price_date,
      </if>
      <if test="netNav != null">
        net_nav,
      </if>
      <if test="cumulativeNav != null">
        cumulative_nav,
      </if>
      <if test="ret1day != null">
        ret_1day,
      </if>
      <if test="ret1dayBm1 != null">
        ret_1day_bm1,
      </if>
      <if test="ret1w != null">
        ret_1w,
      </if>
      <if test="ret1wBm1 != null">
        ret_1w_bm1,
      </if>
      <if test="ret1m != null">
        ret_1m,
      </if>
      <if test="ret1mBm1 != null">
        ret_1m_bm1,
      </if>
      <if test="ret3m != null">
        ret_3m,
      </if>
      <if test="ret3mBm1 != null">
        ret_3m_bm1,
      </if>
      <if test="ret6m != null">
        ret_6m,
      </if>
      <if test="ret6mBm1 != null">
        ret_6m_bm1,
      </if>
      <if test="ret1y != null">
        ret_1y,
      </if>
      <if test="ret1yBm1 != null">
        ret_1y_bm1,
      </if>
      <if test="ret2y != null">
        ret_2y,
      </if>
      <if test="ret2yBm1 != null">
        ret_2y_bm1,
      </if>
      <if test="ret2yA != null">
        ret_2y_a,
      </if>
      <if test="ret2yBm1A != null">
        ret_2y_bm1_a,
      </if>
      <if test="ret3y != null">
        ret_3y,
      </if>
      <if test="ret3yBm1 != null">
        ret_3y_bm1,
      </if>
      <if test="ret3yA != null">
        ret_3y_a,
      </if>
      <if test="ret3yBm1A != null">
        ret_3y_bm1_a,
      </if>
      <if test="ret4y != null">
        ret_4y,
      </if>
      <if test="ret4yBm1 != null">
        ret_4y_bm1,
      </if>
      <if test="ret4yA != null">
        ret_4y_a,
      </if>
      <if test="ret4yBm1A != null">
        ret_4y_bm1_a,
      </if>
      <if test="ret5y != null">
        ret_5y,
      </if>
      <if test="ret5yBm1 != null">
        ret_5y_bm1,
      </if>
      <if test="ret5yA != null">
        ret_5y_a,
      </if>
      <if test="ret5yBm1A != null">
        ret_5y_bm1_a,
      </if>
      <if test="retYtd != null">
        ret_ytd,
      </if>
      <if test="retYtdBm1 != null">
        ret_ytd_bm1,
      </if>
      <if test="retIncep != null">
        ret_incep,
      </if>
      <if test="retIncepBm1 != null">
        ret_incep_bm1,
      </if>
      <if test="retIncepA != null">
        ret_incep_a,
      </if>
      <if test="retIncepBm1A != null">
        ret_incep_bm1_a,
      </if>
      <if test="sharperatio1y != null">
        sharperatio_1y,
      </if>
      <if test="sharperatio2y != null">
        sharperatio_2y,
      </if>
      <if test="sharperatio3y != null">
        sharperatio_3y,
      </if>
      <if test="sharperatio4y != null">
        sharperatio_4y,
      </if>
      <if test="sharperatio5y != null">
        sharperatio_5y,
      </if>
      <if test="sharperatioIncep != null">
        sharperatio_incep,
      </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="maxdrawdown1y != null">
        maxdrawdown_1y,
      </if>
      <if test="maxdrawdown2y != null">
        maxdrawdown_2y,
      </if>
      <if test="maxdrawdown3y != null">
        maxdrawdown_3y,
      </if>
      <if test="maxdrawdown4y != null">
        maxdrawdown_4y,
      </if>
      <if test="maxdrawdown5y != null">
        maxdrawdown_5y,
      </if>
      <if test="maxdrawdown10y != null">
        maxdrawdown_10y,
      </if>
      <if test="maxdrawdownIncep != null">
        maxdrawdown_incep,
      </if>
      <if test="dataSources != null">
        data_sources,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="status != null">
        `status`,
      </if>
      <if test="sort != null">
        sort,
      </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="strategy != null">
        #{strategy,jdbcType=INTEGER},
      </if>
      <if test="substrategy != null">
        #{substrategy,jdbcType=INTEGER},
      </if>
      <if test="type != null">
        #{type,jdbcType=INTEGER},
      </if>
      <if test="endDate != null">
        #{endDate,jdbcType=DATE},
      </if>
      <if test="priceDate != null">
        #{priceDate,jdbcType=DATE},
      </if>
      <if test="netNav != null">
        #{netNav,jdbcType=DECIMAL},
      </if>
      <if test="cumulativeNav != null">
        #{cumulativeNav,jdbcType=DECIMAL},
      </if>
      <if test="ret1day != null">
        #{ret1day,jdbcType=DECIMAL},
      </if>
      <if test="ret1dayBm1 != null">
        #{ret1dayBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1w != null">
        #{ret1w,jdbcType=DECIMAL},
      </if>
      <if test="ret1wBm1 != null">
        #{ret1wBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1m != null">
        #{ret1m,jdbcType=DECIMAL},
      </if>
      <if test="ret1mBm1 != null">
        #{ret1mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret3m != null">
        #{ret3m,jdbcType=DECIMAL},
      </if>
      <if test="ret3mBm1 != null">
        #{ret3mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret6m != null">
        #{ret6m,jdbcType=DECIMAL},
      </if>
      <if test="ret6mBm1 != null">
        #{ret6mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1y != null">
        #{ret1y,jdbcType=DECIMAL},
      </if>
      <if test="ret1yBm1 != null">
        #{ret1yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret2y != null">
        #{ret2y,jdbcType=DECIMAL},
      </if>
      <if test="ret2yBm1 != null">
        #{ret2yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret2yA != null">
        #{ret2yA,jdbcType=DECIMAL},
      </if>
      <if test="ret2yBm1A != null">
        #{ret2yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret3y != null">
        #{ret3y,jdbcType=DECIMAL},
      </if>
      <if test="ret3yBm1 != null">
        #{ret3yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret3yA != null">
        #{ret3yA,jdbcType=DECIMAL},
      </if>
      <if test="ret3yBm1A != null">
        #{ret3yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret4y != null">
        #{ret4y,jdbcType=DECIMAL},
      </if>
      <if test="ret4yBm1 != null">
        #{ret4yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret4yA != null">
        #{ret4yA,jdbcType=DECIMAL},
      </if>
      <if test="ret4yBm1A != null">
        #{ret4yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret5y != null">
        #{ret5y,jdbcType=DECIMAL},
      </if>
      <if test="ret5yBm1 != null">
        #{ret5yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret5yA != null">
        #{ret5yA,jdbcType=DECIMAL},
      </if>
      <if test="ret5yBm1A != null">
        #{ret5yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="retYtd != null">
        #{retYtd,jdbcType=DECIMAL},
      </if>
      <if test="retYtdBm1 != null">
        #{retYtdBm1,jdbcType=DECIMAL},
      </if>
      <if test="retIncep != null">
        #{retIncep,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1 != null">
        #{retIncepBm1,jdbcType=DECIMAL},
      </if>
      <if test="retIncepA != null">
        #{retIncepA,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1A != null">
        #{retIncepBm1A,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio1y != null">
        #{sharperatio1y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio2y != null">
        #{sharperatio2y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio3y != null">
        #{sharperatio3y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio4y != null">
        #{sharperatio4y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio5y != null">
        #{sharperatio5y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatioIncep != null">
        #{sharperatioIncep,jdbcType=DECIMAL},
      </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="maxdrawdown1y != null">
        #{maxdrawdown1y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown2y != null">
        #{maxdrawdown2y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown3y != null">
        #{maxdrawdown3y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown4y != null">
        #{maxdrawdown4y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown5y != null">
        #{maxdrawdown5y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown10y != null">
        #{maxdrawdown10y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownIncep != null">
        #{maxdrawdownIncep,jdbcType=DECIMAL},
      </if>
      <if test="dataSources != null">
        #{dataSources,jdbcType=INTEGER},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="status != null">
        #{status,jdbcType=INTEGER},
      </if>
      <if test="sort != null">
        #{sort,jdbcType=INTEGER},
      </if>
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundCountExample" resultType="java.lang.Long">
    <!--@mbg.generated-->
    select count(*) from ifa_imported_fund_count
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--@mbg.generated-->
    update ifa_imported_fund_count
    <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.strategy != null">
        strategy = #{record.strategy,jdbcType=INTEGER},
      </if>
      <if test="record.substrategy != null">
        substrategy = #{record.substrategy,jdbcType=INTEGER},
      </if>
      <if test="record.type != null">
        `type` = #{record.type,jdbcType=INTEGER},
      </if>
      <if test="record.endDate != null">
        end_date = #{record.endDate,jdbcType=DATE},
      </if>
      <if test="record.priceDate != null">
        price_date = #{record.priceDate,jdbcType=DATE},
      </if>
      <if test="record.netNav != null">
        net_nav = #{record.netNav,jdbcType=DECIMAL},
      </if>
      <if test="record.cumulativeNav != null">
        cumulative_nav = #{record.cumulativeNav,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1day != null">
        ret_1day = #{record.ret1day,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1dayBm1 != null">
        ret_1day_bm1 = #{record.ret1dayBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1w != null">
        ret_1w = #{record.ret1w,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1wBm1 != null">
        ret_1w_bm1 = #{record.ret1wBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1m != null">
        ret_1m = #{record.ret1m,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1mBm1 != null">
        ret_1m_bm1 = #{record.ret1mBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.ret3m != null">
        ret_3m = #{record.ret3m,jdbcType=DECIMAL},
      </if>
      <if test="record.ret3mBm1 != null">
        ret_3m_bm1 = #{record.ret3mBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.ret6m != null">
        ret_6m = #{record.ret6m,jdbcType=DECIMAL},
      </if>
      <if test="record.ret6mBm1 != null">
        ret_6m_bm1 = #{record.ret6mBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1y != null">
        ret_1y = #{record.ret1y,jdbcType=DECIMAL},
      </if>
      <if test="record.ret1yBm1 != null">
        ret_1y_bm1 = #{record.ret1yBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.ret2y != null">
        ret_2y = #{record.ret2y,jdbcType=DECIMAL},
      </if>
      <if test="record.ret2yBm1 != null">
        ret_2y_bm1 = #{record.ret2yBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.ret2yA != null">
        ret_2y_a = #{record.ret2yA,jdbcType=DECIMAL},
      </if>
      <if test="record.ret2yBm1A != null">
        ret_2y_bm1_a = #{record.ret2yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="record.ret3y != null">
        ret_3y = #{record.ret3y,jdbcType=DECIMAL},
      </if>
      <if test="record.ret3yBm1 != null">
        ret_3y_bm1 = #{record.ret3yBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.ret3yA != null">
        ret_3y_a = #{record.ret3yA,jdbcType=DECIMAL},
      </if>
      <if test="record.ret3yBm1A != null">
        ret_3y_bm1_a = #{record.ret3yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="record.ret4y != null">
        ret_4y = #{record.ret4y,jdbcType=DECIMAL},
      </if>
      <if test="record.ret4yBm1 != null">
        ret_4y_bm1 = #{record.ret4yBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.ret4yA != null">
        ret_4y_a = #{record.ret4yA,jdbcType=DECIMAL},
      </if>
      <if test="record.ret4yBm1A != null">
        ret_4y_bm1_a = #{record.ret4yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="record.ret5y != null">
        ret_5y = #{record.ret5y,jdbcType=DECIMAL},
      </if>
      <if test="record.ret5yBm1 != null">
        ret_5y_bm1 = #{record.ret5yBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.ret5yA != null">
        ret_5y_a = #{record.ret5yA,jdbcType=DECIMAL},
      </if>
      <if test="record.ret5yBm1A != null">
        ret_5y_bm1_a = #{record.ret5yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="record.retYtd != null">
        ret_ytd = #{record.retYtd,jdbcType=DECIMAL},
      </if>
      <if test="record.retYtdBm1 != null">
        ret_ytd_bm1 = #{record.retYtdBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.retIncep != null">
        ret_incep = #{record.retIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.retIncepBm1 != null">
        ret_incep_bm1 = #{record.retIncepBm1,jdbcType=DECIMAL},
      </if>
      <if test="record.retIncepA != null">
        ret_incep_a = #{record.retIncepA,jdbcType=DECIMAL},
      </if>
      <if test="record.retIncepBm1A != null">
        ret_incep_bm1_a = #{record.retIncepBm1A,jdbcType=DECIMAL},
      </if>
      <if test="record.sharperatio1y != null">
        sharperatio_1y = #{record.sharperatio1y,jdbcType=DECIMAL},
      </if>
      <if test="record.sharperatio2y != null">
        sharperatio_2y = #{record.sharperatio2y,jdbcType=DECIMAL},
      </if>
      <if test="record.sharperatio3y != null">
        sharperatio_3y = #{record.sharperatio3y,jdbcType=DECIMAL},
      </if>
      <if test="record.sharperatio4y != null">
        sharperatio_4y = #{record.sharperatio4y,jdbcType=DECIMAL},
      </if>
      <if test="record.sharperatio5y != null">
        sharperatio_5y = #{record.sharperatio5y,jdbcType=DECIMAL},
      </if>
      <if test="record.sharperatioIncep != null">
        sharperatio_incep = #{record.sharperatioIncep,jdbcType=DECIMAL},
      </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.maxdrawdown1y != null">
        maxdrawdown_1y = #{record.maxdrawdown1y,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdown2y != null">
        maxdrawdown_2y = #{record.maxdrawdown2y,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdown3y != null">
        maxdrawdown_3y = #{record.maxdrawdown3y,jdbcType=DECIMAL},
      </if>
      <if test="record.maxdrawdown4y != null">
        maxdrawdown_4y = #{record.maxdrawdown4y,jdbcType=DECIMAL},
      </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.maxdrawdownIncep != null">
        maxdrawdown_incep = #{record.maxdrawdownIncep,jdbcType=DECIMAL},
      </if>
      <if test="record.dataSources != null">
        data_sources = #{record.dataSources,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.status != null">
        `status` = #{record.status,jdbcType=INTEGER},
      </if>
      <if test="record.sort != null">
        sort = #{record.sort,jdbcType=INTEGER},
      </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 ifa_imported_fund_count
    set id = #{record.id,jdbcType=VARCHAR},
      fund_id = #{record.fundId,jdbcType=VARCHAR},
      strategy = #{record.strategy,jdbcType=INTEGER},
      substrategy = #{record.substrategy,jdbcType=INTEGER},
      `type` = #{record.type,jdbcType=INTEGER},
      end_date = #{record.endDate,jdbcType=DATE},
      price_date = #{record.priceDate,jdbcType=DATE},
      net_nav = #{record.netNav,jdbcType=DECIMAL},
      cumulative_nav = #{record.cumulativeNav,jdbcType=DECIMAL},
      ret_1day = #{record.ret1day,jdbcType=DECIMAL},
      ret_1day_bm1 = #{record.ret1dayBm1,jdbcType=DECIMAL},
      ret_1w = #{record.ret1w,jdbcType=DECIMAL},
      ret_1w_bm1 = #{record.ret1wBm1,jdbcType=DECIMAL},
      ret_1m = #{record.ret1m,jdbcType=DECIMAL},
      ret_1m_bm1 = #{record.ret1mBm1,jdbcType=DECIMAL},
      ret_3m = #{record.ret3m,jdbcType=DECIMAL},
      ret_3m_bm1 = #{record.ret3mBm1,jdbcType=DECIMAL},
      ret_6m = #{record.ret6m,jdbcType=DECIMAL},
      ret_6m_bm1 = #{record.ret6mBm1,jdbcType=DECIMAL},
      ret_1y = #{record.ret1y,jdbcType=DECIMAL},
      ret_1y_bm1 = #{record.ret1yBm1,jdbcType=DECIMAL},
      ret_2y = #{record.ret2y,jdbcType=DECIMAL},
      ret_2y_bm1 = #{record.ret2yBm1,jdbcType=DECIMAL},
      ret_2y_a = #{record.ret2yA,jdbcType=DECIMAL},
      ret_2y_bm1_a = #{record.ret2yBm1A,jdbcType=DECIMAL},
      ret_3y = #{record.ret3y,jdbcType=DECIMAL},
      ret_3y_bm1 = #{record.ret3yBm1,jdbcType=DECIMAL},
      ret_3y_a = #{record.ret3yA,jdbcType=DECIMAL},
      ret_3y_bm1_a = #{record.ret3yBm1A,jdbcType=DECIMAL},
      ret_4y = #{record.ret4y,jdbcType=DECIMAL},
      ret_4y_bm1 = #{record.ret4yBm1,jdbcType=DECIMAL},
      ret_4y_a = #{record.ret4yA,jdbcType=DECIMAL},
      ret_4y_bm1_a = #{record.ret4yBm1A,jdbcType=DECIMAL},
      ret_5y = #{record.ret5y,jdbcType=DECIMAL},
      ret_5y_bm1 = #{record.ret5yBm1,jdbcType=DECIMAL},
      ret_5y_a = #{record.ret5yA,jdbcType=DECIMAL},
      ret_5y_bm1_a = #{record.ret5yBm1A,jdbcType=DECIMAL},
      ret_ytd = #{record.retYtd,jdbcType=DECIMAL},
      ret_ytd_bm1 = #{record.retYtdBm1,jdbcType=DECIMAL},
      ret_incep = #{record.retIncep,jdbcType=DECIMAL},
      ret_incep_bm1 = #{record.retIncepBm1,jdbcType=DECIMAL},
      ret_incep_a = #{record.retIncepA,jdbcType=DECIMAL},
      ret_incep_bm1_a = #{record.retIncepBm1A,jdbcType=DECIMAL},
      sharperatio_1y = #{record.sharperatio1y,jdbcType=DECIMAL},
      sharperatio_2y = #{record.sharperatio2y,jdbcType=DECIMAL},
      sharperatio_3y = #{record.sharperatio3y,jdbcType=DECIMAL},
      sharperatio_4y = #{record.sharperatio4y,jdbcType=DECIMAL},
      sharperatio_5y = #{record.sharperatio5y,jdbcType=DECIMAL},
      sharperatio_incep = #{record.sharperatioIncep,jdbcType=DECIMAL},
      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},
      maxdrawdown_1y = #{record.maxdrawdown1y,jdbcType=DECIMAL},
      maxdrawdown_2y = #{record.maxdrawdown2y,jdbcType=DECIMAL},
      maxdrawdown_3y = #{record.maxdrawdown3y,jdbcType=DECIMAL},
      maxdrawdown_4y = #{record.maxdrawdown4y,jdbcType=DECIMAL},
      maxdrawdown_5y = #{record.maxdrawdown5y,jdbcType=DECIMAL},
      maxdrawdown_10y = #{record.maxdrawdown10y,jdbcType=DECIMAL},
      maxdrawdown_incep = #{record.maxdrawdownIncep,jdbcType=DECIMAL},
      data_sources = #{record.dataSources,jdbcType=INTEGER},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      `status` = #{record.status,jdbcType=INTEGER},
      sort = #{record.sort,jdbcType=INTEGER},
      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.IfaImportedFundCount">
    <!--@mbg.generated-->
    update ifa_imported_fund_count
    <set>
      <if test="fundId != null">
        fund_id = #{fundId,jdbcType=VARCHAR},
      </if>
      <if test="strategy != null">
        strategy = #{strategy,jdbcType=INTEGER},
      </if>
      <if test="substrategy != null">
        substrategy = #{substrategy,jdbcType=INTEGER},
      </if>
      <if test="type != null">
        `type` = #{type,jdbcType=INTEGER},
      </if>
      <if test="endDate != null">
        end_date = #{endDate,jdbcType=DATE},
      </if>
      <if test="priceDate != null">
        price_date = #{priceDate,jdbcType=DATE},
      </if>
      <if test="netNav != null">
        net_nav = #{netNav,jdbcType=DECIMAL},
      </if>
      <if test="cumulativeNav != null">
        cumulative_nav = #{cumulativeNav,jdbcType=DECIMAL},
      </if>
      <if test="ret1day != null">
        ret_1day = #{ret1day,jdbcType=DECIMAL},
      </if>
      <if test="ret1dayBm1 != null">
        ret_1day_bm1 = #{ret1dayBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1w != null">
        ret_1w = #{ret1w,jdbcType=DECIMAL},
      </if>
      <if test="ret1wBm1 != null">
        ret_1w_bm1 = #{ret1wBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1m != null">
        ret_1m = #{ret1m,jdbcType=DECIMAL},
      </if>
      <if test="ret1mBm1 != null">
        ret_1m_bm1 = #{ret1mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret3m != null">
        ret_3m = #{ret3m,jdbcType=DECIMAL},
      </if>
      <if test="ret3mBm1 != null">
        ret_3m_bm1 = #{ret3mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret6m != null">
        ret_6m = #{ret6m,jdbcType=DECIMAL},
      </if>
      <if test="ret6mBm1 != null">
        ret_6m_bm1 = #{ret6mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1y != null">
        ret_1y = #{ret1y,jdbcType=DECIMAL},
      </if>
      <if test="ret1yBm1 != null">
        ret_1y_bm1 = #{ret1yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret2y != null">
        ret_2y = #{ret2y,jdbcType=DECIMAL},
      </if>
      <if test="ret2yBm1 != null">
        ret_2y_bm1 = #{ret2yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret2yA != null">
        ret_2y_a = #{ret2yA,jdbcType=DECIMAL},
      </if>
      <if test="ret2yBm1A != null">
        ret_2y_bm1_a = #{ret2yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret3y != null">
        ret_3y = #{ret3y,jdbcType=DECIMAL},
      </if>
      <if test="ret3yBm1 != null">
        ret_3y_bm1 = #{ret3yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret3yA != null">
        ret_3y_a = #{ret3yA,jdbcType=DECIMAL},
      </if>
      <if test="ret3yBm1A != null">
        ret_3y_bm1_a = #{ret3yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret4y != null">
        ret_4y = #{ret4y,jdbcType=DECIMAL},
      </if>
      <if test="ret4yBm1 != null">
        ret_4y_bm1 = #{ret4yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret4yA != null">
        ret_4y_a = #{ret4yA,jdbcType=DECIMAL},
      </if>
      <if test="ret4yBm1A != null">
        ret_4y_bm1_a = #{ret4yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret5y != null">
        ret_5y = #{ret5y,jdbcType=DECIMAL},
      </if>
      <if test="ret5yBm1 != null">
        ret_5y_bm1 = #{ret5yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret5yA != null">
        ret_5y_a = #{ret5yA,jdbcType=DECIMAL},
      </if>
      <if test="ret5yBm1A != null">
        ret_5y_bm1_a = #{ret5yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="retYtd != null">
        ret_ytd = #{retYtd,jdbcType=DECIMAL},
      </if>
      <if test="retYtdBm1 != null">
        ret_ytd_bm1 = #{retYtdBm1,jdbcType=DECIMAL},
      </if>
      <if test="retIncep != null">
        ret_incep = #{retIncep,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1 != null">
        ret_incep_bm1 = #{retIncepBm1,jdbcType=DECIMAL},
      </if>
      <if test="retIncepA != null">
        ret_incep_a = #{retIncepA,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1A != null">
        ret_incep_bm1_a = #{retIncepBm1A,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio1y != null">
        sharperatio_1y = #{sharperatio1y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio2y != null">
        sharperatio_2y = #{sharperatio2y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio3y != null">
        sharperatio_3y = #{sharperatio3y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio4y != null">
        sharperatio_4y = #{sharperatio4y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio5y != null">
        sharperatio_5y = #{sharperatio5y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatioIncep != null">
        sharperatio_incep = #{sharperatioIncep,jdbcType=DECIMAL},
      </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="maxdrawdown1y != null">
        maxdrawdown_1y = #{maxdrawdown1y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown2y != null">
        maxdrawdown_2y = #{maxdrawdown2y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown3y != null">
        maxdrawdown_3y = #{maxdrawdown3y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown4y != null">
        maxdrawdown_4y = #{maxdrawdown4y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown5y != null">
        maxdrawdown_5y = #{maxdrawdown5y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown10y != null">
        maxdrawdown_10y = #{maxdrawdown10y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownIncep != null">
        maxdrawdown_incep = #{maxdrawdownIncep,jdbcType=DECIMAL},
      </if>
      <if test="dataSources != null">
        data_sources = #{dataSources,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="status != null">
        `status` = #{status,jdbcType=INTEGER},
      </if>
      <if test="sort != null">
        sort = #{sort,jdbcType=INTEGER},
      </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.IfaImportedFundCount">
    <!--@mbg.generated-->
    update ifa_imported_fund_count
    set fund_id = #{fundId,jdbcType=VARCHAR},
      strategy = #{strategy,jdbcType=INTEGER},
      substrategy = #{substrategy,jdbcType=INTEGER},
      `type` = #{type,jdbcType=INTEGER},
      end_date = #{endDate,jdbcType=DATE},
      price_date = #{priceDate,jdbcType=DATE},
      net_nav = #{netNav,jdbcType=DECIMAL},
      cumulative_nav = #{cumulativeNav,jdbcType=DECIMAL},
      ret_1day = #{ret1day,jdbcType=DECIMAL},
      ret_1day_bm1 = #{ret1dayBm1,jdbcType=DECIMAL},
      ret_1w = #{ret1w,jdbcType=DECIMAL},
      ret_1w_bm1 = #{ret1wBm1,jdbcType=DECIMAL},
      ret_1m = #{ret1m,jdbcType=DECIMAL},
      ret_1m_bm1 = #{ret1mBm1,jdbcType=DECIMAL},
      ret_3m = #{ret3m,jdbcType=DECIMAL},
      ret_3m_bm1 = #{ret3mBm1,jdbcType=DECIMAL},
      ret_6m = #{ret6m,jdbcType=DECIMAL},
      ret_6m_bm1 = #{ret6mBm1,jdbcType=DECIMAL},
      ret_1y = #{ret1y,jdbcType=DECIMAL},
      ret_1y_bm1 = #{ret1yBm1,jdbcType=DECIMAL},
      ret_2y = #{ret2y,jdbcType=DECIMAL},
      ret_2y_bm1 = #{ret2yBm1,jdbcType=DECIMAL},
      ret_2y_a = #{ret2yA,jdbcType=DECIMAL},
      ret_2y_bm1_a = #{ret2yBm1A,jdbcType=DECIMAL},
      ret_3y = #{ret3y,jdbcType=DECIMAL},
      ret_3y_bm1 = #{ret3yBm1,jdbcType=DECIMAL},
      ret_3y_a = #{ret3yA,jdbcType=DECIMAL},
      ret_3y_bm1_a = #{ret3yBm1A,jdbcType=DECIMAL},
      ret_4y = #{ret4y,jdbcType=DECIMAL},
      ret_4y_bm1 = #{ret4yBm1,jdbcType=DECIMAL},
      ret_4y_a = #{ret4yA,jdbcType=DECIMAL},
      ret_4y_bm1_a = #{ret4yBm1A,jdbcType=DECIMAL},
      ret_5y = #{ret5y,jdbcType=DECIMAL},
      ret_5y_bm1 = #{ret5yBm1,jdbcType=DECIMAL},
      ret_5y_a = #{ret5yA,jdbcType=DECIMAL},
      ret_5y_bm1_a = #{ret5yBm1A,jdbcType=DECIMAL},
      ret_ytd = #{retYtd,jdbcType=DECIMAL},
      ret_ytd_bm1 = #{retYtdBm1,jdbcType=DECIMAL},
      ret_incep = #{retIncep,jdbcType=DECIMAL},
      ret_incep_bm1 = #{retIncepBm1,jdbcType=DECIMAL},
      ret_incep_a = #{retIncepA,jdbcType=DECIMAL},
      ret_incep_bm1_a = #{retIncepBm1A,jdbcType=DECIMAL},
      sharperatio_1y = #{sharperatio1y,jdbcType=DECIMAL},
      sharperatio_2y = #{sharperatio2y,jdbcType=DECIMAL},
      sharperatio_3y = #{sharperatio3y,jdbcType=DECIMAL},
      sharperatio_4y = #{sharperatio4y,jdbcType=DECIMAL},
      sharperatio_5y = #{sharperatio5y,jdbcType=DECIMAL},
      sharperatio_incep = #{sharperatioIncep,jdbcType=DECIMAL},
      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},
      maxdrawdown_1y = #{maxdrawdown1y,jdbcType=DECIMAL},
      maxdrawdown_2y = #{maxdrawdown2y,jdbcType=DECIMAL},
      maxdrawdown_3y = #{maxdrawdown3y,jdbcType=DECIMAL},
      maxdrawdown_4y = #{maxdrawdown4y,jdbcType=DECIMAL},
      maxdrawdown_5y = #{maxdrawdown5y,jdbcType=DECIMAL},
      maxdrawdown_10y = #{maxdrawdown10y,jdbcType=DECIMAL},
      maxdrawdown_incep = #{maxdrawdownIncep,jdbcType=DECIMAL},
      data_sources = #{dataSources,jdbcType=INTEGER},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      `status` = #{status,jdbcType=INTEGER},
      sort = #{sort,jdbcType=INTEGER},
      delete_tag = #{deleteTag,jdbcType=INTEGER}
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateBatch" parameterType="java.util.List">
    <!--@mbg.generated-->
    update ifa_imported_fund_count
    <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="strategy = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.strategy,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="substrategy = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.substrategy,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="`type` = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.type,jdbcType=INTEGER}
        </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="price_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.priceDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="net_nav = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.netNav,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="cumulative_nav = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.cumulativeNav,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1day = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1day,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1day_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1dayBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1w = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1w,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1w_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1wBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1m = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1m,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1m_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1mBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3m = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3m,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3m_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3mBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_6m = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret6m,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_6m_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret6mBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_1y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret1yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_2y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_2y_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2yA,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_2y_bm1_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret2yBm1A,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3y_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3yA,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_3y_bm1_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret3yBm1A,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_4y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_4y_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4yA,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_4y_bm1_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret4yBm1A,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_5y_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5yBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_5y_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5yA,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_5y_bm1_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ret5yBm1A,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_ytd = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retYtd,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_ytd_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retYtdBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncep,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_incep_bm1 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncepBm1,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_incep_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncepA,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="ret_incep_bm1_a = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.retIncepBm1A,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="sharperatio_1y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatio1y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="sharperatio_2y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatio2y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="sharperatio_3y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatio3y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="sharperatio_4y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatio4y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="sharperatio_5y = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatio5y,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="sharperatio_incep = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.sharperatioIncep,jdbcType=DECIMAL}
        </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="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_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_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_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_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_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="data_sources = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.dataSources,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="`status` = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.status,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="sort = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.sort,jdbcType=INTEGER}
        </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 ifa_imported_fund_count
    (id, fund_id, strategy, substrategy, `type`, end_date, price_date, net_nav, cumulative_nav, 
      ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1, ret_3m, ret_3m_bm1, 
      ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, ret_2y_a, ret_2y_bm1_a, 
      ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_a, ret_4y, ret_4y_bm1, ret_4y_a, ret_4y_bm1_a, 
      ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_bm1, 
      ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3y, sharperatio_4y, 
      sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3y, stddev_4y, 
      stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y, 
      maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_incep, 
      data_sources, update_time, create_time, `status`, sort, delete_tag)
    values
    <foreach collection="list" item="item" separator=",">
      (#{item.id,jdbcType=VARCHAR}, #{item.fundId,jdbcType=VARCHAR}, #{item.strategy,jdbcType=INTEGER}, 
        #{item.substrategy,jdbcType=INTEGER}, #{item.type,jdbcType=INTEGER}, #{item.endDate,jdbcType=DATE}, 
        #{item.priceDate,jdbcType=DATE}, #{item.netNav,jdbcType=DECIMAL}, #{item.cumulativeNav,jdbcType=DECIMAL}, 
        #{item.ret1day,jdbcType=DECIMAL}, #{item.ret1dayBm1,jdbcType=DECIMAL}, #{item.ret1w,jdbcType=DECIMAL}, 
        #{item.ret1wBm1,jdbcType=DECIMAL}, #{item.ret1m,jdbcType=DECIMAL}, #{item.ret1mBm1,jdbcType=DECIMAL}, 
        #{item.ret3m,jdbcType=DECIMAL}, #{item.ret3mBm1,jdbcType=DECIMAL}, #{item.ret6m,jdbcType=DECIMAL}, 
        #{item.ret6mBm1,jdbcType=DECIMAL}, #{item.ret1y,jdbcType=DECIMAL}, #{item.ret1yBm1,jdbcType=DECIMAL}, 
        #{item.ret2y,jdbcType=DECIMAL}, #{item.ret2yBm1,jdbcType=DECIMAL}, #{item.ret2yA,jdbcType=DECIMAL}, 
        #{item.ret2yBm1A,jdbcType=DECIMAL}, #{item.ret3y,jdbcType=DECIMAL}, #{item.ret3yBm1,jdbcType=DECIMAL}, 
        #{item.ret3yA,jdbcType=DECIMAL}, #{item.ret3yBm1A,jdbcType=DECIMAL}, #{item.ret4y,jdbcType=DECIMAL}, 
        #{item.ret4yBm1,jdbcType=DECIMAL}, #{item.ret4yA,jdbcType=DECIMAL}, #{item.ret4yBm1A,jdbcType=DECIMAL}, 
        #{item.ret5y,jdbcType=DECIMAL}, #{item.ret5yBm1,jdbcType=DECIMAL}, #{item.ret5yA,jdbcType=DECIMAL}, 
        #{item.ret5yBm1A,jdbcType=DECIMAL}, #{item.retYtd,jdbcType=DECIMAL}, #{item.retYtdBm1,jdbcType=DECIMAL}, 
        #{item.retIncep,jdbcType=DECIMAL}, #{item.retIncepBm1,jdbcType=DECIMAL}, #{item.retIncepA,jdbcType=DECIMAL}, 
        #{item.retIncepBm1A,jdbcType=DECIMAL}, #{item.sharperatio1y,jdbcType=DECIMAL}, 
        #{item.sharperatio2y,jdbcType=DECIMAL}, #{item.sharperatio3y,jdbcType=DECIMAL}, 
        #{item.sharperatio4y,jdbcType=DECIMAL}, #{item.sharperatio5y,jdbcType=DECIMAL}, 
        #{item.sharperatioIncep,jdbcType=DECIMAL}, #{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.maxdrawdown1y,jdbcType=DECIMAL}, #{item.maxdrawdown2y,jdbcType=DECIMAL}, 
        #{item.maxdrawdown3y,jdbcType=DECIMAL}, #{item.maxdrawdown4y,jdbcType=DECIMAL}, 
        #{item.maxdrawdown5y,jdbcType=DECIMAL}, #{item.maxdrawdown10y,jdbcType=DECIMAL}, 
        #{item.maxdrawdownIncep,jdbcType=DECIMAL}, #{item.dataSources,jdbcType=INTEGER}, 
        #{item.updateTime,jdbcType=TIMESTAMP}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.status,jdbcType=INTEGER}, 
        #{item.sort,jdbcType=INTEGER}, #{item.deleteTag,jdbcType=INTEGER})
    </foreach>
  </insert>
  <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundCount">
    <!--@mbg.generated-->
    insert into ifa_imported_fund_count
    (id, fund_id, strategy, substrategy, `type`, end_date, price_date, net_nav, cumulative_nav, 
      ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1, ret_3m, ret_3m_bm1, 
      ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1, ret_2y_a, ret_2y_bm1_a, 
      ret_3y, ret_3y_bm1, ret_3y_a, ret_3y_bm1_a, ret_4y, ret_4y_bm1, ret_4y_a, ret_4y_bm1_a, 
      ret_5y, ret_5y_bm1, ret_5y_a, ret_5y_bm1_a, ret_ytd, ret_ytd_bm1, ret_incep, ret_incep_bm1, 
      ret_incep_a, ret_incep_bm1_a, sharperatio_1y, sharperatio_2y, sharperatio_3y, sharperatio_4y, 
      sharperatio_5y, sharperatio_incep, stddev_1y, stddev_2y, stddev_3y, stddev_4y, 
      stddev_5y, stddev_10y, stddev_incep, stddev_ytd, maxdrawdown_1y, maxdrawdown_2y, 
      maxdrawdown_3y, maxdrawdown_4y, maxdrawdown_5y, maxdrawdown_10y, maxdrawdown_incep, 
      data_sources, update_time, create_time, `status`, sort, delete_tag)
    values
    (#{id,jdbcType=VARCHAR}, #{fundId,jdbcType=VARCHAR}, #{strategy,jdbcType=INTEGER}, 
      #{substrategy,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{endDate,jdbcType=DATE}, 
      #{priceDate,jdbcType=DATE}, #{netNav,jdbcType=DECIMAL}, #{cumulativeNav,jdbcType=DECIMAL}, 
      #{ret1day,jdbcType=DECIMAL}, #{ret1dayBm1,jdbcType=DECIMAL}, #{ret1w,jdbcType=DECIMAL}, 
      #{ret1wBm1,jdbcType=DECIMAL}, #{ret1m,jdbcType=DECIMAL}, #{ret1mBm1,jdbcType=DECIMAL}, 
      #{ret3m,jdbcType=DECIMAL}, #{ret3mBm1,jdbcType=DECIMAL}, #{ret6m,jdbcType=DECIMAL}, 
      #{ret6mBm1,jdbcType=DECIMAL}, #{ret1y,jdbcType=DECIMAL}, #{ret1yBm1,jdbcType=DECIMAL}, 
      #{ret2y,jdbcType=DECIMAL}, #{ret2yBm1,jdbcType=DECIMAL}, #{ret2yA,jdbcType=DECIMAL}, 
      #{ret2yBm1A,jdbcType=DECIMAL}, #{ret3y,jdbcType=DECIMAL}, #{ret3yBm1,jdbcType=DECIMAL}, 
      #{ret3yA,jdbcType=DECIMAL}, #{ret3yBm1A,jdbcType=DECIMAL}, #{ret4y,jdbcType=DECIMAL}, 
      #{ret4yBm1,jdbcType=DECIMAL}, #{ret4yA,jdbcType=DECIMAL}, #{ret4yBm1A,jdbcType=DECIMAL}, 
      #{ret5y,jdbcType=DECIMAL}, #{ret5yBm1,jdbcType=DECIMAL}, #{ret5yA,jdbcType=DECIMAL}, 
      #{ret5yBm1A,jdbcType=DECIMAL}, #{retYtd,jdbcType=DECIMAL}, #{retYtdBm1,jdbcType=DECIMAL}, 
      #{retIncep,jdbcType=DECIMAL}, #{retIncepBm1,jdbcType=DECIMAL}, #{retIncepA,jdbcType=DECIMAL}, 
      #{retIncepBm1A,jdbcType=DECIMAL}, #{sharperatio1y,jdbcType=DECIMAL}, #{sharperatio2y,jdbcType=DECIMAL}, 
      #{sharperatio3y,jdbcType=DECIMAL}, #{sharperatio4y,jdbcType=DECIMAL}, #{sharperatio5y,jdbcType=DECIMAL}, 
      #{sharperatioIncep,jdbcType=DECIMAL}, #{stddev1y,jdbcType=DECIMAL}, #{stddev2y,jdbcType=DECIMAL}, 
      #{stddev3y,jdbcType=DECIMAL}, #{stddev4y,jdbcType=DECIMAL}, #{stddev5y,jdbcType=DECIMAL}, 
      #{stddev10y,jdbcType=DECIMAL}, #{stddevIncep,jdbcType=DECIMAL}, #{stddevYtd,jdbcType=DECIMAL}, 
      #{maxdrawdown1y,jdbcType=DECIMAL}, #{maxdrawdown2y,jdbcType=DECIMAL}, #{maxdrawdown3y,jdbcType=DECIMAL}, 
      #{maxdrawdown4y,jdbcType=DECIMAL}, #{maxdrawdown5y,jdbcType=DECIMAL}, #{maxdrawdown10y,jdbcType=DECIMAL}, 
      #{maxdrawdownIncep,jdbcType=DECIMAL}, #{dataSources,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, 
      #{deleteTag,jdbcType=INTEGER})
    on duplicate key update 
    id = #{id,jdbcType=VARCHAR}, 
    fund_id = #{fundId,jdbcType=VARCHAR}, 
    strategy = #{strategy,jdbcType=INTEGER}, 
    substrategy = #{substrategy,jdbcType=INTEGER}, 
    `type` = #{type,jdbcType=INTEGER}, 
    end_date = #{endDate,jdbcType=DATE}, 
    price_date = #{priceDate,jdbcType=DATE}, 
    net_nav = #{netNav,jdbcType=DECIMAL}, 
    cumulative_nav = #{cumulativeNav,jdbcType=DECIMAL}, 
    ret_1day = #{ret1day,jdbcType=DECIMAL}, 
    ret_1day_bm1 = #{ret1dayBm1,jdbcType=DECIMAL}, 
    ret_1w = #{ret1w,jdbcType=DECIMAL}, 
    ret_1w_bm1 = #{ret1wBm1,jdbcType=DECIMAL}, 
    ret_1m = #{ret1m,jdbcType=DECIMAL}, 
    ret_1m_bm1 = #{ret1mBm1,jdbcType=DECIMAL}, 
    ret_3m = #{ret3m,jdbcType=DECIMAL}, 
    ret_3m_bm1 = #{ret3mBm1,jdbcType=DECIMAL}, 
    ret_6m = #{ret6m,jdbcType=DECIMAL}, 
    ret_6m_bm1 = #{ret6mBm1,jdbcType=DECIMAL}, 
    ret_1y = #{ret1y,jdbcType=DECIMAL}, 
    ret_1y_bm1 = #{ret1yBm1,jdbcType=DECIMAL}, 
    ret_2y = #{ret2y,jdbcType=DECIMAL}, 
    ret_2y_bm1 = #{ret2yBm1,jdbcType=DECIMAL}, 
    ret_2y_a = #{ret2yA,jdbcType=DECIMAL}, 
    ret_2y_bm1_a = #{ret2yBm1A,jdbcType=DECIMAL}, 
    ret_3y = #{ret3y,jdbcType=DECIMAL}, 
    ret_3y_bm1 = #{ret3yBm1,jdbcType=DECIMAL}, 
    ret_3y_a = #{ret3yA,jdbcType=DECIMAL}, 
    ret_3y_bm1_a = #{ret3yBm1A,jdbcType=DECIMAL}, 
    ret_4y = #{ret4y,jdbcType=DECIMAL}, 
    ret_4y_bm1 = #{ret4yBm1,jdbcType=DECIMAL}, 
    ret_4y_a = #{ret4yA,jdbcType=DECIMAL}, 
    ret_4y_bm1_a = #{ret4yBm1A,jdbcType=DECIMAL}, 
    ret_5y = #{ret5y,jdbcType=DECIMAL}, 
    ret_5y_bm1 = #{ret5yBm1,jdbcType=DECIMAL}, 
    ret_5y_a = #{ret5yA,jdbcType=DECIMAL}, 
    ret_5y_bm1_a = #{ret5yBm1A,jdbcType=DECIMAL}, 
    ret_ytd = #{retYtd,jdbcType=DECIMAL}, 
    ret_ytd_bm1 = #{retYtdBm1,jdbcType=DECIMAL}, 
    ret_incep = #{retIncep,jdbcType=DECIMAL}, 
    ret_incep_bm1 = #{retIncepBm1,jdbcType=DECIMAL}, 
    ret_incep_a = #{retIncepA,jdbcType=DECIMAL}, 
    ret_incep_bm1_a = #{retIncepBm1A,jdbcType=DECIMAL}, 
    sharperatio_1y = #{sharperatio1y,jdbcType=DECIMAL}, 
    sharperatio_2y = #{sharperatio2y,jdbcType=DECIMAL}, 
    sharperatio_3y = #{sharperatio3y,jdbcType=DECIMAL}, 
    sharperatio_4y = #{sharperatio4y,jdbcType=DECIMAL}, 
    sharperatio_5y = #{sharperatio5y,jdbcType=DECIMAL}, 
    sharperatio_incep = #{sharperatioIncep,jdbcType=DECIMAL}, 
    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}, 
    maxdrawdown_1y = #{maxdrawdown1y,jdbcType=DECIMAL}, 
    maxdrawdown_2y = #{maxdrawdown2y,jdbcType=DECIMAL}, 
    maxdrawdown_3y = #{maxdrawdown3y,jdbcType=DECIMAL}, 
    maxdrawdown_4y = #{maxdrawdown4y,jdbcType=DECIMAL}, 
    maxdrawdown_5y = #{maxdrawdown5y,jdbcType=DECIMAL}, 
    maxdrawdown_10y = #{maxdrawdown10y,jdbcType=DECIMAL}, 
    maxdrawdown_incep = #{maxdrawdownIncep,jdbcType=DECIMAL}, 
    data_sources = #{dataSources,jdbcType=INTEGER}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    `status` = #{status,jdbcType=INTEGER}, 
    sort = #{sort,jdbcType=INTEGER}, 
    delete_tag = #{deleteTag,jdbcType=INTEGER}
  </insert>
  <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.IfaImportedFundCount">
    <!--@mbg.generated-->
    insert into ifa_imported_fund_count
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="fundId != null">
        fund_id,
      </if>
      <if test="strategy != null">
        strategy,
      </if>
      <if test="substrategy != null">
        substrategy,
      </if>
      <if test="type != null">
        `type`,
      </if>
      <if test="endDate != null">
        end_date,
      </if>
      <if test="priceDate != null">
        price_date,
      </if>
      <if test="netNav != null">
        net_nav,
      </if>
      <if test="cumulativeNav != null">
        cumulative_nav,
      </if>
      <if test="ret1day != null">
        ret_1day,
      </if>
      <if test="ret1dayBm1 != null">
        ret_1day_bm1,
      </if>
      <if test="ret1w != null">
        ret_1w,
      </if>
      <if test="ret1wBm1 != null">
        ret_1w_bm1,
      </if>
      <if test="ret1m != null">
        ret_1m,
      </if>
      <if test="ret1mBm1 != null">
        ret_1m_bm1,
      </if>
      <if test="ret3m != null">
        ret_3m,
      </if>
      <if test="ret3mBm1 != null">
        ret_3m_bm1,
      </if>
      <if test="ret6m != null">
        ret_6m,
      </if>
      <if test="ret6mBm1 != null">
        ret_6m_bm1,
      </if>
      <if test="ret1y != null">
        ret_1y,
      </if>
      <if test="ret1yBm1 != null">
        ret_1y_bm1,
      </if>
      <if test="ret2y != null">
        ret_2y,
      </if>
      <if test="ret2yBm1 != null">
        ret_2y_bm1,
      </if>
      <if test="ret2yA != null">
        ret_2y_a,
      </if>
      <if test="ret2yBm1A != null">
        ret_2y_bm1_a,
      </if>
      <if test="ret3y != null">
        ret_3y,
      </if>
      <if test="ret3yBm1 != null">
        ret_3y_bm1,
      </if>
      <if test="ret3yA != null">
        ret_3y_a,
      </if>
      <if test="ret3yBm1A != null">
        ret_3y_bm1_a,
      </if>
      <if test="ret4y != null">
        ret_4y,
      </if>
      <if test="ret4yBm1 != null">
        ret_4y_bm1,
      </if>
      <if test="ret4yA != null">
        ret_4y_a,
      </if>
      <if test="ret4yBm1A != null">
        ret_4y_bm1_a,
      </if>
      <if test="ret5y != null">
        ret_5y,
      </if>
      <if test="ret5yBm1 != null">
        ret_5y_bm1,
      </if>
      <if test="ret5yA != null">
        ret_5y_a,
      </if>
      <if test="ret5yBm1A != null">
        ret_5y_bm1_a,
      </if>
      <if test="retYtd != null">
        ret_ytd,
      </if>
      <if test="retYtdBm1 != null">
        ret_ytd_bm1,
      </if>
      <if test="retIncep != null">
        ret_incep,
      </if>
      <if test="retIncepBm1 != null">
        ret_incep_bm1,
      </if>
      <if test="retIncepA != null">
        ret_incep_a,
      </if>
      <if test="retIncepBm1A != null">
        ret_incep_bm1_a,
      </if>
      <if test="sharperatio1y != null">
        sharperatio_1y,
      </if>
      <if test="sharperatio2y != null">
        sharperatio_2y,
      </if>
      <if test="sharperatio3y != null">
        sharperatio_3y,
      </if>
      <if test="sharperatio4y != null">
        sharperatio_4y,
      </if>
      <if test="sharperatio5y != null">
        sharperatio_5y,
      </if>
      <if test="sharperatioIncep != null">
        sharperatio_incep,
      </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="maxdrawdown1y != null">
        maxdrawdown_1y,
      </if>
      <if test="maxdrawdown2y != null">
        maxdrawdown_2y,
      </if>
      <if test="maxdrawdown3y != null">
        maxdrawdown_3y,
      </if>
      <if test="maxdrawdown4y != null">
        maxdrawdown_4y,
      </if>
      <if test="maxdrawdown5y != null">
        maxdrawdown_5y,
      </if>
      <if test="maxdrawdown10y != null">
        maxdrawdown_10y,
      </if>
      <if test="maxdrawdownIncep != null">
        maxdrawdown_incep,
      </if>
      <if test="dataSources != null">
        data_sources,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="status != null">
        `status`,
      </if>
      <if test="sort != null">
        sort,
      </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="strategy != null">
        #{strategy,jdbcType=INTEGER},
      </if>
      <if test="substrategy != null">
        #{substrategy,jdbcType=INTEGER},
      </if>
      <if test="type != null">
        #{type,jdbcType=INTEGER},
      </if>
      <if test="endDate != null">
        #{endDate,jdbcType=DATE},
      </if>
      <if test="priceDate != null">
        #{priceDate,jdbcType=DATE},
      </if>
      <if test="netNav != null">
        #{netNav,jdbcType=DECIMAL},
      </if>
      <if test="cumulativeNav != null">
        #{cumulativeNav,jdbcType=DECIMAL},
      </if>
      <if test="ret1day != null">
        #{ret1day,jdbcType=DECIMAL},
      </if>
      <if test="ret1dayBm1 != null">
        #{ret1dayBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1w != null">
        #{ret1w,jdbcType=DECIMAL},
      </if>
      <if test="ret1wBm1 != null">
        #{ret1wBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1m != null">
        #{ret1m,jdbcType=DECIMAL},
      </if>
      <if test="ret1mBm1 != null">
        #{ret1mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret3m != null">
        #{ret3m,jdbcType=DECIMAL},
      </if>
      <if test="ret3mBm1 != null">
        #{ret3mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret6m != null">
        #{ret6m,jdbcType=DECIMAL},
      </if>
      <if test="ret6mBm1 != null">
        #{ret6mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1y != null">
        #{ret1y,jdbcType=DECIMAL},
      </if>
      <if test="ret1yBm1 != null">
        #{ret1yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret2y != null">
        #{ret2y,jdbcType=DECIMAL},
      </if>
      <if test="ret2yBm1 != null">
        #{ret2yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret2yA != null">
        #{ret2yA,jdbcType=DECIMAL},
      </if>
      <if test="ret2yBm1A != null">
        #{ret2yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret3y != null">
        #{ret3y,jdbcType=DECIMAL},
      </if>
      <if test="ret3yBm1 != null">
        #{ret3yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret3yA != null">
        #{ret3yA,jdbcType=DECIMAL},
      </if>
      <if test="ret3yBm1A != null">
        #{ret3yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret4y != null">
        #{ret4y,jdbcType=DECIMAL},
      </if>
      <if test="ret4yBm1 != null">
        #{ret4yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret4yA != null">
        #{ret4yA,jdbcType=DECIMAL},
      </if>
      <if test="ret4yBm1A != null">
        #{ret4yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret5y != null">
        #{ret5y,jdbcType=DECIMAL},
      </if>
      <if test="ret5yBm1 != null">
        #{ret5yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret5yA != null">
        #{ret5yA,jdbcType=DECIMAL},
      </if>
      <if test="ret5yBm1A != null">
        #{ret5yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="retYtd != null">
        #{retYtd,jdbcType=DECIMAL},
      </if>
      <if test="retYtdBm1 != null">
        #{retYtdBm1,jdbcType=DECIMAL},
      </if>
      <if test="retIncep != null">
        #{retIncep,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1 != null">
        #{retIncepBm1,jdbcType=DECIMAL},
      </if>
      <if test="retIncepA != null">
        #{retIncepA,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1A != null">
        #{retIncepBm1A,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio1y != null">
        #{sharperatio1y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio2y != null">
        #{sharperatio2y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio3y != null">
        #{sharperatio3y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio4y != null">
        #{sharperatio4y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio5y != null">
        #{sharperatio5y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatioIncep != null">
        #{sharperatioIncep,jdbcType=DECIMAL},
      </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="maxdrawdown1y != null">
        #{maxdrawdown1y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown2y != null">
        #{maxdrawdown2y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown3y != null">
        #{maxdrawdown3y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown4y != null">
        #{maxdrawdown4y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown5y != null">
        #{maxdrawdown5y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown10y != null">
        #{maxdrawdown10y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownIncep != null">
        #{maxdrawdownIncep,jdbcType=DECIMAL},
      </if>
      <if test="dataSources != null">
        #{dataSources,jdbcType=INTEGER},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="status != null">
        #{status,jdbcType=INTEGER},
      </if>
      <if test="sort != null">
        #{sort,jdbcType=INTEGER},
      </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="strategy != null">
        strategy = #{strategy,jdbcType=INTEGER},
      </if>
      <if test="substrategy != null">
        substrategy = #{substrategy,jdbcType=INTEGER},
      </if>
      <if test="type != null">
        `type` = #{type,jdbcType=INTEGER},
      </if>
      <if test="endDate != null">
        end_date = #{endDate,jdbcType=DATE},
      </if>
      <if test="priceDate != null">
        price_date = #{priceDate,jdbcType=DATE},
      </if>
      <if test="netNav != null">
        net_nav = #{netNav,jdbcType=DECIMAL},
      </if>
      <if test="cumulativeNav != null">
        cumulative_nav = #{cumulativeNav,jdbcType=DECIMAL},
      </if>
      <if test="ret1day != null">
        ret_1day = #{ret1day,jdbcType=DECIMAL},
      </if>
      <if test="ret1dayBm1 != null">
        ret_1day_bm1 = #{ret1dayBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1w != null">
        ret_1w = #{ret1w,jdbcType=DECIMAL},
      </if>
      <if test="ret1wBm1 != null">
        ret_1w_bm1 = #{ret1wBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1m != null">
        ret_1m = #{ret1m,jdbcType=DECIMAL},
      </if>
      <if test="ret1mBm1 != null">
        ret_1m_bm1 = #{ret1mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret3m != null">
        ret_3m = #{ret3m,jdbcType=DECIMAL},
      </if>
      <if test="ret3mBm1 != null">
        ret_3m_bm1 = #{ret3mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret6m != null">
        ret_6m = #{ret6m,jdbcType=DECIMAL},
      </if>
      <if test="ret6mBm1 != null">
        ret_6m_bm1 = #{ret6mBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret1y != null">
        ret_1y = #{ret1y,jdbcType=DECIMAL},
      </if>
      <if test="ret1yBm1 != null">
        ret_1y_bm1 = #{ret1yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret2y != null">
        ret_2y = #{ret2y,jdbcType=DECIMAL},
      </if>
      <if test="ret2yBm1 != null">
        ret_2y_bm1 = #{ret2yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret2yA != null">
        ret_2y_a = #{ret2yA,jdbcType=DECIMAL},
      </if>
      <if test="ret2yBm1A != null">
        ret_2y_bm1_a = #{ret2yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret3y != null">
        ret_3y = #{ret3y,jdbcType=DECIMAL},
      </if>
      <if test="ret3yBm1 != null">
        ret_3y_bm1 = #{ret3yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret3yA != null">
        ret_3y_a = #{ret3yA,jdbcType=DECIMAL},
      </if>
      <if test="ret3yBm1A != null">
        ret_3y_bm1_a = #{ret3yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret4y != null">
        ret_4y = #{ret4y,jdbcType=DECIMAL},
      </if>
      <if test="ret4yBm1 != null">
        ret_4y_bm1 = #{ret4yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret4yA != null">
        ret_4y_a = #{ret4yA,jdbcType=DECIMAL},
      </if>
      <if test="ret4yBm1A != null">
        ret_4y_bm1_a = #{ret4yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="ret5y != null">
        ret_5y = #{ret5y,jdbcType=DECIMAL},
      </if>
      <if test="ret5yBm1 != null">
        ret_5y_bm1 = #{ret5yBm1,jdbcType=DECIMAL},
      </if>
      <if test="ret5yA != null">
        ret_5y_a = #{ret5yA,jdbcType=DECIMAL},
      </if>
      <if test="ret5yBm1A != null">
        ret_5y_bm1_a = #{ret5yBm1A,jdbcType=DECIMAL},
      </if>
      <if test="retYtd != null">
        ret_ytd = #{retYtd,jdbcType=DECIMAL},
      </if>
      <if test="retYtdBm1 != null">
        ret_ytd_bm1 = #{retYtdBm1,jdbcType=DECIMAL},
      </if>
      <if test="retIncep != null">
        ret_incep = #{retIncep,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1 != null">
        ret_incep_bm1 = #{retIncepBm1,jdbcType=DECIMAL},
      </if>
      <if test="retIncepA != null">
        ret_incep_a = #{retIncepA,jdbcType=DECIMAL},
      </if>
      <if test="retIncepBm1A != null">
        ret_incep_bm1_a = #{retIncepBm1A,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio1y != null">
        sharperatio_1y = #{sharperatio1y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio2y != null">
        sharperatio_2y = #{sharperatio2y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio3y != null">
        sharperatio_3y = #{sharperatio3y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio4y != null">
        sharperatio_4y = #{sharperatio4y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatio5y != null">
        sharperatio_5y = #{sharperatio5y,jdbcType=DECIMAL},
      </if>
      <if test="sharperatioIncep != null">
        sharperatio_incep = #{sharperatioIncep,jdbcType=DECIMAL},
      </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="maxdrawdown1y != null">
        maxdrawdown_1y = #{maxdrawdown1y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown2y != null">
        maxdrawdown_2y = #{maxdrawdown2y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown3y != null">
        maxdrawdown_3y = #{maxdrawdown3y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown4y != null">
        maxdrawdown_4y = #{maxdrawdown4y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown5y != null">
        maxdrawdown_5y = #{maxdrawdown5y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdown10y != null">
        maxdrawdown_10y = #{maxdrawdown10y,jdbcType=DECIMAL},
      </if>
      <if test="maxdrawdownIncep != null">
        maxdrawdown_incep = #{maxdrawdownIncep,jdbcType=DECIMAL},
      </if>
      <if test="dataSources != null">
        data_sources = #{dataSources,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="status != null">
        `status` = #{status,jdbcType=INTEGER},
      </if>
      <if test="sort != null">
        sort = #{sort,jdbcType=INTEGER},
      </if>
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
</mapper>