<?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.DcBaseFinanceAmazonAdProductMapper">
    <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcBaseFinanceAmazonAdProduct">
        <!--
          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="ad_group_name" jdbcType="VARCHAR" property="adGroupName"/>
        <result column="ad_group_id" jdbcType="VARCHAR" property="adGroupId"/>
        <result column="impressions" jdbcType="INTEGER" property="impressions"/>
        <result column="clicks" jdbcType="INTEGER" property="clicks"/>
        <result column="cost" jdbcType="DECIMAL" property="cost"/>
        <result column="currency" jdbcType="VARCHAR" property="currency"/>
        <result column="asin" jdbcType="VARCHAR" property="asin"/>
        <result column="sku" jdbcType="VARCHAR" property="sku"/>
        <result column="attributed_conversions_oneday" jdbcType="INTEGER" property="attributedConversionsOneday"/>
        <result column="attributed_conversions_sevenday" jdbcType="INTEGER" property="attributedConversionsSevenday"/>
        <result column="attributed_conversions_fourteenday" jdbcType="INTEGER"
                property="attributedConversionsFourteenday"/>
        <result column="attributed_conversions_thirtyday" jdbcType="INTEGER" property="attributedConversionsThirtyday"/>
        <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_oneday" jdbcType="INTEGER" property="attributedUnitsOrderedOneday"/>
        <result column="attributed_units_ordered_sevenday" jdbcType="INTEGER"
                property="attributedUnitsOrderedSevenday"/>
        <result column="attributed_units_ordered_fourteenday" jdbcType="VARCHAR"
                property="attributedUnitsOrderedFourteenday"/>
        <result column="attributed_units_ordered_thirtyday" jdbcType="VARCHAR"
                property="attributedUnitsOrderedThirtyday"/>
        <result column="attributed_sales_oneday" jdbcType="INTEGER" property="attributedSalesOneday"/>
        <result column="attributed_sales_sevenday" jdbcType="INTEGER" property="attributedSalesSevenday"/>
        <result column="attributed_sales_fourteenday" jdbcType="INTEGER" property="attributedSalesFourteenday"/>
        <result column="attributed_sales_thirtyday" jdbcType="INTEGER" property="attributedSalesThirtyday"/>
        <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="account_id" jdbcType="INTEGER" property="accountId"/>
        <result column="company_id" jdbcType="INTEGER" property="companyId"/>
        <result column="bj_create_time" jdbcType="TIMESTAMP" property="bjCreateTime"/>
        <result column="bj_modify_time" jdbcType="TIMESTAMP" property="bjModifyTime"/>
        <result column="report_date" jdbcType="DATE" property="reportDate"/>
        <result column="report_type" jdbcType="VARCHAR" property="reportType"/>
        <result column="exchange_rate" jdbcType="DECIMAL" property="exchangeRate"/>
        <result column="exchange_rate_usd" jdbcType="DECIMAL" property="exchangeRateUsd"/>
        <result column="type" jdbcType="INTEGER" property="type"/>
    </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, ad_group_name, ad_group_id, impressions, clicks,
        cost, currency, asin, sku, attributed_conversions_oneday, attributed_conversions_sevenday,
        attributed_conversions_fourteenday, attributed_conversions_thirtyday, attributed_conversions_oneday_same_sku,
        attributed_conversions_sevenday_same_sku, attributed_conversions_fourteenday_same_sku,
        attributed_conversions_thirtyday_same_sku, attributed_units_ordered_oneday, attributed_units_ordered_sevenday,
        attributed_units_ordered_fourteenday, attributed_units_ordered_thirtyday, attributed_sales_oneday,
        attributed_sales_sevenday, attributed_sales_fourteenday, attributed_sales_thirtyday,
        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,
        account_id, company_id, bj_create_time, bj_modify_time, report_date, report_type,
        exchange_rate, exchange_rate_usd, type
    </sql>

    <resultMap id="BaseResultMap1" type="com.bailuntec.domain.dto.DcBaseFinanceAmazonItemDto">
        <!--
          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="ad_group_name" jdbcType="VARCHAR" property="adGroupName"/>
        <result column="ad_group_id" jdbcType="VARCHAR" property="adGroupId"/>
        <result column="cost" jdbcType="DECIMAL" property="cost"/>
        <result column="currency" jdbcType="VARCHAR" property="currency"/>
        <result column="asin" jdbcType="VARCHAR" property="asin"/>
        <result column="sku" jdbcType="VARCHAR" property="sku"/>
        <result column="account_id" jdbcType="INTEGER" property="accountId"/>
        <result column="company_id" jdbcType="INTEGER" property="companyId"/>
        <result column="report_date" jdbcType="DATE" property="reportDate"/>
        <result column="exchange_rate" jdbcType="DECIMAL" property="exchangeRate"/>
        <result column="exchange_rate_usd" jdbcType="DECIMAL" property="exchangeRateUsd"/>
        <result column="site_en" jdbcType="VARCHAR" property="siteEn"/>
        <collection property="dcBaseSkuMappingList" column="{sku=sku,siteEn=site_en}"
                    ofType="com.bailuntec.domain.dto.DcBaseSkuMappingItemDto" select="selectSkuMapping">
        </collection>
    </resultMap>

    <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceAmazonAdProductExample"
            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_ad_product
        <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_ad_product
        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_ad_product
        where id = #{id,jdbcType=INTEGER}
    </delete>
    <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceAmazonAdProductExample">
        <!--
          WARNING - @mbg.generated
          This element is automatically generated by MyBatis Generator, do not modify.
        -->
        delete from dc_base_finance_amazon_ad_product
        <if test="_parameter != null">
            <include refid="Example_Where_Clause"/>
        </if>
    </delete>
    <insert id="insert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazonAdProduct">
        <!--
          WARNING - @mbg.generated
          This element is automatically generated by MyBatis Generator, do not modify.
        -->
        insert into dc_base_finance_amazon_ad_product (id, campaign_name, campaign_id,
        ad_group_name, ad_group_id, impressions,
        clicks, cost, currency,
        asin, sku, attributed_conversions_oneday,
        attributed_conversions_sevenday, attributed_conversions_fourteenday,
        attributed_conversions_thirtyday, attributed_conversions_oneday_same_sku,
        attributed_conversions_sevenday_same_sku, attributed_conversions_fourteenday_same_sku,
        attributed_conversions_thirtyday_same_sku, attributed_units_ordered_oneday,
        attributed_units_ordered_sevenday, attributed_units_ordered_fourteenday,
        attributed_units_ordered_thirtyday, attributed_sales_oneday,
        attributed_sales_sevenday, attributed_sales_fourteenday,
        attributed_sales_thirtyday, 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, account_id,
        company_id, bj_create_time, bj_modify_time,
        report_date, report_type, exchange_rate,
        exchange_rate_usd, type)
        values (#{id,jdbcType=INTEGER}, #{campaignName,jdbcType=VARCHAR}, #{campaignId,jdbcType=VARCHAR},
        #{adGroupName,jdbcType=VARCHAR}, #{adGroupId,jdbcType=VARCHAR}, #{impressions,jdbcType=INTEGER},
        #{clicks,jdbcType=INTEGER}, #{cost,jdbcType=DECIMAL}, #{currency,jdbcType=VARCHAR},
        #{asin,jdbcType=VARCHAR}, #{sku,jdbcType=VARCHAR}, #{attributedConversionsOneday,jdbcType=INTEGER},
        #{attributedConversionsSevenday,jdbcType=INTEGER}, #{attributedConversionsFourteenday,jdbcType=INTEGER},
        #{attributedConversionsThirtyday,jdbcType=INTEGER}, #{attributedConversionsOnedaySameSku,jdbcType=VARCHAR},
        #{attributedConversionsSevendaySameSku,jdbcType=VARCHAR},
        #{attributedConversionsFourteendaySameSku,jdbcType=VARCHAR},
        #{attributedConversionsThirtydaySameSku,jdbcType=VARCHAR}, #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
        #{attributedUnitsOrderedSevenday,jdbcType=INTEGER}, #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
        #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR}, #{attributedSalesOneday,jdbcType=INTEGER},
        #{attributedSalesSevenday,jdbcType=INTEGER}, #{attributedSalesFourteenday,jdbcType=INTEGER},
        #{attributedSalesThirtyday,jdbcType=INTEGER}, #{attributedSalesOnedaySameSku,jdbcType=VARCHAR},
        #{attributedSalesSevendaySameSku,jdbcType=VARCHAR}, #{attributedSalesFourteendaySameSku,jdbcType=VARCHAR},
        #{attributedSalesThirtydaySameSku,jdbcType=VARCHAR}, #{attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR},
        #{attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR},
        #{attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR},
        #{attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR}, #{accountId,jdbcType=INTEGER},
        #{companyId,jdbcType=INTEGER}, #{bjCreateTime,jdbcType=TIMESTAMP}, #{bjModifyTime,jdbcType=TIMESTAMP},
        #{reportDate,jdbcType=DATE}, #{reportType,jdbcType=VARCHAR}, #{exchangeRate,jdbcType=DECIMAL},
        #{exchangeRateUsd,jdbcType=DECIMAL}, #{type,jdbcType=INTEGER})
    </insert>
    <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazonAdProduct">
        <!--
          WARNING - @mbg.generated
          This element is automatically generated by MyBatis Generator, do not modify.
        -->
        insert into dc_base_finance_amazon_ad_product
        <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="adGroupName != null">
                ad_group_name,
            </if>
            <if test="adGroupId != null">
                ad_group_id,
            </if>
            <if test="impressions != null">
                impressions,
            </if>
            <if test="clicks != null">
                clicks,
            </if>
            <if test="cost != null">
                cost,
            </if>
            <if test="currency != null">
                currency,
            </if>
            <if test="asin != null">
                asin,
            </if>
            <if test="sku != null">
                sku,
            </if>
            <if test="attributedConversionsOneday != null">
                attributed_conversions_oneday,
            </if>
            <if test="attributedConversionsSevenday != null">
                attributed_conversions_sevenday,
            </if>
            <if test="attributedConversionsFourteenday != null">
                attributed_conversions_fourteenday,
            </if>
            <if test="attributedConversionsThirtyday != null">
                attributed_conversions_thirtyday,
            </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="attributedUnitsOrderedOneday != null">
                attributed_units_ordered_oneday,
            </if>
            <if test="attributedUnitsOrderedSevenday != null">
                attributed_units_ordered_sevenday,
            </if>
            <if test="attributedUnitsOrderedFourteenday != null">
                attributed_units_ordered_fourteenday,
            </if>
            <if test="attributedUnitsOrderedThirtyday != null">
                attributed_units_ordered_thirtyday,
            </if>
            <if test="attributedSalesOneday != null">
                attributed_sales_oneday,
            </if>
            <if test="attributedSalesSevenday != null">
                attributed_sales_sevenday,
            </if>
            <if test="attributedSalesFourteenday != null">
                attributed_sales_fourteenday,
            </if>
            <if test="attributedSalesThirtyday != null">
                attributed_sales_thirtyday,
            </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="accountId != null">
                account_id,
            </if>
            <if test="companyId != null">
                company_id,
            </if>
            <if test="bjCreateTime != null">
                bj_create_time,
            </if>
            <if test="bjModifyTime != null">
                bj_modify_time,
            </if>
            <if test="reportDate != null">
                report_date,
            </if>
            <if test="reportType != null">
                report_type,
            </if>
            <if test="exchangeRate != null">
                exchange_rate,
            </if>
            <if test="exchangeRateUsd != null">
                exchange_rate_usd,
            </if>
            <if test="type != null">
                type,
            </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="adGroupName != null">
                #{adGroupName,jdbcType=VARCHAR},
            </if>
            <if test="adGroupId != null">
                #{adGroupId,jdbcType=VARCHAR},
            </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="currency != null">
                #{currency,jdbcType=VARCHAR},
            </if>
            <if test="asin != null">
                #{asin,jdbcType=VARCHAR},
            </if>
            <if test="sku != null">
                #{sku,jdbcType=VARCHAR},
            </if>
            <if test="attributedConversionsOneday != null">
                #{attributedConversionsOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsSevenday != null">
                #{attributedConversionsSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsFourteenday != null">
                #{attributedConversionsFourteenday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsThirtyday != null">
                #{attributedConversionsThirtyday,jdbcType=INTEGER},
            </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="attributedUnitsOrderedOneday != null">
                #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedUnitsOrderedSevenday != null">
                #{attributedUnitsOrderedSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedUnitsOrderedFourteenday != null">
                #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
            </if>
            <if test="attributedUnitsOrderedThirtyday != null">
                #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
            </if>
            <if test="attributedSalesOneday != null">
                #{attributedSalesOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesSevenday != null">
                #{attributedSalesSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesFourteenday != null">
                #{attributedSalesFourteenday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesThirtyday != null">
                #{attributedSalesThirtyday,jdbcType=INTEGER},
            </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="accountId != null">
                #{accountId,jdbcType=INTEGER},
            </if>
            <if test="companyId != null">
                #{companyId,jdbcType=INTEGER},
            </if>
            <if test="bjCreateTime != null">
                #{bjCreateTime,jdbcType=TIMESTAMP},
            </if>
            <if test="bjModifyTime != null">
                #{bjModifyTime,jdbcType=TIMESTAMP},
            </if>
            <if test="reportDate != null">
                #{reportDate,jdbcType=DATE},
            </if>
            <if test="reportType != null">
                #{reportType,jdbcType=VARCHAR},
            </if>
            <if test="exchangeRate != null">
                #{exchangeRate,jdbcType=DECIMAL},
            </if>
            <if test="exchangeRateUsd != null">
                #{exchangeRateUsd,jdbcType=DECIMAL},
            </if>
            <if test="type != null">
                #{type,jdbcType=INTEGER},
            </if>
        </trim>
    </insert>
    <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceAmazonAdProductExample"
            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_ad_product
        <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_ad_product
        <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.adGroupName != null">
                ad_group_name = #{record.adGroupName,jdbcType=VARCHAR},
            </if>
            <if test="record.adGroupId != null">
                ad_group_id = #{record.adGroupId,jdbcType=VARCHAR},
            </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.currency != null">
                currency = #{record.currency,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.attributedConversionsOneday != null">
                attributed_conversions_oneday = #{record.attributedConversionsOneday,jdbcType=INTEGER},
            </if>
            <if test="record.attributedConversionsSevenday != null">
                attributed_conversions_sevenday = #{record.attributedConversionsSevenday,jdbcType=INTEGER},
            </if>
            <if test="record.attributedConversionsFourteenday != null">
                attributed_conversions_fourteenday = #{record.attributedConversionsFourteenday,jdbcType=INTEGER},
            </if>
            <if test="record.attributedConversionsThirtyday != null">
                attributed_conversions_thirtyday = #{record.attributedConversionsThirtyday,jdbcType=INTEGER},
            </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.attributedUnitsOrderedOneday != null">
                attributed_units_ordered_oneday = #{record.attributedUnitsOrderedOneday,jdbcType=INTEGER},
            </if>
            <if test="record.attributedUnitsOrderedSevenday != null">
                attributed_units_ordered_sevenday = #{record.attributedUnitsOrderedSevenday,jdbcType=INTEGER},
            </if>
            <if test="record.attributedUnitsOrderedFourteenday != null">
                attributed_units_ordered_fourteenday = #{record.attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
            </if>
            <if test="record.attributedUnitsOrderedThirtyday != null">
                attributed_units_ordered_thirtyday = #{record.attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
            </if>
            <if test="record.attributedSalesOneday != null">
                attributed_sales_oneday = #{record.attributedSalesOneday,jdbcType=INTEGER},
            </if>
            <if test="record.attributedSalesSevenday != null">
                attributed_sales_sevenday = #{record.attributedSalesSevenday,jdbcType=INTEGER},
            </if>
            <if test="record.attributedSalesFourteenday != null">
                attributed_sales_fourteenday = #{record.attributedSalesFourteenday,jdbcType=INTEGER},
            </if>
            <if test="record.attributedSalesThirtyday != null">
                attributed_sales_thirtyday = #{record.attributedSalesThirtyday,jdbcType=INTEGER},
            </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.accountId != null">
                account_id = #{record.accountId,jdbcType=INTEGER},
            </if>
            <if test="record.companyId != null">
                company_id = #{record.companyId,jdbcType=INTEGER},
            </if>
            <if test="record.bjCreateTime != null">
                bj_create_time = #{record.bjCreateTime,jdbcType=TIMESTAMP},
            </if>
            <if test="record.bjModifyTime != null">
                bj_modify_time = #{record.bjModifyTime,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.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.type != null">
                type = #{record.type,jdbcType=INTEGER},
            </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_ad_product
        set id = #{record.id,jdbcType=INTEGER},
        campaign_name = #{record.campaignName,jdbcType=VARCHAR},
        campaign_id = #{record.campaignId,jdbcType=VARCHAR},
        ad_group_name = #{record.adGroupName,jdbcType=VARCHAR},
        ad_group_id = #{record.adGroupId,jdbcType=VARCHAR},
        impressions = #{record.impressions,jdbcType=INTEGER},
        clicks = #{record.clicks,jdbcType=INTEGER},
        cost = #{record.cost,jdbcType=DECIMAL},
        currency = #{record.currency,jdbcType=VARCHAR},
        asin = #{record.asin,jdbcType=VARCHAR},
        sku = #{record.sku,jdbcType=VARCHAR},
        attributed_conversions_oneday = #{record.attributedConversionsOneday,jdbcType=INTEGER},
        attributed_conversions_sevenday = #{record.attributedConversionsSevenday,jdbcType=INTEGER},
        attributed_conversions_fourteenday = #{record.attributedConversionsFourteenday,jdbcType=INTEGER},
        attributed_conversions_thirtyday = #{record.attributedConversionsThirtyday,jdbcType=INTEGER},
        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_oneday = #{record.attributedUnitsOrderedOneday,jdbcType=INTEGER},
        attributed_units_ordered_sevenday = #{record.attributedUnitsOrderedSevenday,jdbcType=INTEGER},
        attributed_units_ordered_fourteenday = #{record.attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
        attributed_units_ordered_thirtyday = #{record.attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
        attributed_sales_oneday = #{record.attributedSalesOneday,jdbcType=INTEGER},
        attributed_sales_sevenday = #{record.attributedSalesSevenday,jdbcType=INTEGER},
        attributed_sales_fourteenday = #{record.attributedSalesFourteenday,jdbcType=INTEGER},
        attributed_sales_thirtyday = #{record.attributedSalesThirtyday,jdbcType=INTEGER},
        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},
        account_id = #{record.accountId,jdbcType=INTEGER},
        company_id = #{record.companyId,jdbcType=INTEGER},
        bj_create_time = #{record.bjCreateTime,jdbcType=TIMESTAMP},
        bj_modify_time = #{record.bjModifyTime,jdbcType=TIMESTAMP},
        report_date = #{record.reportDate,jdbcType=DATE},
        report_type = #{record.reportType,jdbcType=VARCHAR},
        exchange_rate = #{record.exchangeRate,jdbcType=DECIMAL},
        exchange_rate_usd = #{record.exchangeRateUsd,jdbcType=DECIMAL},
        type = #{record.type,jdbcType=INTEGER}
        <if test="_parameter != null">
            <include refid="Update_By_Example_Where_Clause"/>
        </if>
    </update>
    <update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazonAdProduct">
        <!--
          WARNING - @mbg.generated
          This element is automatically generated by MyBatis Generator, do not modify.
        -->
        update dc_base_finance_amazon_ad_product
        <set>
            <if test="campaignName != null">
                campaign_name = #{campaignName,jdbcType=VARCHAR},
            </if>
            <if test="campaignId != null">
                campaign_id = #{campaignId,jdbcType=VARCHAR},
            </if>
            <if test="adGroupName != null">
                ad_group_name = #{adGroupName,jdbcType=VARCHAR},
            </if>
            <if test="adGroupId != null">
                ad_group_id = #{adGroupId,jdbcType=VARCHAR},
            </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="currency != null">
                currency = #{currency,jdbcType=VARCHAR},
            </if>
            <if test="asin != null">
                asin = #{asin,jdbcType=VARCHAR},
            </if>
            <if test="sku != null">
                sku = #{sku,jdbcType=VARCHAR},
            </if>
            <if test="attributedConversionsOneday != null">
                attributed_conversions_oneday = #{attributedConversionsOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsSevenday != null">
                attributed_conversions_sevenday = #{attributedConversionsSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsFourteenday != null">
                attributed_conversions_fourteenday = #{attributedConversionsFourteenday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsThirtyday != null">
                attributed_conversions_thirtyday = #{attributedConversionsThirtyday,jdbcType=INTEGER},
            </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="attributedUnitsOrderedOneday != null">
                attributed_units_ordered_oneday = #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedUnitsOrderedSevenday != null">
                attributed_units_ordered_sevenday = #{attributedUnitsOrderedSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedUnitsOrderedFourteenday != null">
                attributed_units_ordered_fourteenday = #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
            </if>
            <if test="attributedUnitsOrderedThirtyday != null">
                attributed_units_ordered_thirtyday = #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
            </if>
            <if test="attributedSalesOneday != null">
                attributed_sales_oneday = #{attributedSalesOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesSevenday != null">
                attributed_sales_sevenday = #{attributedSalesSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesFourteenday != null">
                attributed_sales_fourteenday = #{attributedSalesFourteenday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesThirtyday != null">
                attributed_sales_thirtyday = #{attributedSalesThirtyday,jdbcType=INTEGER},
            </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="accountId != null">
                account_id = #{accountId,jdbcType=INTEGER},
            </if>
            <if test="companyId != null">
                company_id = #{companyId,jdbcType=INTEGER},
            </if>
            <if test="bjCreateTime != null">
                bj_create_time = #{bjCreateTime,jdbcType=TIMESTAMP},
            </if>
            <if test="bjModifyTime != null">
                bj_modify_time = #{bjModifyTime,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="exchangeRate != null">
                exchange_rate = #{exchangeRate,jdbcType=DECIMAL},
            </if>
            <if test="exchangeRateUsd != null">
                exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
            </if>
            <if test="type != null">
                type = #{type,jdbcType=INTEGER},
            </if>
        </set>
        where id = #{id,jdbcType=INTEGER}
    </update>
    <update id="updateByPrimaryKey" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazonAdProduct">
        <!--
          WARNING - @mbg.generated
          This element is automatically generated by MyBatis Generator, do not modify.
        -->
        update dc_base_finance_amazon_ad_product
        set campaign_name = #{campaignName,jdbcType=VARCHAR},
        campaign_id = #{campaignId,jdbcType=VARCHAR},
        ad_group_name = #{adGroupName,jdbcType=VARCHAR},
        ad_group_id = #{adGroupId,jdbcType=VARCHAR},
        impressions = #{impressions,jdbcType=INTEGER},
        clicks = #{clicks,jdbcType=INTEGER},
        cost = #{cost,jdbcType=DECIMAL},
        currency = #{currency,jdbcType=VARCHAR},
        asin = #{asin,jdbcType=VARCHAR},
        sku = #{sku,jdbcType=VARCHAR},
        attributed_conversions_oneday = #{attributedConversionsOneday,jdbcType=INTEGER},
        attributed_conversions_sevenday = #{attributedConversionsSevenday,jdbcType=INTEGER},
        attributed_conversions_fourteenday = #{attributedConversionsFourteenday,jdbcType=INTEGER},
        attributed_conversions_thirtyday = #{attributedConversionsThirtyday,jdbcType=INTEGER},
        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_oneday = #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
        attributed_units_ordered_sevenday = #{attributedUnitsOrderedSevenday,jdbcType=INTEGER},
        attributed_units_ordered_fourteenday = #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
        attributed_units_ordered_thirtyday = #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
        attributed_sales_oneday = #{attributedSalesOneday,jdbcType=INTEGER},
        attributed_sales_sevenday = #{attributedSalesSevenday,jdbcType=INTEGER},
        attributed_sales_fourteenday = #{attributedSalesFourteenday,jdbcType=INTEGER},
        attributed_sales_thirtyday = #{attributedSalesThirtyday,jdbcType=INTEGER},
        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},
        account_id = #{accountId,jdbcType=INTEGER},
        company_id = #{companyId,jdbcType=INTEGER},
        bj_create_time = #{bjCreateTime,jdbcType=TIMESTAMP},
        bj_modify_time = #{bjModifyTime,jdbcType=TIMESTAMP},
        report_date = #{reportDate,jdbcType=DATE},
        report_type = #{reportType,jdbcType=VARCHAR},
        exchange_rate = #{exchangeRate,jdbcType=DECIMAL},
        exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
        type = #{type,jdbcType=INTEGER}
        where id = #{id,jdbcType=INTEGER}
    </update>
    <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazonAdProduct">
        <!--
          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_ad_product
        <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="adGroupName != null">
                ad_group_name,
            </if>
            <if test="adGroupId != null">
                ad_group_id,
            </if>
            <if test="impressions != null">
                impressions,
            </if>
            <if test="clicks != null">
                clicks,
            </if>
            <if test="cost != null">
                cost,
            </if>
            <if test="currency != null">
                currency,
            </if>
            <if test="asin != null">
                asin,
            </if>
            <if test="sku != null">
                sku,
            </if>
            <if test="attributedConversionsOneday != null">
                attributed_conversions_oneday,
            </if>
            <if test="attributedConversionsSevenday != null">
                attributed_conversions_sevenday,
            </if>
            <if test="attributedConversionsFourteenday != null">
                attributed_conversions_fourteenday,
            </if>
            <if test="attributedConversionsThirtyday != null">
                attributed_conversions_thirtyday,
            </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="attributedUnitsOrderedOneday != null">
                attributed_units_ordered_oneday,
            </if>
            <if test="attributedUnitsOrderedSevenday != null">
                attributed_units_ordered_sevenday,
            </if>
            <if test="attributedUnitsOrderedFourteenday != null">
                attributed_units_ordered_fourteenday,
            </if>
            <if test="attributedUnitsOrderedThirtyday != null">
                attributed_units_ordered_thirtyday,
            </if>
            <if test="attributedSalesOneday != null">
                attributed_sales_oneday,
            </if>
            <if test="attributedSalesSevenday != null">
                attributed_sales_sevenday,
            </if>
            <if test="attributedSalesFourteenday != null">
                attributed_sales_fourteenday,
            </if>
            <if test="attributedSalesThirtyday != null">
                attributed_sales_thirtyday,
            </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="accountId != null">
                account_id,
            </if>
            <if test="companyId != null">
                company_id,
            </if>
            <if test="bjCreateTime != null">
                bj_create_time,
            </if>
            <if test="bjModifyTime != null">
                bj_modify_time,
            </if>
            <if test="reportDate != null">
                report_date,
            </if>
            <if test="reportType != null">
                report_type,
            </if>
            <if test="exchangeRate != null">
                exchange_rate,
            </if>
            <if test="exchangeRateUsd != null">
                exchange_rate_usd,
            </if>
            <if test="type != null">
                type,
            </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="adGroupName != null">
                #{adGroupName,jdbcType=VARCHAR},
            </if>
            <if test="adGroupId != null">
                #{adGroupId,jdbcType=VARCHAR},
            </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="currency != null">
                #{currency,jdbcType=VARCHAR},
            </if>
            <if test="asin != null">
                #{asin,jdbcType=VARCHAR},
            </if>
            <if test="sku != null">
                #{sku,jdbcType=VARCHAR},
            </if>
            <if test="attributedConversionsOneday != null">
                #{attributedConversionsOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsSevenday != null">
                #{attributedConversionsSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsFourteenday != null">
                #{attributedConversionsFourteenday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsThirtyday != null">
                #{attributedConversionsThirtyday,jdbcType=INTEGER},
            </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="attributedUnitsOrderedOneday != null">
                #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedUnitsOrderedSevenday != null">
                #{attributedUnitsOrderedSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedUnitsOrderedFourteenday != null">
                #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
            </if>
            <if test="attributedUnitsOrderedThirtyday != null">
                #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
            </if>
            <if test="attributedSalesOneday != null">
                #{attributedSalesOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesSevenday != null">
                #{attributedSalesSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesFourteenday != null">
                #{attributedSalesFourteenday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesThirtyday != null">
                #{attributedSalesThirtyday,jdbcType=INTEGER},
            </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="accountId != null">
                #{accountId,jdbcType=INTEGER},
            </if>
            <if test="companyId != null">
                #{companyId,jdbcType=INTEGER},
            </if>
            <if test="bjCreateTime != null">
                #{bjCreateTime,jdbcType=TIMESTAMP},
            </if>
            <if test="bjModifyTime != null">
                #{bjModifyTime,jdbcType=TIMESTAMP},
            </if>
            <if test="reportDate != null">
                #{reportDate,jdbcType=DATE},
            </if>
            <if test="reportType != null">
                #{reportType,jdbcType=VARCHAR},
            </if>
            <if test="exchangeRate != null">
                #{exchangeRate,jdbcType=DECIMAL},
            </if>
            <if test="exchangeRateUsd != null">
                #{exchangeRateUsd,jdbcType=DECIMAL},
            </if>
            <if test="type != null">
                #{type,jdbcType=INTEGER},
            </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="adGroupName != null">
                ad_group_name = #{adGroupName,jdbcType=VARCHAR},
            </if>
            <if test="adGroupId != null">
                ad_group_id = #{adGroupId,jdbcType=VARCHAR},
            </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="currency != null">
                currency = #{currency,jdbcType=VARCHAR},
            </if>
            <if test="asin != null">
                asin = #{asin,jdbcType=VARCHAR},
            </if>
            <if test="sku != null">
                sku = #{sku,jdbcType=VARCHAR},
            </if>
            <if test="attributedConversionsOneday != null">
                attributed_conversions_oneday = #{attributedConversionsOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsSevenday != null">
                attributed_conversions_sevenday = #{attributedConversionsSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsFourteenday != null">
                attributed_conversions_fourteenday = #{attributedConversionsFourteenday,jdbcType=INTEGER},
            </if>
            <if test="attributedConversionsThirtyday != null">
                attributed_conversions_thirtyday = #{attributedConversionsThirtyday,jdbcType=INTEGER},
            </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="attributedUnitsOrderedOneday != null">
                attributed_units_ordered_oneday = #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedUnitsOrderedSevenday != null">
                attributed_units_ordered_sevenday = #{attributedUnitsOrderedSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedUnitsOrderedFourteenday != null">
                attributed_units_ordered_fourteenday = #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
            </if>
            <if test="attributedUnitsOrderedThirtyday != null">
                attributed_units_ordered_thirtyday = #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
            </if>
            <if test="attributedSalesOneday != null">
                attributed_sales_oneday = #{attributedSalesOneday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesSevenday != null">
                attributed_sales_sevenday = #{attributedSalesSevenday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesFourteenday != null">
                attributed_sales_fourteenday = #{attributedSalesFourteenday,jdbcType=INTEGER},
            </if>
            <if test="attributedSalesThirtyday != null">
                attributed_sales_thirtyday = #{attributedSalesThirtyday,jdbcType=INTEGER},
            </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="accountId != null">
                account_id = #{accountId,jdbcType=INTEGER},
            </if>
            <if test="companyId != null">
                company_id = #{companyId,jdbcType=INTEGER},
            </if>
            <if test="bjCreateTime != null">
                bj_create_time = #{bjCreateTime,jdbcType=TIMESTAMP},
            </if>
            <if test="bjModifyTime != null">
                bj_modify_time = #{bjModifyTime,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="exchangeRate != null">
                exchange_rate = #{exchangeRate,jdbcType=DECIMAL},
            </if>
            <if test="exchangeRateUsd != null">
                exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
            </if>
            <if test="type != null">
                type = #{type,jdbcType=INTEGER},
            </if>
        </trim>
    </insert>
    <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceAmazonAdProduct">
        <!--
          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_ad_product
        (id, campaign_name, campaign_id, ad_group_name, ad_group_id, impressions, clicks,
        cost, currency, asin, sku, attributed_conversions_oneday, attributed_conversions_sevenday,
        attributed_conversions_fourteenday, attributed_conversions_thirtyday, attributed_conversions_oneday_same_sku,
        attributed_conversions_sevenday_same_sku, attributed_conversions_fourteenday_same_sku,
        attributed_conversions_thirtyday_same_sku, attributed_units_ordered_oneday, attributed_units_ordered_sevenday,
        attributed_units_ordered_fourteenday, attributed_units_ordered_thirtyday, attributed_sales_oneday,
        attributed_sales_sevenday, attributed_sales_fourteenday, attributed_sales_thirtyday,
        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, account_id, company_id, bj_create_time,
        bj_modify_time, report_date, report_type, exchange_rate, exchange_rate_usd, type
        )
        values
        (#{id,jdbcType=INTEGER}, #{campaignName,jdbcType=VARCHAR}, #{campaignId,jdbcType=VARCHAR},
        #{adGroupName,jdbcType=VARCHAR}, #{adGroupId,jdbcType=VARCHAR}, #{impressions,jdbcType=INTEGER},
        #{clicks,jdbcType=INTEGER}, #{cost,jdbcType=DECIMAL}, #{currency,jdbcType=VARCHAR},
        #{asin,jdbcType=VARCHAR}, #{sku,jdbcType=VARCHAR}, #{attributedConversionsOneday,jdbcType=INTEGER},
        #{attributedConversionsSevenday,jdbcType=INTEGER}, #{attributedConversionsFourteenday,jdbcType=INTEGER},
        #{attributedConversionsThirtyday,jdbcType=INTEGER}, #{attributedConversionsOnedaySameSku,jdbcType=VARCHAR},
        #{attributedConversionsSevendaySameSku,jdbcType=VARCHAR},
        #{attributedConversionsFourteendaySameSku,jdbcType=VARCHAR},
        #{attributedConversionsThirtydaySameSku,jdbcType=VARCHAR}, #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
        #{attributedUnitsOrderedSevenday,jdbcType=INTEGER}, #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
        #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR}, #{attributedSalesOneday,jdbcType=INTEGER},
        #{attributedSalesSevenday,jdbcType=INTEGER}, #{attributedSalesFourteenday,jdbcType=INTEGER},
        #{attributedSalesThirtyday,jdbcType=INTEGER}, #{attributedSalesOnedaySameSku,jdbcType=VARCHAR},
        #{attributedSalesSevendaySameSku,jdbcType=VARCHAR}, #{attributedSalesFourteendaySameSku,jdbcType=VARCHAR},
        #{attributedSalesThirtydaySameSku,jdbcType=VARCHAR}, #{attributedUnitsOrderedOnedaySameSku,jdbcType=VARCHAR},
        #{attributedUnitsOrderedSevendaySameSku,jdbcType=VARCHAR},
        #{attributedUnitsOrderedFourteendaySameSku,jdbcType=VARCHAR},
        #{attributedUnitsOrderedThirtydaySameSku,jdbcType=VARCHAR}, #{accountId,jdbcType=INTEGER},
        #{companyId,jdbcType=INTEGER}, #{bjCreateTime,jdbcType=TIMESTAMP}, #{bjModifyTime,jdbcType=TIMESTAMP},
        #{reportDate,jdbcType=DATE}, #{reportType,jdbcType=VARCHAR}, #{exchangeRate,jdbcType=DECIMAL},
        #{exchangeRateUsd,jdbcType=DECIMAL}, #{type,jdbcType=INTEGER})
        on duplicate key update
        id = #{id,jdbcType=INTEGER},
        campaign_name = #{campaignName,jdbcType=VARCHAR},
        campaign_id = #{campaignId,jdbcType=VARCHAR},
        ad_group_name = #{adGroupName,jdbcType=VARCHAR},
        ad_group_id = #{adGroupId,jdbcType=VARCHAR},
        impressions = #{impressions,jdbcType=INTEGER},
        clicks = #{clicks,jdbcType=INTEGER},
        cost = #{cost,jdbcType=DECIMAL},
        currency = #{currency,jdbcType=VARCHAR},
        asin = #{asin,jdbcType=VARCHAR},
        sku = #{sku,jdbcType=VARCHAR},
        attributed_conversions_oneday = #{attributedConversionsOneday,jdbcType=INTEGER},
        attributed_conversions_sevenday = #{attributedConversionsSevenday,jdbcType=INTEGER},
        attributed_conversions_fourteenday = #{attributedConversionsFourteenday,jdbcType=INTEGER},
        attributed_conversions_thirtyday = #{attributedConversionsThirtyday,jdbcType=INTEGER},
        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_oneday = #{attributedUnitsOrderedOneday,jdbcType=INTEGER},
        attributed_units_ordered_sevenday = #{attributedUnitsOrderedSevenday,jdbcType=INTEGER},
        attributed_units_ordered_fourteenday = #{attributedUnitsOrderedFourteenday,jdbcType=VARCHAR},
        attributed_units_ordered_thirtyday = #{attributedUnitsOrderedThirtyday,jdbcType=VARCHAR},
        attributed_sales_oneday = #{attributedSalesOneday,jdbcType=INTEGER},
        attributed_sales_sevenday = #{attributedSalesSevenday,jdbcType=INTEGER},
        attributed_sales_fourteenday = #{attributedSalesFourteenday,jdbcType=INTEGER},
        attributed_sales_thirtyday = #{attributedSalesThirtyday,jdbcType=INTEGER},
        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},
        account_id = #{accountId,jdbcType=INTEGER},
        company_id = #{companyId,jdbcType=INTEGER},
        bj_create_time = #{bjCreateTime,jdbcType=TIMESTAMP},
        bj_modify_time = #{bjModifyTime,jdbcType=TIMESTAMP},
        report_date = #{reportDate,jdbcType=DATE},
        report_type = #{reportType,jdbcType=VARCHAR},
        exchange_rate = #{exchangeRate,jdbcType=DECIMAL},
        exchange_rate_usd = #{exchangeRateUsd,jdbcType=DECIMAL},
        type = #{type,jdbcType=INTEGER}
    </insert>
    <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceAmazonAdProductExample"
            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_ad_product
        <if test="_parameter != null">
            <include refid="Example_Where_Clause"/>
        </if>
        <if test="orderByClause != null">
            order by ${orderByClause}
        </if>
        limit 1
    </select>

    <select id="selectSkuMapping" resultType="com.bailuntec.domain.dto.DcBaseSkuMappingItemDto">
        select dc0.*, dc1.unit_price
        from dc_base_sku_mapping dc0
                 left join dc_base_sku dc1 on dc0.bailun_sku = dc1.bailun_sku
        where dc0.platform_sku = #{sku}
          and dc0.site = #{siteEn}
          and dc0.has_deleted = 0
    </select>

    <select id="selectAmazonItem" resultMap="BaseResultMap1">
        select dc0.*, dc1.site_en
        from dc_base_finance_amazon_ad_product dc0
                 left join dc_base_company_account dc1 on dc0.account_id = dc1.account_id and dc1.company_id = 1
        where report_date &gt;= #{startTime}
          and report_date &lt; #{endTime}
        order by id asc
        limit ${pageIndex * pageSize} , #{pageSize}
    </select>
</mapper>
