<?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.TxIndexBasicMapper">
  <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.TxIndexBasic">
    <!--@mbg.generated-->
    <!--@Table tx_index_basic-->
    <id column="index_id" jdbcType="INTEGER" property="indexId" />
    <result column="index_code" jdbcType="VARCHAR" property="indexCode" />
    <result column="index_name" jdbcType="VARCHAR" property="indexName" />
    <result column="announce_date" jdbcType="DATE" property="announceDate" />
    <result column="start_date" jdbcType="DATE" property="startDate" />
    <result column="end_date" jdbcType="DATE" property="endDate" />
    <result column="sector_id" jdbcType="INTEGER" property="sectorId" />
    <result column="sector_name" jdbcType="VARCHAR" property="sectorName" />
    <result column="publisher_id" jdbcType="INTEGER" property="publisherId" />
    <result column="publisher_name" jdbcType="VARCHAR" property="publisherName" />
    <result column="outer_code" jdbcType="VARCHAR" property="outerCode" />
    <result column="index_fullname" jdbcType="VARCHAR" property="indexFullname" />
    <result column="category_id" jdbcType="VARCHAR" property="categoryId" />
    <result column="category_name" jdbcType="VARCHAR" property="categoryName" />
    <result column="type_id" jdbcType="VARCHAR" property="typeId" />
    <result column="type_name" jdbcType="VARCHAR" property="typeName" />
    <result column="benchmark_date" jdbcType="DATE" property="benchmarkDate" />
    <result column="benchmark" jdbcType="DECIMAL" property="benchmark" />
    <result column="weight_method" jdbcType="VARCHAR" property="weightMethod" />
    <result column="weight_desc" jdbcType="VARCHAR" property="weightDesc" />
    <result column="weight_price" jdbcType="DECIMAL" property="weightPrice" />
    <result column="selection_method" jdbcType="VARCHAR" property="selectionMethod" />
    <result column="data_source" jdbcType="VARCHAR" property="dataSource" />
    <result column="status" jdbcType="INTEGER" property="status" />
    <result column="status_explain" jdbcType="VARCHAR" property="statusExplain" />
    <result column="S_SEQ" jdbcType="BIGINT" property="sSeq" />
    <result column="S_ROW_VERSION" jdbcType="BIGINT" property="sRowVersion" />
    <result column="S_UPDATE_TIME" jdbcType="TIMESTAMP" property="sUpdateTime" />
    <result column="S_DATA_STATE" jdbcType="SMALLINT" property="sDataState" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.TxIndexBasic">
    <!--@mbg.generated-->
    <!--@Table tx_index_basic-->
    <result column="PS" jdbcType="LONGVARCHAR" property="ps" />
  </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-->
    index_id, index_code, index_name, announce_date, start_date, end_date, sector_id, 
    sector_name, publisher_id, publisher_name, outer_code, index_fullname, category_id, 
    category_name, type_id, type_name, benchmark_date, benchmark, weight_method, weight_desc, 
    weight_price, selection_method, data_source, `status`, status_explain, S_SEQ, S_ROW_VERSION, 
    S_UPDATE_TIME, S_DATA_STATE
  </sql>
  <sql id="Blob_Column_List">
    <!--@mbg.generated-->
    PS
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="com.tanpu.fund.entity.generator.TxIndexBasicExample" resultMap="ResultMapWithBLOBs">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from tx_index_basic
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.TxIndexBasicExample" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from tx_index_basic
    <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.Integer" resultMap="ResultMapWithBLOBs">
    <!--@mbg.generated-->
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from tx_index_basic
    where index_id = #{indexId,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    <!--@mbg.generated-->
    delete from tx_index_basic
    where index_id = #{indexId,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.TxIndexBasicExample">
    <!--@mbg.generated-->
    delete from tx_index_basic
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tanpu.fund.entity.generator.TxIndexBasic">
    <!--@mbg.generated-->
    insert into tx_index_basic (index_id, index_code, index_name, 
      announce_date, start_date, end_date, 
      sector_id, sector_name, publisher_id, 
      publisher_name, outer_code, index_fullname, 
      category_id, category_name, type_id, 
      type_name, benchmark_date, benchmark, 
      weight_method, weight_desc, weight_price, 
      selection_method, data_source, `status`, 
      status_explain, S_SEQ, S_ROW_VERSION, 
      S_UPDATE_TIME, S_DATA_STATE, PS
      )
    values (#{indexId,jdbcType=INTEGER}, #{indexCode,jdbcType=VARCHAR}, #{indexName,jdbcType=VARCHAR}, 
      #{announceDate,jdbcType=DATE}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE}, 
      #{sectorId,jdbcType=INTEGER}, #{sectorName,jdbcType=VARCHAR}, #{publisherId,jdbcType=INTEGER}, 
      #{publisherName,jdbcType=VARCHAR}, #{outerCode,jdbcType=VARCHAR}, #{indexFullname,jdbcType=VARCHAR}, 
      #{categoryId,jdbcType=VARCHAR}, #{categoryName,jdbcType=VARCHAR}, #{typeId,jdbcType=VARCHAR}, 
      #{typeName,jdbcType=VARCHAR}, #{benchmarkDate,jdbcType=DATE}, #{benchmark,jdbcType=DECIMAL}, 
      #{weightMethod,jdbcType=VARCHAR}, #{weightDesc,jdbcType=VARCHAR}, #{weightPrice,jdbcType=DECIMAL}, 
      #{selectionMethod,jdbcType=VARCHAR}, #{dataSource,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, 
      #{statusExplain,jdbcType=VARCHAR}, #{sSeq,jdbcType=BIGINT}, #{sRowVersion,jdbcType=BIGINT}, 
      #{sUpdateTime,jdbcType=TIMESTAMP}, #{sDataState,jdbcType=SMALLINT}, #{ps,jdbcType=LONGVARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.TxIndexBasic">
    <!--@mbg.generated-->
    insert into tx_index_basic
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="indexId != null">
        index_id,
      </if>
      <if test="indexCode != null">
        index_code,
      </if>
      <if test="indexName != null">
        index_name,
      </if>
      <if test="announceDate != null">
        announce_date,
      </if>
      <if test="startDate != null">
        start_date,
      </if>
      <if test="endDate != null">
        end_date,
      </if>
      <if test="sectorId != null">
        sector_id,
      </if>
      <if test="sectorName != null">
        sector_name,
      </if>
      <if test="publisherId != null">
        publisher_id,
      </if>
      <if test="publisherName != null">
        publisher_name,
      </if>
      <if test="outerCode != null">
        outer_code,
      </if>
      <if test="indexFullname != null">
        index_fullname,
      </if>
      <if test="categoryId != null">
        category_id,
      </if>
      <if test="categoryName != null">
        category_name,
      </if>
      <if test="typeId != null">
        type_id,
      </if>
      <if test="typeName != null">
        type_name,
      </if>
      <if test="benchmarkDate != null">
        benchmark_date,
      </if>
      <if test="benchmark != null">
        benchmark,
      </if>
      <if test="weightMethod != null">
        weight_method,
      </if>
      <if test="weightDesc != null">
        weight_desc,
      </if>
      <if test="weightPrice != null">
        weight_price,
      </if>
      <if test="selectionMethod != null">
        selection_method,
      </if>
      <if test="dataSource != null">
        data_source,
      </if>
      <if test="status != null">
        `status`,
      </if>
      <if test="statusExplain != null">
        status_explain,
      </if>
      <if test="sSeq != null">
        S_SEQ,
      </if>
      <if test="sRowVersion != null">
        S_ROW_VERSION,
      </if>
      <if test="sUpdateTime != null">
        S_UPDATE_TIME,
      </if>
      <if test="sDataState != null">
        S_DATA_STATE,
      </if>
      <if test="ps != null">
        PS,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="indexId != null">
        #{indexId,jdbcType=INTEGER},
      </if>
      <if test="indexCode != null">
        #{indexCode,jdbcType=VARCHAR},
      </if>
      <if test="indexName != null">
        #{indexName,jdbcType=VARCHAR},
      </if>
      <if test="announceDate != null">
        #{announceDate,jdbcType=DATE},
      </if>
      <if test="startDate != null">
        #{startDate,jdbcType=DATE},
      </if>
      <if test="endDate != null">
        #{endDate,jdbcType=DATE},
      </if>
      <if test="sectorId != null">
        #{sectorId,jdbcType=INTEGER},
      </if>
      <if test="sectorName != null">
        #{sectorName,jdbcType=VARCHAR},
      </if>
      <if test="publisherId != null">
        #{publisherId,jdbcType=INTEGER},
      </if>
      <if test="publisherName != null">
        #{publisherName,jdbcType=VARCHAR},
      </if>
      <if test="outerCode != null">
        #{outerCode,jdbcType=VARCHAR},
      </if>
      <if test="indexFullname != null">
        #{indexFullname,jdbcType=VARCHAR},
      </if>
      <if test="categoryId != null">
        #{categoryId,jdbcType=VARCHAR},
      </if>
      <if test="categoryName != null">
        #{categoryName,jdbcType=VARCHAR},
      </if>
      <if test="typeId != null">
        #{typeId,jdbcType=VARCHAR},
      </if>
      <if test="typeName != null">
        #{typeName,jdbcType=VARCHAR},
      </if>
      <if test="benchmarkDate != null">
        #{benchmarkDate,jdbcType=DATE},
      </if>
      <if test="benchmark != null">
        #{benchmark,jdbcType=DECIMAL},
      </if>
      <if test="weightMethod != null">
        #{weightMethod,jdbcType=VARCHAR},
      </if>
      <if test="weightDesc != null">
        #{weightDesc,jdbcType=VARCHAR},
      </if>
      <if test="weightPrice != null">
        #{weightPrice,jdbcType=DECIMAL},
      </if>
      <if test="selectionMethod != null">
        #{selectionMethod,jdbcType=VARCHAR},
      </if>
      <if test="dataSource != null">
        #{dataSource,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=INTEGER},
      </if>
      <if test="statusExplain != null">
        #{statusExplain,jdbcType=VARCHAR},
      </if>
      <if test="sSeq != null">
        #{sSeq,jdbcType=BIGINT},
      </if>
      <if test="sRowVersion != null">
        #{sRowVersion,jdbcType=BIGINT},
      </if>
      <if test="sUpdateTime != null">
        #{sUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="sDataState != null">
        #{sDataState,jdbcType=SMALLINT},
      </if>
      <if test="ps != null">
        #{ps,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.TxIndexBasicExample" resultType="java.lang.Long">
    <!--@mbg.generated-->
    select count(*) from tx_index_basic
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--@mbg.generated-->
    update tx_index_basic
    <set>
      <if test="record.indexId != null">
        index_id = #{record.indexId,jdbcType=INTEGER},
      </if>
      <if test="record.indexCode != null">
        index_code = #{record.indexCode,jdbcType=VARCHAR},
      </if>
      <if test="record.indexName != null">
        index_name = #{record.indexName,jdbcType=VARCHAR},
      </if>
      <if test="record.announceDate != null">
        announce_date = #{record.announceDate,jdbcType=DATE},
      </if>
      <if test="record.startDate != null">
        start_date = #{record.startDate,jdbcType=DATE},
      </if>
      <if test="record.endDate != null">
        end_date = #{record.endDate,jdbcType=DATE},
      </if>
      <if test="record.sectorId != null">
        sector_id = #{record.sectorId,jdbcType=INTEGER},
      </if>
      <if test="record.sectorName != null">
        sector_name = #{record.sectorName,jdbcType=VARCHAR},
      </if>
      <if test="record.publisherId != null">
        publisher_id = #{record.publisherId,jdbcType=INTEGER},
      </if>
      <if test="record.publisherName != null">
        publisher_name = #{record.publisherName,jdbcType=VARCHAR},
      </if>
      <if test="record.outerCode != null">
        outer_code = #{record.outerCode,jdbcType=VARCHAR},
      </if>
      <if test="record.indexFullname != null">
        index_fullname = #{record.indexFullname,jdbcType=VARCHAR},
      </if>
      <if test="record.categoryId != null">
        category_id = #{record.categoryId,jdbcType=VARCHAR},
      </if>
      <if test="record.categoryName != null">
        category_name = #{record.categoryName,jdbcType=VARCHAR},
      </if>
      <if test="record.typeId != null">
        type_id = #{record.typeId,jdbcType=VARCHAR},
      </if>
      <if test="record.typeName != null">
        type_name = #{record.typeName,jdbcType=VARCHAR},
      </if>
      <if test="record.benchmarkDate != null">
        benchmark_date = #{record.benchmarkDate,jdbcType=DATE},
      </if>
      <if test="record.benchmark != null">
        benchmark = #{record.benchmark,jdbcType=DECIMAL},
      </if>
      <if test="record.weightMethod != null">
        weight_method = #{record.weightMethod,jdbcType=VARCHAR},
      </if>
      <if test="record.weightDesc != null">
        weight_desc = #{record.weightDesc,jdbcType=VARCHAR},
      </if>
      <if test="record.weightPrice != null">
        weight_price = #{record.weightPrice,jdbcType=DECIMAL},
      </if>
      <if test="record.selectionMethod != null">
        selection_method = #{record.selectionMethod,jdbcType=VARCHAR},
      </if>
      <if test="record.dataSource != null">
        data_source = #{record.dataSource,jdbcType=VARCHAR},
      </if>
      <if test="record.status != null">
        `status` = #{record.status,jdbcType=INTEGER},
      </if>
      <if test="record.statusExplain != null">
        status_explain = #{record.statusExplain,jdbcType=VARCHAR},
      </if>
      <if test="record.sSeq != null">
        S_SEQ = #{record.sSeq,jdbcType=BIGINT},
      </if>
      <if test="record.sRowVersion != null">
        S_ROW_VERSION = #{record.sRowVersion,jdbcType=BIGINT},
      </if>
      <if test="record.sUpdateTime != null">
        S_UPDATE_TIME = #{record.sUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.sDataState != null">
        S_DATA_STATE = #{record.sDataState,jdbcType=SMALLINT},
      </if>
      <if test="record.ps != null">
        PS = #{record.ps,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    <!--@mbg.generated-->
    update tx_index_basic
    set index_id = #{record.indexId,jdbcType=INTEGER},
      index_code = #{record.indexCode,jdbcType=VARCHAR},
      index_name = #{record.indexName,jdbcType=VARCHAR},
      announce_date = #{record.announceDate,jdbcType=DATE},
      start_date = #{record.startDate,jdbcType=DATE},
      end_date = #{record.endDate,jdbcType=DATE},
      sector_id = #{record.sectorId,jdbcType=INTEGER},
      sector_name = #{record.sectorName,jdbcType=VARCHAR},
      publisher_id = #{record.publisherId,jdbcType=INTEGER},
      publisher_name = #{record.publisherName,jdbcType=VARCHAR},
      outer_code = #{record.outerCode,jdbcType=VARCHAR},
      index_fullname = #{record.indexFullname,jdbcType=VARCHAR},
      category_id = #{record.categoryId,jdbcType=VARCHAR},
      category_name = #{record.categoryName,jdbcType=VARCHAR},
      type_id = #{record.typeId,jdbcType=VARCHAR},
      type_name = #{record.typeName,jdbcType=VARCHAR},
      benchmark_date = #{record.benchmarkDate,jdbcType=DATE},
      benchmark = #{record.benchmark,jdbcType=DECIMAL},
      weight_method = #{record.weightMethod,jdbcType=VARCHAR},
      weight_desc = #{record.weightDesc,jdbcType=VARCHAR},
      weight_price = #{record.weightPrice,jdbcType=DECIMAL},
      selection_method = #{record.selectionMethod,jdbcType=VARCHAR},
      data_source = #{record.dataSource,jdbcType=VARCHAR},
      `status` = #{record.status,jdbcType=INTEGER},
      status_explain = #{record.statusExplain,jdbcType=VARCHAR},
      S_SEQ = #{record.sSeq,jdbcType=BIGINT},
      S_ROW_VERSION = #{record.sRowVersion,jdbcType=BIGINT},
      S_UPDATE_TIME = #{record.sUpdateTime,jdbcType=TIMESTAMP},
      S_DATA_STATE = #{record.sDataState,jdbcType=SMALLINT},
      PS = #{record.ps,jdbcType=LONGVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--@mbg.generated-->
    update tx_index_basic
    set index_id = #{record.indexId,jdbcType=INTEGER},
      index_code = #{record.indexCode,jdbcType=VARCHAR},
      index_name = #{record.indexName,jdbcType=VARCHAR},
      announce_date = #{record.announceDate,jdbcType=DATE},
      start_date = #{record.startDate,jdbcType=DATE},
      end_date = #{record.endDate,jdbcType=DATE},
      sector_id = #{record.sectorId,jdbcType=INTEGER},
      sector_name = #{record.sectorName,jdbcType=VARCHAR},
      publisher_id = #{record.publisherId,jdbcType=INTEGER},
      publisher_name = #{record.publisherName,jdbcType=VARCHAR},
      outer_code = #{record.outerCode,jdbcType=VARCHAR},
      index_fullname = #{record.indexFullname,jdbcType=VARCHAR},
      category_id = #{record.categoryId,jdbcType=VARCHAR},
      category_name = #{record.categoryName,jdbcType=VARCHAR},
      type_id = #{record.typeId,jdbcType=VARCHAR},
      type_name = #{record.typeName,jdbcType=VARCHAR},
      benchmark_date = #{record.benchmarkDate,jdbcType=DATE},
      benchmark = #{record.benchmark,jdbcType=DECIMAL},
      weight_method = #{record.weightMethod,jdbcType=VARCHAR},
      weight_desc = #{record.weightDesc,jdbcType=VARCHAR},
      weight_price = #{record.weightPrice,jdbcType=DECIMAL},
      selection_method = #{record.selectionMethod,jdbcType=VARCHAR},
      data_source = #{record.dataSource,jdbcType=VARCHAR},
      `status` = #{record.status,jdbcType=INTEGER},
      status_explain = #{record.statusExplain,jdbcType=VARCHAR},
      S_SEQ = #{record.sSeq,jdbcType=BIGINT},
      S_ROW_VERSION = #{record.sRowVersion,jdbcType=BIGINT},
      S_UPDATE_TIME = #{record.sUpdateTime,jdbcType=TIMESTAMP},
      S_DATA_STATE = #{record.sDataState,jdbcType=SMALLINT}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.TxIndexBasic">
    <!--@mbg.generated-->
    update tx_index_basic
    <set>
      <if test="indexCode != null">
        index_code = #{indexCode,jdbcType=VARCHAR},
      </if>
      <if test="indexName != null">
        index_name = #{indexName,jdbcType=VARCHAR},
      </if>
      <if test="announceDate != null">
        announce_date = #{announceDate,jdbcType=DATE},
      </if>
      <if test="startDate != null">
        start_date = #{startDate,jdbcType=DATE},
      </if>
      <if test="endDate != null">
        end_date = #{endDate,jdbcType=DATE},
      </if>
      <if test="sectorId != null">
        sector_id = #{sectorId,jdbcType=INTEGER},
      </if>
      <if test="sectorName != null">
        sector_name = #{sectorName,jdbcType=VARCHAR},
      </if>
      <if test="publisherId != null">
        publisher_id = #{publisherId,jdbcType=INTEGER},
      </if>
      <if test="publisherName != null">
        publisher_name = #{publisherName,jdbcType=VARCHAR},
      </if>
      <if test="outerCode != null">
        outer_code = #{outerCode,jdbcType=VARCHAR},
      </if>
      <if test="indexFullname != null">
        index_fullname = #{indexFullname,jdbcType=VARCHAR},
      </if>
      <if test="categoryId != null">
        category_id = #{categoryId,jdbcType=VARCHAR},
      </if>
      <if test="categoryName != null">
        category_name = #{categoryName,jdbcType=VARCHAR},
      </if>
      <if test="typeId != null">
        type_id = #{typeId,jdbcType=VARCHAR},
      </if>
      <if test="typeName != null">
        type_name = #{typeName,jdbcType=VARCHAR},
      </if>
      <if test="benchmarkDate != null">
        benchmark_date = #{benchmarkDate,jdbcType=DATE},
      </if>
      <if test="benchmark != null">
        benchmark = #{benchmark,jdbcType=DECIMAL},
      </if>
      <if test="weightMethod != null">
        weight_method = #{weightMethod,jdbcType=VARCHAR},
      </if>
      <if test="weightDesc != null">
        weight_desc = #{weightDesc,jdbcType=VARCHAR},
      </if>
      <if test="weightPrice != null">
        weight_price = #{weightPrice,jdbcType=DECIMAL},
      </if>
      <if test="selectionMethod != null">
        selection_method = #{selectionMethod,jdbcType=VARCHAR},
      </if>
      <if test="dataSource != null">
        data_source = #{dataSource,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        `status` = #{status,jdbcType=INTEGER},
      </if>
      <if test="statusExplain != null">
        status_explain = #{statusExplain,jdbcType=VARCHAR},
      </if>
      <if test="sSeq != null">
        S_SEQ = #{sSeq,jdbcType=BIGINT},
      </if>
      <if test="sRowVersion != null">
        S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT},
      </if>
      <if test="sUpdateTime != null">
        S_UPDATE_TIME = #{sUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="sDataState != null">
        S_DATA_STATE = #{sDataState,jdbcType=SMALLINT},
      </if>
      <if test="ps != null">
        PS = #{ps,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where index_id = #{indexId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tanpu.fund.entity.generator.TxIndexBasic">
    <!--@mbg.generated-->
    update tx_index_basic
    set index_code = #{indexCode,jdbcType=VARCHAR},
      index_name = #{indexName,jdbcType=VARCHAR},
      announce_date = #{announceDate,jdbcType=DATE},
      start_date = #{startDate,jdbcType=DATE},
      end_date = #{endDate,jdbcType=DATE},
      sector_id = #{sectorId,jdbcType=INTEGER},
      sector_name = #{sectorName,jdbcType=VARCHAR},
      publisher_id = #{publisherId,jdbcType=INTEGER},
      publisher_name = #{publisherName,jdbcType=VARCHAR},
      outer_code = #{outerCode,jdbcType=VARCHAR},
      index_fullname = #{indexFullname,jdbcType=VARCHAR},
      category_id = #{categoryId,jdbcType=VARCHAR},
      category_name = #{categoryName,jdbcType=VARCHAR},
      type_id = #{typeId,jdbcType=VARCHAR},
      type_name = #{typeName,jdbcType=VARCHAR},
      benchmark_date = #{benchmarkDate,jdbcType=DATE},
      benchmark = #{benchmark,jdbcType=DECIMAL},
      weight_method = #{weightMethod,jdbcType=VARCHAR},
      weight_desc = #{weightDesc,jdbcType=VARCHAR},
      weight_price = #{weightPrice,jdbcType=DECIMAL},
      selection_method = #{selectionMethod,jdbcType=VARCHAR},
      data_source = #{dataSource,jdbcType=VARCHAR},
      `status` = #{status,jdbcType=INTEGER},
      status_explain = #{statusExplain,jdbcType=VARCHAR},
      S_SEQ = #{sSeq,jdbcType=BIGINT},
      S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT},
      S_UPDATE_TIME = #{sUpdateTime,jdbcType=TIMESTAMP},
      S_DATA_STATE = #{sDataState,jdbcType=SMALLINT},
      PS = #{ps,jdbcType=LONGVARCHAR}
    where index_id = #{indexId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.TxIndexBasic">
    <!--@mbg.generated-->
    update tx_index_basic
    set index_code = #{indexCode,jdbcType=VARCHAR},
      index_name = #{indexName,jdbcType=VARCHAR},
      announce_date = #{announceDate,jdbcType=DATE},
      start_date = #{startDate,jdbcType=DATE},
      end_date = #{endDate,jdbcType=DATE},
      sector_id = #{sectorId,jdbcType=INTEGER},
      sector_name = #{sectorName,jdbcType=VARCHAR},
      publisher_id = #{publisherId,jdbcType=INTEGER},
      publisher_name = #{publisherName,jdbcType=VARCHAR},
      outer_code = #{outerCode,jdbcType=VARCHAR},
      index_fullname = #{indexFullname,jdbcType=VARCHAR},
      category_id = #{categoryId,jdbcType=VARCHAR},
      category_name = #{categoryName,jdbcType=VARCHAR},
      type_id = #{typeId,jdbcType=VARCHAR},
      type_name = #{typeName,jdbcType=VARCHAR},
      benchmark_date = #{benchmarkDate,jdbcType=DATE},
      benchmark = #{benchmark,jdbcType=DECIMAL},
      weight_method = #{weightMethod,jdbcType=VARCHAR},
      weight_desc = #{weightDesc,jdbcType=VARCHAR},
      weight_price = #{weightPrice,jdbcType=DECIMAL},
      selection_method = #{selectionMethod,jdbcType=VARCHAR},
      data_source = #{dataSource,jdbcType=VARCHAR},
      `status` = #{status,jdbcType=INTEGER},
      status_explain = #{statusExplain,jdbcType=VARCHAR},
      S_SEQ = #{sSeq,jdbcType=BIGINT},
      S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT},
      S_UPDATE_TIME = #{sUpdateTime,jdbcType=TIMESTAMP},
      S_DATA_STATE = #{sDataState,jdbcType=SMALLINT}
    where index_id = #{indexId,jdbcType=INTEGER}
  </update>
  <update id="updateBatch" parameterType="java.util.List">
    <!--@mbg.generated-->
    update tx_index_basic
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="index_code = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.indexCode,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="index_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.indexName,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="announce_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.announceDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="start_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.startDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="end_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.endDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="sector_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.sectorId,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="sector_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.sectorName,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="publisher_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.publisherId,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="publisher_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.publisherName,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="outer_code = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.outerCode,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="index_fullname = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.indexFullname,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="category_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.categoryId,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="category_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.categoryName,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="type_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.typeId,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="type_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.typeName,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="benchmark_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.benchmarkDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="benchmark = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.benchmark,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="weight_method = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.weightMethod,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="weight_desc = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.weightDesc,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="weight_price = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.weightPrice,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="selection_method = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.selectionMethod,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="data_source = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.dataSource,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="`status` = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.status,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="status_explain = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.statusExplain,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="S_SEQ = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.sSeq,jdbcType=BIGINT}
        </foreach>
      </trim>
      <trim prefix="S_ROW_VERSION = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.sRowVersion,jdbcType=BIGINT}
        </foreach>
      </trim>
      <trim prefix="S_UPDATE_TIME = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.sUpdateTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="S_DATA_STATE = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.sDataState,jdbcType=SMALLINT}
        </foreach>
      </trim>
      <trim prefix="PS = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when index_id = #{item.indexId,jdbcType=INTEGER} then #{item.ps,jdbcType=LONGVARCHAR}
        </foreach>
      </trim>
    </trim>
    where index_id in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.indexId,jdbcType=INTEGER}
    </foreach>
  </update>
  <insert id="batchInsert" parameterType="map">
    <!--@mbg.generated-->
    insert into tx_index_basic
    (index_id, index_code, index_name, announce_date, start_date, end_date, sector_id, 
      sector_name, publisher_id, publisher_name, outer_code, index_fullname, category_id, 
      category_name, type_id, type_name, benchmark_date, benchmark, weight_method, weight_desc, 
      weight_price, selection_method, data_source, `status`, status_explain, S_SEQ, S_ROW_VERSION, 
      S_UPDATE_TIME, S_DATA_STATE, PS)
    values
    <foreach collection="list" item="item" separator=",">
      (#{item.indexId,jdbcType=INTEGER}, #{item.indexCode,jdbcType=VARCHAR}, #{item.indexName,jdbcType=VARCHAR}, 
        #{item.announceDate,jdbcType=DATE}, #{item.startDate,jdbcType=DATE}, #{item.endDate,jdbcType=DATE}, 
        #{item.sectorId,jdbcType=INTEGER}, #{item.sectorName,jdbcType=VARCHAR}, #{item.publisherId,jdbcType=INTEGER}, 
        #{item.publisherName,jdbcType=VARCHAR}, #{item.outerCode,jdbcType=VARCHAR}, #{item.indexFullname,jdbcType=VARCHAR}, 
        #{item.categoryId,jdbcType=VARCHAR}, #{item.categoryName,jdbcType=VARCHAR}, #{item.typeId,jdbcType=VARCHAR}, 
        #{item.typeName,jdbcType=VARCHAR}, #{item.benchmarkDate,jdbcType=DATE}, #{item.benchmark,jdbcType=DECIMAL}, 
        #{item.weightMethod,jdbcType=VARCHAR}, #{item.weightDesc,jdbcType=VARCHAR}, #{item.weightPrice,jdbcType=DECIMAL}, 
        #{item.selectionMethod,jdbcType=VARCHAR}, #{item.dataSource,jdbcType=VARCHAR}, 
        #{item.status,jdbcType=INTEGER}, #{item.statusExplain,jdbcType=VARCHAR}, #{item.sSeq,jdbcType=BIGINT}, 
        #{item.sRowVersion,jdbcType=BIGINT}, #{item.sUpdateTime,jdbcType=TIMESTAMP}, #{item.sDataState,jdbcType=SMALLINT}, 
        #{item.ps,jdbcType=LONGVARCHAR})
    </foreach>
  </insert>
  <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.TxIndexBasic">
    <!--@mbg.generated-->
    insert into tx_index_basic
    (index_id, index_code, index_name, announce_date, start_date, end_date, sector_id, 
      sector_name, publisher_id, publisher_name, outer_code, index_fullname, category_id, 
      category_name, type_id, type_name, benchmark_date, benchmark, weight_method, weight_desc, 
      weight_price, selection_method, data_source, `status`, status_explain, S_SEQ, S_ROW_VERSION, 
      S_UPDATE_TIME, S_DATA_STATE)
    values
    (#{indexId,jdbcType=INTEGER}, #{indexCode,jdbcType=VARCHAR}, #{indexName,jdbcType=VARCHAR}, 
      #{announceDate,jdbcType=DATE}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE}, 
      #{sectorId,jdbcType=INTEGER}, #{sectorName,jdbcType=VARCHAR}, #{publisherId,jdbcType=INTEGER}, 
      #{publisherName,jdbcType=VARCHAR}, #{outerCode,jdbcType=VARCHAR}, #{indexFullname,jdbcType=VARCHAR}, 
      #{categoryId,jdbcType=VARCHAR}, #{categoryName,jdbcType=VARCHAR}, #{typeId,jdbcType=VARCHAR}, 
      #{typeName,jdbcType=VARCHAR}, #{benchmarkDate,jdbcType=DATE}, #{benchmark,jdbcType=DECIMAL}, 
      #{weightMethod,jdbcType=VARCHAR}, #{weightDesc,jdbcType=VARCHAR}, #{weightPrice,jdbcType=DECIMAL}, 
      #{selectionMethod,jdbcType=VARCHAR}, #{dataSource,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, 
      #{statusExplain,jdbcType=VARCHAR}, #{sSeq,jdbcType=BIGINT}, #{sRowVersion,jdbcType=BIGINT}, 
      #{sUpdateTime,jdbcType=TIMESTAMP}, #{sDataState,jdbcType=SMALLINT})
    on duplicate key update 
    index_id = #{indexId,jdbcType=INTEGER}, 
    index_code = #{indexCode,jdbcType=VARCHAR}, 
    index_name = #{indexName,jdbcType=VARCHAR}, 
    announce_date = #{announceDate,jdbcType=DATE}, 
    start_date = #{startDate,jdbcType=DATE}, 
    end_date = #{endDate,jdbcType=DATE}, 
    sector_id = #{sectorId,jdbcType=INTEGER}, 
    sector_name = #{sectorName,jdbcType=VARCHAR}, 
    publisher_id = #{publisherId,jdbcType=INTEGER}, 
    publisher_name = #{publisherName,jdbcType=VARCHAR}, 
    outer_code = #{outerCode,jdbcType=VARCHAR}, 
    index_fullname = #{indexFullname,jdbcType=VARCHAR}, 
    category_id = #{categoryId,jdbcType=VARCHAR}, 
    category_name = #{categoryName,jdbcType=VARCHAR}, 
    type_id = #{typeId,jdbcType=VARCHAR}, 
    type_name = #{typeName,jdbcType=VARCHAR}, 
    benchmark_date = #{benchmarkDate,jdbcType=DATE}, 
    benchmark = #{benchmark,jdbcType=DECIMAL}, 
    weight_method = #{weightMethod,jdbcType=VARCHAR}, 
    weight_desc = #{weightDesc,jdbcType=VARCHAR}, 
    weight_price = #{weightPrice,jdbcType=DECIMAL}, 
    selection_method = #{selectionMethod,jdbcType=VARCHAR}, 
    data_source = #{dataSource,jdbcType=VARCHAR}, 
    `status` = #{status,jdbcType=INTEGER}, 
    status_explain = #{statusExplain,jdbcType=VARCHAR}, 
    S_SEQ = #{sSeq,jdbcType=BIGINT}, 
    S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT}, 
    S_UPDATE_TIME = #{sUpdateTime,jdbcType=TIMESTAMP}, 
    S_DATA_STATE = #{sDataState,jdbcType=SMALLINT}
  </insert>
  <insert id="insertOrUpdateWithBLOBs" parameterType="com.tanpu.fund.entity.generator.TxIndexBasic">
    <!--@mbg.generated-->
    insert into tx_index_basic
    (index_id, index_code, index_name, announce_date, start_date, end_date, sector_id, 
      sector_name, publisher_id, publisher_name, outer_code, index_fullname, category_id, 
      category_name, type_id, type_name, benchmark_date, benchmark, weight_method, weight_desc, 
      weight_price, selection_method, data_source, `status`, status_explain, S_SEQ, S_ROW_VERSION, 
      S_UPDATE_TIME, S_DATA_STATE, PS)
    values
    (#{indexId,jdbcType=INTEGER}, #{indexCode,jdbcType=VARCHAR}, #{indexName,jdbcType=VARCHAR}, 
      #{announceDate,jdbcType=DATE}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE}, 
      #{sectorId,jdbcType=INTEGER}, #{sectorName,jdbcType=VARCHAR}, #{publisherId,jdbcType=INTEGER}, 
      #{publisherName,jdbcType=VARCHAR}, #{outerCode,jdbcType=VARCHAR}, #{indexFullname,jdbcType=VARCHAR}, 
      #{categoryId,jdbcType=VARCHAR}, #{categoryName,jdbcType=VARCHAR}, #{typeId,jdbcType=VARCHAR}, 
      #{typeName,jdbcType=VARCHAR}, #{benchmarkDate,jdbcType=DATE}, #{benchmark,jdbcType=DECIMAL}, 
      #{weightMethod,jdbcType=VARCHAR}, #{weightDesc,jdbcType=VARCHAR}, #{weightPrice,jdbcType=DECIMAL}, 
      #{selectionMethod,jdbcType=VARCHAR}, #{dataSource,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, 
      #{statusExplain,jdbcType=VARCHAR}, #{sSeq,jdbcType=BIGINT}, #{sRowVersion,jdbcType=BIGINT}, 
      #{sUpdateTime,jdbcType=TIMESTAMP}, #{sDataState,jdbcType=SMALLINT}, #{ps,jdbcType=LONGVARCHAR}
      )
    on duplicate key update 
    index_id = #{indexId,jdbcType=INTEGER}, 
    index_code = #{indexCode,jdbcType=VARCHAR}, 
    index_name = #{indexName,jdbcType=VARCHAR}, 
    announce_date = #{announceDate,jdbcType=DATE}, 
    start_date = #{startDate,jdbcType=DATE}, 
    end_date = #{endDate,jdbcType=DATE}, 
    sector_id = #{sectorId,jdbcType=INTEGER}, 
    sector_name = #{sectorName,jdbcType=VARCHAR}, 
    publisher_id = #{publisherId,jdbcType=INTEGER}, 
    publisher_name = #{publisherName,jdbcType=VARCHAR}, 
    outer_code = #{outerCode,jdbcType=VARCHAR}, 
    index_fullname = #{indexFullname,jdbcType=VARCHAR}, 
    category_id = #{categoryId,jdbcType=VARCHAR}, 
    category_name = #{categoryName,jdbcType=VARCHAR}, 
    type_id = #{typeId,jdbcType=VARCHAR}, 
    type_name = #{typeName,jdbcType=VARCHAR}, 
    benchmark_date = #{benchmarkDate,jdbcType=DATE}, 
    benchmark = #{benchmark,jdbcType=DECIMAL}, 
    weight_method = #{weightMethod,jdbcType=VARCHAR}, 
    weight_desc = #{weightDesc,jdbcType=VARCHAR}, 
    weight_price = #{weightPrice,jdbcType=DECIMAL}, 
    selection_method = #{selectionMethod,jdbcType=VARCHAR}, 
    data_source = #{dataSource,jdbcType=VARCHAR}, 
    `status` = #{status,jdbcType=INTEGER}, 
    status_explain = #{statusExplain,jdbcType=VARCHAR}, 
    S_SEQ = #{sSeq,jdbcType=BIGINT}, 
    S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT}, 
    S_UPDATE_TIME = #{sUpdateTime,jdbcType=TIMESTAMP}, 
    S_DATA_STATE = #{sDataState,jdbcType=SMALLINT}, 
    PS = #{ps,jdbcType=LONGVARCHAR}
  </insert>
  <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.TxIndexBasic">
    <!--@mbg.generated-->
    insert into tx_index_basic
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="indexId != null">
        index_id,
      </if>
      <if test="indexCode != null">
        index_code,
      </if>
      <if test="indexName != null">
        index_name,
      </if>
      <if test="announceDate != null">
        announce_date,
      </if>
      <if test="startDate != null">
        start_date,
      </if>
      <if test="endDate != null">
        end_date,
      </if>
      <if test="sectorId != null">
        sector_id,
      </if>
      <if test="sectorName != null">
        sector_name,
      </if>
      <if test="publisherId != null">
        publisher_id,
      </if>
      <if test="publisherName != null">
        publisher_name,
      </if>
      <if test="outerCode != null">
        outer_code,
      </if>
      <if test="indexFullname != null">
        index_fullname,
      </if>
      <if test="categoryId != null">
        category_id,
      </if>
      <if test="categoryName != null">
        category_name,
      </if>
      <if test="typeId != null">
        type_id,
      </if>
      <if test="typeName != null">
        type_name,
      </if>
      <if test="benchmarkDate != null">
        benchmark_date,
      </if>
      <if test="benchmark != null">
        benchmark,
      </if>
      <if test="weightMethod != null">
        weight_method,
      </if>
      <if test="weightDesc != null">
        weight_desc,
      </if>
      <if test="weightPrice != null">
        weight_price,
      </if>
      <if test="selectionMethod != null">
        selection_method,
      </if>
      <if test="dataSource != null">
        data_source,
      </if>
      <if test="status != null">
        `status`,
      </if>
      <if test="statusExplain != null">
        status_explain,
      </if>
      <if test="sSeq != null">
        S_SEQ,
      </if>
      <if test="sRowVersion != null">
        S_ROW_VERSION,
      </if>
      <if test="sUpdateTime != null">
        S_UPDATE_TIME,
      </if>
      <if test="sDataState != null">
        S_DATA_STATE,
      </if>
      <if test="ps != null">
        PS,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="indexId != null">
        #{indexId,jdbcType=INTEGER},
      </if>
      <if test="indexCode != null">
        #{indexCode,jdbcType=VARCHAR},
      </if>
      <if test="indexName != null">
        #{indexName,jdbcType=VARCHAR},
      </if>
      <if test="announceDate != null">
        #{announceDate,jdbcType=DATE},
      </if>
      <if test="startDate != null">
        #{startDate,jdbcType=DATE},
      </if>
      <if test="endDate != null">
        #{endDate,jdbcType=DATE},
      </if>
      <if test="sectorId != null">
        #{sectorId,jdbcType=INTEGER},
      </if>
      <if test="sectorName != null">
        #{sectorName,jdbcType=VARCHAR},
      </if>
      <if test="publisherId != null">
        #{publisherId,jdbcType=INTEGER},
      </if>
      <if test="publisherName != null">
        #{publisherName,jdbcType=VARCHAR},
      </if>
      <if test="outerCode != null">
        #{outerCode,jdbcType=VARCHAR},
      </if>
      <if test="indexFullname != null">
        #{indexFullname,jdbcType=VARCHAR},
      </if>
      <if test="categoryId != null">
        #{categoryId,jdbcType=VARCHAR},
      </if>
      <if test="categoryName != null">
        #{categoryName,jdbcType=VARCHAR},
      </if>
      <if test="typeId != null">
        #{typeId,jdbcType=VARCHAR},
      </if>
      <if test="typeName != null">
        #{typeName,jdbcType=VARCHAR},
      </if>
      <if test="benchmarkDate != null">
        #{benchmarkDate,jdbcType=DATE},
      </if>
      <if test="benchmark != null">
        #{benchmark,jdbcType=DECIMAL},
      </if>
      <if test="weightMethod != null">
        #{weightMethod,jdbcType=VARCHAR},
      </if>
      <if test="weightDesc != null">
        #{weightDesc,jdbcType=VARCHAR},
      </if>
      <if test="weightPrice != null">
        #{weightPrice,jdbcType=DECIMAL},
      </if>
      <if test="selectionMethod != null">
        #{selectionMethod,jdbcType=VARCHAR},
      </if>
      <if test="dataSource != null">
        #{dataSource,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=INTEGER},
      </if>
      <if test="statusExplain != null">
        #{statusExplain,jdbcType=VARCHAR},
      </if>
      <if test="sSeq != null">
        #{sSeq,jdbcType=BIGINT},
      </if>
      <if test="sRowVersion != null">
        #{sRowVersion,jdbcType=BIGINT},
      </if>
      <if test="sUpdateTime != null">
        #{sUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="sDataState != null">
        #{sDataState,jdbcType=SMALLINT},
      </if>
      <if test="ps != null">
        #{ps,jdbcType=LONGVARCHAR},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="indexId != null">
        index_id = #{indexId,jdbcType=INTEGER},
      </if>
      <if test="indexCode != null">
        index_code = #{indexCode,jdbcType=VARCHAR},
      </if>
      <if test="indexName != null">
        index_name = #{indexName,jdbcType=VARCHAR},
      </if>
      <if test="announceDate != null">
        announce_date = #{announceDate,jdbcType=DATE},
      </if>
      <if test="startDate != null">
        start_date = #{startDate,jdbcType=DATE},
      </if>
      <if test="endDate != null">
        end_date = #{endDate,jdbcType=DATE},
      </if>
      <if test="sectorId != null">
        sector_id = #{sectorId,jdbcType=INTEGER},
      </if>
      <if test="sectorName != null">
        sector_name = #{sectorName,jdbcType=VARCHAR},
      </if>
      <if test="publisherId != null">
        publisher_id = #{publisherId,jdbcType=INTEGER},
      </if>
      <if test="publisherName != null">
        publisher_name = #{publisherName,jdbcType=VARCHAR},
      </if>
      <if test="outerCode != null">
        outer_code = #{outerCode,jdbcType=VARCHAR},
      </if>
      <if test="indexFullname != null">
        index_fullname = #{indexFullname,jdbcType=VARCHAR},
      </if>
      <if test="categoryId != null">
        category_id = #{categoryId,jdbcType=VARCHAR},
      </if>
      <if test="categoryName != null">
        category_name = #{categoryName,jdbcType=VARCHAR},
      </if>
      <if test="typeId != null">
        type_id = #{typeId,jdbcType=VARCHAR},
      </if>
      <if test="typeName != null">
        type_name = #{typeName,jdbcType=VARCHAR},
      </if>
      <if test="benchmarkDate != null">
        benchmark_date = #{benchmarkDate,jdbcType=DATE},
      </if>
      <if test="benchmark != null">
        benchmark = #{benchmark,jdbcType=DECIMAL},
      </if>
      <if test="weightMethod != null">
        weight_method = #{weightMethod,jdbcType=VARCHAR},
      </if>
      <if test="weightDesc != null">
        weight_desc = #{weightDesc,jdbcType=VARCHAR},
      </if>
      <if test="weightPrice != null">
        weight_price = #{weightPrice,jdbcType=DECIMAL},
      </if>
      <if test="selectionMethod != null">
        selection_method = #{selectionMethod,jdbcType=VARCHAR},
      </if>
      <if test="dataSource != null">
        data_source = #{dataSource,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        `status` = #{status,jdbcType=INTEGER},
      </if>
      <if test="statusExplain != null">
        status_explain = #{statusExplain,jdbcType=VARCHAR},
      </if>
      <if test="sSeq != null">
        S_SEQ = #{sSeq,jdbcType=BIGINT},
      </if>
      <if test="sRowVersion != null">
        S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT},
      </if>
      <if test="sUpdateTime != null">
        S_UPDATE_TIME = #{sUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="sDataState != null">
        S_DATA_STATE = #{sDataState,jdbcType=SMALLINT},
      </if>
      <if test="ps != null">
        PS = #{ps,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
</mapper>