<?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.DcBaseFinanceAmazonMapper">
  <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcBaseFinanceAmazon">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="campaign_name" jdbcType="VARCHAR" property="campaignName" />
    <result column="campaign_id" jdbcType="VARCHAR" property="campaignId" />
    <result column="campaign_status" jdbcType="VARCHAR" property="campaignStatus" />
    <result column="campaign_budget" jdbcType="DECIMAL" property="campaignBudget" />
    <result column="attributed_conversions_oneday" jdbcType="INTEGER" property="attributedConversionsOneday" />
    <result column="attributed_units_ordered_oneday" jdbcType="INTEGER" property="attributedUnitsOrderedOneday" />
    <result column="attributed_sales_oneday" jdbcType="INTEGER" property="attributedSalesOneday" />
    <result column="attributed_units_ordered_sevenday" jdbcType="INTEGER" property="attributedUnitsOrderedSevenday" />
    <result column="impressions" jdbcType="INTEGER" property="impressions" />
    <result column="clicks" jdbcType="INTEGER" property="clicks" />
    <result column="cost" jdbcType="DECIMAL" property="cost" />
    <result column="attributed_conversions_thirtyday" jdbcType="INTEGER" property="attributedConversionsThirtyday" />
    <result column="attributed_conversions_fourteenday" jdbcType="INTEGER" property="attributedConversionsFourteenday" />
    <result column="attributed_conversions_sevenday" jdbcType="INTEGER" property="attributedConversionsSevenday" />
    <result column="attributed_sales_thirtyday" jdbcType="INTEGER" property="attributedSalesThirtyday" />
    <result column="attributed_sales_fourteenday" jdbcType="INTEGER" property="attributedSalesFourteenday" />
    <result column="attributed_sales_sevenday" jdbcType="INTEGER" property="attributedSalesSevenday" />
    <result column="account_id" jdbcType="INTEGER" property="accountId" />
    <result column="company_id" jdbcType="INTEGER" property="companyId" />
    <result column="currency" jdbcType="VARCHAR" property="currency" />
    <result column="gmt_create_time" jdbcType="TIMESTAMP" property="gmtCreateTime" />
    <result column="gmt_modify_time" jdbcType="TIMESTAMP" property="gmtModifyTime" />
    <result column="report_date" jdbcType="DATE" property="reportDate" />
    <result column="report_type" jdbcType="VARCHAR" property="reportType" />
    <result column="ad_group_name" jdbcType="VARCHAR" property="adGroupName" />
    <result column="keyword_id" jdbcType="INTEGER" property="keywordId" />
    <result column="keyword_text" jdbcType="VARCHAR" property="keywordText" />
    <result column="match_type" jdbcType="VARCHAR" property="matchType" />
    <result column="attributed_conversions_oneday_same_sku" jdbcType="VARCHAR" property="attributedConversionsOnedaySameSku" />
    <result column="attributed_conversions_sevenday_same_sku" jdbcType="VARCHAR" property="attributedConversionsSevendaySameSku" />
    <result column="attributed_conversions_fourteenday_same_sku" jdbcType="VARCHAR" property="attributedConversionsFourteendaySameSku" />
    <result column="attributed_conversions_thirtyday_same_sku" jdbcType="VARCHAR" property="attributedConversionsThirtydaySameSku" />
    <result column="attributed_units_ordered_thirtyday" jdbcType="VARCHAR" property="attributedUnitsOrderedThirtyday" />
    <result column="attributed_units_ordered_fourteenday" jdbcType="VARCHAR" property="attributedUnitsOrderedFourteenday" />
    <result column="attributed_sales_oneday_same_sku" jdbcType="VARCHAR" property="attributedSalesOnedaySameSku" />
    <result column="attributed_sales_sevenday_same_sku" jdbcType="VARCHAR" property="attributedSalesSevendaySameSku" />
    <result column="attributed_sales_fourteenday_same_sku" jdbcType="VARCHAR" property="attributedSalesFourteendaySameSku" />
    <result column="attributed_sales_thirtyday_same_sku" jdbcType="VARCHAR" property="attributedSalesThirtydaySameSku" />
    <result column="attributed_units_ordered_oneday_same_sku" jdbcType="VARCHAR" property="attributedUnitsOrderedOnedaySameSku" />
    <result column="attributed_units_ordered_sevenday_same_sku" jdbcType="VARCHAR" property="attributedUnitsOrderedSevendaySameSku" />
    <result column="attributed_units_ordered_fourteenday_same_sku" jdbcType="VARCHAR" property="attributedUnitsOrderedFourteendaySameSku" />
    <result column="attributed_units_ordered_thirtyday_same_sku" jdbcType="VARCHAR" property="attributedUnitsOrderedThirtydaySameSku" />
    <result column="ad_group_id" jdbcType="VARCHAR" property="adGroupId" />
    <result column="asin" jdbcType="VARCHAR" property="asin" />
    <result column="sku" jdbcType="VARCHAR" property="sku" />
    <result column="other_to_cny_exchange_rate" jdbcType="DECIMAL" property="otherToCnyExchangeRate" />
  </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, campaign_name, campaign_id, campaign_status, campaign_budget, attributed_conversions_oneday, 
    attributed_units_ordered_oneday, attributed_sales_oneday, attributed_units_ordered_sevenday, 
    impressions, clicks, cost, attributed_conversions_thirtyday, attributed_conversions_fourteenday, 
    attributed_conversions_sevenday, attributed_sales_thirtyday, attributed_sales_fourteenday, 
    attributed_sales_sevenday, account_id, company_id, currency, gmt_create_time, gmt_modify_time, 
    report_date, report_type, ad_group_name, keyword_id, keyword_text, match_type, attributed_conversions_oneday_same_sku, 
    attributed_conversions_sevenday_same_sku, attributed_conversions_fourteenday_same_sku, 
    attributed_conversions_thirtyday_same_sku, attributed_units_ordered_thirtyday, attributed_units_ordered_fourteenday, 
    attributed_sales_oneday_same_sku, attributed_sales_sevenday_same_sku, attributed_sales_fourteenday_same_sku, 
    attributed_sales_thirtyday_same_sku, attributed_units_ordered_oneday_same_sku, attributed_units_ordered_sevenday_same_sku, 
    attributed_units_ordered_fourteenday_same_sku, attributed_units_ordered_thirtyday_same_sku, 
    ad_group_id, asin, sku, other_to_cny_exchange_rate
  </sql>
  <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceAmazonExample" 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_amazon
    <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_amazon
    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_amazon
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceAmazonExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_base_finance_amazon
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazon">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_finance_amazon (id, campaign_name, campaign_id, 
      campaign_status, campaign_budget, attributed_conversions_oneday, 
      attributed_units_ordered_oneday, attributed_sales_oneday, 
      attributed_units_ordered_sevenday, impressions, 
      clicks, cost, attributed_conversions_thirtyday, 
      attributed_conversions_fourteenday, attributed_conversions_sevenday, 
      attributed_sales_thirtyday, attributed_sales_fourteenday, 
      attributed_sales_sevenday, account_id, company_id, 
      currency, gmt_create_time, gmt_modify_time, 
      report_date, report_type, ad_group_name, 
      keyword_id, keyword_text, match_type, 
      attributed_conversions_oneday_same_sku, attributed_conversions_sevenday_same_sku, 
      attributed_conversions_fourteenday_same_sku, attributed_conversions_thirtyday_same_sku, 
      attributed_units_ordered_thirtyday, attributed_units_ordered_fourteenday, 
      attributed_sales_oneday_same_sku, attributed_sales_sevenday_same_sku, 
      attributed_sales_fourteenday_same_sku, attributed_sales_thirtyday_same_sku, 
      attributed_units_ordered_oneday_same_sku, attributed_units_ordered_sevenday_same_sku, 
      attributed_units_ordered_fourteenday_same_sku, attributed_units_ordered_thirtyday_same_sku, 
      ad_group_id, asin, sku, 
      other_to_cny_exchange_rate)
    values (#{id,jdbcType=INTEGER}, #{campaignName,jdbcType=VARCHAR}, #{campaignId,jdbcType=VARCHAR}, 
      #{campaignStatus,jdbcType=VARCHAR}, #{campaignBudget,jdbcType=DECIMAL}, #{attributedConversionsOneday,jdbcType=INTEGER}, 
      #{attributedUnitsOrderedOneday,jdbcType=INTEGER}, #{attributedSalesOneday,jdbcType=INTEGER}, 
      #{attributedUnitsOrderedSevenday,jdbcType=INTEGER}, #{impressions,jdbcType=INTEGER}, 
      #{clicks,jdbcType=INTEGER}, #{cost,jdbcType=DECIMAL}, #{attributedConversionsThirtyday,jdbcType=INTEGER}, 
      #{attributedConversionsFourteenday,jdbcType=INTEGER}, #{attributedConversionsSevenday,jdbcType=INTEGER}, 
      #{attributedSalesThirtyday,jdbcType=INTEGER}, #{attributedSalesFourteenday,jdbcType=INTEGER}, 
      #{attributedSalesSevenday,jdbcType=INTEGER}, #{accountId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, 
      #{currency,jdbcType=VARCHAR}, #{gmtCreateTime,jdbcType=TIMESTAMP}, #{gmtModifyTime,jdbcType=TIMESTAMP}, 
      #{reportDate,jdbcType=DATE}, #{reportType,jdbcType=VARCHAR}, #{adGroupName,jdbcType=VARCHAR}, 
      #{keywordId,jdbcType=INTEGER}, #{keywordText,jdbcType=VARCHAR}, #{matchType,jdbcType=VARCHAR}, 
      #{attributedConversionsOnedaySameSku,jdbcType=VARCHAR}, #{attributedConversionsSevendaySameSku,jdbcType=VARCHAR}, 
      #{attributedConversionsFourteendaySameSku,jdbcType=VARCHAR}, #{attributedConversionsThirtydaySameSku,jdbcType=VARCHAR}, 
      #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR}, #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR}, 
      #{attributedSalesOnedaySameSku,jdbcType=VARCHAR}, #{attributedSalesSevendaySameSku,jdbcType=VARCHAR}, 
      #{attributedSalesFourteendaySameSku,jdbcType=VARCHAR}, #{attributedSalesThirtydaySameSku,jdbcType=VARCHAR}, 
      #{attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR}, #{attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR}, 
      #{attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR}, #{attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR}, 
      #{adGroupId,jdbcType=VARCHAR}, #{asin,jdbcType=VARCHAR}, #{sku,jdbcType=VARCHAR}, 
      #{otherToCnyExchangeRate,jdbcType=DECIMAL})
  </insert>
  <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazon">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_finance_amazon
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="campaignName != null">
        campaign_name,
      </if>
      <if test="campaignId != null">
        campaign_id,
      </if>
      <if test="campaignStatus != null">
        campaign_status,
      </if>
      <if test="campaignBudget != null">
        campaign_budget,
      </if>
      <if test="attributedConversionsOneday != null">
        attributed_conversions_oneday,
      </if>
      <if test="attributedUnitsOrderedOneday != null">
        attributed_units_ordered_oneday,
      </if>
      <if test="attributedSalesOneday != null">
        attributed_sales_oneday,
      </if>
      <if test="attributedUnitsOrderedSevenday != null">
        attributed_units_ordered_sevenday,
      </if>
      <if test="impressions != null">
        impressions,
      </if>
      <if test="clicks != null">
        clicks,
      </if>
      <if test="cost != null">
        cost,
      </if>
      <if test="attributedConversionsThirtyday != null">
        attributed_conversions_thirtyday,
      </if>
      <if test="attributedConversionsFourteenday != null">
        attributed_conversions_fourteenday,
      </if>
      <if test="attributedConversionsSevenday != null">
        attributed_conversions_sevenday,
      </if>
      <if test="attributedSalesThirtyday != null">
        attributed_sales_thirtyday,
      </if>
      <if test="attributedSalesFourteenday != null">
        attributed_sales_fourteenday,
      </if>
      <if test="attributedSalesSevenday != null">
        attributed_sales_sevenday,
      </if>
      <if test="accountId != null">
        account_id,
      </if>
      <if test="companyId != null">
        company_id,
      </if>
      <if test="currency != null">
        currency,
      </if>
      <if test="gmtCreateTime != null">
        gmt_create_time,
      </if>
      <if test="gmtModifyTime != null">
        gmt_modify_time,
      </if>
      <if test="reportDate != null">
        report_date,
      </if>
      <if test="reportType != null">
        report_type,
      </if>
      <if test="adGroupName != null">
        ad_group_name,
      </if>
      <if test="keywordId != null">
        keyword_id,
      </if>
      <if test="keywordText != null">
        keyword_text,
      </if>
      <if test="matchType != null">
        match_type,
      </if>
      <if test="attributedConversionsOnedaySameSku != null">
        attributed_conversions_oneday_same_sku,
      </if>
      <if test="attributedConversionsSevendaySameSku != null">
        attributed_conversions_sevenday_same_sku,
      </if>
      <if test="attributedConversionsFourteendaySameSku != null">
        attributed_conversions_fourteenday_same_sku,
      </if>
      <if test="attributedConversionsThirtydaySameSku != null">
        attributed_conversions_thirtyday_same_sku,
      </if>
      <if test="attributedUnitsOrderedThirtyday != null">
        attributed_units_ordered_thirtyday,
      </if>
      <if test="attributedUnitsOrderedFourteenday != null">
        attributed_units_ordered_fourteenday,
      </if>
      <if test="attributedSalesOnedaySameSku != null">
        attributed_sales_oneday_same_sku,
      </if>
      <if test="attributedSalesSevendaySameSku != null">
        attributed_sales_sevenday_same_sku,
      </if>
      <if test="attributedSalesFourteendaySameSku != null">
        attributed_sales_fourteenday_same_sku,
      </if>
      <if test="attributedSalesThirtydaySameSku != null">
        attributed_sales_thirtyday_same_sku,
      </if>
      <if test="attributedUnitsOrderedOnedaySameSku != null">
        attributed_units_ordered_oneday_same_sku,
      </if>
      <if test="attributedUnitsOrderedSevendaySameSku != null">
        attributed_units_ordered_sevenday_same_sku,
      </if>
      <if test="attributedUnitsOrderedFourteendaySameSku != null">
        attributed_units_ordered_fourteenday_same_sku,
      </if>
      <if test="attributedUnitsOrderedThirtydaySameSku != null">
        attributed_units_ordered_thirtyday_same_sku,
      </if>
      <if test="adGroupId != null">
        ad_group_id,
      </if>
      <if test="asin != null">
        asin,
      </if>
      <if test="sku != null">
        sku,
      </if>
      <if test="otherToCnyExchangeRate != null">
        other_to_cny_exchange_rate,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="campaignName != null">
        #{campaignName,jdbcType=VARCHAR},
      </if>
      <if test="campaignId != null">
        #{campaignId,jdbcType=VARCHAR},
      </if>
      <if test="campaignStatus != null">
        #{campaignStatus,jdbcType=VARCHAR},
      </if>
      <if test="campaignBudget != null">
        #{campaignBudget,jdbcType=DECIMAL},
      </if>
      <if test="attributedConversionsOneday != null">
        #{attributedConversionsOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedUnitsOrderedOneday != null">
        #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesOneday != null">
        #{attributedSalesOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedUnitsOrderedSevenday != null">
        #{attributedUnitsOrderedSevenday,jdbcType=INTEGER},
      </if>
      <if test="impressions != null">
        #{impressions,jdbcType=INTEGER},
      </if>
      <if test="clicks != null">
        #{clicks,jdbcType=INTEGER},
      </if>
      <if test="cost != null">
        #{cost,jdbcType=DECIMAL},
      </if>
      <if test="attributedConversionsThirtyday != null">
        #{attributedConversionsThirtyday,jdbcType=INTEGER},
      </if>
      <if test="attributedConversionsFourteenday != null">
        #{attributedConversionsFourteenday,jdbcType=INTEGER},
      </if>
      <if test="attributedConversionsSevenday != null">
        #{attributedConversionsSevenday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesThirtyday != null">
        #{attributedSalesThirtyday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesFourteenday != null">
        #{attributedSalesFourteenday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesSevenday != null">
        #{attributedSalesSevenday,jdbcType=INTEGER},
      </if>
      <if test="accountId != null">
        #{accountId,jdbcType=INTEGER},
      </if>
      <if test="companyId != null">
        #{companyId,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        #{currency,jdbcType=VARCHAR},
      </if>
      <if test="gmtCreateTime != null">
        #{gmtCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModifyTime != null">
        #{gmtModifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="reportDate != null">
        #{reportDate,jdbcType=DATE},
      </if>
      <if test="reportType != null">
        #{reportType,jdbcType=VARCHAR},
      </if>
      <if test="adGroupName != null">
        #{adGroupName,jdbcType=VARCHAR},
      </if>
      <if test="keywordId != null">
        #{keywordId,jdbcType=INTEGER},
      </if>
      <if test="keywordText != null">
        #{keywordText,jdbcType=VARCHAR},
      </if>
      <if test="matchType != null">
        #{matchType,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsOnedaySameSku != null">
        #{attributedConversionsOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsSevendaySameSku != null">
        #{attributedConversionsSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsFourteendaySameSku != null">
        #{attributedConversionsFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsThirtydaySameSku != null">
        #{attributedConversionsThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedThirtyday != null">
        #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedFourteenday != null">
        #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesOnedaySameSku != null">
        #{attributedSalesOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesSevendaySameSku != null">
        #{attributedSalesSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesFourteendaySameSku != null">
        #{attributedSalesFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesThirtydaySameSku != null">
        #{attributedSalesThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedOnedaySameSku != null">
        #{attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedSevendaySameSku != null">
        #{attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedFourteendaySameSku != null">
        #{attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedThirtydaySameSku != null">
        #{attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="adGroupId != null">
        #{adGroupId,jdbcType=VARCHAR},
      </if>
      <if test="asin != null">
        #{asin,jdbcType=VARCHAR},
      </if>
      <if test="sku != null">
        #{sku,jdbcType=VARCHAR},
      </if>
      <if test="otherToCnyExchangeRate != null">
        #{otherToCnyExchangeRate,jdbcType=DECIMAL},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceAmazonExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from dc_base_finance_amazon
    <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_amazon
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.campaignName != null">
        campaign_name = #{record.campaignName,jdbcType=VARCHAR},
      </if>
      <if test="record.campaignId != null">
        campaign_id = #{record.campaignId,jdbcType=VARCHAR},
      </if>
      <if test="record.campaignStatus != null">
        campaign_status = #{record.campaignStatus,jdbcType=VARCHAR},
      </if>
      <if test="record.campaignBudget != null">
        campaign_budget = #{record.campaignBudget,jdbcType=DECIMAL},
      </if>
      <if test="record.attributedConversionsOneday != null">
        attributed_conversions_oneday = #{record.attributedConversionsOneday,jdbcType=INTEGER},
      </if>
      <if test="record.attributedUnitsOrderedOneday != null">
        attributed_units_ordered_oneday = #{record.attributedUnitsOrderedOneday,jdbcType=INTEGER},
      </if>
      <if test="record.attributedSalesOneday != null">
        attributed_sales_oneday = #{record.attributedSalesOneday,jdbcType=INTEGER},
      </if>
      <if test="record.attributedUnitsOrderedSevenday != null">
        attributed_units_ordered_sevenday = #{record.attributedUnitsOrderedSevenday,jdbcType=INTEGER},
      </if>
      <if test="record.impressions != null">
        impressions = #{record.impressions,jdbcType=INTEGER},
      </if>
      <if test="record.clicks != null">
        clicks = #{record.clicks,jdbcType=INTEGER},
      </if>
      <if test="record.cost != null">
        cost = #{record.cost,jdbcType=DECIMAL},
      </if>
      <if test="record.attributedConversionsThirtyday != null">
        attributed_conversions_thirtyday = #{record.attributedConversionsThirtyday,jdbcType=INTEGER},
      </if>
      <if test="record.attributedConversionsFourteenday != null">
        attributed_conversions_fourteenday = #{record.attributedConversionsFourteenday,jdbcType=INTEGER},
      </if>
      <if test="record.attributedConversionsSevenday != null">
        attributed_conversions_sevenday = #{record.attributedConversionsSevenday,jdbcType=INTEGER},
      </if>
      <if test="record.attributedSalesThirtyday != null">
        attributed_sales_thirtyday = #{record.attributedSalesThirtyday,jdbcType=INTEGER},
      </if>
      <if test="record.attributedSalesFourteenday != null">
        attributed_sales_fourteenday = #{record.attributedSalesFourteenday,jdbcType=INTEGER},
      </if>
      <if test="record.attributedSalesSevenday != null">
        attributed_sales_sevenday = #{record.attributedSalesSevenday,jdbcType=INTEGER},
      </if>
      <if test="record.accountId != null">
        account_id = #{record.accountId,jdbcType=INTEGER},
      </if>
      <if test="record.companyId != null">
        company_id = #{record.companyId,jdbcType=INTEGER},
      </if>
      <if test="record.currency != null">
        currency = #{record.currency,jdbcType=VARCHAR},
      </if>
      <if test="record.gmtCreateTime != null">
        gmt_create_time = #{record.gmtCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.gmtModifyTime != null">
        gmt_modify_time = #{record.gmtModifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.reportDate != null">
        report_date = #{record.reportDate,jdbcType=DATE},
      </if>
      <if test="record.reportType != null">
        report_type = #{record.reportType,jdbcType=VARCHAR},
      </if>
      <if test="record.adGroupName != null">
        ad_group_name = #{record.adGroupName,jdbcType=VARCHAR},
      </if>
      <if test="record.keywordId != null">
        keyword_id = #{record.keywordId,jdbcType=INTEGER},
      </if>
      <if test="record.keywordText != null">
        keyword_text = #{record.keywordText,jdbcType=VARCHAR},
      </if>
      <if test="record.matchType != null">
        match_type = #{record.matchType,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedConversionsOnedaySameSku != null">
        attributed_conversions_oneday_same_sku = #{record.attributedConversionsOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedConversionsSevendaySameSku != null">
        attributed_conversions_sevenday_same_sku = #{record.attributedConversionsSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedConversionsFourteendaySameSku != null">
        attributed_conversions_fourteenday_same_sku = #{record.attributedConversionsFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedConversionsThirtydaySameSku != null">
        attributed_conversions_thirtyday_same_sku = #{record.attributedConversionsThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedUnitsOrderedThirtyday != null">
        attributed_units_ordered_thirtyday = #{record.attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedUnitsOrderedFourteenday != null">
        attributed_units_ordered_fourteenday = #{record.attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedSalesOnedaySameSku != null">
        attributed_sales_oneday_same_sku = #{record.attributedSalesOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedSalesSevendaySameSku != null">
        attributed_sales_sevenday_same_sku = #{record.attributedSalesSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedSalesFourteendaySameSku != null">
        attributed_sales_fourteenday_same_sku = #{record.attributedSalesFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedSalesThirtydaySameSku != null">
        attributed_sales_thirtyday_same_sku = #{record.attributedSalesThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedUnitsOrderedOnedaySameSku != null">
        attributed_units_ordered_oneday_same_sku = #{record.attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedUnitsOrderedSevendaySameSku != null">
        attributed_units_ordered_sevenday_same_sku = #{record.attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedUnitsOrderedFourteendaySameSku != null">
        attributed_units_ordered_fourteenday_same_sku = #{record.attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.attributedUnitsOrderedThirtydaySameSku != null">
        attributed_units_ordered_thirtyday_same_sku = #{record.attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="record.adGroupId != null">
        ad_group_id = #{record.adGroupId,jdbcType=VARCHAR},
      </if>
      <if test="record.asin != null">
        asin = #{record.asin,jdbcType=VARCHAR},
      </if>
      <if test="record.sku != null">
        sku = #{record.sku,jdbcType=VARCHAR},
      </if>
      <if test="record.otherToCnyExchangeRate != null">
        other_to_cny_exchange_rate = #{record.otherToCnyExchangeRate,jdbcType=DECIMAL},
      </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_amazon
    set id = #{record.id,jdbcType=INTEGER},
      campaign_name = #{record.campaignName,jdbcType=VARCHAR},
      campaign_id = #{record.campaignId,jdbcType=VARCHAR},
      campaign_status = #{record.campaignStatus,jdbcType=VARCHAR},
      campaign_budget = #{record.campaignBudget,jdbcType=DECIMAL},
      attributed_conversions_oneday = #{record.attributedConversionsOneday,jdbcType=INTEGER},
      attributed_units_ordered_oneday = #{record.attributedUnitsOrderedOneday,jdbcType=INTEGER},
      attributed_sales_oneday = #{record.attributedSalesOneday,jdbcType=INTEGER},
      attributed_units_ordered_sevenday = #{record.attributedUnitsOrderedSevenday,jdbcType=INTEGER},
      impressions = #{record.impressions,jdbcType=INTEGER},
      clicks = #{record.clicks,jdbcType=INTEGER},
      cost = #{record.cost,jdbcType=DECIMAL},
      attributed_conversions_thirtyday = #{record.attributedConversionsThirtyday,jdbcType=INTEGER},
      attributed_conversions_fourteenday = #{record.attributedConversionsFourteenday,jdbcType=INTEGER},
      attributed_conversions_sevenday = #{record.attributedConversionsSevenday,jdbcType=INTEGER},
      attributed_sales_thirtyday = #{record.attributedSalesThirtyday,jdbcType=INTEGER},
      attributed_sales_fourteenday = #{record.attributedSalesFourteenday,jdbcType=INTEGER},
      attributed_sales_sevenday = #{record.attributedSalesSevenday,jdbcType=INTEGER},
      account_id = #{record.accountId,jdbcType=INTEGER},
      company_id = #{record.companyId,jdbcType=INTEGER},
      currency = #{record.currency,jdbcType=VARCHAR},
      gmt_create_time = #{record.gmtCreateTime,jdbcType=TIMESTAMP},
      gmt_modify_time = #{record.gmtModifyTime,jdbcType=TIMESTAMP},
      report_date = #{record.reportDate,jdbcType=DATE},
      report_type = #{record.reportType,jdbcType=VARCHAR},
      ad_group_name = #{record.adGroupName,jdbcType=VARCHAR},
      keyword_id = #{record.keywordId,jdbcType=INTEGER},
      keyword_text = #{record.keywordText,jdbcType=VARCHAR},
      match_type = #{record.matchType,jdbcType=VARCHAR},
      attributed_conversions_oneday_same_sku = #{record.attributedConversionsOnedaySameSku,jdbcType=VARCHAR},
      attributed_conversions_sevenday_same_sku = #{record.attributedConversionsSevendaySameSku,jdbcType=VARCHAR},
      attributed_conversions_fourteenday_same_sku = #{record.attributedConversionsFourteendaySameSku,jdbcType=VARCHAR},
      attributed_conversions_thirtyday_same_sku = #{record.attributedConversionsThirtydaySameSku,jdbcType=VARCHAR},
      attributed_units_ordered_thirtyday = #{record.attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
      attributed_units_ordered_fourteenday = #{record.attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
      attributed_sales_oneday_same_sku = #{record.attributedSalesOnedaySameSku,jdbcType=VARCHAR},
      attributed_sales_sevenday_same_sku = #{record.attributedSalesSevendaySameSku,jdbcType=VARCHAR},
      attributed_sales_fourteenday_same_sku = #{record.attributedSalesFourteendaySameSku,jdbcType=VARCHAR},
      attributed_sales_thirtyday_same_sku = #{record.attributedSalesThirtydaySameSku,jdbcType=VARCHAR},
      attributed_units_ordered_oneday_same_sku = #{record.attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR},
      attributed_units_ordered_sevenday_same_sku = #{record.attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR},
      attributed_units_ordered_fourteenday_same_sku = #{record.attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR},
      attributed_units_ordered_thirtyday_same_sku = #{record.attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR},
      ad_group_id = #{record.adGroupId,jdbcType=VARCHAR},
      asin = #{record.asin,jdbcType=VARCHAR},
      sku = #{record.sku,jdbcType=VARCHAR},
      other_to_cny_exchange_rate = #{record.otherToCnyExchangeRate,jdbcType=DECIMAL}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazon">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_amazon
    <set>
      <if test="campaignName != null">
        campaign_name = #{campaignName,jdbcType=VARCHAR},
      </if>
      <if test="campaignId != null">
        campaign_id = #{campaignId,jdbcType=VARCHAR},
      </if>
      <if test="campaignStatus != null">
        campaign_status = #{campaignStatus,jdbcType=VARCHAR},
      </if>
      <if test="campaignBudget != null">
        campaign_budget = #{campaignBudget,jdbcType=DECIMAL},
      </if>
      <if test="attributedConversionsOneday != null">
        attributed_conversions_oneday = #{attributedConversionsOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedUnitsOrderedOneday != null">
        attributed_units_ordered_oneday = #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesOneday != null">
        attributed_sales_oneday = #{attributedSalesOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedUnitsOrderedSevenday != null">
        attributed_units_ordered_sevenday = #{attributedUnitsOrderedSevenday,jdbcType=INTEGER},
      </if>
      <if test="impressions != null">
        impressions = #{impressions,jdbcType=INTEGER},
      </if>
      <if test="clicks != null">
        clicks = #{clicks,jdbcType=INTEGER},
      </if>
      <if test="cost != null">
        cost = #{cost,jdbcType=DECIMAL},
      </if>
      <if test="attributedConversionsThirtyday != null">
        attributed_conversions_thirtyday = #{attributedConversionsThirtyday,jdbcType=INTEGER},
      </if>
      <if test="attributedConversionsFourteenday != null">
        attributed_conversions_fourteenday = #{attributedConversionsFourteenday,jdbcType=INTEGER},
      </if>
      <if test="attributedConversionsSevenday != null">
        attributed_conversions_sevenday = #{attributedConversionsSevenday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesThirtyday != null">
        attributed_sales_thirtyday = #{attributedSalesThirtyday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesFourteenday != null">
        attributed_sales_fourteenday = #{attributedSalesFourteenday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesSevenday != null">
        attributed_sales_sevenday = #{attributedSalesSevenday,jdbcType=INTEGER},
      </if>
      <if test="accountId != null">
        account_id = #{accountId,jdbcType=INTEGER},
      </if>
      <if test="companyId != null">
        company_id = #{companyId,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        currency = #{currency,jdbcType=VARCHAR},
      </if>
      <if test="gmtCreateTime != null">
        gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModifyTime != null">
        gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="reportDate != null">
        report_date = #{reportDate,jdbcType=DATE},
      </if>
      <if test="reportType != null">
        report_type = #{reportType,jdbcType=VARCHAR},
      </if>
      <if test="adGroupName != null">
        ad_group_name = #{adGroupName,jdbcType=VARCHAR},
      </if>
      <if test="keywordId != null">
        keyword_id = #{keywordId,jdbcType=INTEGER},
      </if>
      <if test="keywordText != null">
        keyword_text = #{keywordText,jdbcType=VARCHAR},
      </if>
      <if test="matchType != null">
        match_type = #{matchType,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsOnedaySameSku != null">
        attributed_conversions_oneday_same_sku = #{attributedConversionsOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsSevendaySameSku != null">
        attributed_conversions_sevenday_same_sku = #{attributedConversionsSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsFourteendaySameSku != null">
        attributed_conversions_fourteenday_same_sku = #{attributedConversionsFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsThirtydaySameSku != null">
        attributed_conversions_thirtyday_same_sku = #{attributedConversionsThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedThirtyday != null">
        attributed_units_ordered_thirtyday = #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedFourteenday != null">
        attributed_units_ordered_fourteenday = #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesOnedaySameSku != null">
        attributed_sales_oneday_same_sku = #{attributedSalesOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesSevendaySameSku != null">
        attributed_sales_sevenday_same_sku = #{attributedSalesSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesFourteendaySameSku != null">
        attributed_sales_fourteenday_same_sku = #{attributedSalesFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesThirtydaySameSku != null">
        attributed_sales_thirtyday_same_sku = #{attributedSalesThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedOnedaySameSku != null">
        attributed_units_ordered_oneday_same_sku = #{attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedSevendaySameSku != null">
        attributed_units_ordered_sevenday_same_sku = #{attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedFourteendaySameSku != null">
        attributed_units_ordered_fourteenday_same_sku = #{attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedThirtydaySameSku != null">
        attributed_units_ordered_thirtyday_same_sku = #{attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="adGroupId != null">
        ad_group_id = #{adGroupId,jdbcType=VARCHAR},
      </if>
      <if test="asin != null">
        asin = #{asin,jdbcType=VARCHAR},
      </if>
      <if test="sku != null">
        sku = #{sku,jdbcType=VARCHAR},
      </if>
      <if test="otherToCnyExchangeRate != null">
        other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazon">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_amazon
    set campaign_name = #{campaignName,jdbcType=VARCHAR},
      campaign_id = #{campaignId,jdbcType=VARCHAR},
      campaign_status = #{campaignStatus,jdbcType=VARCHAR},
      campaign_budget = #{campaignBudget,jdbcType=DECIMAL},
      attributed_conversions_oneday = #{attributedConversionsOneday,jdbcType=INTEGER},
      attributed_units_ordered_oneday = #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
      attributed_sales_oneday = #{attributedSalesOneday,jdbcType=INTEGER},
      attributed_units_ordered_sevenday = #{attributedUnitsOrderedSevenday,jdbcType=INTEGER},
      impressions = #{impressions,jdbcType=INTEGER},
      clicks = #{clicks,jdbcType=INTEGER},
      cost = #{cost,jdbcType=DECIMAL},
      attributed_conversions_thirtyday = #{attributedConversionsThirtyday,jdbcType=INTEGER},
      attributed_conversions_fourteenday = #{attributedConversionsFourteenday,jdbcType=INTEGER},
      attributed_conversions_sevenday = #{attributedConversionsSevenday,jdbcType=INTEGER},
      attributed_sales_thirtyday = #{attributedSalesThirtyday,jdbcType=INTEGER},
      attributed_sales_fourteenday = #{attributedSalesFourteenday,jdbcType=INTEGER},
      attributed_sales_sevenday = #{attributedSalesSevenday,jdbcType=INTEGER},
      account_id = #{accountId,jdbcType=INTEGER},
      company_id = #{companyId,jdbcType=INTEGER},
      currency = #{currency,jdbcType=VARCHAR},
      gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
      gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP},
      report_date = #{reportDate,jdbcType=DATE},
      report_type = #{reportType,jdbcType=VARCHAR},
      ad_group_name = #{adGroupName,jdbcType=VARCHAR},
      keyword_id = #{keywordId,jdbcType=INTEGER},
      keyword_text = #{keywordText,jdbcType=VARCHAR},
      match_type = #{matchType,jdbcType=VARCHAR},
      attributed_conversions_oneday_same_sku = #{attributedConversionsOnedaySameSku,jdbcType=VARCHAR},
      attributed_conversions_sevenday_same_sku = #{attributedConversionsSevendaySameSku,jdbcType=VARCHAR},
      attributed_conversions_fourteenday_same_sku = #{attributedConversionsFourteendaySameSku,jdbcType=VARCHAR},
      attributed_conversions_thirtyday_same_sku = #{attributedConversionsThirtydaySameSku,jdbcType=VARCHAR},
      attributed_units_ordered_thirtyday = #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
      attributed_units_ordered_fourteenday = #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
      attributed_sales_oneday_same_sku = #{attributedSalesOnedaySameSku,jdbcType=VARCHAR},
      attributed_sales_sevenday_same_sku = #{attributedSalesSevendaySameSku,jdbcType=VARCHAR},
      attributed_sales_fourteenday_same_sku = #{attributedSalesFourteendaySameSku,jdbcType=VARCHAR},
      attributed_sales_thirtyday_same_sku = #{attributedSalesThirtydaySameSku,jdbcType=VARCHAR},
      attributed_units_ordered_oneday_same_sku = #{attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR},
      attributed_units_ordered_sevenday_same_sku = #{attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR},
      attributed_units_ordered_fourteenday_same_sku = #{attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR},
      attributed_units_ordered_thirtyday_same_sku = #{attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR},
      ad_group_id = #{adGroupId,jdbcType=VARCHAR},
      asin = #{asin,jdbcType=VARCHAR},
      sku = #{sku,jdbcType=VARCHAR},
      other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazon">
    <!--
      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_amazon
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="campaignName != null">
        campaign_name,
      </if>
      <if test="campaignId != null">
        campaign_id,
      </if>
      <if test="campaignStatus != null">
        campaign_status,
      </if>
      <if test="campaignBudget != null">
        campaign_budget,
      </if>
      <if test="attributedConversionsOneday != null">
        attributed_conversions_oneday,
      </if>
      <if test="attributedUnitsOrderedOneday != null">
        attributed_units_ordered_oneday,
      </if>
      <if test="attributedSalesOneday != null">
        attributed_sales_oneday,
      </if>
      <if test="attributedUnitsOrderedSevenday != null">
        attributed_units_ordered_sevenday,
      </if>
      <if test="impressions != null">
        impressions,
      </if>
      <if test="clicks != null">
        clicks,
      </if>
      <if test="cost != null">
        cost,
      </if>
      <if test="attributedConversionsThirtyday != null">
        attributed_conversions_thirtyday,
      </if>
      <if test="attributedConversionsFourteenday != null">
        attributed_conversions_fourteenday,
      </if>
      <if test="attributedConversionsSevenday != null">
        attributed_conversions_sevenday,
      </if>
      <if test="attributedSalesThirtyday != null">
        attributed_sales_thirtyday,
      </if>
      <if test="attributedSalesFourteenday != null">
        attributed_sales_fourteenday,
      </if>
      <if test="attributedSalesSevenday != null">
        attributed_sales_sevenday,
      </if>
      <if test="accountId != null">
        account_id,
      </if>
      <if test="companyId != null">
        company_id,
      </if>
      <if test="currency != null">
        currency,
      </if>
      <if test="gmtCreateTime != null">
        gmt_create_time,
      </if>
      <if test="gmtModifyTime != null">
        gmt_modify_time,
      </if>
      <if test="reportDate != null">
        report_date,
      </if>
      <if test="reportType != null">
        report_type,
      </if>
      <if test="adGroupName != null">
        ad_group_name,
      </if>
      <if test="keywordId != null">
        keyword_id,
      </if>
      <if test="keywordText != null">
        keyword_text,
      </if>
      <if test="matchType != null">
        match_type,
      </if>
      <if test="attributedConversionsOnedaySameSku != null">
        attributed_conversions_oneday_same_sku,
      </if>
      <if test="attributedConversionsSevendaySameSku != null">
        attributed_conversions_sevenday_same_sku,
      </if>
      <if test="attributedConversionsFourteendaySameSku != null">
        attributed_conversions_fourteenday_same_sku,
      </if>
      <if test="attributedConversionsThirtydaySameSku != null">
        attributed_conversions_thirtyday_same_sku,
      </if>
      <if test="attributedUnitsOrderedThirtyday != null">
        attributed_units_ordered_thirtyday,
      </if>
      <if test="attributedUnitsOrderedFourteenday != null">
        attributed_units_ordered_fourteenday,
      </if>
      <if test="attributedSalesOnedaySameSku != null">
        attributed_sales_oneday_same_sku,
      </if>
      <if test="attributedSalesSevendaySameSku != null">
        attributed_sales_sevenday_same_sku,
      </if>
      <if test="attributedSalesFourteendaySameSku != null">
        attributed_sales_fourteenday_same_sku,
      </if>
      <if test="attributedSalesThirtydaySameSku != null">
        attributed_sales_thirtyday_same_sku,
      </if>
      <if test="attributedUnitsOrderedOnedaySameSku != null">
        attributed_units_ordered_oneday_same_sku,
      </if>
      <if test="attributedUnitsOrderedSevendaySameSku != null">
        attributed_units_ordered_sevenday_same_sku,
      </if>
      <if test="attributedUnitsOrderedFourteendaySameSku != null">
        attributed_units_ordered_fourteenday_same_sku,
      </if>
      <if test="attributedUnitsOrderedThirtydaySameSku != null">
        attributed_units_ordered_thirtyday_same_sku,
      </if>
      <if test="adGroupId != null">
        ad_group_id,
      </if>
      <if test="asin != null">
        asin,
      </if>
      <if test="sku != null">
        sku,
      </if>
      <if test="otherToCnyExchangeRate != null">
        other_to_cny_exchange_rate,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="campaignName != null">
        #{campaignName,jdbcType=VARCHAR},
      </if>
      <if test="campaignId != null">
        #{campaignId,jdbcType=VARCHAR},
      </if>
      <if test="campaignStatus != null">
        #{campaignStatus,jdbcType=VARCHAR},
      </if>
      <if test="campaignBudget != null">
        #{campaignBudget,jdbcType=DECIMAL},
      </if>
      <if test="attributedConversionsOneday != null">
        #{attributedConversionsOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedUnitsOrderedOneday != null">
        #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesOneday != null">
        #{attributedSalesOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedUnitsOrderedSevenday != null">
        #{attributedUnitsOrderedSevenday,jdbcType=INTEGER},
      </if>
      <if test="impressions != null">
        #{impressions,jdbcType=INTEGER},
      </if>
      <if test="clicks != null">
        #{clicks,jdbcType=INTEGER},
      </if>
      <if test="cost != null">
        #{cost,jdbcType=DECIMAL},
      </if>
      <if test="attributedConversionsThirtyday != null">
        #{attributedConversionsThirtyday,jdbcType=INTEGER},
      </if>
      <if test="attributedConversionsFourteenday != null">
        #{attributedConversionsFourteenday,jdbcType=INTEGER},
      </if>
      <if test="attributedConversionsSevenday != null">
        #{attributedConversionsSevenday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesThirtyday != null">
        #{attributedSalesThirtyday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesFourteenday != null">
        #{attributedSalesFourteenday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesSevenday != null">
        #{attributedSalesSevenday,jdbcType=INTEGER},
      </if>
      <if test="accountId != null">
        #{accountId,jdbcType=INTEGER},
      </if>
      <if test="companyId != null">
        #{companyId,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        #{currency,jdbcType=VARCHAR},
      </if>
      <if test="gmtCreateTime != null">
        #{gmtCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModifyTime != null">
        #{gmtModifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="reportDate != null">
        #{reportDate,jdbcType=DATE},
      </if>
      <if test="reportType != null">
        #{reportType,jdbcType=VARCHAR},
      </if>
      <if test="adGroupName != null">
        #{adGroupName,jdbcType=VARCHAR},
      </if>
      <if test="keywordId != null">
        #{keywordId,jdbcType=INTEGER},
      </if>
      <if test="keywordText != null">
        #{keywordText,jdbcType=VARCHAR},
      </if>
      <if test="matchType != null">
        #{matchType,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsOnedaySameSku != null">
        #{attributedConversionsOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsSevendaySameSku != null">
        #{attributedConversionsSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsFourteendaySameSku != null">
        #{attributedConversionsFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsThirtydaySameSku != null">
        #{attributedConversionsThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedThirtyday != null">
        #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedFourteenday != null">
        #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesOnedaySameSku != null">
        #{attributedSalesOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesSevendaySameSku != null">
        #{attributedSalesSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesFourteendaySameSku != null">
        #{attributedSalesFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesThirtydaySameSku != null">
        #{attributedSalesThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedOnedaySameSku != null">
        #{attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedSevendaySameSku != null">
        #{attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedFourteendaySameSku != null">
        #{attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedThirtydaySameSku != null">
        #{attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="adGroupId != null">
        #{adGroupId,jdbcType=VARCHAR},
      </if>
      <if test="asin != null">
        #{asin,jdbcType=VARCHAR},
      </if>
      <if test="sku != null">
        #{sku,jdbcType=VARCHAR},
      </if>
      <if test="otherToCnyExchangeRate != null">
        #{otherToCnyExchangeRate,jdbcType=DECIMAL},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
        id = #{id,jdbcType=INTEGER},
      </if>
      <if test="campaignName != null">
        campaign_name = #{campaignName,jdbcType=VARCHAR},
      </if>
      <if test="campaignId != null">
        campaign_id = #{campaignId,jdbcType=VARCHAR},
      </if>
      <if test="campaignStatus != null">
        campaign_status = #{campaignStatus,jdbcType=VARCHAR},
      </if>
      <if test="campaignBudget != null">
        campaign_budget = #{campaignBudget,jdbcType=DECIMAL},
      </if>
      <if test="attributedConversionsOneday != null">
        attributed_conversions_oneday = #{attributedConversionsOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedUnitsOrderedOneday != null">
        attributed_units_ordered_oneday = #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesOneday != null">
        attributed_sales_oneday = #{attributedSalesOneday,jdbcType=INTEGER},
      </if>
      <if test="attributedUnitsOrderedSevenday != null">
        attributed_units_ordered_sevenday = #{attributedUnitsOrderedSevenday,jdbcType=INTEGER},
      </if>
      <if test="impressions != null">
        impressions = #{impressions,jdbcType=INTEGER},
      </if>
      <if test="clicks != null">
        clicks = #{clicks,jdbcType=INTEGER},
      </if>
      <if test="cost != null">
        cost = #{cost,jdbcType=DECIMAL},
      </if>
      <if test="attributedConversionsThirtyday != null">
        attributed_conversions_thirtyday = #{attributedConversionsThirtyday,jdbcType=INTEGER},
      </if>
      <if test="attributedConversionsFourteenday != null">
        attributed_conversions_fourteenday = #{attributedConversionsFourteenday,jdbcType=INTEGER},
      </if>
      <if test="attributedConversionsSevenday != null">
        attributed_conversions_sevenday = #{attributedConversionsSevenday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesThirtyday != null">
        attributed_sales_thirtyday = #{attributedSalesThirtyday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesFourteenday != null">
        attributed_sales_fourteenday = #{attributedSalesFourteenday,jdbcType=INTEGER},
      </if>
      <if test="attributedSalesSevenday != null">
        attributed_sales_sevenday = #{attributedSalesSevenday,jdbcType=INTEGER},
      </if>
      <if test="accountId != null">
        account_id = #{accountId,jdbcType=INTEGER},
      </if>
      <if test="companyId != null">
        company_id = #{companyId,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        currency = #{currency,jdbcType=VARCHAR},
      </if>
      <if test="gmtCreateTime != null">
        gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModifyTime != null">
        gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="reportDate != null">
        report_date = #{reportDate,jdbcType=DATE},
      </if>
      <if test="reportType != null">
        report_type = #{reportType,jdbcType=VARCHAR},
      </if>
      <if test="adGroupName != null">
        ad_group_name = #{adGroupName,jdbcType=VARCHAR},
      </if>
      <if test="keywordId != null">
        keyword_id = #{keywordId,jdbcType=INTEGER},
      </if>
      <if test="keywordText != null">
        keyword_text = #{keywordText,jdbcType=VARCHAR},
      </if>
      <if test="matchType != null">
        match_type = #{matchType,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsOnedaySameSku != null">
        attributed_conversions_oneday_same_sku = #{attributedConversionsOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsSevendaySameSku != null">
        attributed_conversions_sevenday_same_sku = #{attributedConversionsSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsFourteendaySameSku != null">
        attributed_conversions_fourteenday_same_sku = #{attributedConversionsFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedConversionsThirtydaySameSku != null">
        attributed_conversions_thirtyday_same_sku = #{attributedConversionsThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedThirtyday != null">
        attributed_units_ordered_thirtyday = #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedFourteenday != null">
        attributed_units_ordered_fourteenday = #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesOnedaySameSku != null">
        attributed_sales_oneday_same_sku = #{attributedSalesOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesSevendaySameSku != null">
        attributed_sales_sevenday_same_sku = #{attributedSalesSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesFourteendaySameSku != null">
        attributed_sales_fourteenday_same_sku = #{attributedSalesFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedSalesThirtydaySameSku != null">
        attributed_sales_thirtyday_same_sku = #{attributedSalesThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedOnedaySameSku != null">
        attributed_units_ordered_oneday_same_sku = #{attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedSevendaySameSku != null">
        attributed_units_ordered_sevenday_same_sku = #{attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedFourteendaySameSku != null">
        attributed_units_ordered_fourteenday_same_sku = #{attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="attributedUnitsOrderedThirtydaySameSku != null">
        attributed_units_ordered_thirtyday_same_sku = #{attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR},
      </if>
      <if test="adGroupId != null">
        ad_group_id = #{adGroupId,jdbcType=VARCHAR},
      </if>
      <if test="asin != null">
        asin = #{asin,jdbcType=VARCHAR},
      </if>
      <if test="sku != null">
        sku = #{sku,jdbcType=VARCHAR},
      </if>
      <if test="otherToCnyExchangeRate != null">
        other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL},
      </if>
    </trim>
  </insert>
  <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazon">
    <!--
      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_amazon
    (id, campaign_name, campaign_id, campaign_status, campaign_budget, attributed_conversions_oneday, 
      attributed_units_ordered_oneday, attributed_sales_oneday, attributed_units_ordered_sevenday, 
      impressions, clicks, cost, attributed_conversions_thirtyday, attributed_conversions_fourteenday, 
      attributed_conversions_sevenday, attributed_sales_thirtyday, attributed_sales_fourteenday, 
      attributed_sales_sevenday, account_id, company_id, currency, gmt_create_time, gmt_modify_time, 
      report_date, report_type, ad_group_name, keyword_id, keyword_text, match_type, 
      attributed_conversions_oneday_same_sku, attributed_conversions_sevenday_same_sku, 
      attributed_conversions_fourteenday_same_sku, attributed_conversions_thirtyday_same_sku, 
      attributed_units_ordered_thirtyday, attributed_units_ordered_fourteenday, attributed_sales_oneday_same_sku, 
      attributed_sales_sevenday_same_sku, attributed_sales_fourteenday_same_sku, attributed_sales_thirtyday_same_sku, 
      attributed_units_ordered_oneday_same_sku, attributed_units_ordered_sevenday_same_sku, 
      attributed_units_ordered_fourteenday_same_sku, attributed_units_ordered_thirtyday_same_sku, 
      ad_group_id, asin, sku, other_to_cny_exchange_rate)
    values
    (#{id,jdbcType=INTEGER}, #{campaignName,jdbcType=VARCHAR}, #{campaignId,jdbcType=VARCHAR}, 
      #{campaignStatus,jdbcType=VARCHAR}, #{campaignBudget,jdbcType=DECIMAL}, #{attributedConversionsOneday,jdbcType=INTEGER}, 
      #{attributedUnitsOrderedOneday,jdbcType=INTEGER}, #{attributedSalesOneday,jdbcType=INTEGER}, 
      #{attributedUnitsOrderedSevenday,jdbcType=INTEGER}, #{impressions,jdbcType=INTEGER}, 
      #{clicks,jdbcType=INTEGER}, #{cost,jdbcType=DECIMAL}, #{attributedConversionsThirtyday,jdbcType=INTEGER}, 
      #{attributedConversionsFourteenday,jdbcType=INTEGER}, #{attributedConversionsSevenday,jdbcType=INTEGER}, 
      #{attributedSalesThirtyday,jdbcType=INTEGER}, #{attributedSalesFourteenday,jdbcType=INTEGER}, 
      #{attributedSalesSevenday,jdbcType=INTEGER}, #{accountId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, 
      #{currency,jdbcType=VARCHAR}, #{gmtCreateTime,jdbcType=TIMESTAMP}, #{gmtModifyTime,jdbcType=TIMESTAMP}, 
      #{reportDate,jdbcType=DATE}, #{reportType,jdbcType=VARCHAR}, #{adGroupName,jdbcType=VARCHAR}, 
      #{keywordId,jdbcType=INTEGER}, #{keywordText,jdbcType=VARCHAR}, #{matchType,jdbcType=VARCHAR}, 
      #{attributedConversionsOnedaySameSku,jdbcType=VARCHAR}, #{attributedConversionsSevendaySameSku,jdbcType=VARCHAR}, 
      #{attributedConversionsFourteendaySameSku,jdbcType=VARCHAR}, #{attributedConversionsThirtydaySameSku,jdbcType=VARCHAR}, 
      #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR}, #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR}, 
      #{attributedSalesOnedaySameSku,jdbcType=VARCHAR}, #{attributedSalesSevendaySameSku,jdbcType=VARCHAR}, 
      #{attributedSalesFourteendaySameSku,jdbcType=VARCHAR}, #{attributedSalesThirtydaySameSku,jdbcType=VARCHAR}, 
      #{attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR}, #{attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR}, 
      #{attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR}, #{attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR}, 
      #{adGroupId,jdbcType=VARCHAR}, #{asin,jdbcType=VARCHAR}, #{sku,jdbcType=VARCHAR}, 
      #{otherToCnyExchangeRate,jdbcType=DECIMAL})
    on duplicate key update 
    id = #{id,jdbcType=INTEGER}, 
    campaign_name = #{campaignName,jdbcType=VARCHAR}, 
    campaign_id = #{campaignId,jdbcType=VARCHAR}, 
    campaign_status = #{campaignStatus,jdbcType=VARCHAR}, 
    campaign_budget = #{campaignBudget,jdbcType=DECIMAL}, 
    attributed_conversions_oneday = #{attributedConversionsOneday,jdbcType=INTEGER}, 
    attributed_units_ordered_oneday = #{attributedUnitsOrderedOneday,jdbcType=INTEGER}, 
    attributed_sales_oneday = #{attributedSalesOneday,jdbcType=INTEGER}, 
    attributed_units_ordered_sevenday = #{attributedUnitsOrderedSevenday,jdbcType=INTEGER}, 
    impressions = #{impressions,jdbcType=INTEGER}, 
    clicks = #{clicks,jdbcType=INTEGER}, 
    cost = #{cost,jdbcType=DECIMAL}, 
    attributed_conversions_thirtyday = #{attributedConversionsThirtyday,jdbcType=INTEGER}, 
    attributed_conversions_fourteenday = #{attributedConversionsFourteenday,jdbcType=INTEGER}, 
    attributed_conversions_sevenday = #{attributedConversionsSevenday,jdbcType=INTEGER}, 
    attributed_sales_thirtyday = #{attributedSalesThirtyday,jdbcType=INTEGER}, 
    attributed_sales_fourteenday = #{attributedSalesFourteenday,jdbcType=INTEGER}, 
    attributed_sales_sevenday = #{attributedSalesSevenday,jdbcType=INTEGER}, 
    account_id = #{accountId,jdbcType=INTEGER}, 
    company_id = #{companyId,jdbcType=INTEGER}, 
    currency = #{currency,jdbcType=VARCHAR}, 
    gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP}, 
    gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP}, 
    report_date = #{reportDate,jdbcType=DATE}, 
    report_type = #{reportType,jdbcType=VARCHAR}, 
    ad_group_name = #{adGroupName,jdbcType=VARCHAR}, 
    keyword_id = #{keywordId,jdbcType=INTEGER}, 
    keyword_text = #{keywordText,jdbcType=VARCHAR}, 
    match_type = #{matchType,jdbcType=VARCHAR}, 
    attributed_conversions_oneday_same_sku = #{attributedConversionsOnedaySameSku,jdbcType=VARCHAR}, 
    attributed_conversions_sevenday_same_sku = #{attributedConversionsSevendaySameSku,jdbcType=VARCHAR}, 
    attributed_conversions_fourteenday_same_sku = #{attributedConversionsFourteendaySameSku,jdbcType=VARCHAR}, 
    attributed_conversions_thirtyday_same_sku = #{attributedConversionsThirtydaySameSku,jdbcType=VARCHAR}, 
    attributed_units_ordered_thirtyday = #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR}, 
    attributed_units_ordered_fourteenday = #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR}, 
    attributed_sales_oneday_same_sku = #{attributedSalesOnedaySameSku,jdbcType=VARCHAR}, 
    attributed_sales_sevenday_same_sku = #{attributedSalesSevendaySameSku,jdbcType=VARCHAR}, 
    attributed_sales_fourteenday_same_sku = #{attributedSalesFourteendaySameSku,jdbcType=VARCHAR}, 
    attributed_sales_thirtyday_same_sku = #{attributedSalesThirtydaySameSku,jdbcType=VARCHAR}, 
    attributed_units_ordered_oneday_same_sku = #{attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR}, 
    attributed_units_ordered_sevenday_same_sku = #{attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR}, 
    attributed_units_ordered_fourteenday_same_sku = #{attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR}, 
    attributed_units_ordered_thirtyday_same_sku = #{attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR}, 
    ad_group_id = #{adGroupId,jdbcType=VARCHAR}, 
    asin = #{asin,jdbcType=VARCHAR}, 
    sku = #{sku,jdbcType=VARCHAR}, 
    other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL}
  </insert>
  <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceAmazonExample" 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_amazon
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
</mapper>