<?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.TxFundComScaleMapper">
  <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.TxFundComScale">
    <!--@mbg.generated-->
    <!--@Table tx_fund_com_scale-->
    <id column="S_ROW_VERSION" jdbcType="BIGINT" property="sRowVersion" />
    <result column="company_id" jdbcType="INTEGER" property="companyId" />
    <result column="company_name" jdbcType="VARCHAR" property="companyName" />
    <result column="company_type" jdbcType="VARCHAR" property="companyType" />
    <result column="announce_date" jdbcType="DATE" property="announceDate" />
    <result column="close_capital" jdbcType="DECIMAL" property="closeCapital" />
    <result column="open_capital" jdbcType="DECIMAL" property="openCapital" />
    <result column="close_share" jdbcType="DECIMAL" property="closeShare" />
    <result column="open_share" jdbcType="DECIMAL" property="openShare" />
    <result column="capital" jdbcType="DECIMAL" property="capital" />
    <result column="close_count" jdbcType="INTEGER" property="closeCount" />
    <result column="open_count" jdbcType="INTEGER" property="openCount" />
    <result column="count" jdbcType="INTEGER" property="count" />
    <result column="S_SEQ" jdbcType="BIGINT" property="sSeq" />
    <result column="S_UPDATE_TIME" jdbcType="TIMESTAMP" property="sUpdateTime" />
    <result column="S_DATA_STATE" jdbcType="SMALLINT" property="sDataState" />
  </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-->
    S_ROW_VERSION, company_id, company_name, company_type, announce_date, close_capital, 
    open_capital, close_share, open_share, capital, close_count, open_count, `count`, 
    S_SEQ, S_UPDATE_TIME, S_DATA_STATE
  </sql>
  <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.TxFundComScaleExample" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from tx_fund_com_scale
    <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.Long" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select 
    <include refid="Base_Column_List" />
    from tx_fund_com_scale
    where S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--@mbg.generated-->
    delete from tx_fund_com_scale
    where S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.TxFundComScaleExample">
    <!--@mbg.generated-->
    delete from tx_fund_com_scale
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tanpu.fund.entity.generator.TxFundComScale">
    <!--@mbg.generated-->
    insert into tx_fund_com_scale (S_ROW_VERSION, company_id, company_name, 
      company_type, announce_date, close_capital, 
      open_capital, close_share, open_share, 
      capital, close_count, open_count, 
      `count`, S_SEQ, S_UPDATE_TIME, 
      S_DATA_STATE)
    values (#{sRowVersion,jdbcType=BIGINT}, #{companyId,jdbcType=INTEGER}, #{companyName,jdbcType=VARCHAR}, 
      #{companyType,jdbcType=VARCHAR}, #{announceDate,jdbcType=DATE}, #{closeCapital,jdbcType=DECIMAL}, 
      #{openCapital,jdbcType=DECIMAL}, #{closeShare,jdbcType=DECIMAL}, #{openShare,jdbcType=DECIMAL}, 
      #{capital,jdbcType=DECIMAL}, #{closeCount,jdbcType=INTEGER}, #{openCount,jdbcType=INTEGER}, 
      #{count,jdbcType=INTEGER}, #{sSeq,jdbcType=BIGINT}, #{sUpdateTime,jdbcType=TIMESTAMP}, 
      #{sDataState,jdbcType=SMALLINT})
  </insert>
  <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.TxFundComScale">
    <!--@mbg.generated-->
    insert into tx_fund_com_scale
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="sRowVersion != null">
        S_ROW_VERSION,
      </if>
      <if test="companyId != null">
        company_id,
      </if>
      <if test="companyName != null">
        company_name,
      </if>
      <if test="companyType != null">
        company_type,
      </if>
      <if test="announceDate != null">
        announce_date,
      </if>
      <if test="closeCapital != null">
        close_capital,
      </if>
      <if test="openCapital != null">
        open_capital,
      </if>
      <if test="closeShare != null">
        close_share,
      </if>
      <if test="openShare != null">
        open_share,
      </if>
      <if test="capital != null">
        capital,
      </if>
      <if test="closeCount != null">
        close_count,
      </if>
      <if test="openCount != null">
        open_count,
      </if>
      <if test="count != null">
        `count`,
      </if>
      <if test="sSeq != null">
        S_SEQ,
      </if>
      <if test="sUpdateTime != null">
        S_UPDATE_TIME,
      </if>
      <if test="sDataState != null">
        S_DATA_STATE,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="sRowVersion != null">
        #{sRowVersion,jdbcType=BIGINT},
      </if>
      <if test="companyId != null">
        #{companyId,jdbcType=INTEGER},
      </if>
      <if test="companyName != null">
        #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="companyType != null">
        #{companyType,jdbcType=VARCHAR},
      </if>
      <if test="announceDate != null">
        #{announceDate,jdbcType=DATE},
      </if>
      <if test="closeCapital != null">
        #{closeCapital,jdbcType=DECIMAL},
      </if>
      <if test="openCapital != null">
        #{openCapital,jdbcType=DECIMAL},
      </if>
      <if test="closeShare != null">
        #{closeShare,jdbcType=DECIMAL},
      </if>
      <if test="openShare != null">
        #{openShare,jdbcType=DECIMAL},
      </if>
      <if test="capital != null">
        #{capital,jdbcType=DECIMAL},
      </if>
      <if test="closeCount != null">
        #{closeCount,jdbcType=INTEGER},
      </if>
      <if test="openCount != null">
        #{openCount,jdbcType=INTEGER},
      </if>
      <if test="count != null">
        #{count,jdbcType=INTEGER},
      </if>
      <if test="sSeq != null">
        #{sSeq,jdbcType=BIGINT},
      </if>
      <if test="sUpdateTime != null">
        #{sUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="sDataState != null">
        #{sDataState,jdbcType=SMALLINT},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.TxFundComScaleExample" resultType="java.lang.Long">
    <!--@mbg.generated-->
    select count(*) from tx_fund_com_scale
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--@mbg.generated-->
    update tx_fund_com_scale
    <set>
      <if test="record.sRowVersion != null">
        S_ROW_VERSION = #{record.sRowVersion,jdbcType=BIGINT},
      </if>
      <if test="record.companyId != null">
        company_id = #{record.companyId,jdbcType=INTEGER},
      </if>
      <if test="record.companyName != null">
        company_name = #{record.companyName,jdbcType=VARCHAR},
      </if>
      <if test="record.companyType != null">
        company_type = #{record.companyType,jdbcType=VARCHAR},
      </if>
      <if test="record.announceDate != null">
        announce_date = #{record.announceDate,jdbcType=DATE},
      </if>
      <if test="record.closeCapital != null">
        close_capital = #{record.closeCapital,jdbcType=DECIMAL},
      </if>
      <if test="record.openCapital != null">
        open_capital = #{record.openCapital,jdbcType=DECIMAL},
      </if>
      <if test="record.closeShare != null">
        close_share = #{record.closeShare,jdbcType=DECIMAL},
      </if>
      <if test="record.openShare != null">
        open_share = #{record.openShare,jdbcType=DECIMAL},
      </if>
      <if test="record.capital != null">
        capital = #{record.capital,jdbcType=DECIMAL},
      </if>
      <if test="record.closeCount != null">
        close_count = #{record.closeCount,jdbcType=INTEGER},
      </if>
      <if test="record.openCount != null">
        open_count = #{record.openCount,jdbcType=INTEGER},
      </if>
      <if test="record.count != null">
        `count` = #{record.count,jdbcType=INTEGER},
      </if>
      <if test="record.sSeq != null">
        S_SEQ = #{record.sSeq,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>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--@mbg.generated-->
    update tx_fund_com_scale
    set S_ROW_VERSION = #{record.sRowVersion,jdbcType=BIGINT},
      company_id = #{record.companyId,jdbcType=INTEGER},
      company_name = #{record.companyName,jdbcType=VARCHAR},
      company_type = #{record.companyType,jdbcType=VARCHAR},
      announce_date = #{record.announceDate,jdbcType=DATE},
      close_capital = #{record.closeCapital,jdbcType=DECIMAL},
      open_capital = #{record.openCapital,jdbcType=DECIMAL},
      close_share = #{record.closeShare,jdbcType=DECIMAL},
      open_share = #{record.openShare,jdbcType=DECIMAL},
      capital = #{record.capital,jdbcType=DECIMAL},
      close_count = #{record.closeCount,jdbcType=INTEGER},
      open_count = #{record.openCount,jdbcType=INTEGER},
      `count` = #{record.count,jdbcType=INTEGER},
      S_SEQ = #{record.sSeq,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.TxFundComScale">
    <!--@mbg.generated-->
    update tx_fund_com_scale
    <set>
      <if test="companyId != null">
        company_id = #{companyId,jdbcType=INTEGER},
      </if>
      <if test="companyName != null">
        company_name = #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="companyType != null">
        company_type = #{companyType,jdbcType=VARCHAR},
      </if>
      <if test="announceDate != null">
        announce_date = #{announceDate,jdbcType=DATE},
      </if>
      <if test="closeCapital != null">
        close_capital = #{closeCapital,jdbcType=DECIMAL},
      </if>
      <if test="openCapital != null">
        open_capital = #{openCapital,jdbcType=DECIMAL},
      </if>
      <if test="closeShare != null">
        close_share = #{closeShare,jdbcType=DECIMAL},
      </if>
      <if test="openShare != null">
        open_share = #{openShare,jdbcType=DECIMAL},
      </if>
      <if test="capital != null">
        capital = #{capital,jdbcType=DECIMAL},
      </if>
      <if test="closeCount != null">
        close_count = #{closeCount,jdbcType=INTEGER},
      </if>
      <if test="openCount != null">
        open_count = #{openCount,jdbcType=INTEGER},
      </if>
      <if test="count != null">
        `count` = #{count,jdbcType=INTEGER},
      </if>
      <if test="sSeq != null">
        S_SEQ = #{sSeq,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>
    </set>
    where S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.TxFundComScale">
    <!--@mbg.generated-->
    update tx_fund_com_scale
    set company_id = #{companyId,jdbcType=INTEGER},
      company_name = #{companyName,jdbcType=VARCHAR},
      company_type = #{companyType,jdbcType=VARCHAR},
      announce_date = #{announceDate,jdbcType=DATE},
      close_capital = #{closeCapital,jdbcType=DECIMAL},
      open_capital = #{openCapital,jdbcType=DECIMAL},
      close_share = #{closeShare,jdbcType=DECIMAL},
      open_share = #{openShare,jdbcType=DECIMAL},
      capital = #{capital,jdbcType=DECIMAL},
      close_count = #{closeCount,jdbcType=INTEGER},
      open_count = #{openCount,jdbcType=INTEGER},
      `count` = #{count,jdbcType=INTEGER},
      S_SEQ = #{sSeq,jdbcType=BIGINT},
      S_UPDATE_TIME = #{sUpdateTime,jdbcType=TIMESTAMP},
      S_DATA_STATE = #{sDataState,jdbcType=SMALLINT}
    where S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT}
  </update>
  <update id="updateBatch" parameterType="java.util.List">
    <!--@mbg.generated-->
    update tx_fund_com_scale
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="company_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.companyId,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="company_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.companyName,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="company_type = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.companyType,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="announce_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.announceDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="close_capital = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.closeCapital,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="open_capital = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.openCapital,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="close_share = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.closeShare,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="open_share = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.openShare,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="capital = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.capital,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="close_count = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.closeCount,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="open_count = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.openCount,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="`count` = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.count,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="S_SEQ = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.sSeq,jdbcType=BIGINT}
        </foreach>
      </trim>
      <trim prefix="S_UPDATE_TIME = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.sUpdateTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="S_DATA_STATE = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when S_ROW_VERSION = #{item.sRowVersion,jdbcType=BIGINT} then #{item.sDataState,jdbcType=SMALLINT}
        </foreach>
      </trim>
    </trim>
    where S_ROW_VERSION in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.sRowVersion,jdbcType=BIGINT}
    </foreach>
  </update>
  <insert id="batchInsert" parameterType="map">
    <!--@mbg.generated-->
    insert into tx_fund_com_scale
    (S_ROW_VERSION, company_id, company_name, company_type, announce_date, close_capital, 
      open_capital, close_share, open_share, capital, close_count, open_count, `count`, 
      S_SEQ, S_UPDATE_TIME, S_DATA_STATE)
    values
    <foreach collection="list" item="item" separator=",">
      (#{item.sRowVersion,jdbcType=BIGINT}, #{item.companyId,jdbcType=INTEGER}, #{item.companyName,jdbcType=VARCHAR}, 
        #{item.companyType,jdbcType=VARCHAR}, #{item.announceDate,jdbcType=DATE}, #{item.closeCapital,jdbcType=DECIMAL}, 
        #{item.openCapital,jdbcType=DECIMAL}, #{item.closeShare,jdbcType=DECIMAL}, #{item.openShare,jdbcType=DECIMAL}, 
        #{item.capital,jdbcType=DECIMAL}, #{item.closeCount,jdbcType=INTEGER}, #{item.openCount,jdbcType=INTEGER}, 
        #{item.count,jdbcType=INTEGER}, #{item.sSeq,jdbcType=BIGINT}, #{item.sUpdateTime,jdbcType=TIMESTAMP}, 
        #{item.sDataState,jdbcType=SMALLINT})
    </foreach>
  </insert>
  <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.TxFundComScale">
    <!--@mbg.generated-->
    insert into tx_fund_com_scale
    (S_ROW_VERSION, company_id, company_name, company_type, announce_date, close_capital, 
      open_capital, close_share, open_share, capital, close_count, open_count, `count`, 
      S_SEQ, S_UPDATE_TIME, S_DATA_STATE)
    values
    (#{sRowVersion,jdbcType=BIGINT}, #{companyId,jdbcType=INTEGER}, #{companyName,jdbcType=VARCHAR}, 
      #{companyType,jdbcType=VARCHAR}, #{announceDate,jdbcType=DATE}, #{closeCapital,jdbcType=DECIMAL}, 
      #{openCapital,jdbcType=DECIMAL}, #{closeShare,jdbcType=DECIMAL}, #{openShare,jdbcType=DECIMAL}, 
      #{capital,jdbcType=DECIMAL}, #{closeCount,jdbcType=INTEGER}, #{openCount,jdbcType=INTEGER}, 
      #{count,jdbcType=INTEGER}, #{sSeq,jdbcType=BIGINT}, #{sUpdateTime,jdbcType=TIMESTAMP}, 
      #{sDataState,jdbcType=SMALLINT})
    on duplicate key update 
    S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT}, 
    company_id = #{companyId,jdbcType=INTEGER}, 
    company_name = #{companyName,jdbcType=VARCHAR}, 
    company_type = #{companyType,jdbcType=VARCHAR}, 
    announce_date = #{announceDate,jdbcType=DATE}, 
    close_capital = #{closeCapital,jdbcType=DECIMAL}, 
    open_capital = #{openCapital,jdbcType=DECIMAL}, 
    close_share = #{closeShare,jdbcType=DECIMAL}, 
    open_share = #{openShare,jdbcType=DECIMAL}, 
    capital = #{capital,jdbcType=DECIMAL}, 
    close_count = #{closeCount,jdbcType=INTEGER}, 
    open_count = #{openCount,jdbcType=INTEGER}, 
    `count` = #{count,jdbcType=INTEGER}, 
    S_SEQ = #{sSeq,jdbcType=BIGINT}, 
    S_UPDATE_TIME = #{sUpdateTime,jdbcType=TIMESTAMP}, 
    S_DATA_STATE = #{sDataState,jdbcType=SMALLINT}
  </insert>
  <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.TxFundComScale">
    <!--@mbg.generated-->
    insert into tx_fund_com_scale
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="sRowVersion != null">
        S_ROW_VERSION,
      </if>
      <if test="companyId != null">
        company_id,
      </if>
      <if test="companyName != null">
        company_name,
      </if>
      <if test="companyType != null">
        company_type,
      </if>
      <if test="announceDate != null">
        announce_date,
      </if>
      <if test="closeCapital != null">
        close_capital,
      </if>
      <if test="openCapital != null">
        open_capital,
      </if>
      <if test="closeShare != null">
        close_share,
      </if>
      <if test="openShare != null">
        open_share,
      </if>
      <if test="capital != null">
        capital,
      </if>
      <if test="closeCount != null">
        close_count,
      </if>
      <if test="openCount != null">
        open_count,
      </if>
      <if test="count != null">
        `count`,
      </if>
      <if test="sSeq != null">
        S_SEQ,
      </if>
      <if test="sUpdateTime != null">
        S_UPDATE_TIME,
      </if>
      <if test="sDataState != null">
        S_DATA_STATE,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="sRowVersion != null">
        #{sRowVersion,jdbcType=BIGINT},
      </if>
      <if test="companyId != null">
        #{companyId,jdbcType=INTEGER},
      </if>
      <if test="companyName != null">
        #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="companyType != null">
        #{companyType,jdbcType=VARCHAR},
      </if>
      <if test="announceDate != null">
        #{announceDate,jdbcType=DATE},
      </if>
      <if test="closeCapital != null">
        #{closeCapital,jdbcType=DECIMAL},
      </if>
      <if test="openCapital != null">
        #{openCapital,jdbcType=DECIMAL},
      </if>
      <if test="closeShare != null">
        #{closeShare,jdbcType=DECIMAL},
      </if>
      <if test="openShare != null">
        #{openShare,jdbcType=DECIMAL},
      </if>
      <if test="capital != null">
        #{capital,jdbcType=DECIMAL},
      </if>
      <if test="closeCount != null">
        #{closeCount,jdbcType=INTEGER},
      </if>
      <if test="openCount != null">
        #{openCount,jdbcType=INTEGER},
      </if>
      <if test="count != null">
        #{count,jdbcType=INTEGER},
      </if>
      <if test="sSeq != null">
        #{sSeq,jdbcType=BIGINT},
      </if>
      <if test="sUpdateTime != null">
        #{sUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="sDataState != null">
        #{sDataState,jdbcType=SMALLINT},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="sRowVersion != null">
        S_ROW_VERSION = #{sRowVersion,jdbcType=BIGINT},
      </if>
      <if test="companyId != null">
        company_id = #{companyId,jdbcType=INTEGER},
      </if>
      <if test="companyName != null">
        company_name = #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="companyType != null">
        company_type = #{companyType,jdbcType=VARCHAR},
      </if>
      <if test="announceDate != null">
        announce_date = #{announceDate,jdbcType=DATE},
      </if>
      <if test="closeCapital != null">
        close_capital = #{closeCapital,jdbcType=DECIMAL},
      </if>
      <if test="openCapital != null">
        open_capital = #{openCapital,jdbcType=DECIMAL},
      </if>
      <if test="closeShare != null">
        close_share = #{closeShare,jdbcType=DECIMAL},
      </if>
      <if test="openShare != null">
        open_share = #{openShare,jdbcType=DECIMAL},
      </if>
      <if test="capital != null">
        capital = #{capital,jdbcType=DECIMAL},
      </if>
      <if test="closeCount != null">
        close_count = #{closeCount,jdbcType=INTEGER},
      </if>
      <if test="openCount != null">
        open_count = #{openCount,jdbcType=INTEGER},
      </if>
      <if test="count != null">
        `count` = #{count,jdbcType=INTEGER},
      </if>
      <if test="sSeq != null">
        S_SEQ = #{sSeq,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>
    </trim>
  </insert>
</mapper>