<?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.DcBaseSkuMapper">
  <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcBaseSku">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="bailun_sku" jdbcType="VARCHAR" property="bailunSku" />
    <result column="sku_image" jdbcType="VARCHAR" property="skuImage" />
    <result column="category_id" jdbcType="INTEGER" property="categoryId" />
    <result column="category_name" jdbcType="VARCHAR" property="categoryName" />
    <result column="unit_price" jdbcType="DECIMAL" property="unitPrice" />
    <result column="seller_id" jdbcType="INTEGER" property="sellerId" />
    <result column="seller_name" jdbcType="VARCHAR" property="sellerName" />
    <result column="length" jdbcType="DECIMAL" property="length" />
    <result column="width" jdbcType="DECIMAL" property="width" />
    <result column="height" jdbcType="DECIMAL" property="height" />
    <result column="weight" jdbcType="DECIMAL" property="weight" />
    <result column="moq" jdbcType="INTEGER" property="moq" />
    <result column="sku_title_cn" jdbcType="VARCHAR" property="skuTitleCn" />
    <result column="sku_title_en" jdbcType="VARCHAR" property="skuTitleEn" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" />
    <result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
    <result column="suppliers_id" jdbcType="INTEGER" property="suppliersId" />
    <result column="suppliers_name" jdbcType="VARCHAR" property="suppliersName" />
    <result column="supplier_delivery" jdbcType="INTEGER" property="supplierDelivery" />
    <result column="currency" jdbcType="VARCHAR" property="currency" />
    <result column="buyer_name" jdbcType="VARCHAR" property="buyerName" />
    <result column="buyer_id" jdbcType="INTEGER" property="buyerId" />
    <result column="internal_moq" jdbcType="INTEGER" property="internalMoq" />
    <result column="bussiness_id" jdbcType="INTEGER" property="bussinessId" />
    <result column="bussiness_name" jdbcType="VARCHAR" property="bussinessName" />
    <result column="status" jdbcType="TINYINT" property="status" />
    <result column="type" jdbcType="TINYINT" property="type" />
    <result column="product_code" jdbcType="VARCHAR" property="productCode" />
    <result column="bailun_inner_sku" jdbcType="VARCHAR" property="bailunInnerSku" />
    <result column="product_inner_code" jdbcType="VARCHAR" property="productInnerCode" />
    <result column="skums_id" jdbcType="INTEGER" property="skumsId" />
    <result column="suppliers_link" jdbcType="VARCHAR" property="suppliersLink" />
    <result column="bailun_category_id" jdbcType="INTEGER" property="bailunCategoryId" />
    <result column="bailun_category_name" jdbcType="VARCHAR" property="bailunCategoryName" />
    <result column="color" jdbcType="VARCHAR" property="color" />
    <result column="specifications" jdbcType="VARCHAR" property="specifications" />
    <result column="create_name" jdbcType="VARCHAR" property="createName" />
    <result column="update_name" jdbcType="VARCHAR" property="updateName" />
    <result column="virtual_price" jdbcType="DECIMAL" property="virtualPrice" />
    <result column="size_image" jdbcType="VARCHAR" property="sizeImage" />
    <result column="sales_price" jdbcType="DECIMAL" property="salesPrice" />
    <result column="enable" jdbcType="TINYINT" property="enable" />
    <result column="inspection_hours" jdbcType="DECIMAL" property="inspectionHours" />
    <result column="bargainer" jdbcType="VARCHAR" property="bargainer" />
    <result column="customs_code" jdbcType="VARCHAR" property="customsCode" />
    <result column="declare_title_en" jdbcType="VARCHAR" property="declareTitleEn" />
    <result column="declare_title_cn" jdbcType="VARCHAR" property="declareTitleCn" />
    <result column="pick_title_cn" jdbcType="VARCHAR" property="pickTitleCn" />
    <result column="pick_title_en" jdbcType="VARCHAR" property="pickTitleEn" />
    <result column="product_nature" jdbcType="VARCHAR" property="productNature" />
    <result column="charger_specifications" jdbcType="VARCHAR" property="chargerSpecifications" />
    <result column="packing_price" jdbcType="DECIMAL" property="packingPrice" />
    <result column="packing_name" jdbcType="VARCHAR" property="packingName" />
    <result column="packing_size" jdbcType="VARCHAR" property="packingSize" />
    <result column="product_size" jdbcType="VARCHAR" property="productSize" />
    <result column="packing_weight" jdbcType="DECIMAL" property="packingWeight" />
    <result column="unit" jdbcType="VARCHAR" property="unit" />
    <result column="push_status" jdbcType="TINYINT" property="pushStatus" />
    <result column="transfer_delivery" jdbcType="INTEGER" property="transferDelivery" />
    <result column="source" jdbcType="TINYINT" property="source" />
    <result column="push_time" jdbcType="TIMESTAMP" property="pushTime" />
    <result column="has_delete" jdbcType="BIT" property="hasDelete" />
    <result column="develop_time" jdbcType="TIMESTAMP" property="developTime" />
    <result column="company_id" jdbcType="INTEGER" property="companyId" />
    <result column="category_simple_id" jdbcType="INTEGER" property="categorySimpleId" />
    <result column="category_simple_name" jdbcType="VARCHAR" property="categorySimpleName" />
    <result column="brand" jdbcType="VARCHAR" property="brand" />
    <result column="product_type" jdbcType="INTEGER" property="productType" />
    <result column="product_type_desc" jdbcType="VARCHAR" property="productTypeDesc" />
    <result column="tags" jdbcType="VARCHAR" property="tags" />
  </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, bailun_sku, sku_image, category_id, category_name, unit_price, seller_id, seller_name, 
    length, width, height, weight, moq, sku_title_cn, sku_title_en, create_time, update_time, 
    gmt_create, gmt_modified, suppliers_id, suppliers_name, supplier_delivery, currency, 
    buyer_name, buyer_id, internal_moq, bussiness_id, bussiness_name, status, type, product_code, 
    bailun_inner_sku, product_inner_code, skums_id, suppliers_link, bailun_category_id, 
    bailun_category_name, color, specifications, create_name, update_name, virtual_price, 
    size_image, sales_price, enable, inspection_hours, bargainer, customs_code, declare_title_en, 
    declare_title_cn, pick_title_cn, pick_title_en, product_nature, charger_specifications, 
    packing_price, packing_name, packing_size, product_size, packing_weight, unit, push_status, 
    transfer_delivery, source, push_time, has_delete, develop_time, company_id, category_simple_id, 
    category_simple_name, brand, product_type, product_type_desc, tags
  </sql>
  <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" 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_sku
    <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_sku
    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_sku
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_base_sku
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.bailuntec.domain.entity.DcBaseSku">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_sku (id, bailun_sku, sku_image, 
      category_id, category_name, unit_price, 
      seller_id, seller_name, length, 
      width, height, weight, 
      moq, sku_title_cn, sku_title_en, 
      create_time, update_time, gmt_create, 
      gmt_modified, suppliers_id, suppliers_name, 
      supplier_delivery, currency, buyer_name, 
      buyer_id, internal_moq, bussiness_id, 
      bussiness_name, status, type, 
      product_code, bailun_inner_sku, product_inner_code, 
      skums_id, suppliers_link, bailun_category_id, 
      bailun_category_name, color, specifications, 
      create_name, update_name, virtual_price, 
      size_image, sales_price, enable, 
      inspection_hours, bargainer, customs_code, 
      declare_title_en, declare_title_cn, pick_title_cn, 
      pick_title_en, product_nature, charger_specifications, 
      packing_price, packing_name, packing_size, 
      product_size, packing_weight, unit, 
      push_status, transfer_delivery, source, 
      push_time, has_delete, develop_time, 
      company_id, category_simple_id, category_simple_name, 
      brand, product_type, product_type_desc, 
      tags)
    values (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR}, 
      #{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL}, 
      #{sellerId,jdbcType=INTEGER}, #{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL}, 
      #{width,jdbcType=DECIMAL}, #{height,jdbcType=DECIMAL}, #{weight,jdbcType=DECIMAL}, 
      #{moq,jdbcType=INTEGER}, #{skuTitleCn,jdbcType=VARCHAR}, #{skuTitleEn,jdbcType=VARCHAR}, 
      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP}, 
      #{gmtModified,jdbcType=TIMESTAMP}, #{suppliersId,jdbcType=INTEGER}, #{suppliersName,jdbcType=VARCHAR}, 
      #{supplierDelivery,jdbcType=INTEGER}, #{currency,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR}, 
      #{buyerId,jdbcType=INTEGER}, #{internalMoq,jdbcType=INTEGER}, #{bussinessId,jdbcType=INTEGER}, 
      #{bussinessName,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{type,jdbcType=TINYINT}, 
      #{productCode,jdbcType=VARCHAR}, #{bailunInnerSku,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR}, 
      #{skumsId,jdbcType=INTEGER}, #{suppliersLink,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER}, 
      #{bailunCategoryName,jdbcType=VARCHAR}, #{color,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR}, 
      #{createName,jdbcType=VARCHAR}, #{updateName,jdbcType=VARCHAR}, #{virtualPrice,jdbcType=DECIMAL}, 
      #{sizeImage,jdbcType=VARCHAR}, #{salesPrice,jdbcType=DECIMAL}, #{enable,jdbcType=TINYINT}, 
      #{inspectionHours,jdbcType=DECIMAL}, #{bargainer,jdbcType=VARCHAR}, #{customsCode,jdbcType=VARCHAR}, 
      #{declareTitleEn,jdbcType=VARCHAR}, #{declareTitleCn,jdbcType=VARCHAR}, #{pickTitleCn,jdbcType=VARCHAR}, 
      #{pickTitleEn,jdbcType=VARCHAR}, #{productNature,jdbcType=VARCHAR}, #{chargerSpecifications,jdbcType=VARCHAR}, 
      #{packingPrice,jdbcType=DECIMAL}, #{packingName,jdbcType=VARCHAR}, #{packingSize,jdbcType=VARCHAR}, 
      #{productSize,jdbcType=VARCHAR}, #{packingWeight,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR}, 
      #{pushStatus,jdbcType=TINYINT}, #{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT}, 
      #{pushTime,jdbcType=TIMESTAMP}, #{hasDelete,jdbcType=BIT}, #{developTime,jdbcType=TIMESTAMP}, 
      #{companyId,jdbcType=INTEGER}, #{categorySimpleId,jdbcType=INTEGER}, #{categorySimpleName,jdbcType=VARCHAR}, 
      #{brand,jdbcType=VARCHAR}, #{productType,jdbcType=INTEGER}, #{productTypeDesc,jdbcType=VARCHAR}, 
      #{tags,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseSku">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_sku
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="bailunSku != null">
        bailun_sku,
      </if>
      <if test="skuImage != null">
        sku_image,
      </if>
      <if test="categoryId != null">
        category_id,
      </if>
      <if test="categoryName != null">
        category_name,
      </if>
      <if test="unitPrice != null">
        unit_price,
      </if>
      <if test="sellerId != null">
        seller_id,
      </if>
      <if test="sellerName != null">
        seller_name,
      </if>
      <if test="length != null">
        length,
      </if>
      <if test="width != null">
        width,
      </if>
      <if test="height != null">
        height,
      </if>
      <if test="weight != null">
        weight,
      </if>
      <if test="moq != null">
        moq,
      </if>
      <if test="skuTitleCn != null">
        sku_title_cn,
      </if>
      <if test="skuTitleEn != null">
        sku_title_en,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="gmtCreate != null">
        gmt_create,
      </if>
      <if test="gmtModified != null">
        gmt_modified,
      </if>
      <if test="suppliersId != null">
        suppliers_id,
      </if>
      <if test="suppliersName != null">
        suppliers_name,
      </if>
      <if test="supplierDelivery != null">
        supplier_delivery,
      </if>
      <if test="currency != null">
        currency,
      </if>
      <if test="buyerName != null">
        buyer_name,
      </if>
      <if test="buyerId != null">
        buyer_id,
      </if>
      <if test="internalMoq != null">
        internal_moq,
      </if>
      <if test="bussinessId != null">
        bussiness_id,
      </if>
      <if test="bussinessName != null">
        bussiness_name,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="type != null">
        type,
      </if>
      <if test="productCode != null">
        product_code,
      </if>
      <if test="bailunInnerSku != null">
        bailun_inner_sku,
      </if>
      <if test="productInnerCode != null">
        product_inner_code,
      </if>
      <if test="skumsId != null">
        skums_id,
      </if>
      <if test="suppliersLink != null">
        suppliers_link,
      </if>
      <if test="bailunCategoryId != null">
        bailun_category_id,
      </if>
      <if test="bailunCategoryName != null">
        bailun_category_name,
      </if>
      <if test="color != null">
        color,
      </if>
      <if test="specifications != null">
        specifications,
      </if>
      <if test="createName != null">
        create_name,
      </if>
      <if test="updateName != null">
        update_name,
      </if>
      <if test="virtualPrice != null">
        virtual_price,
      </if>
      <if test="sizeImage != null">
        size_image,
      </if>
      <if test="salesPrice != null">
        sales_price,
      </if>
      <if test="enable != null">
        enable,
      </if>
      <if test="inspectionHours != null">
        inspection_hours,
      </if>
      <if test="bargainer != null">
        bargainer,
      </if>
      <if test="customsCode != null">
        customs_code,
      </if>
      <if test="declareTitleEn != null">
        declare_title_en,
      </if>
      <if test="declareTitleCn != null">
        declare_title_cn,
      </if>
      <if test="pickTitleCn != null">
        pick_title_cn,
      </if>
      <if test="pickTitleEn != null">
        pick_title_en,
      </if>
      <if test="productNature != null">
        product_nature,
      </if>
      <if test="chargerSpecifications != null">
        charger_specifications,
      </if>
      <if test="packingPrice != null">
        packing_price,
      </if>
      <if test="packingName != null">
        packing_name,
      </if>
      <if test="packingSize != null">
        packing_size,
      </if>
      <if test="productSize != null">
        product_size,
      </if>
      <if test="packingWeight != null">
        packing_weight,
      </if>
      <if test="unit != null">
        unit,
      </if>
      <if test="pushStatus != null">
        push_status,
      </if>
      <if test="transferDelivery != null">
        transfer_delivery,
      </if>
      <if test="source != null">
        source,
      </if>
      <if test="pushTime != null">
        push_time,
      </if>
      <if test="hasDelete != null">
        has_delete,
      </if>
      <if test="developTime != null">
        develop_time,
      </if>
      <if test="companyId != null">
        company_id,
      </if>
      <if test="categorySimpleId != null">
        category_simple_id,
      </if>
      <if test="categorySimpleName != null">
        category_simple_name,
      </if>
      <if test="brand != null">
        brand,
      </if>
      <if test="productType != null">
        product_type,
      </if>
      <if test="productTypeDesc != null">
        product_type_desc,
      </if>
      <if test="tags != null">
        tags,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="bailunSku != null">
        #{bailunSku,jdbcType=VARCHAR},
      </if>
      <if test="skuImage != null">
        #{skuImage,jdbcType=VARCHAR},
      </if>
      <if test="categoryId != null">
        #{categoryId,jdbcType=INTEGER},
      </if>
      <if test="categoryName != null">
        #{categoryName,jdbcType=VARCHAR},
      </if>
      <if test="unitPrice != null">
        #{unitPrice,jdbcType=DECIMAL},
      </if>
      <if test="sellerId != null">
        #{sellerId,jdbcType=INTEGER},
      </if>
      <if test="sellerName != null">
        #{sellerName,jdbcType=VARCHAR},
      </if>
      <if test="length != null">
        #{length,jdbcType=DECIMAL},
      </if>
      <if test="width != null">
        #{width,jdbcType=DECIMAL},
      </if>
      <if test="height != null">
        #{height,jdbcType=DECIMAL},
      </if>
      <if test="weight != null">
        #{weight,jdbcType=DECIMAL},
      </if>
      <if test="moq != null">
        #{moq,jdbcType=INTEGER},
      </if>
      <if test="skuTitleCn != null">
        #{skuTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="skuTitleEn != null">
        #{skuTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtCreate != null">
        #{gmtCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModified != null">
        #{gmtModified,jdbcType=TIMESTAMP},
      </if>
      <if test="suppliersId != null">
        #{suppliersId,jdbcType=INTEGER},
      </if>
      <if test="suppliersName != null">
        #{suppliersName,jdbcType=VARCHAR},
      </if>
      <if test="supplierDelivery != null">
        #{supplierDelivery,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        #{currency,jdbcType=VARCHAR},
      </if>
      <if test="buyerName != null">
        #{buyerName,jdbcType=VARCHAR},
      </if>
      <if test="buyerId != null">
        #{buyerId,jdbcType=INTEGER},
      </if>
      <if test="internalMoq != null">
        #{internalMoq,jdbcType=INTEGER},
      </if>
      <if test="bussinessId != null">
        #{bussinessId,jdbcType=INTEGER},
      </if>
      <if test="bussinessName != null">
        #{bussinessName,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=TINYINT},
      </if>
      <if test="type != null">
        #{type,jdbcType=TINYINT},
      </if>
      <if test="productCode != null">
        #{productCode,jdbcType=VARCHAR},
      </if>
      <if test="bailunInnerSku != null">
        #{bailunInnerSku,jdbcType=VARCHAR},
      </if>
      <if test="productInnerCode != null">
        #{productInnerCode,jdbcType=VARCHAR},
      </if>
      <if test="skumsId != null">
        #{skumsId,jdbcType=INTEGER},
      </if>
      <if test="suppliersLink != null">
        #{suppliersLink,jdbcType=VARCHAR},
      </if>
      <if test="bailunCategoryId != null">
        #{bailunCategoryId,jdbcType=INTEGER},
      </if>
      <if test="bailunCategoryName != null">
        #{bailunCategoryName,jdbcType=VARCHAR},
      </if>
      <if test="color != null">
        #{color,jdbcType=VARCHAR},
      </if>
      <if test="specifications != null">
        #{specifications,jdbcType=VARCHAR},
      </if>
      <if test="createName != null">
        #{createName,jdbcType=VARCHAR},
      </if>
      <if test="updateName != null">
        #{updateName,jdbcType=VARCHAR},
      </if>
      <if test="virtualPrice != null">
        #{virtualPrice,jdbcType=DECIMAL},
      </if>
      <if test="sizeImage != null">
        #{sizeImage,jdbcType=VARCHAR},
      </if>
      <if test="salesPrice != null">
        #{salesPrice,jdbcType=DECIMAL},
      </if>
      <if test="enable != null">
        #{enable,jdbcType=TINYINT},
      </if>
      <if test="inspectionHours != null">
        #{inspectionHours,jdbcType=DECIMAL},
      </if>
      <if test="bargainer != null">
        #{bargainer,jdbcType=VARCHAR},
      </if>
      <if test="customsCode != null">
        #{customsCode,jdbcType=VARCHAR},
      </if>
      <if test="declareTitleEn != null">
        #{declareTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="declareTitleCn != null">
        #{declareTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="pickTitleCn != null">
        #{pickTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="pickTitleEn != null">
        #{pickTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="productNature != null">
        #{productNature,jdbcType=VARCHAR},
      </if>
      <if test="chargerSpecifications != null">
        #{chargerSpecifications,jdbcType=VARCHAR},
      </if>
      <if test="packingPrice != null">
        #{packingPrice,jdbcType=DECIMAL},
      </if>
      <if test="packingName != null">
        #{packingName,jdbcType=VARCHAR},
      </if>
      <if test="packingSize != null">
        #{packingSize,jdbcType=VARCHAR},
      </if>
      <if test="productSize != null">
        #{productSize,jdbcType=VARCHAR},
      </if>
      <if test="packingWeight != null">
        #{packingWeight,jdbcType=DECIMAL},
      </if>
      <if test="unit != null">
        #{unit,jdbcType=VARCHAR},
      </if>
      <if test="pushStatus != null">
        #{pushStatus,jdbcType=TINYINT},
      </if>
      <if test="transferDelivery != null">
        #{transferDelivery,jdbcType=INTEGER},
      </if>
      <if test="source != null">
        #{source,jdbcType=TINYINT},
      </if>
      <if test="pushTime != null">
        #{pushTime,jdbcType=TIMESTAMP},
      </if>
      <if test="hasDelete != null">
        #{hasDelete,jdbcType=BIT},
      </if>
      <if test="developTime != null">
        #{developTime,jdbcType=TIMESTAMP},
      </if>
      <if test="companyId != null">
        #{companyId,jdbcType=INTEGER},
      </if>
      <if test="categorySimpleId != null">
        #{categorySimpleId,jdbcType=INTEGER},
      </if>
      <if test="categorySimpleName != null">
        #{categorySimpleName,jdbcType=VARCHAR},
      </if>
      <if test="brand != null">
        #{brand,jdbcType=VARCHAR},
      </if>
      <if test="productType != null">
        #{productType,jdbcType=INTEGER},
      </if>
      <if test="productTypeDesc != null">
        #{productTypeDesc,jdbcType=VARCHAR},
      </if>
      <if test="tags != null">
        #{tags,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from dc_base_sku
    <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_sku
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.bailunSku != null">
        bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
      </if>
      <if test="record.skuImage != null">
        sku_image = #{record.skuImage,jdbcType=VARCHAR},
      </if>
      <if test="record.categoryId != null">
        category_id = #{record.categoryId,jdbcType=INTEGER},
      </if>
      <if test="record.categoryName != null">
        category_name = #{record.categoryName,jdbcType=VARCHAR},
      </if>
      <if test="record.unitPrice != null">
        unit_price = #{record.unitPrice,jdbcType=DECIMAL},
      </if>
      <if test="record.sellerId != null">
        seller_id = #{record.sellerId,jdbcType=INTEGER},
      </if>
      <if test="record.sellerName != null">
        seller_name = #{record.sellerName,jdbcType=VARCHAR},
      </if>
      <if test="record.length != null">
        length = #{record.length,jdbcType=DECIMAL},
      </if>
      <if test="record.width != null">
        width = #{record.width,jdbcType=DECIMAL},
      </if>
      <if test="record.height != null">
        height = #{record.height,jdbcType=DECIMAL},
      </if>
      <if test="record.weight != null">
        weight = #{record.weight,jdbcType=DECIMAL},
      </if>
      <if test="record.moq != null">
        moq = #{record.moq,jdbcType=INTEGER},
      </if>
      <if test="record.skuTitleCn != null">
        sku_title_cn = #{record.skuTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="record.skuTitleEn != null">
        sku_title_en = #{record.skuTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.gmtCreate != null">
        gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.gmtModified != null">
        gmt_modified = #{record.gmtModified,jdbcType=TIMESTAMP},
      </if>
      <if test="record.suppliersId != null">
        suppliers_id = #{record.suppliersId,jdbcType=INTEGER},
      </if>
      <if test="record.suppliersName != null">
        suppliers_name = #{record.suppliersName,jdbcType=VARCHAR},
      </if>
      <if test="record.supplierDelivery != null">
        supplier_delivery = #{record.supplierDelivery,jdbcType=INTEGER},
      </if>
      <if test="record.currency != null">
        currency = #{record.currency,jdbcType=VARCHAR},
      </if>
      <if test="record.buyerName != null">
        buyer_name = #{record.buyerName,jdbcType=VARCHAR},
      </if>
      <if test="record.buyerId != null">
        buyer_id = #{record.buyerId,jdbcType=INTEGER},
      </if>
      <if test="record.internalMoq != null">
        internal_moq = #{record.internalMoq,jdbcType=INTEGER},
      </if>
      <if test="record.bussinessId != null">
        bussiness_id = #{record.bussinessId,jdbcType=INTEGER},
      </if>
      <if test="record.bussinessName != null">
        bussiness_name = #{record.bussinessName,jdbcType=VARCHAR},
      </if>
      <if test="record.status != null">
        status = #{record.status,jdbcType=TINYINT},
      </if>
      <if test="record.type != null">
        type = #{record.type,jdbcType=TINYINT},
      </if>
      <if test="record.productCode != null">
        product_code = #{record.productCode,jdbcType=VARCHAR},
      </if>
      <if test="record.bailunInnerSku != null">
        bailun_inner_sku = #{record.bailunInnerSku,jdbcType=VARCHAR},
      </if>
      <if test="record.productInnerCode != null">
        product_inner_code = #{record.productInnerCode,jdbcType=VARCHAR},
      </if>
      <if test="record.skumsId != null">
        skums_id = #{record.skumsId,jdbcType=INTEGER},
      </if>
      <if test="record.suppliersLink != null">
        suppliers_link = #{record.suppliersLink,jdbcType=VARCHAR},
      </if>
      <if test="record.bailunCategoryId != null">
        bailun_category_id = #{record.bailunCategoryId,jdbcType=INTEGER},
      </if>
      <if test="record.bailunCategoryName != null">
        bailun_category_name = #{record.bailunCategoryName,jdbcType=VARCHAR},
      </if>
      <if test="record.color != null">
        color = #{record.color,jdbcType=VARCHAR},
      </if>
      <if test="record.specifications != null">
        specifications = #{record.specifications,jdbcType=VARCHAR},
      </if>
      <if test="record.createName != null">
        create_name = #{record.createName,jdbcType=VARCHAR},
      </if>
      <if test="record.updateName != null">
        update_name = #{record.updateName,jdbcType=VARCHAR},
      </if>
      <if test="record.virtualPrice != null">
        virtual_price = #{record.virtualPrice,jdbcType=DECIMAL},
      </if>
      <if test="record.sizeImage != null">
        size_image = #{record.sizeImage,jdbcType=VARCHAR},
      </if>
      <if test="record.salesPrice != null">
        sales_price = #{record.salesPrice,jdbcType=DECIMAL},
      </if>
      <if test="record.enable != null">
        enable = #{record.enable,jdbcType=TINYINT},
      </if>
      <if test="record.inspectionHours != null">
        inspection_hours = #{record.inspectionHours,jdbcType=DECIMAL},
      </if>
      <if test="record.bargainer != null">
        bargainer = #{record.bargainer,jdbcType=VARCHAR},
      </if>
      <if test="record.customsCode != null">
        customs_code = #{record.customsCode,jdbcType=VARCHAR},
      </if>
      <if test="record.declareTitleEn != null">
        declare_title_en = #{record.declareTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="record.declareTitleCn != null">
        declare_title_cn = #{record.declareTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="record.pickTitleCn != null">
        pick_title_cn = #{record.pickTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="record.pickTitleEn != null">
        pick_title_en = #{record.pickTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="record.productNature != null">
        product_nature = #{record.productNature,jdbcType=VARCHAR},
      </if>
      <if test="record.chargerSpecifications != null">
        charger_specifications = #{record.chargerSpecifications,jdbcType=VARCHAR},
      </if>
      <if test="record.packingPrice != null">
        packing_price = #{record.packingPrice,jdbcType=DECIMAL},
      </if>
      <if test="record.packingName != null">
        packing_name = #{record.packingName,jdbcType=VARCHAR},
      </if>
      <if test="record.packingSize != null">
        packing_size = #{record.packingSize,jdbcType=VARCHAR},
      </if>
      <if test="record.productSize != null">
        product_size = #{record.productSize,jdbcType=VARCHAR},
      </if>
      <if test="record.packingWeight != null">
        packing_weight = #{record.packingWeight,jdbcType=DECIMAL},
      </if>
      <if test="record.unit != null">
        unit = #{record.unit,jdbcType=VARCHAR},
      </if>
      <if test="record.pushStatus != null">
        push_status = #{record.pushStatus,jdbcType=TINYINT},
      </if>
      <if test="record.transferDelivery != null">
        transfer_delivery = #{record.transferDelivery,jdbcType=INTEGER},
      </if>
      <if test="record.source != null">
        source = #{record.source,jdbcType=TINYINT},
      </if>
      <if test="record.pushTime != null">
        push_time = #{record.pushTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.hasDelete != null">
        has_delete = #{record.hasDelete,jdbcType=BIT},
      </if>
      <if test="record.developTime != null">
        develop_time = #{record.developTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.companyId != null">
        company_id = #{record.companyId,jdbcType=INTEGER},
      </if>
      <if test="record.categorySimpleId != null">
        category_simple_id = #{record.categorySimpleId,jdbcType=INTEGER},
      </if>
      <if test="record.categorySimpleName != null">
        category_simple_name = #{record.categorySimpleName,jdbcType=VARCHAR},
      </if>
      <if test="record.brand != null">
        brand = #{record.brand,jdbcType=VARCHAR},
      </if>
      <if test="record.productType != null">
        product_type = #{record.productType,jdbcType=INTEGER},
      </if>
      <if test="record.productTypeDesc != null">
        product_type_desc = #{record.productTypeDesc,jdbcType=VARCHAR},
      </if>
      <if test="record.tags != null">
        tags = #{record.tags,jdbcType=VARCHAR},
      </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_sku
    set id = #{record.id,jdbcType=INTEGER},
      bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
      sku_image = #{record.skuImage,jdbcType=VARCHAR},
      category_id = #{record.categoryId,jdbcType=INTEGER},
      category_name = #{record.categoryName,jdbcType=VARCHAR},
      unit_price = #{record.unitPrice,jdbcType=DECIMAL},
      seller_id = #{record.sellerId,jdbcType=INTEGER},
      seller_name = #{record.sellerName,jdbcType=VARCHAR},
      length = #{record.length,jdbcType=DECIMAL},
      width = #{record.width,jdbcType=DECIMAL},
      height = #{record.height,jdbcType=DECIMAL},
      weight = #{record.weight,jdbcType=DECIMAL},
      moq = #{record.moq,jdbcType=INTEGER},
      sku_title_cn = #{record.skuTitleCn,jdbcType=VARCHAR},
      sku_title_en = #{record.skuTitleEn,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP},
      gmt_modified = #{record.gmtModified,jdbcType=TIMESTAMP},
      suppliers_id = #{record.suppliersId,jdbcType=INTEGER},
      suppliers_name = #{record.suppliersName,jdbcType=VARCHAR},
      supplier_delivery = #{record.supplierDelivery,jdbcType=INTEGER},
      currency = #{record.currency,jdbcType=VARCHAR},
      buyer_name = #{record.buyerName,jdbcType=VARCHAR},
      buyer_id = #{record.buyerId,jdbcType=INTEGER},
      internal_moq = #{record.internalMoq,jdbcType=INTEGER},
      bussiness_id = #{record.bussinessId,jdbcType=INTEGER},
      bussiness_name = #{record.bussinessName,jdbcType=VARCHAR},
      status = #{record.status,jdbcType=TINYINT},
      type = #{record.type,jdbcType=TINYINT},
      product_code = #{record.productCode,jdbcType=VARCHAR},
      bailun_inner_sku = #{record.bailunInnerSku,jdbcType=VARCHAR},
      product_inner_code = #{record.productInnerCode,jdbcType=VARCHAR},
      skums_id = #{record.skumsId,jdbcType=INTEGER},
      suppliers_link = #{record.suppliersLink,jdbcType=VARCHAR},
      bailun_category_id = #{record.bailunCategoryId,jdbcType=INTEGER},
      bailun_category_name = #{record.bailunCategoryName,jdbcType=VARCHAR},
      color = #{record.color,jdbcType=VARCHAR},
      specifications = #{record.specifications,jdbcType=VARCHAR},
      create_name = #{record.createName,jdbcType=VARCHAR},
      update_name = #{record.updateName,jdbcType=VARCHAR},
      virtual_price = #{record.virtualPrice,jdbcType=DECIMAL},
      size_image = #{record.sizeImage,jdbcType=VARCHAR},
      sales_price = #{record.salesPrice,jdbcType=DECIMAL},
      enable = #{record.enable,jdbcType=TINYINT},
      inspection_hours = #{record.inspectionHours,jdbcType=DECIMAL},
      bargainer = #{record.bargainer,jdbcType=VARCHAR},
      customs_code = #{record.customsCode,jdbcType=VARCHAR},
      declare_title_en = #{record.declareTitleEn,jdbcType=VARCHAR},
      declare_title_cn = #{record.declareTitleCn,jdbcType=VARCHAR},
      pick_title_cn = #{record.pickTitleCn,jdbcType=VARCHAR},
      pick_title_en = #{record.pickTitleEn,jdbcType=VARCHAR},
      product_nature = #{record.productNature,jdbcType=VARCHAR},
      charger_specifications = #{record.chargerSpecifications,jdbcType=VARCHAR},
      packing_price = #{record.packingPrice,jdbcType=DECIMAL},
      packing_name = #{record.packingName,jdbcType=VARCHAR},
      packing_size = #{record.packingSize,jdbcType=VARCHAR},
      product_size = #{record.productSize,jdbcType=VARCHAR},
      packing_weight = #{record.packingWeight,jdbcType=DECIMAL},
      unit = #{record.unit,jdbcType=VARCHAR},
      push_status = #{record.pushStatus,jdbcType=TINYINT},
      transfer_delivery = #{record.transferDelivery,jdbcType=INTEGER},
      source = #{record.source,jdbcType=TINYINT},
      push_time = #{record.pushTime,jdbcType=TIMESTAMP},
      has_delete = #{record.hasDelete,jdbcType=BIT},
      develop_time = #{record.developTime,jdbcType=TIMESTAMP},
      company_id = #{record.companyId,jdbcType=INTEGER},
      category_simple_id = #{record.categorySimpleId,jdbcType=INTEGER},
      category_simple_name = #{record.categorySimpleName,jdbcType=VARCHAR},
      brand = #{record.brand,jdbcType=VARCHAR},
      product_type = #{record.productType,jdbcType=INTEGER},
      product_type_desc = #{record.productTypeDesc,jdbcType=VARCHAR},
      tags = #{record.tags,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcBaseSku">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_sku
    <set>
      <if test="bailunSku != null">
        bailun_sku = #{bailunSku,jdbcType=VARCHAR},
      </if>
      <if test="skuImage != null">
        sku_image = #{skuImage,jdbcType=VARCHAR},
      </if>
      <if test="categoryId != null">
        category_id = #{categoryId,jdbcType=INTEGER},
      </if>
      <if test="categoryName != null">
        category_name = #{categoryName,jdbcType=VARCHAR},
      </if>
      <if test="unitPrice != null">
        unit_price = #{unitPrice,jdbcType=DECIMAL},
      </if>
      <if test="sellerId != null">
        seller_id = #{sellerId,jdbcType=INTEGER},
      </if>
      <if test="sellerName != null">
        seller_name = #{sellerName,jdbcType=VARCHAR},
      </if>
      <if test="length != null">
        length = #{length,jdbcType=DECIMAL},
      </if>
      <if test="width != null">
        width = #{width,jdbcType=DECIMAL},
      </if>
      <if test="height != null">
        height = #{height,jdbcType=DECIMAL},
      </if>
      <if test="weight != null">
        weight = #{weight,jdbcType=DECIMAL},
      </if>
      <if test="moq != null">
        moq = #{moq,jdbcType=INTEGER},
      </if>
      <if test="skuTitleCn != null">
        sku_title_cn = #{skuTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="skuTitleEn != null">
        sku_title_en = #{skuTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtCreate != null">
        gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModified != null">
        gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
      </if>
      <if test="suppliersId != null">
        suppliers_id = #{suppliersId,jdbcType=INTEGER},
      </if>
      <if test="suppliersName != null">
        suppliers_name = #{suppliersName,jdbcType=VARCHAR},
      </if>
      <if test="supplierDelivery != null">
        supplier_delivery = #{supplierDelivery,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        currency = #{currency,jdbcType=VARCHAR},
      </if>
      <if test="buyerName != null">
        buyer_name = #{buyerName,jdbcType=VARCHAR},
      </if>
      <if test="buyerId != null">
        buyer_id = #{buyerId,jdbcType=INTEGER},
      </if>
      <if test="internalMoq != null">
        internal_moq = #{internalMoq,jdbcType=INTEGER},
      </if>
      <if test="bussinessId != null">
        bussiness_id = #{bussinessId,jdbcType=INTEGER},
      </if>
      <if test="bussinessName != null">
        bussiness_name = #{bussinessName,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        status = #{status,jdbcType=TINYINT},
      </if>
      <if test="type != null">
        type = #{type,jdbcType=TINYINT},
      </if>
      <if test="productCode != null">
        product_code = #{productCode,jdbcType=VARCHAR},
      </if>
      <if test="bailunInnerSku != null">
        bailun_inner_sku = #{bailunInnerSku,jdbcType=VARCHAR},
      </if>
      <if test="productInnerCode != null">
        product_inner_code = #{productInnerCode,jdbcType=VARCHAR},
      </if>
      <if test="skumsId != null">
        skums_id = #{skumsId,jdbcType=INTEGER},
      </if>
      <if test="suppliersLink != null">
        suppliers_link = #{suppliersLink,jdbcType=VARCHAR},
      </if>
      <if test="bailunCategoryId != null">
        bailun_category_id = #{bailunCategoryId,jdbcType=INTEGER},
      </if>
      <if test="bailunCategoryName != null">
        bailun_category_name = #{bailunCategoryName,jdbcType=VARCHAR},
      </if>
      <if test="color != null">
        color = #{color,jdbcType=VARCHAR},
      </if>
      <if test="specifications != null">
        specifications = #{specifications,jdbcType=VARCHAR},
      </if>
      <if test="createName != null">
        create_name = #{createName,jdbcType=VARCHAR},
      </if>
      <if test="updateName != null">
        update_name = #{updateName,jdbcType=VARCHAR},
      </if>
      <if test="virtualPrice != null">
        virtual_price = #{virtualPrice,jdbcType=DECIMAL},
      </if>
      <if test="sizeImage != null">
        size_image = #{sizeImage,jdbcType=VARCHAR},
      </if>
      <if test="salesPrice != null">
        sales_price = #{salesPrice,jdbcType=DECIMAL},
      </if>
      <if test="enable != null">
        enable = #{enable,jdbcType=TINYINT},
      </if>
      <if test="inspectionHours != null">
        inspection_hours = #{inspectionHours,jdbcType=DECIMAL},
      </if>
      <if test="bargainer != null">
        bargainer = #{bargainer,jdbcType=VARCHAR},
      </if>
      <if test="customsCode != null">
        customs_code = #{customsCode,jdbcType=VARCHAR},
      </if>
      <if test="declareTitleEn != null">
        declare_title_en = #{declareTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="declareTitleCn != null">
        declare_title_cn = #{declareTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="pickTitleCn != null">
        pick_title_cn = #{pickTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="pickTitleEn != null">
        pick_title_en = #{pickTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="productNature != null">
        product_nature = #{productNature,jdbcType=VARCHAR},
      </if>
      <if test="chargerSpecifications != null">
        charger_specifications = #{chargerSpecifications,jdbcType=VARCHAR},
      </if>
      <if test="packingPrice != null">
        packing_price = #{packingPrice,jdbcType=DECIMAL},
      </if>
      <if test="packingName != null">
        packing_name = #{packingName,jdbcType=VARCHAR},
      </if>
      <if test="packingSize != null">
        packing_size = #{packingSize,jdbcType=VARCHAR},
      </if>
      <if test="productSize != null">
        product_size = #{productSize,jdbcType=VARCHAR},
      </if>
      <if test="packingWeight != null">
        packing_weight = #{packingWeight,jdbcType=DECIMAL},
      </if>
      <if test="unit != null">
        unit = #{unit,jdbcType=VARCHAR},
      </if>
      <if test="pushStatus != null">
        push_status = #{pushStatus,jdbcType=TINYINT},
      </if>
      <if test="transferDelivery != null">
        transfer_delivery = #{transferDelivery,jdbcType=INTEGER},
      </if>
      <if test="source != null">
        source = #{source,jdbcType=TINYINT},
      </if>
      <if test="pushTime != null">
        push_time = #{pushTime,jdbcType=TIMESTAMP},
      </if>
      <if test="hasDelete != null">
        has_delete = #{hasDelete,jdbcType=BIT},
      </if>
      <if test="developTime != null">
        develop_time = #{developTime,jdbcType=TIMESTAMP},
      </if>
      <if test="companyId != null">
        company_id = #{companyId,jdbcType=INTEGER},
      </if>
      <if test="categorySimpleId != null">
        category_simple_id = #{categorySimpleId,jdbcType=INTEGER},
      </if>
      <if test="categorySimpleName != null">
        category_simple_name = #{categorySimpleName,jdbcType=VARCHAR},
      </if>
      <if test="brand != null">
        brand = #{brand,jdbcType=VARCHAR},
      </if>
      <if test="productType != null">
        product_type = #{productType,jdbcType=INTEGER},
      </if>
      <if test="productTypeDesc != null">
        product_type_desc = #{productTypeDesc,jdbcType=VARCHAR},
      </if>
      <if test="tags != null">
        tags = #{tags,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.bailuntec.domain.entity.DcBaseSku">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_sku
    set bailun_sku = #{bailunSku,jdbcType=VARCHAR},
      sku_image = #{skuImage,jdbcType=VARCHAR},
      category_id = #{categoryId,jdbcType=INTEGER},
      category_name = #{categoryName,jdbcType=VARCHAR},
      unit_price = #{unitPrice,jdbcType=DECIMAL},
      seller_id = #{sellerId,jdbcType=INTEGER},
      seller_name = #{sellerName,jdbcType=VARCHAR},
      length = #{length,jdbcType=DECIMAL},
      width = #{width,jdbcType=DECIMAL},
      height = #{height,jdbcType=DECIMAL},
      weight = #{weight,jdbcType=DECIMAL},
      moq = #{moq,jdbcType=INTEGER},
      sku_title_cn = #{skuTitleCn,jdbcType=VARCHAR},
      sku_title_en = #{skuTitleEn,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
      gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
      suppliers_id = #{suppliersId,jdbcType=INTEGER},
      suppliers_name = #{suppliersName,jdbcType=VARCHAR},
      supplier_delivery = #{supplierDelivery,jdbcType=INTEGER},
      currency = #{currency,jdbcType=VARCHAR},
      buyer_name = #{buyerName,jdbcType=VARCHAR},
      buyer_id = #{buyerId,jdbcType=INTEGER},
      internal_moq = #{internalMoq,jdbcType=INTEGER},
      bussiness_id = #{bussinessId,jdbcType=INTEGER},
      bussiness_name = #{bussinessName,jdbcType=VARCHAR},
      status = #{status,jdbcType=TINYINT},
      type = #{type,jdbcType=TINYINT},
      product_code = #{productCode,jdbcType=VARCHAR},
      bailun_inner_sku = #{bailunInnerSku,jdbcType=VARCHAR},
      product_inner_code = #{productInnerCode,jdbcType=VARCHAR},
      skums_id = #{skumsId,jdbcType=INTEGER},
      suppliers_link = #{suppliersLink,jdbcType=VARCHAR},
      bailun_category_id = #{bailunCategoryId,jdbcType=INTEGER},
      bailun_category_name = #{bailunCategoryName,jdbcType=VARCHAR},
      color = #{color,jdbcType=VARCHAR},
      specifications = #{specifications,jdbcType=VARCHAR},
      create_name = #{createName,jdbcType=VARCHAR},
      update_name = #{updateName,jdbcType=VARCHAR},
      virtual_price = #{virtualPrice,jdbcType=DECIMAL},
      size_image = #{sizeImage,jdbcType=VARCHAR},
      sales_price = #{salesPrice,jdbcType=DECIMAL},
      enable = #{enable,jdbcType=TINYINT},
      inspection_hours = #{inspectionHours,jdbcType=DECIMAL},
      bargainer = #{bargainer,jdbcType=VARCHAR},
      customs_code = #{customsCode,jdbcType=VARCHAR},
      declare_title_en = #{declareTitleEn,jdbcType=VARCHAR},
      declare_title_cn = #{declareTitleCn,jdbcType=VARCHAR},
      pick_title_cn = #{pickTitleCn,jdbcType=VARCHAR},
      pick_title_en = #{pickTitleEn,jdbcType=VARCHAR},
      product_nature = #{productNature,jdbcType=VARCHAR},
      charger_specifications = #{chargerSpecifications,jdbcType=VARCHAR},
      packing_price = #{packingPrice,jdbcType=DECIMAL},
      packing_name = #{packingName,jdbcType=VARCHAR},
      packing_size = #{packingSize,jdbcType=VARCHAR},
      product_size = #{productSize,jdbcType=VARCHAR},
      packing_weight = #{packingWeight,jdbcType=DECIMAL},
      unit = #{unit,jdbcType=VARCHAR},
      push_status = #{pushStatus,jdbcType=TINYINT},
      transfer_delivery = #{transferDelivery,jdbcType=INTEGER},
      source = #{source,jdbcType=TINYINT},
      push_time = #{pushTime,jdbcType=TIMESTAMP},
      has_delete = #{hasDelete,jdbcType=BIT},
      develop_time = #{developTime,jdbcType=TIMESTAMP},
      company_id = #{companyId,jdbcType=INTEGER},
      category_simple_id = #{categorySimpleId,jdbcType=INTEGER},
      category_simple_name = #{categorySimpleName,jdbcType=VARCHAR},
      brand = #{brand,jdbcType=VARCHAR},
      product_type = #{productType,jdbcType=INTEGER},
      product_type_desc = #{productTypeDesc,jdbcType=VARCHAR},
      tags = #{tags,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseSku">
    <!--
      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_sku
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="bailunSku != null">
        bailun_sku,
      </if>
      <if test="skuImage != null">
        sku_image,
      </if>
      <if test="categoryId != null">
        category_id,
      </if>
      <if test="categoryName != null">
        category_name,
      </if>
      <if test="unitPrice != null">
        unit_price,
      </if>
      <if test="sellerId != null">
        seller_id,
      </if>
      <if test="sellerName != null">
        seller_name,
      </if>
      <if test="length != null">
        length,
      </if>
      <if test="width != null">
        width,
      </if>
      <if test="height != null">
        height,
      </if>
      <if test="weight != null">
        weight,
      </if>
      <if test="moq != null">
        moq,
      </if>
      <if test="skuTitleCn != null">
        sku_title_cn,
      </if>
      <if test="skuTitleEn != null">
        sku_title_en,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="gmtCreate != null">
        gmt_create,
      </if>
      <if test="gmtModified != null">
        gmt_modified,
      </if>
      <if test="suppliersId != null">
        suppliers_id,
      </if>
      <if test="suppliersName != null">
        suppliers_name,
      </if>
      <if test="supplierDelivery != null">
        supplier_delivery,
      </if>
      <if test="currency != null">
        currency,
      </if>
      <if test="buyerName != null">
        buyer_name,
      </if>
      <if test="buyerId != null">
        buyer_id,
      </if>
      <if test="internalMoq != null">
        internal_moq,
      </if>
      <if test="bussinessId != null">
        bussiness_id,
      </if>
      <if test="bussinessName != null">
        bussiness_name,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="type != null">
        type,
      </if>
      <if test="productCode != null">
        product_code,
      </if>
      <if test="bailunInnerSku != null">
        bailun_inner_sku,
      </if>
      <if test="productInnerCode != null">
        product_inner_code,
      </if>
      <if test="skumsId != null">
        skums_id,
      </if>
      <if test="suppliersLink != null">
        suppliers_link,
      </if>
      <if test="bailunCategoryId != null">
        bailun_category_id,
      </if>
      <if test="bailunCategoryName != null">
        bailun_category_name,
      </if>
      <if test="color != null">
        color,
      </if>
      <if test="specifications != null">
        specifications,
      </if>
      <if test="createName != null">
        create_name,
      </if>
      <if test="updateName != null">
        update_name,
      </if>
      <if test="virtualPrice != null">
        virtual_price,
      </if>
      <if test="sizeImage != null">
        size_image,
      </if>
      <if test="salesPrice != null">
        sales_price,
      </if>
      <if test="enable != null">
        enable,
      </if>
      <if test="inspectionHours != null">
        inspection_hours,
      </if>
      <if test="bargainer != null">
        bargainer,
      </if>
      <if test="customsCode != null">
        customs_code,
      </if>
      <if test="declareTitleEn != null">
        declare_title_en,
      </if>
      <if test="declareTitleCn != null">
        declare_title_cn,
      </if>
      <if test="pickTitleCn != null">
        pick_title_cn,
      </if>
      <if test="pickTitleEn != null">
        pick_title_en,
      </if>
      <if test="productNature != null">
        product_nature,
      </if>
      <if test="chargerSpecifications != null">
        charger_specifications,
      </if>
      <if test="packingPrice != null">
        packing_price,
      </if>
      <if test="packingName != null">
        packing_name,
      </if>
      <if test="packingSize != null">
        packing_size,
      </if>
      <if test="productSize != null">
        product_size,
      </if>
      <if test="packingWeight != null">
        packing_weight,
      </if>
      <if test="unit != null">
        unit,
      </if>
      <if test="pushStatus != null">
        push_status,
      </if>
      <if test="transferDelivery != null">
        transfer_delivery,
      </if>
      <if test="source != null">
        source,
      </if>
      <if test="pushTime != null">
        push_time,
      </if>
      <if test="hasDelete != null">
        has_delete,
      </if>
      <if test="developTime != null">
        develop_time,
      </if>
      <if test="companyId != null">
        company_id,
      </if>
      <if test="categorySimpleId != null">
        category_simple_id,
      </if>
      <if test="categorySimpleName != null">
        category_simple_name,
      </if>
      <if test="brand != null">
        brand,
      </if>
      <if test="productType != null">
        product_type,
      </if>
      <if test="productTypeDesc != null">
        product_type_desc,
      </if>
      <if test="tags != null">
        tags,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="bailunSku != null">
        #{bailunSku,jdbcType=VARCHAR},
      </if>
      <if test="skuImage != null">
        #{skuImage,jdbcType=VARCHAR},
      </if>
      <if test="categoryId != null">
        #{categoryId,jdbcType=INTEGER},
      </if>
      <if test="categoryName != null">
        #{categoryName,jdbcType=VARCHAR},
      </if>
      <if test="unitPrice != null">
        #{unitPrice,jdbcType=DECIMAL},
      </if>
      <if test="sellerId != null">
        #{sellerId,jdbcType=INTEGER},
      </if>
      <if test="sellerName != null">
        #{sellerName,jdbcType=VARCHAR},
      </if>
      <if test="length != null">
        #{length,jdbcType=DECIMAL},
      </if>
      <if test="width != null">
        #{width,jdbcType=DECIMAL},
      </if>
      <if test="height != null">
        #{height,jdbcType=DECIMAL},
      </if>
      <if test="weight != null">
        #{weight,jdbcType=DECIMAL},
      </if>
      <if test="moq != null">
        #{moq,jdbcType=INTEGER},
      </if>
      <if test="skuTitleCn != null">
        #{skuTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="skuTitleEn != null">
        #{skuTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtCreate != null">
        #{gmtCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModified != null">
        #{gmtModified,jdbcType=TIMESTAMP},
      </if>
      <if test="suppliersId != null">
        #{suppliersId,jdbcType=INTEGER},
      </if>
      <if test="suppliersName != null">
        #{suppliersName,jdbcType=VARCHAR},
      </if>
      <if test="supplierDelivery != null">
        #{supplierDelivery,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        #{currency,jdbcType=VARCHAR},
      </if>
      <if test="buyerName != null">
        #{buyerName,jdbcType=VARCHAR},
      </if>
      <if test="buyerId != null">
        #{buyerId,jdbcType=INTEGER},
      </if>
      <if test="internalMoq != null">
        #{internalMoq,jdbcType=INTEGER},
      </if>
      <if test="bussinessId != null">
        #{bussinessId,jdbcType=INTEGER},
      </if>
      <if test="bussinessName != null">
        #{bussinessName,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=TINYINT},
      </if>
      <if test="type != null">
        #{type,jdbcType=TINYINT},
      </if>
      <if test="productCode != null">
        #{productCode,jdbcType=VARCHAR},
      </if>
      <if test="bailunInnerSku != null">
        #{bailunInnerSku,jdbcType=VARCHAR},
      </if>
      <if test="productInnerCode != null">
        #{productInnerCode,jdbcType=VARCHAR},
      </if>
      <if test="skumsId != null">
        #{skumsId,jdbcType=INTEGER},
      </if>
      <if test="suppliersLink != null">
        #{suppliersLink,jdbcType=VARCHAR},
      </if>
      <if test="bailunCategoryId != null">
        #{bailunCategoryId,jdbcType=INTEGER},
      </if>
      <if test="bailunCategoryName != null">
        #{bailunCategoryName,jdbcType=VARCHAR},
      </if>
      <if test="color != null">
        #{color,jdbcType=VARCHAR},
      </if>
      <if test="specifications != null">
        #{specifications,jdbcType=VARCHAR},
      </if>
      <if test="createName != null">
        #{createName,jdbcType=VARCHAR},
      </if>
      <if test="updateName != null">
        #{updateName,jdbcType=VARCHAR},
      </if>
      <if test="virtualPrice != null">
        #{virtualPrice,jdbcType=DECIMAL},
      </if>
      <if test="sizeImage != null">
        #{sizeImage,jdbcType=VARCHAR},
      </if>
      <if test="salesPrice != null">
        #{salesPrice,jdbcType=DECIMAL},
      </if>
      <if test="enable != null">
        #{enable,jdbcType=TINYINT},
      </if>
      <if test="inspectionHours != null">
        #{inspectionHours,jdbcType=DECIMAL},
      </if>
      <if test="bargainer != null">
        #{bargainer,jdbcType=VARCHAR},
      </if>
      <if test="customsCode != null">
        #{customsCode,jdbcType=VARCHAR},
      </if>
      <if test="declareTitleEn != null">
        #{declareTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="declareTitleCn != null">
        #{declareTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="pickTitleCn != null">
        #{pickTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="pickTitleEn != null">
        #{pickTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="productNature != null">
        #{productNature,jdbcType=VARCHAR},
      </if>
      <if test="chargerSpecifications != null">
        #{chargerSpecifications,jdbcType=VARCHAR},
      </if>
      <if test="packingPrice != null">
        #{packingPrice,jdbcType=DECIMAL},
      </if>
      <if test="packingName != null">
        #{packingName,jdbcType=VARCHAR},
      </if>
      <if test="packingSize != null">
        #{packingSize,jdbcType=VARCHAR},
      </if>
      <if test="productSize != null">
        #{productSize,jdbcType=VARCHAR},
      </if>
      <if test="packingWeight != null">
        #{packingWeight,jdbcType=DECIMAL},
      </if>
      <if test="unit != null">
        #{unit,jdbcType=VARCHAR},
      </if>
      <if test="pushStatus != null">
        #{pushStatus,jdbcType=TINYINT},
      </if>
      <if test="transferDelivery != null">
        #{transferDelivery,jdbcType=INTEGER},
      </if>
      <if test="source != null">
        #{source,jdbcType=TINYINT},
      </if>
      <if test="pushTime != null">
        #{pushTime,jdbcType=TIMESTAMP},
      </if>
      <if test="hasDelete != null">
        #{hasDelete,jdbcType=BIT},
      </if>
      <if test="developTime != null">
        #{developTime,jdbcType=TIMESTAMP},
      </if>
      <if test="companyId != null">
        #{companyId,jdbcType=INTEGER},
      </if>
      <if test="categorySimpleId != null">
        #{categorySimpleId,jdbcType=INTEGER},
      </if>
      <if test="categorySimpleName != null">
        #{categorySimpleName,jdbcType=VARCHAR},
      </if>
      <if test="brand != null">
        #{brand,jdbcType=VARCHAR},
      </if>
      <if test="productType != null">
        #{productType,jdbcType=INTEGER},
      </if>
      <if test="productTypeDesc != null">
        #{productTypeDesc,jdbcType=VARCHAR},
      </if>
      <if test="tags != null">
        #{tags,jdbcType=VARCHAR},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
        id = #{id,jdbcType=INTEGER},
      </if>
      <if test="bailunSku != null">
        bailun_sku = #{bailunSku,jdbcType=VARCHAR},
      </if>
      <if test="skuImage != null">
        sku_image = #{skuImage,jdbcType=VARCHAR},
      </if>
      <if test="categoryId != null">
        category_id = #{categoryId,jdbcType=INTEGER},
      </if>
      <if test="categoryName != null">
        category_name = #{categoryName,jdbcType=VARCHAR},
      </if>
      <if test="unitPrice != null">
        unit_price = #{unitPrice,jdbcType=DECIMAL},
      </if>
      <if test="sellerId != null">
        seller_id = #{sellerId,jdbcType=INTEGER},
      </if>
      <if test="sellerName != null">
        seller_name = #{sellerName,jdbcType=VARCHAR},
      </if>
      <if test="length != null">
        length = #{length,jdbcType=DECIMAL},
      </if>
      <if test="width != null">
        width = #{width,jdbcType=DECIMAL},
      </if>
      <if test="height != null">
        height = #{height,jdbcType=DECIMAL},
      </if>
      <if test="weight != null">
        weight = #{weight,jdbcType=DECIMAL},
      </if>
      <if test="moq != null">
        moq = #{moq,jdbcType=INTEGER},
      </if>
      <if test="skuTitleCn != null">
        sku_title_cn = #{skuTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="skuTitleEn != null">
        sku_title_en = #{skuTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtCreate != null">
        gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModified != null">
        gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
      </if>
      <if test="suppliersId != null">
        suppliers_id = #{suppliersId,jdbcType=INTEGER},
      </if>
      <if test="suppliersName != null">
        suppliers_name = #{suppliersName,jdbcType=VARCHAR},
      </if>
      <if test="supplierDelivery != null">
        supplier_delivery = #{supplierDelivery,jdbcType=INTEGER},
      </if>
      <if test="currency != null">
        currency = #{currency,jdbcType=VARCHAR},
      </if>
      <if test="buyerName != null">
        buyer_name = #{buyerName,jdbcType=VARCHAR},
      </if>
      <if test="buyerId != null">
        buyer_id = #{buyerId,jdbcType=INTEGER},
      </if>
      <if test="internalMoq != null">
        internal_moq = #{internalMoq,jdbcType=INTEGER},
      </if>
      <if test="bussinessId != null">
        bussiness_id = #{bussinessId,jdbcType=INTEGER},
      </if>
      <if test="bussinessName != null">
        bussiness_name = #{bussinessName,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        status = #{status,jdbcType=TINYINT},
      </if>
      <if test="type != null">
        type = #{type,jdbcType=TINYINT},
      </if>
      <if test="productCode != null">
        product_code = #{productCode,jdbcType=VARCHAR},
      </if>
      <if test="bailunInnerSku != null">
        bailun_inner_sku = #{bailunInnerSku,jdbcType=VARCHAR},
      </if>
      <if test="productInnerCode != null">
        product_inner_code = #{productInnerCode,jdbcType=VARCHAR},
      </if>
      <if test="skumsId != null">
        skums_id = #{skumsId,jdbcType=INTEGER},
      </if>
      <if test="suppliersLink != null">
        suppliers_link = #{suppliersLink,jdbcType=VARCHAR},
      </if>
      <if test="bailunCategoryId != null">
        bailun_category_id = #{bailunCategoryId,jdbcType=INTEGER},
      </if>
      <if test="bailunCategoryName != null">
        bailun_category_name = #{bailunCategoryName,jdbcType=VARCHAR},
      </if>
      <if test="color != null">
        color = #{color,jdbcType=VARCHAR},
      </if>
      <if test="specifications != null">
        specifications = #{specifications,jdbcType=VARCHAR},
      </if>
      <if test="createName != null">
        create_name = #{createName,jdbcType=VARCHAR},
      </if>
      <if test="updateName != null">
        update_name = #{updateName,jdbcType=VARCHAR},
      </if>
      <if test="virtualPrice != null">
        virtual_price = #{virtualPrice,jdbcType=DECIMAL},
      </if>
      <if test="sizeImage != null">
        size_image = #{sizeImage,jdbcType=VARCHAR},
      </if>
      <if test="salesPrice != null">
        sales_price = #{salesPrice,jdbcType=DECIMAL},
      </if>
      <if test="enable != null">
        enable = #{enable,jdbcType=TINYINT},
      </if>
      <if test="inspectionHours != null">
        inspection_hours = #{inspectionHours,jdbcType=DECIMAL},
      </if>
      <if test="bargainer != null">
        bargainer = #{bargainer,jdbcType=VARCHAR},
      </if>
      <if test="customsCode != null">
        customs_code = #{customsCode,jdbcType=VARCHAR},
      </if>
      <if test="declareTitleEn != null">
        declare_title_en = #{declareTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="declareTitleCn != null">
        declare_title_cn = #{declareTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="pickTitleCn != null">
        pick_title_cn = #{pickTitleCn,jdbcType=VARCHAR},
      </if>
      <if test="pickTitleEn != null">
        pick_title_en = #{pickTitleEn,jdbcType=VARCHAR},
      </if>
      <if test="productNature != null">
        product_nature = #{productNature,jdbcType=VARCHAR},
      </if>
      <if test="chargerSpecifications != null">
        charger_specifications = #{chargerSpecifications,jdbcType=VARCHAR},
      </if>
      <if test="packingPrice != null">
        packing_price = #{packingPrice,jdbcType=DECIMAL},
      </if>
      <if test="packingName != null">
        packing_name = #{packingName,jdbcType=VARCHAR},
      </if>
      <if test="packingSize != null">
        packing_size = #{packingSize,jdbcType=VARCHAR},
      </if>
      <if test="productSize != null">
        product_size = #{productSize,jdbcType=VARCHAR},
      </if>
      <if test="packingWeight != null">
        packing_weight = #{packingWeight,jdbcType=DECIMAL},
      </if>
      <if test="unit != null">
        unit = #{unit,jdbcType=VARCHAR},
      </if>
      <if test="pushStatus != null">
        push_status = #{pushStatus,jdbcType=TINYINT},
      </if>
      <if test="transferDelivery != null">
        transfer_delivery = #{transferDelivery,jdbcType=INTEGER},
      </if>
      <if test="source != null">
        source = #{source,jdbcType=TINYINT},
      </if>
      <if test="pushTime != null">
        push_time = #{pushTime,jdbcType=TIMESTAMP},
      </if>
      <if test="hasDelete != null">
        has_delete = #{hasDelete,jdbcType=BIT},
      </if>
      <if test="developTime != null">
        develop_time = #{developTime,jdbcType=TIMESTAMP},
      </if>
      <if test="companyId != null">
        company_id = #{companyId,jdbcType=INTEGER},
      </if>
      <if test="categorySimpleId != null">
        category_simple_id = #{categorySimpleId,jdbcType=INTEGER},
      </if>
      <if test="categorySimpleName != null">
        category_simple_name = #{categorySimpleName,jdbcType=VARCHAR},
      </if>
      <if test="brand != null">
        brand = #{brand,jdbcType=VARCHAR},
      </if>
      <if test="productType != null">
        product_type = #{productType,jdbcType=INTEGER},
      </if>
      <if test="productTypeDesc != null">
        product_type_desc = #{productTypeDesc,jdbcType=VARCHAR},
      </if>
      <if test="tags != null">
        tags = #{tags,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseSku">
    <!--
      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_sku
    (id, bailun_sku, sku_image, category_id, category_name, unit_price, seller_id, seller_name, 
      length, width, height, weight, moq, sku_title_cn, sku_title_en, create_time, update_time, 
      gmt_create, gmt_modified, suppliers_id, suppliers_name, supplier_delivery, currency, 
      buyer_name, buyer_id, internal_moq, bussiness_id, bussiness_name, status, type, 
      product_code, bailun_inner_sku, product_inner_code, skums_id, suppliers_link, bailun_category_id, 
      bailun_category_name, color, specifications, create_name, update_name, virtual_price, 
      size_image, sales_price, enable, inspection_hours, bargainer, customs_code, declare_title_en, 
      declare_title_cn, pick_title_cn, pick_title_en, product_nature, charger_specifications, 
      packing_price, packing_name, packing_size, product_size, packing_weight, unit, 
      push_status, transfer_delivery, source, push_time, has_delete, develop_time, company_id, 
      category_simple_id, category_simple_name, brand, product_type, product_type_desc, 
      tags)
    values
    (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR}, 
      #{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL}, 
      #{sellerId,jdbcType=INTEGER}, #{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL}, 
      #{width,jdbcType=DECIMAL}, #{height,jdbcType=DECIMAL}, #{weight,jdbcType=DECIMAL}, 
      #{moq,jdbcType=INTEGER}, #{skuTitleCn,jdbcType=VARCHAR}, #{skuTitleEn,jdbcType=VARCHAR}, 
      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP}, 
      #{gmtModified,jdbcType=TIMESTAMP}, #{suppliersId,jdbcType=INTEGER}, #{suppliersName,jdbcType=VARCHAR}, 
      #{supplierDelivery,jdbcType=INTEGER}, #{currency,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR}, 
      #{buyerId,jdbcType=INTEGER}, #{internalMoq,jdbcType=INTEGER}, #{bussinessId,jdbcType=INTEGER}, 
      #{bussinessName,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{type,jdbcType=TINYINT}, 
      #{productCode,jdbcType=VARCHAR}, #{bailunInnerSku,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR}, 
      #{skumsId,jdbcType=INTEGER}, #{suppliersLink,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER}, 
      #{bailunCategoryName,jdbcType=VARCHAR}, #{color,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR}, 
      #{createName,jdbcType=VARCHAR}, #{updateName,jdbcType=VARCHAR}, #{virtualPrice,jdbcType=DECIMAL}, 
      #{sizeImage,jdbcType=VARCHAR}, #{salesPrice,jdbcType=DECIMAL}, #{enable,jdbcType=TINYINT}, 
      #{inspectionHours,jdbcType=DECIMAL}, #{bargainer,jdbcType=VARCHAR}, #{customsCode,jdbcType=VARCHAR}, 
      #{declareTitleEn,jdbcType=VARCHAR}, #{declareTitleCn,jdbcType=VARCHAR}, #{pickTitleCn,jdbcType=VARCHAR}, 
      #{pickTitleEn,jdbcType=VARCHAR}, #{productNature,jdbcType=VARCHAR}, #{chargerSpecifications,jdbcType=VARCHAR}, 
      #{packingPrice,jdbcType=DECIMAL}, #{packingName,jdbcType=VARCHAR}, #{packingSize,jdbcType=VARCHAR}, 
      #{productSize,jdbcType=VARCHAR}, #{packingWeight,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR}, 
      #{pushStatus,jdbcType=TINYINT}, #{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT}, 
      #{pushTime,jdbcType=TIMESTAMP}, #{hasDelete,jdbcType=BIT}, #{developTime,jdbcType=TIMESTAMP}, 
      #{companyId,jdbcType=INTEGER}, #{categorySimpleId,jdbcType=INTEGER}, #{categorySimpleName,jdbcType=VARCHAR}, 
      #{brand,jdbcType=VARCHAR}, #{productType,jdbcType=INTEGER}, #{productTypeDesc,jdbcType=VARCHAR}, 
      #{tags,jdbcType=VARCHAR})
    on duplicate key update 
    id = #{id,jdbcType=INTEGER}, 
    bailun_sku = #{bailunSku,jdbcType=VARCHAR}, 
    sku_image = #{skuImage,jdbcType=VARCHAR}, 
    category_id = #{categoryId,jdbcType=INTEGER}, 
    category_name = #{categoryName,jdbcType=VARCHAR}, 
    unit_price = #{unitPrice,jdbcType=DECIMAL}, 
    seller_id = #{sellerId,jdbcType=INTEGER}, 
    seller_name = #{sellerName,jdbcType=VARCHAR}, 
    length = #{length,jdbcType=DECIMAL}, 
    width = #{width,jdbcType=DECIMAL}, 
    height = #{height,jdbcType=DECIMAL}, 
    weight = #{weight,jdbcType=DECIMAL}, 
    moq = #{moq,jdbcType=INTEGER}, 
    sku_title_cn = #{skuTitleCn,jdbcType=VARCHAR}, 
    sku_title_en = #{skuTitleEn,jdbcType=VARCHAR}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, 
    gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}, 
    suppliers_id = #{suppliersId,jdbcType=INTEGER}, 
    suppliers_name = #{suppliersName,jdbcType=VARCHAR}, 
    supplier_delivery = #{supplierDelivery,jdbcType=INTEGER}, 
    currency = #{currency,jdbcType=VARCHAR}, 
    buyer_name = #{buyerName,jdbcType=VARCHAR}, 
    buyer_id = #{buyerId,jdbcType=INTEGER}, 
    internal_moq = #{internalMoq,jdbcType=INTEGER}, 
    bussiness_id = #{bussinessId,jdbcType=INTEGER}, 
    bussiness_name = #{bussinessName,jdbcType=VARCHAR}, 
    status = #{status,jdbcType=TINYINT}, 
    type = #{type,jdbcType=TINYINT}, 
    product_code = #{productCode,jdbcType=VARCHAR}, 
    bailun_inner_sku = #{bailunInnerSku,jdbcType=VARCHAR}, 
    product_inner_code = #{productInnerCode,jdbcType=VARCHAR}, 
    skums_id = #{skumsId,jdbcType=INTEGER}, 
    suppliers_link = #{suppliersLink,jdbcType=VARCHAR}, 
    bailun_category_id = #{bailunCategoryId,jdbcType=INTEGER}, 
    bailun_category_name = #{bailunCategoryName,jdbcType=VARCHAR}, 
    color = #{color,jdbcType=VARCHAR}, 
    specifications = #{specifications,jdbcType=VARCHAR}, 
    create_name = #{createName,jdbcType=VARCHAR}, 
    update_name = #{updateName,jdbcType=VARCHAR}, 
    virtual_price = #{virtualPrice,jdbcType=DECIMAL}, 
    size_image = #{sizeImage,jdbcType=VARCHAR}, 
    sales_price = #{salesPrice,jdbcType=DECIMAL}, 
    enable = #{enable,jdbcType=TINYINT}, 
    inspection_hours = #{inspectionHours,jdbcType=DECIMAL}, 
    bargainer = #{bargainer,jdbcType=VARCHAR}, 
    customs_code = #{customsCode,jdbcType=VARCHAR}, 
    declare_title_en = #{declareTitleEn,jdbcType=VARCHAR}, 
    declare_title_cn = #{declareTitleCn,jdbcType=VARCHAR}, 
    pick_title_cn = #{pickTitleCn,jdbcType=VARCHAR}, 
    pick_title_en = #{pickTitleEn,jdbcType=VARCHAR}, 
    product_nature = #{productNature,jdbcType=VARCHAR}, 
    charger_specifications = #{chargerSpecifications,jdbcType=VARCHAR}, 
    packing_price = #{packingPrice,jdbcType=DECIMAL}, 
    packing_name = #{packingName,jdbcType=VARCHAR}, 
    packing_size = #{packingSize,jdbcType=VARCHAR}, 
    product_size = #{productSize,jdbcType=VARCHAR}, 
    packing_weight = #{packingWeight,jdbcType=DECIMAL}, 
    unit = #{unit,jdbcType=VARCHAR}, 
    push_status = #{pushStatus,jdbcType=TINYINT}, 
    transfer_delivery = #{transferDelivery,jdbcType=INTEGER}, 
    source = #{source,jdbcType=TINYINT}, 
    push_time = #{pushTime,jdbcType=TIMESTAMP}, 
    has_delete = #{hasDelete,jdbcType=BIT}, 
    develop_time = #{developTime,jdbcType=TIMESTAMP}, 
    company_id = #{companyId,jdbcType=INTEGER}, 
    category_simple_id = #{categorySimpleId,jdbcType=INTEGER}, 
    category_simple_name = #{categorySimpleName,jdbcType=VARCHAR}, 
    brand = #{brand,jdbcType=VARCHAR}, 
    product_type = #{productType,jdbcType=INTEGER}, 
    product_type_desc = #{productTypeDesc,jdbcType=VARCHAR}, 
    tags = #{tags,jdbcType=VARCHAR}
  </insert>
  <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" 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_sku
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>

  <select id="getIsGeneralCargo" resultType="boolean">
    SELECT
     (CASE tb2.parent_id
        WHEN 1 THEN true
        WHEN tb2.parent_id is null  THEN false
        ELSE false
      END),tb2.parent_id
    FROM (SELECT * FROM `dc_base_sku` WHERE bailun_sku =#{bailunSku})tb1 LEFT JOIN  dc_base_sku_simple_category tb2 on tb1.category_simple_id = tb2.skums_id;
  </select>
</mapper>