<?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.TxFundMarketIndexesMapper">
  <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.TxFundMarketIndexes">
    <!--@mbg.generated-->
    <!--@Table tx_fund_market_indexes-->
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="index_id" jdbcType="VARCHAR" property="indexId" />
    <result column="index_code" jdbcType="VARCHAR" property="indexCode" />
    <result column="price_date" jdbcType="DATE" property="priceDate" />
    <result column="preclose" jdbcType="DECIMAL" property="preclose" />
    <result column="open" jdbcType="DECIMAL" property="open" />
    <result column="high" jdbcType="DECIMAL" property="high" />
    <result column="low" jdbcType="DECIMAL" property="low" />
    <result column="close" jdbcType="DECIMAL" property="close" />
    <result column="trade_volume" jdbcType="DECIMAL" property="tradeVolume" />
    <result column="trade_amount" jdbcType="DECIMAL" property="tradeAmount" />
    <result column="wave_range" jdbcType="DECIMAL" property="waveRange" />
    <result column="day_price_limit" jdbcType="DECIMAL" property="dayPriceLimit" />
    <result column="duration" jdbcType="DECIMAL" property="duration" />
    <result column="convexity" jdbcType="VARCHAR" property="convexity" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_by" jdbcType="VARCHAR" property="createBy" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
    <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, index_id, index_code, price_date, preclose, `open`, high, low, `close`, trade_volume, 
    trade_amount, wave_range, day_price_limit, duration, convexity, create_time, create_by, 
    update_time, update_by, delete_tag
  </sql>
  <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.TxFundMarketIndexesExample" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from tx_fund_market_indexes
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select 
    <include refid="Base_Column_List" />
    from tx_fund_market_indexes
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--@mbg.generated-->
    delete from tx_fund_market_indexes
    where id = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.TxFundMarketIndexesExample">
    <!--@mbg.generated-->
    delete from tx_fund_market_indexes
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tanpu.fund.entity.generator.TxFundMarketIndexes">
    <!--@mbg.generated-->
    insert into tx_fund_market_indexes (id, index_id, index_code, 
      price_date, preclose, `open`, 
      high, low, `close`, trade_volume, 
      trade_amount, wave_range, day_price_limit, 
      duration, convexity, create_time, 
      create_by, update_time, update_by, 
      delete_tag)
    values (#{id,jdbcType=VARCHAR}, #{indexId,jdbcType=VARCHAR}, #{indexCode,jdbcType=VARCHAR}, 
      #{priceDate,jdbcType=DATE}, #{preclose,jdbcType=DECIMAL}, #{open,jdbcType=DECIMAL}, 
      #{high,jdbcType=DECIMAL}, #{low,jdbcType=DECIMAL}, #{close,jdbcType=DECIMAL}, #{tradeVolume,jdbcType=DECIMAL}, 
      #{tradeAmount,jdbcType=DECIMAL}, #{waveRange,jdbcType=DECIMAL}, #{dayPriceLimit,jdbcType=DECIMAL}, 
      #{duration,jdbcType=DECIMAL}, #{convexity,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{createBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, 
      #{deleteTag,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.TxFundMarketIndexes">
    <!--@mbg.generated-->
    insert into tx_fund_market_indexes
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="indexId != null">
        index_id,
      </if>
      <if test="indexCode != null">
        index_code,
      </if>
      <if test="priceDate != null">
        price_date,
      </if>
      <if test="preclose != null">
        preclose,
      </if>
      <if test="open != null">
        `open`,
      </if>
      <if test="high != null">
        high,
      </if>
      <if test="low != null">
        low,
      </if>
      <if test="close != null">
        `close`,
      </if>
      <if test="tradeVolume != null">
        trade_volume,
      </if>
      <if test="tradeAmount != null">
        trade_amount,
      </if>
      <if test="waveRange != null">
        wave_range,
      </if>
      <if test="dayPriceLimit != null">
        day_price_limit,
      </if>
      <if test="duration != null">
        duration,
      </if>
      <if test="convexity != null">
        convexity,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createBy != null">
        create_by,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="updateBy != null">
        update_by,
      </if>
      <if test="deleteTag != null">
        delete_tag,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="indexId != null">
        #{indexId,jdbcType=VARCHAR},
      </if>
      <if test="indexCode != null">
        #{indexCode,jdbcType=VARCHAR},
      </if>
      <if test="priceDate != null">
        #{priceDate,jdbcType=DATE},
      </if>
      <if test="preclose != null">
        #{preclose,jdbcType=DECIMAL},
      </if>
      <if test="open != null">
        #{open,jdbcType=DECIMAL},
      </if>
      <if test="high != null">
        #{high,jdbcType=DECIMAL},
      </if>
      <if test="low != null">
        #{low,jdbcType=DECIMAL},
      </if>
      <if test="close != null">
        #{close,jdbcType=DECIMAL},
      </if>
      <if test="tradeVolume != null">
        #{tradeVolume,jdbcType=DECIMAL},
      </if>
      <if test="tradeAmount != null">
        #{tradeAmount,jdbcType=DECIMAL},
      </if>
      <if test="waveRange != null">
        #{waveRange,jdbcType=DECIMAL},
      </if>
      <if test="dayPriceLimit != null">
        #{dayPriceLimit,jdbcType=DECIMAL},
      </if>
      <if test="duration != null">
        #{duration,jdbcType=DECIMAL},
      </if>
      <if test="convexity != null">
        #{convexity,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.TxFundMarketIndexesExample" resultType="java.lang.Long">
    <!--@mbg.generated-->
    select count(*) from tx_fund_market_indexes
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--@mbg.generated-->
    update tx_fund_market_indexes
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.indexId != null">
        index_id = #{record.indexId,jdbcType=VARCHAR},
      </if>
      <if test="record.indexCode != null">
        index_code = #{record.indexCode,jdbcType=VARCHAR},
      </if>
      <if test="record.priceDate != null">
        price_date = #{record.priceDate,jdbcType=DATE},
      </if>
      <if test="record.preclose != null">
        preclose = #{record.preclose,jdbcType=DECIMAL},
      </if>
      <if test="record.open != null">
        `open` = #{record.open,jdbcType=DECIMAL},
      </if>
      <if test="record.high != null">
        high = #{record.high,jdbcType=DECIMAL},
      </if>
      <if test="record.low != null">
        low = #{record.low,jdbcType=DECIMAL},
      </if>
      <if test="record.close != null">
        `close` = #{record.close,jdbcType=DECIMAL},
      </if>
      <if test="record.tradeVolume != null">
        trade_volume = #{record.tradeVolume,jdbcType=DECIMAL},
      </if>
      <if test="record.tradeAmount != null">
        trade_amount = #{record.tradeAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.waveRange != null">
        wave_range = #{record.waveRange,jdbcType=DECIMAL},
      </if>
      <if test="record.dayPriceLimit != null">
        day_price_limit = #{record.dayPriceLimit,jdbcType=DECIMAL},
      </if>
      <if test="record.duration != null">
        duration = #{record.duration,jdbcType=DECIMAL},
      </if>
      <if test="record.convexity != null">
        convexity = #{record.convexity,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createBy != null">
        create_by = #{record.createBy,jdbcType=VARCHAR},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateBy != null">
        update_by = #{record.updateBy,jdbcType=VARCHAR},
      </if>
      <if test="record.deleteTag != null">
        delete_tag = #{record.deleteTag,jdbcType=INTEGER},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--@mbg.generated-->
    update tx_fund_market_indexes
    set id = #{record.id,jdbcType=VARCHAR},
      index_id = #{record.indexId,jdbcType=VARCHAR},
      index_code = #{record.indexCode,jdbcType=VARCHAR},
      price_date = #{record.priceDate,jdbcType=DATE},
      preclose = #{record.preclose,jdbcType=DECIMAL},
      `open` = #{record.open,jdbcType=DECIMAL},
      high = #{record.high,jdbcType=DECIMAL},
      low = #{record.low,jdbcType=DECIMAL},
      `close` = #{record.close,jdbcType=DECIMAL},
      trade_volume = #{record.tradeVolume,jdbcType=DECIMAL},
      trade_amount = #{record.tradeAmount,jdbcType=DECIMAL},
      wave_range = #{record.waveRange,jdbcType=DECIMAL},
      day_price_limit = #{record.dayPriceLimit,jdbcType=DECIMAL},
      duration = #{record.duration,jdbcType=DECIMAL},
      convexity = #{record.convexity,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      create_by = #{record.createBy,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_by = #{record.updateBy,jdbcType=VARCHAR},
      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.TxFundMarketIndexes">
    <!--@mbg.generated-->
    update tx_fund_market_indexes
    <set>
      <if test="indexId != null">
        index_id = #{indexId,jdbcType=VARCHAR},
      </if>
      <if test="indexCode != null">
        index_code = #{indexCode,jdbcType=VARCHAR},
      </if>
      <if test="priceDate != null">
        price_date = #{priceDate,jdbcType=DATE},
      </if>
      <if test="preclose != null">
        preclose = #{preclose,jdbcType=DECIMAL},
      </if>
      <if test="open != null">
        `open` = #{open,jdbcType=DECIMAL},
      </if>
      <if test="high != null">
        high = #{high,jdbcType=DECIMAL},
      </if>
      <if test="low != null">
        low = #{low,jdbcType=DECIMAL},
      </if>
      <if test="close != null">
        `close` = #{close,jdbcType=DECIMAL},
      </if>
      <if test="tradeVolume != null">
        trade_volume = #{tradeVolume,jdbcType=DECIMAL},
      </if>
      <if test="tradeAmount != null">
        trade_amount = #{tradeAmount,jdbcType=DECIMAL},
      </if>
      <if test="waveRange != null">
        wave_range = #{waveRange,jdbcType=DECIMAL},
      </if>
      <if test="dayPriceLimit != null">
        day_price_limit = #{dayPriceLimit,jdbcType=DECIMAL},
      </if>
      <if test="duration != null">
        duration = #{duration,jdbcType=DECIMAL},
      </if>
      <if test="convexity != null">
        convexity = #{convexity,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        create_by = #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        update_by = #{updateBy,jdbcType=VARCHAR},
      </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.TxFundMarketIndexes">
    <!--@mbg.generated-->
    update tx_fund_market_indexes
    set index_id = #{indexId,jdbcType=VARCHAR},
      index_code = #{indexCode,jdbcType=VARCHAR},
      price_date = #{priceDate,jdbcType=DATE},
      preclose = #{preclose,jdbcType=DECIMAL},
      `open` = #{open,jdbcType=DECIMAL},
      high = #{high,jdbcType=DECIMAL},
      low = #{low,jdbcType=DECIMAL},
      `close` = #{close,jdbcType=DECIMAL},
      trade_volume = #{tradeVolume,jdbcType=DECIMAL},
      trade_amount = #{tradeAmount,jdbcType=DECIMAL},
      wave_range = #{waveRange,jdbcType=DECIMAL},
      day_price_limit = #{dayPriceLimit,jdbcType=DECIMAL},
      duration = #{duration,jdbcType=DECIMAL},
      convexity = #{convexity,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_by = #{createBy,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_by = #{updateBy,jdbcType=VARCHAR},
      delete_tag = #{deleteTag,jdbcType=INTEGER}
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateBatch" parameterType="java.util.List">
    <!--@mbg.generated-->
    update tx_fund_market_indexes
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="index_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.indexId,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="index_code = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.indexCode,jdbcType=VARCHAR}
        </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="preclose = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.preclose,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="`open` = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.open,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="high = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.high,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="low = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.low,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="`close` = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.close,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="trade_volume = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.tradeVolume,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="trade_amount = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.tradeAmount,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="wave_range = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.waveRange,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="day_price_limit = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.dayPriceLimit,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="duration = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.duration,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="convexity = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.convexity,jdbcType=VARCHAR}
        </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="create_by = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR}
        </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="update_by = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="delete_tag = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
        </foreach>
      </trim>
    </trim>
    where id in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.id,jdbcType=VARCHAR}
    </foreach>
  </update>
  <insert id="batchInsert" parameterType="map">
    <!--@mbg.generated-->
    insert into tx_fund_market_indexes
    (id, index_id, index_code, price_date, preclose, `open`, high, low, `close`, trade_volume, 
      trade_amount, wave_range, day_price_limit, duration, convexity, create_time, create_by, 
      update_time, update_by, delete_tag)
    values
    <foreach collection="list" item="item" separator=",">
      (#{item.id,jdbcType=VARCHAR}, #{item.indexId,jdbcType=VARCHAR}, #{item.indexCode,jdbcType=VARCHAR}, 
        #{item.priceDate,jdbcType=DATE}, #{item.preclose,jdbcType=DECIMAL}, #{item.open,jdbcType=DECIMAL}, 
        #{item.high,jdbcType=DECIMAL}, #{item.low,jdbcType=DECIMAL}, #{item.close,jdbcType=DECIMAL}, 
        #{item.tradeVolume,jdbcType=DECIMAL}, #{item.tradeAmount,jdbcType=DECIMAL}, #{item.waveRange,jdbcType=DECIMAL}, 
        #{item.dayPriceLimit,jdbcType=DECIMAL}, #{item.duration,jdbcType=DECIMAL}, #{item.convexity,jdbcType=VARCHAR}, 
        #{item.createTime,jdbcType=TIMESTAMP}, #{item.createBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, 
        #{item.updateBy,jdbcType=VARCHAR}, #{item.deleteTag,jdbcType=INTEGER})
    </foreach>
  </insert>
  <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.TxFundMarketIndexes">
    <!--@mbg.generated-->
    insert into tx_fund_market_indexes
    (id, index_id, index_code, price_date, preclose, `open`, high, low, `close`, trade_volume, 
      trade_amount, wave_range, day_price_limit, duration, convexity, create_time, create_by, 
      update_time, update_by, delete_tag)
    values
    (#{id,jdbcType=VARCHAR}, #{indexId,jdbcType=VARCHAR}, #{indexCode,jdbcType=VARCHAR}, 
      #{priceDate,jdbcType=DATE}, #{preclose,jdbcType=DECIMAL}, #{open,jdbcType=DECIMAL}, 
      #{high,jdbcType=DECIMAL}, #{low,jdbcType=DECIMAL}, #{close,jdbcType=DECIMAL}, #{tradeVolume,jdbcType=DECIMAL}, 
      #{tradeAmount,jdbcType=DECIMAL}, #{waveRange,jdbcType=DECIMAL}, #{dayPriceLimit,jdbcType=DECIMAL}, 
      #{duration,jdbcType=DECIMAL}, #{convexity,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{createBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, 
      #{deleteTag,jdbcType=INTEGER})
    on duplicate key update 
    id = #{id,jdbcType=VARCHAR}, 
    index_id = #{indexId,jdbcType=VARCHAR}, 
    index_code = #{indexCode,jdbcType=VARCHAR}, 
    price_date = #{priceDate,jdbcType=DATE}, 
    preclose = #{preclose,jdbcType=DECIMAL}, 
    `open` = #{open,jdbcType=DECIMAL}, 
    high = #{high,jdbcType=DECIMAL}, 
    low = #{low,jdbcType=DECIMAL}, 
    `close` = #{close,jdbcType=DECIMAL}, 
    trade_volume = #{tradeVolume,jdbcType=DECIMAL}, 
    trade_amount = #{tradeAmount,jdbcType=DECIMAL}, 
    wave_range = #{waveRange,jdbcType=DECIMAL}, 
    day_price_limit = #{dayPriceLimit,jdbcType=DECIMAL}, 
    duration = #{duration,jdbcType=DECIMAL}, 
    convexity = #{convexity,jdbcType=VARCHAR}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    create_by = #{createBy,jdbcType=VARCHAR}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    update_by = #{updateBy,jdbcType=VARCHAR}, 
    delete_tag = #{deleteTag,jdbcType=INTEGER}
  </insert>
  <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.TxFundMarketIndexes">
    <!--@mbg.generated-->
    insert into tx_fund_market_indexes
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="indexId != null">
        index_id,
      </if>
      <if test="indexCode != null">
        index_code,
      </if>
      <if test="priceDate != null">
        price_date,
      </if>
      <if test="preclose != null">
        preclose,
      </if>
      <if test="open != null">
        `open`,
      </if>
      <if test="high != null">
        high,
      </if>
      <if test="low != null">
        low,
      </if>
      <if test="close != null">
        `close`,
      </if>
      <if test="tradeVolume != null">
        trade_volume,
      </if>
      <if test="tradeAmount != null">
        trade_amount,
      </if>
      <if test="waveRange != null">
        wave_range,
      </if>
      <if test="dayPriceLimit != null">
        day_price_limit,
      </if>
      <if test="duration != null">
        duration,
      </if>
      <if test="convexity != null">
        convexity,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createBy != null">
        create_by,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="updateBy != null">
        update_by,
      </if>
      <if test="deleteTag != null">
        delete_tag,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="indexId != null">
        #{indexId,jdbcType=VARCHAR},
      </if>
      <if test="indexCode != null">
        #{indexCode,jdbcType=VARCHAR},
      </if>
      <if test="priceDate != null">
        #{priceDate,jdbcType=DATE},
      </if>
      <if test="preclose != null">
        #{preclose,jdbcType=DECIMAL},
      </if>
      <if test="open != null">
        #{open,jdbcType=DECIMAL},
      </if>
      <if test="high != null">
        #{high,jdbcType=DECIMAL},
      </if>
      <if test="low != null">
        #{low,jdbcType=DECIMAL},
      </if>
      <if test="close != null">
        #{close,jdbcType=DECIMAL},
      </if>
      <if test="tradeVolume != null">
        #{tradeVolume,jdbcType=DECIMAL},
      </if>
      <if test="tradeAmount != null">
        #{tradeAmount,jdbcType=DECIMAL},
      </if>
      <if test="waveRange != null">
        #{waveRange,jdbcType=DECIMAL},
      </if>
      <if test="dayPriceLimit != null">
        #{dayPriceLimit,jdbcType=DECIMAL},
      </if>
      <if test="duration != null">
        #{duration,jdbcType=DECIMAL},
      </if>
      <if test="convexity != null">
        #{convexity,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        #{updateBy,jdbcType=VARCHAR},
      </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="indexId != null">
        index_id = #{indexId,jdbcType=VARCHAR},
      </if>
      <if test="indexCode != null">
        index_code = #{indexCode,jdbcType=VARCHAR},
      </if>
      <if test="priceDate != null">
        price_date = #{priceDate,jdbcType=DATE},
      </if>
      <if test="preclose != null">
        preclose = #{preclose,jdbcType=DECIMAL},
      </if>
      <if test="open != null">
        `open` = #{open,jdbcType=DECIMAL},
      </if>
      <if test="high != null">
        high = #{high,jdbcType=DECIMAL},
      </if>
      <if test="low != null">
        low = #{low,jdbcType=DECIMAL},
      </if>
      <if test="close != null">
        `close` = #{close,jdbcType=DECIMAL},
      </if>
      <if test="tradeVolume != null">
        trade_volume = #{tradeVolume,jdbcType=DECIMAL},
      </if>
      <if test="tradeAmount != null">
        trade_amount = #{tradeAmount,jdbcType=DECIMAL},
      </if>
      <if test="waveRange != null">
        wave_range = #{waveRange,jdbcType=DECIMAL},
      </if>
      <if test="dayPriceLimit != null">
        day_price_limit = #{dayPriceLimit,jdbcType=DECIMAL},
      </if>
      <if test="duration != null">
        duration = #{duration,jdbcType=DECIMAL},
      </if>
      <if test="convexity != null">
        convexity = #{convexity,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        create_by = #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        update_by = #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
</mapper>