<?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.DcAutoReplaceLogisticsTaskMapper">
  <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcAutoReplaceLogisticsTask">
    <!--
      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="warehouse_code" jdbcType="VARCHAR" property="warehouseCode" />
    <result column="transfer_bale_delivery" jdbcType="DECIMAL" property="transferBaleDelivery" />
    <result column="abroad_inbound_delivery" jdbcType="DECIMAL" property="abroadInboundDelivery" />
    <result column="transfer_delivery" jdbcType="DECIMAL" property="transferDelivery" />
    <result column="status" jdbcType="INTEGER" property="status" />
    <result column="error_message" jdbcType="VARCHAR" property="errorMessage" />
    <result column="update_date" jdbcType="TIMESTAMP" property="updateDate" />
    <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.bailuntec.domain.entity.DcAutoReplaceLogisticsTask">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="error_stack_trace" jdbcType="LONGVARCHAR" property="errorStackTrace" />
  </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, warehouse_code, transfer_bale_delivery, abroad_inbound_delivery,
    transfer_delivery, status, error_message, update_date, create_date
  </sql>
  <sql id="Blob_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    error_stack_trace
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="com.bailuntec.domain.example.DcAutoReplaceLogisticsTaskExample" resultMap="ResultMapWithBLOBs">
    <!--
      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" />
    ,
    <include refid="Blob_Column_List" />
    from dc_auto_replace_logistics_task
    <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="selectByExample" parameterType="com.bailuntec.domain.example.DcAutoReplaceLogisticsTaskExample" 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_auto_replace_logistics_task
    <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="ResultMapWithBLOBs">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from dc_auto_replace_logistics_task
    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_auto_replace_logistics_task
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcAutoReplaceLogisticsTaskExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_auto_replace_logistics_task
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.bailuntec.domain.entity.DcAutoReplaceLogisticsTask">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_auto_replace_logistics_task (id, bailun_sku, warehouse_code,
      transfer_bale_delivery, abroad_inbound_delivery,
      transfer_delivery, status, error_message,
      update_date, create_date, error_stack_trace
      )
    values (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR},
      #{transferBaleDelivery,jdbcType=DECIMAL}, #{abroadInboundDelivery,jdbcType=DECIMAL},
      #{transferDelivery,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, #{errorMessage,jdbcType=VARCHAR},
      #{updateDate,jdbcType=TIMESTAMP}, #{createDate,jdbcType=TIMESTAMP}, #{errorStackTrace,jdbcType=LONGVARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcAutoReplaceLogisticsTask">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_auto_replace_logistics_task
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="bailunSku != null">
        bailun_sku,
      </if>
      <if test="warehouseCode != null">
        warehouse_code,
      </if>
      <if test="transferBaleDelivery != null">
        transfer_bale_delivery,
      </if>
      <if test="abroadInboundDelivery != null">
        abroad_inbound_delivery,
      </if>
      <if test="transferDelivery != null">
        transfer_delivery,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="errorMessage != null">
        error_message,
      </if>
      <if test="updateDate != null">
        update_date,
      </if>
      <if test="createDate != null">
        create_date,
      </if>
      <if test="errorStackTrace != null">
        error_stack_trace,
      </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="warehouseCode != null">
        #{warehouseCode,jdbcType=VARCHAR},
      </if>
      <if test="transferBaleDelivery != null">
        #{transferBaleDelivery,jdbcType=DECIMAL},
      </if>
      <if test="abroadInboundDelivery != null">
        #{abroadInboundDelivery,jdbcType=DECIMAL},
      </if>
      <if test="transferDelivery != null">
        #{transferDelivery,jdbcType=DECIMAL},
      </if>
      <if test="status != null">
        #{status,jdbcType=INTEGER},
      </if>
      <if test="errorMessage != null">
        #{errorMessage,jdbcType=VARCHAR},
      </if>
      <if test="updateDate != null">
        #{updateDate,jdbcType=TIMESTAMP},
      </if>
      <if test="createDate != null">
        #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="errorStackTrace != null">
        #{errorStackTrace,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.bailuntec.domain.example.DcAutoReplaceLogisticsTaskExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from dc_auto_replace_logistics_task
    <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_auto_replace_logistics_task
    <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.warehouseCode != null">
        warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
      </if>
      <if test="record.transferBaleDelivery != null">
        transfer_bale_delivery = #{record.transferBaleDelivery,jdbcType=DECIMAL},
      </if>
      <if test="record.abroadInboundDelivery != null">
        abroad_inbound_delivery = #{record.abroadInboundDelivery,jdbcType=DECIMAL},
      </if>
      <if test="record.transferDelivery != null">
        transfer_delivery = #{record.transferDelivery,jdbcType=DECIMAL},
      </if>
      <if test="record.status != null">
        status = #{record.status,jdbcType=INTEGER},
      </if>
      <if test="record.errorMessage != null">
        error_message = #{record.errorMessage,jdbcType=VARCHAR},
      </if>
      <if test="record.updateDate != null">
        update_date = #{record.updateDate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createDate != null">
        create_date = #{record.createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.errorStackTrace != null">
        error_stack_trace = #{record.errorStackTrace,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_auto_replace_logistics_task
    set id = #{record.id,jdbcType=INTEGER},
      bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
      warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
      transfer_bale_delivery = #{record.transferBaleDelivery,jdbcType=DECIMAL},
      abroad_inbound_delivery = #{record.abroadInboundDelivery,jdbcType=DECIMAL},
      transfer_delivery = #{record.transferDelivery,jdbcType=DECIMAL},
      status = #{record.status,jdbcType=INTEGER},
      error_message = #{record.errorMessage,jdbcType=VARCHAR},
      update_date = #{record.updateDate,jdbcType=TIMESTAMP},
      create_date = #{record.createDate,jdbcType=TIMESTAMP},
      error_stack_trace = #{record.errorStackTrace,jdbcType=LONGVARCHAR}
    <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_auto_replace_logistics_task
    set id = #{record.id,jdbcType=INTEGER},
      bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
      warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
      transfer_bale_delivery = #{record.transferBaleDelivery,jdbcType=DECIMAL},
      abroad_inbound_delivery = #{record.abroadInboundDelivery,jdbcType=DECIMAL},
      transfer_delivery = #{record.transferDelivery,jdbcType=DECIMAL},
      status = #{record.status,jdbcType=INTEGER},
      error_message = #{record.errorMessage,jdbcType=VARCHAR},
      update_date = #{record.updateDate,jdbcType=TIMESTAMP},
      create_date = #{record.createDate,jdbcType=TIMESTAMP}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcAutoReplaceLogisticsTask">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_auto_replace_logistics_task
    <set>
      <if test="bailunSku != null">
        bailun_sku = #{bailunSku,jdbcType=VARCHAR},
      </if>
      <if test="warehouseCode != null">
        warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
      </if>
      <if test="transferBaleDelivery != null">
        transfer_bale_delivery = #{transferBaleDelivery,jdbcType=DECIMAL},
      </if>
      <if test="abroadInboundDelivery != null">
        abroad_inbound_delivery = #{abroadInboundDelivery,jdbcType=DECIMAL},
      </if>
      <if test="transferDelivery != null">
        transfer_delivery = #{transferDelivery,jdbcType=DECIMAL},
      </if>
      <if test="status != null">
        `status` = #{status,jdbcType=INTEGER},
      </if>
      <if test="errorMessage != null">
        error_message = #{errorMessage,jdbcType=VARCHAR},
      </if>
      <if test="updateDate != null">
        update_date = #{updateDate,jdbcType=TIMESTAMP},
      </if>
      <if test="createDate != null">
        create_date = #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="errorStackTrace != null">
        error_stack_trace = #{errorStackTrace,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.bailuntec.domain.entity.DcAutoReplaceLogisticsTask">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_auto_replace_logistics_task
    set bailun_sku = #{bailunSku,jdbcType=VARCHAR},
      warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
      transfer_bale_delivery = #{transferBaleDelivery,jdbcType=DECIMAL},
      abroad_inbound_delivery = #{abroadInboundDelivery,jdbcType=DECIMAL},
      transfer_delivery = #{transferDelivery,jdbcType=DECIMAL},
      status = #{status,jdbcType=INTEGER},
      error_message = #{errorMessage,jdbcType=VARCHAR},
      update_date = #{updateDate,jdbcType=TIMESTAMP},
      create_date = #{createDate,jdbcType=TIMESTAMP},
      error_stack_trace = #{errorStackTrace,jdbcType=LONGVARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.bailuntec.domain.entity.DcAutoReplaceLogisticsTask">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_auto_replace_logistics_task
    set bailun_sku = #{bailunSku,jdbcType=VARCHAR},
      warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
      transfer_bale_delivery = #{transferBaleDelivery,jdbcType=DECIMAL},
      abroad_inbound_delivery = #{abroadInboundDelivery,jdbcType=DECIMAL},
      transfer_delivery = #{transferDelivery,jdbcType=DECIMAL},
      status = #{status,jdbcType=INTEGER},
      error_message = #{errorMessage,jdbcType=VARCHAR},
      update_date = #{updateDate,jdbcType=TIMESTAMP},
      create_date = #{createDate,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcAutoReplaceLogisticsTask">
    <!--
      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_auto_replace_logistics_task
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="bailunSku != null">
        bailun_sku,
      </if>
      <if test="warehouseCode != null">
        warehouse_code,
      </if>
      <if test="transferBaleDelivery != null">
        transfer_bale_delivery,
      </if>
      <if test="abroadInboundDelivery != null">
        abroad_inbound_delivery,
      </if>
      <if test="transferDelivery != null">
        transfer_delivery,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="errorMessage != null">
        error_message,
      </if>
      <if test="updateDate != null">
        update_date,
      </if>
      <if test="createDate != null">
        create_date,
      </if>
      <if test="errorStackTrace != null">
        error_stack_trace,
      </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="warehouseCode != null">
        #{warehouseCode,jdbcType=VARCHAR},
      </if>
      <if test="transferBaleDelivery != null">
        #{transferBaleDelivery,jdbcType=DECIMAL},
      </if>
      <if test="abroadInboundDelivery != null">
        #{abroadInboundDelivery,jdbcType=DECIMAL},
      </if>
      <if test="transferDelivery != null">
        #{transferDelivery,jdbcType=DECIMAL},
      </if>
      <if test="status != null">
        #{status,jdbcType=INTEGER},
      </if>
      <if test="errorMessage != null">
        #{errorMessage,jdbcType=VARCHAR},
      </if>
      <if test="updateDate != null">
        #{updateDate,jdbcType=TIMESTAMP},
      </if>
      <if test="createDate != null">
        #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="errorStackTrace != null">
        #{errorStackTrace,jdbcType=LONGVARCHAR},
      </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="warehouseCode != null">
        warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
      </if>
      <if test="transferBaleDelivery != null">
        transfer_bale_delivery = #{transferBaleDelivery,jdbcType=DECIMAL},
      </if>
      <if test="abroadInboundDelivery != null">
        abroad_inbound_delivery = #{abroadInboundDelivery,jdbcType=DECIMAL},
      </if>
      <if test="transferDelivery != null">
        transfer_delivery = #{transferDelivery,jdbcType=DECIMAL},
      </if>
      <if test="status != null">
        status = #{status,jdbcType=INTEGER},
      </if>
      <if test="errorMessage != null">
        error_message = #{errorMessage,jdbcType=VARCHAR},
      </if>
      <if test="updateDate != null">
        update_date = #{updateDate,jdbcType=TIMESTAMP},
      </if>
      <if test="createDate != null">
        create_date = #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="errorStackTrace != null">
        error_stack_trace = #{errorStackTrace,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcAutoReplaceLogisticsTask">
    <!--
      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_auto_replace_logistics_task
    (id, bailun_sku, warehouse_code, transfer_bale_delivery, abroad_inbound_delivery,
      transfer_delivery, status, error_message, update_date, create_date)
    values
    (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR},
      #{transferBaleDelivery,jdbcType=DECIMAL}, #{abroadInboundDelivery,jdbcType=DECIMAL},
      #{transferDelivery,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, #{errorMessage,jdbcType=VARCHAR},
      #{updateDate,jdbcType=TIMESTAMP}, #{createDate,jdbcType=TIMESTAMP})
    on duplicate key update
    id = #{id,jdbcType=INTEGER},
    bailun_sku = #{bailunSku,jdbcType=VARCHAR},
    warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
    transfer_bale_delivery = #{transferBaleDelivery,jdbcType=DECIMAL},
    abroad_inbound_delivery = #{abroadInboundDelivery,jdbcType=DECIMAL},
    transfer_delivery = #{transferDelivery,jdbcType=DECIMAL},
    status = #{status,jdbcType=INTEGER},
    error_message = #{errorMessage,jdbcType=VARCHAR},
    update_date = #{updateDate,jdbcType=TIMESTAMP},
    create_date = #{createDate,jdbcType=TIMESTAMP}
  </insert>
  <insert id="upsertWithBLOBs" parameterType="com.bailuntec.domain.entity.DcAutoReplaceLogisticsTask">
    <!--
      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_auto_replace_logistics_task
    (id, bailun_sku, warehouse_code, transfer_bale_delivery, abroad_inbound_delivery,
      transfer_delivery, status, error_message, update_date, create_date, error_stack_trace
      )
    values
    (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR},
      #{transferBaleDelivery,jdbcType=DECIMAL}, #{abroadInboundDelivery,jdbcType=DECIMAL},
      #{transferDelivery,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, #{errorMessage,jdbcType=VARCHAR},
      #{updateDate,jdbcType=TIMESTAMP}, #{createDate,jdbcType=TIMESTAMP}, #{errorStackTrace,jdbcType=LONGVARCHAR}
      )
    on duplicate key update
    id = #{id,jdbcType=INTEGER},
    bailun_sku = #{bailunSku,jdbcType=VARCHAR},
    warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
    transfer_bale_delivery = #{transferBaleDelivery,jdbcType=DECIMAL},
    abroad_inbound_delivery = #{abroadInboundDelivery,jdbcType=DECIMAL},
    transfer_delivery = #{transferDelivery,jdbcType=DECIMAL},
    status = #{status,jdbcType=INTEGER},
    error_message = #{errorMessage,jdbcType=VARCHAR},
    update_date = #{updateDate,jdbcType=TIMESTAMP},
    create_date = #{createDate,jdbcType=TIMESTAMP},
    error_stack_trace = #{errorStackTrace,jdbcType=LONGVARCHAR}
  </insert>
  <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcAutoReplaceLogisticsTaskExample" 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_auto_replace_logistics_task
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
  <select id="selectOneByExampleWithBLOBs" parameterType="com.bailuntec.domain.example.DcAutoReplaceLogisticsTaskExample" resultMap="ResultMapWithBLOBs">
    <!--
      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" />
    ,
    <include refid="Blob_Column_List" />
    from dc_auto_replace_logistics_task
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
</mapper>
