<?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.bailuntec.mapper.DcBaseFinanceEbayItemMapper">
  <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcBaseFinanceEbayItem">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="ebay_id" jdbcType="INTEGER" property="ebayId" />
    <result column="account_entry_type" jdbcType="VARCHAR" property="accountEntryType" />
    <result column="gmt_date" jdbcType="TIMESTAMP" property="gmtDate" />
    <result column="bj_date" jdbcType="TIMESTAMP" property="bjDate" />
    <result column="gross_amount" jdbcType="DECIMAL" property="grossAmount" />
    <result column="sku_amount" jdbcType="DECIMAL" property="skuAmount" />
    <result column="sku_count" jdbcType="INTEGER" property="skuCount" />
    <result column="sku_ratio" jdbcType="DECIMAL" property="skuRatio" />
    <result column="item_id" jdbcType="VARCHAR" property="itemId" />
    <result column="bailun_sku" jdbcType="VARCHAR" property="bailunSku" />
    <result column="account_id" jdbcType="INTEGER" property="accountId" />
    <result column="currency" jdbcType="VARCHAR" property="currency" />
    <result column="exchange_rate" jdbcType="DECIMAL" property="exchangeRate" />
    <result column="exchange_rate_usd" jdbcType="DECIMAL" property="exchangeRateUsd" />
    <result column="bj_create" jdbcType="TIMESTAMP" property="bjCreate" />
    <result column="bj_modified" jdbcType="TIMESTAMP" property="bjModified" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <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">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <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">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    id, ebay_id, account_entry_type, gmt_date, bj_date, gross_amount, sku_amount, sku_count, 
    sku_ratio, item_id, bailun_sku, account_id, currency, exchange_rate, exchange_rate_usd, 
    bj_create, bj_modified
  </sql>
  <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceEbayItemExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from dc_base_finance_ebay_item
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    <if test="rows != null">
      <if test="offset != null">
        limit ${offset}, ${rows}
      </if>
      <if test="offset == null">
        limit ${rows}
      </if>
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from dc_base_finance_ebay_item
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_base_finance_ebay_item
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceEbayItemExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_base_finance_ebay_item
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceEbayItem">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_finance_ebay_item (id, ebay_id, account_entry_type, 
      gmt_date, bj_date, gross_amount, 
      sku_amount, sku_count, sku_ratio, 
      item_id, bailun_sku, account_id, 
      currency, exchange_rate, exchange_rate_usd, 
      bj_create, bj_modified)
    values (#{id,jdbcType=INTEGER}, #{ebayId,jdbcType=INTEGER}, #{accountEntryType,jdbcType=VARCHAR}, 
      #{gmtDate,jdbcType=TIMESTAMP}, #{bjDate,jdbcType=TIMESTAMP}, #{grossAmount,jdbcType=DECIMAL}, 
      #{skuAmount,jdbcType=DECIMAL}, #{skuCount,jdbcType=INTEGER}, #{skuRatio,jdbcType=DECIMAL}, 
      #{itemId,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR}, #{accountId,jdbcType=INTEGER}, 
      #{currency,jdbcType=VARCHAR}, #{exchangeRate,jdbcType=DECIMAL}, #{exchangeRateUsd,jdbcType=DECIMAL}, 
      #{bjCreate,jdbcType=TIMESTAMP}, #{bjModified,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceEbayItem">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_finance_ebay_item
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="ebayId != null">
        ebay_id,
      </if>
      <if test="accountEntryType != null">
        account_entry_type,
      </if>
      <if test="gmtDate != null">
        gmt_date,
      </if>
      <if test="bjDate != null">
        bj_date,
      </if>
      <if test="grossAmount != null">
        gross_amount,
      </if>
      <if test="skuAmount != null">
        sku_amount,
      </if>
      <if test="skuCount != null">
        sku_count,
      </if>
      <if test="skuRatio != null">
        sku_ratio,
      </if>
      <if test="itemId != null">
        item_id,
      </if>
      <if test="bailunSku != null">
        bailun_sku,
      </if>
      <if test="accountId != null">
        account_id,
      </if>
      <if test="currency != null">
        currency,
      </if>
      <if test="exchangeRate != null">
        exchange_rate,
      </if>
      <if test="exchangeRateUsd != null">
        exchange_rate_usd,
      </if>
      <if test="bjCreate != null">
        bj_create,
      </if>
      <if test="bjModified != null">
        bj_modified,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="ebayId != null">
        #{ebayId,jdbcType=INTEGER},
      </if>
      <if test="accountEntryType != null">
        #{accountEntryType,jdbcType=VARCHAR},
      </if>
      <if test="gmtDate != null">
        #{gmtDate,jdbcType=TIMESTAMP},
      </if>
      <if test="bjDate != null">
        #{bjDate,jdbcType=TIMESTAMP},
      </if>
      <if test="grossAmount != null">
        #{grossAmount,jdbcType=DECIMAL},
      </if>
      <if test="skuAmount != null">
        #{skuAmount,jdbcType=DECIMAL},
      </if>
      <if test="skuCount != null">
        #{skuCount,jdbcType=INTEGER},
      </if>
      <if test="skuRatio != null">
        #{skuRatio,jdbcType=DECIMAL},
      </if>
      <if test="itemId != null">
        #{itemId,jdbcType=VARCHAR},
      </if>
      <if test="bailunSku != null">
        #{bailunSku,jdbcType=VARCHAR},
      </if>
      <if test="accountId != null">
        #{accountId,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        #{currency,jdbcType=VARCHAR},
      </if>
      <if test="exchangeRate != null">
        #{exchangeRate,jdbcType=DECIMAL},
      </if>
      <if test="exchangeRateUsd != null">
        #{exchangeRateUsd,jdbcType=DECIMAL},
      </if>
      <if test="bjCreate != null">
        #{bjCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="bjModified != null">
        #{bjModified,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceEbayItemExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from dc_base_finance_ebay_item
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_ebay_item
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.ebayId != null">
        ebay_id = #{record.ebayId,jdbcType=INTEGER},
      </if>
      <if test="record.accountEntryType != null">
        account_entry_type = #{record.accountEntryType,jdbcType=VARCHAR},
      </if>
      <if test="record.gmtDate != null">
        gmt_date = #{record.gmtDate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.bjDate != null">
        bj_date = #{record.bjDate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.grossAmount != null">
        gross_amount = #{record.grossAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.skuAmount != null">
        sku_amount = #{record.skuAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.skuCount != null">
        sku_count = #{record.skuCount,jdbcType=INTEGER},
      </if>
      <if test="record.skuRatio != null">
        sku_ratio = #{record.skuRatio,jdbcType=DECIMAL},
      </if>
      <if test="record.itemId != null">
        item_id = #{record.itemId,jdbcType=VARCHAR},
      </if>
      <if test="record.bailunSku != null">
        bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
      </if>
      <if test="record.accountId != null">
        account_id = #{record.accountId,jdbcType=INTEGER},
      </if>
      <if test="record.currency != null">
        currency = #{record.currency,jdbcType=VARCHAR},
      </if>
      <if test="record.exchangeRate != null">
        exchange_rate = #{record.exchangeRate,jdbcType=DECIMAL},
      </if>
      <if test="record.exchangeRateUsd != null">
        exchange_rate_usd = #{record.exchangeRateUsd,jdbcType=DECIMAL},
      </if>
      <if test="record.bjCreate != null">
        bj_create = #{record.bjCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.bjModified != null">
        bj_modified = #{record.bjModified,jdbcType=TIMESTAMP},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_ebay_item
    set id = #{record.id,jdbcType=INTEGER},
      ebay_id = #{record.ebayId,jdbcType=INTEGER},
      account_entry_type = #{record.accountEntryType,jdbcType=VARCHAR},
      gmt_date = #{record.gmtDate,jdbcType=TIMESTAMP},
      bj_date = #{record.bjDate,jdbcType=TIMESTAMP},
      gross_amount = #{record.grossAmount,jdbcType=DECIMAL},
      sku_amount = #{record.skuAmount,jdbcType=DECIMAL},
      sku_count = #{record.skuCount,jdbcType=INTEGER},
      sku_ratio = #{record.skuRatio,jdbcType=DECIMAL},
      item_id = #{record.itemId,jdbcType=VARCHAR},
      bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
      account_id = #{record.accountId,jdbcType=INTEGER},
      currency = #{record.currency,jdbcType=VARCHAR},
      exchange_rate = #{record.exchangeRate,jdbcType=DECIMAL},
      exchange_rate_usd = #{record.exchangeRateUsd,jdbcType=DECIMAL},
      bj_create = #{record.bjCreate,jdbcType=TIMESTAMP},
      bj_modified = #{record.bjModified,jdbcType=TIMESTAMP}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceEbayItem">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_ebay_item
    <set>
      <if test="ebayId != null">
        ebay_id = #{ebayId,jdbcType=INTEGER},
      </if>
      <if test="accountEntryType != null">
        account_entry_type = #{accountEntryType,jdbcType=VARCHAR},
      </if>
      <if test="gmtDate != null">
        gmt_date = #{gmtDate,jdbcType=TIMESTAMP},
      </if>
      <if test="bjDate != null">
        bj_date = #{bjDate,jdbcType=TIMESTAMP},
      </if>
      <if test="grossAmount != null">
        gross_amount = #{grossAmount,jdbcType=DECIMAL},
      </if>
      <if test="skuAmount != null">
        sku_amount = #{skuAmount,jdbcType=DECIMAL},
      </if>
      <if test="skuCount != null">
        sku_count = #{skuCount,jdbcType=INTEGER},
      </if>
      <if test="skuRatio != null">
        sku_ratio = #{skuRatio,jdbcType=DECIMAL},
      </if>
      <if test="itemId != null">
        item_id = #{itemId,jdbcType=VARCHAR},
      </if>
      <if test="bailunSku != null">
        bailun_sku = #{bailunSku,jdbcType=VARCHAR},
      </if>
      <if test="accountId != null">
        account_id = #{accountId,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        currency = #{currency,jdbcType=VARCHAR},
      </if>
      <if test="exchangeRate != null">
        exchange_rate = #{exchangeRate,jdbcType=DECIMAL},
      </if>
      <if test="exchangeRateUsd != null">
        exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
      </if>
      <if test="bjCreate != null">
        bj_create = #{bjCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="bjModified != null">
        bj_modified = #{bjModified,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.bailuntec.domain.entity.DcBaseFinanceEbayItem">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_ebay_item
    set ebay_id = #{ebayId,jdbcType=INTEGER},
      account_entry_type = #{accountEntryType,jdbcType=VARCHAR},
      gmt_date = #{gmtDate,jdbcType=TIMESTAMP},
      bj_date = #{bjDate,jdbcType=TIMESTAMP},
      gross_amount = #{grossAmount,jdbcType=DECIMAL},
      sku_amount = #{skuAmount,jdbcType=DECIMAL},
      sku_count = #{skuCount,jdbcType=INTEGER},
      sku_ratio = #{skuRatio,jdbcType=DECIMAL},
      item_id = #{itemId,jdbcType=VARCHAR},
      bailun_sku = #{bailunSku,jdbcType=VARCHAR},
      account_id = #{accountId,jdbcType=INTEGER},
      currency = #{currency,jdbcType=VARCHAR},
      exchange_rate = #{exchangeRate,jdbcType=DECIMAL},
      exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
      bj_create = #{bjCreate,jdbcType=TIMESTAMP},
      bj_modified = #{bjModified,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceEbayItem">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    insert into dc_base_finance_ebay_item
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="ebayId != null">
        ebay_id,
      </if>
      <if test="accountEntryType != null">
        account_entry_type,
      </if>
      <if test="gmtDate != null">
        gmt_date,
      </if>
      <if test="bjDate != null">
        bj_date,
      </if>
      <if test="grossAmount != null">
        gross_amount,
      </if>
      <if test="skuAmount != null">
        sku_amount,
      </if>
      <if test="skuCount != null">
        sku_count,
      </if>
      <if test="skuRatio != null">
        sku_ratio,
      </if>
      <if test="itemId != null">
        item_id,
      </if>
      <if test="bailunSku != null">
        bailun_sku,
      </if>
      <if test="accountId != null">
        account_id,
      </if>
      <if test="currency != null">
        currency,
      </if>
      <if test="exchangeRate != null">
        exchange_rate,
      </if>
      <if test="exchangeRateUsd != null">
        exchange_rate_usd,
      </if>
      <if test="bjCreate != null">
        bj_create,
      </if>
      <if test="bjModified != null">
        bj_modified,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="ebayId != null">
        #{ebayId,jdbcType=INTEGER},
      </if>
      <if test="accountEntryType != null">
        #{accountEntryType,jdbcType=VARCHAR},
      </if>
      <if test="gmtDate != null">
        #{gmtDate,jdbcType=TIMESTAMP},
      </if>
      <if test="bjDate != null">
        #{bjDate,jdbcType=TIMESTAMP},
      </if>
      <if test="grossAmount != null">
        #{grossAmount,jdbcType=DECIMAL},
      </if>
      <if test="skuAmount != null">
        #{skuAmount,jdbcType=DECIMAL},
      </if>
      <if test="skuCount != null">
        #{skuCount,jdbcType=INTEGER},
      </if>
      <if test="skuRatio != null">
        #{skuRatio,jdbcType=DECIMAL},
      </if>
      <if test="itemId != null">
        #{itemId,jdbcType=VARCHAR},
      </if>
      <if test="bailunSku != null">
        #{bailunSku,jdbcType=VARCHAR},
      </if>
      <if test="accountId != null">
        #{accountId,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        #{currency,jdbcType=VARCHAR},
      </if>
      <if test="exchangeRate != null">
        #{exchangeRate,jdbcType=DECIMAL},
      </if>
      <if test="exchangeRateUsd != null">
        #{exchangeRateUsd,jdbcType=DECIMAL},
      </if>
      <if test="bjCreate != null">
        #{bjCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="bjModified != null">
        #{bjModified,jdbcType=TIMESTAMP},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
        id = #{id,jdbcType=INTEGER},
      </if>
      <if test="ebayId != null">
        ebay_id = #{ebayId,jdbcType=INTEGER},
      </if>
      <if test="accountEntryType != null">
        account_entry_type = #{accountEntryType,jdbcType=VARCHAR},
      </if>
      <if test="gmtDate != null">
        gmt_date = #{gmtDate,jdbcType=TIMESTAMP},
      </if>
      <if test="bjDate != null">
        bj_date = #{bjDate,jdbcType=TIMESTAMP},
      </if>
      <if test="grossAmount != null">
        gross_amount = #{grossAmount,jdbcType=DECIMAL},
      </if>
      <if test="skuAmount != null">
        sku_amount = #{skuAmount,jdbcType=DECIMAL},
      </if>
      <if test="skuCount != null">
        sku_count = #{skuCount,jdbcType=INTEGER},
      </if>
      <if test="skuRatio != null">
        sku_ratio = #{skuRatio,jdbcType=DECIMAL},
      </if>
      <if test="itemId != null">
        item_id = #{itemId,jdbcType=VARCHAR},
      </if>
      <if test="bailunSku != null">
        bailun_sku = #{bailunSku,jdbcType=VARCHAR},
      </if>
      <if test="accountId != null">
        account_id = #{accountId,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        currency = #{currency,jdbcType=VARCHAR},
      </if>
      <if test="exchangeRate != null">
        exchange_rate = #{exchangeRate,jdbcType=DECIMAL},
      </if>
      <if test="exchangeRateUsd != null">
        exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
      </if>
      <if test="bjCreate != null">
        bj_create = #{bjCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="bjModified != null">
        bj_modified = #{bjModified,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceEbayItem">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    insert into dc_base_finance_ebay_item
    (id, ebay_id, account_entry_type, gmt_date, bj_date, gross_amount, sku_amount, sku_count, 
      sku_ratio, item_id, bailun_sku, account_id, currency, exchange_rate, exchange_rate_usd, 
      bj_create, bj_modified)
    values
    (#{id,jdbcType=INTEGER}, #{ebayId,jdbcType=INTEGER}, #{accountEntryType,jdbcType=VARCHAR}, 
      #{gmtDate,jdbcType=TIMESTAMP}, #{bjDate,jdbcType=TIMESTAMP}, #{grossAmount,jdbcType=DECIMAL}, 
      #{skuAmount,jdbcType=DECIMAL}, #{skuCount,jdbcType=INTEGER}, #{skuRatio,jdbcType=DECIMAL}, 
      #{itemId,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR}, #{accountId,jdbcType=INTEGER}, 
      #{currency,jdbcType=VARCHAR}, #{exchangeRate,jdbcType=DECIMAL}, #{exchangeRateUsd,jdbcType=DECIMAL}, 
      #{bjCreate,jdbcType=TIMESTAMP}, #{bjModified,jdbcType=TIMESTAMP})
    on duplicate key update 
    id = #{id,jdbcType=INTEGER}, 
    ebay_id = #{ebayId,jdbcType=INTEGER}, 
    account_entry_type = #{accountEntryType,jdbcType=VARCHAR}, 
    gmt_date = #{gmtDate,jdbcType=TIMESTAMP}, 
    bj_date = #{bjDate,jdbcType=TIMESTAMP}, 
    gross_amount = #{grossAmount,jdbcType=DECIMAL}, 
    sku_amount = #{skuAmount,jdbcType=DECIMAL}, 
    sku_count = #{skuCount,jdbcType=INTEGER}, 
    sku_ratio = #{skuRatio,jdbcType=DECIMAL}, 
    item_id = #{itemId,jdbcType=VARCHAR}, 
    bailun_sku = #{bailunSku,jdbcType=VARCHAR}, 
    account_id = #{accountId,jdbcType=INTEGER}, 
    currency = #{currency,jdbcType=VARCHAR}, 
    exchange_rate = #{exchangeRate,jdbcType=DECIMAL}, 
    exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL}, 
    bj_create = #{bjCreate,jdbcType=TIMESTAMP}, 
    bj_modified = #{bjModified,jdbcType=TIMESTAMP}
  </insert>
  <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceEbayItemExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    select
    <include refid="Base_Column_List" />
    from dc_base_finance_ebay_item
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
</mapper>