<?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.TOrderShippingMapper">
  <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.TOrderShipping">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="Id" jdbcType="BIGINT" property="id" />
    <result column="OrderNoPlatform" jdbcType="VARCHAR" property="ordernoplatform" />
    <result column="OrderNoSystem" jdbcType="VARCHAR" property="ordernosystem" />
    <result column="OrderSource" jdbcType="VARCHAR" property="ordersource" />
    <result column="ShipWarehouse" jdbcType="VARCHAR" property="shipwarehouse" />
    <result column="OrderExceptionStatus" jdbcType="VARCHAR" property="orderexceptionstatus" />
    <result column="ExceptionName" jdbcType="VARCHAR" property="exceptionname" />
    <result column="IsShipAgain" jdbcType="INTEGER" property="isshipagain" />
    <result column="PeihuoStatus" jdbcType="VARCHAR" property="peihuostatus" />
    <result column="PeihuoNo" jdbcType="VARCHAR" property="peihuono" />
    <result column="PeihuoTime" jdbcType="TIMESTAMP" property="peihuotime" />
    <result column="ShipStatus" jdbcType="VARCHAR" property="shipstatus" />
    <result column="OutWarehouseTime" jdbcType="TIMESTAMP" property="outwarehousetime" />
    <result column="OutWeight" jdbcType="DECIMAL" property="outweight" />
    <result column="PackageNo" jdbcType="VARCHAR" property="packageno" />
    <result column="IsAssignLogistics" jdbcType="INTEGER" property="isassignlogistics" />
    <result column="AssignLogistics" jdbcType="VARCHAR" property="assignlogistics" />
    <result column="ShipLogistics" jdbcType="VARCHAR" property="shiplogistics" />
    <result column="IsFaraway" jdbcType="INTEGER" property="isfaraway" />
    <result column="LogisticsNo" jdbcType="VARCHAR" property="logisticsno" />
    <result column="CreateTime" jdbcType="TIMESTAMP" property="createtime" />
    <result column="UpdateTime" jdbcType="TIMESTAMP" property="updatetime" />
    <result column="Hid" jdbcType="BIGINT" property="hid" />
    <result column="PlatformExpress" jdbcType="VARCHAR" property="platformexpress" />
    <result column="ShipAddress" jdbcType="VARCHAR" property="shipaddress" />
    <result column="ShipCountry" jdbcType="VARCHAR" property="shipcountry" />
    <result column="ShipWarehousesJson" jdbcType="VARCHAR" property="shipwarehousesjson" />
    <result column="MatchWarehouseCount" jdbcType="INTEGER" property="matchwarehousecount" />
    <result column="order_system" jdbcType="VARCHAR" property="orderSystem" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.bailuntec.domain.entity.TOrderShippingWithBLOBs">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="OriginalSku" jdbcType="LONGVARCHAR" property="originalsku" />
    <result column="HasPeihuoSku" jdbcType="LONGVARCHAR" property="haspeihuosku" />
    <result column="NoPeihuoSku" jdbcType="LONGVARCHAR" property="nopeihuosku" />
    <result column="HasShipSku" jdbcType="LONGVARCHAR" property="hasshipsku" />
    <result column="NoShipSku" jdbcType="LONGVARCHAR" property="noshipsku" />
  </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, OrderNoPlatform, OrderNoSystem, OrderSource, ShipWarehouse, OrderExceptionStatus, 
    ExceptionName, IsShipAgain, PeihuoStatus, PeihuoNo, PeihuoTime, ShipStatus, OutWarehouseTime, 
    OutWeight, PackageNo, IsAssignLogistics, AssignLogistics, ShipLogistics, IsFaraway, 
    LogisticsNo, CreateTime, UpdateTime, Hid, PlatformExpress, ShipAddress, ShipCountry, 
    ShipWarehousesJson, MatchWarehouseCount, order_system
  </sql>
  <sql id="Blob_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    OriginalSku, HasPeihuoSku, NoPeihuoSku, HasShipSku, NoShipSku
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="com.bailuntec.domain.example.TOrderShippingExample" 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 t_order_shipping
    <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.TOrderShippingExample" 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 t_order_shipping
    <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.Long" 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 t_order_shipping
    where Id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from t_order_shipping
    where Id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.TOrderShippingExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from t_order_shipping
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.bailuntec.domain.entity.TOrderShippingWithBLOBs">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into t_order_shipping (Id, OrderNoPlatform, OrderNoSystem, 
      OrderSource, ShipWarehouse, OrderExceptionStatus, 
      ExceptionName, IsShipAgain, PeihuoStatus, 
      PeihuoNo, PeihuoTime, ShipStatus, 
      OutWarehouseTime, OutWeight, PackageNo, 
      IsAssignLogistics, AssignLogistics, ShipLogistics, 
      IsFaraway, LogisticsNo, CreateTime, 
      UpdateTime, Hid, PlatformExpress, 
      ShipAddress, ShipCountry, ShipWarehousesJson, 
      MatchWarehouseCount, order_system, OriginalSku, 
      HasPeihuoSku, NoPeihuoSku, HasShipSku, 
      NoShipSku)
    values (#{id,jdbcType=BIGINT}, #{ordernoplatform,jdbcType=VARCHAR}, #{ordernosystem,jdbcType=VARCHAR}, 
      #{ordersource,jdbcType=VARCHAR}, #{shipwarehouse,jdbcType=VARCHAR}, #{orderexceptionstatus,jdbcType=VARCHAR}, 
      #{exceptionname,jdbcType=VARCHAR}, #{isshipagain,jdbcType=INTEGER}, #{peihuostatus,jdbcType=VARCHAR}, 
      #{peihuono,jdbcType=VARCHAR}, #{peihuotime,jdbcType=TIMESTAMP}, #{shipstatus,jdbcType=VARCHAR},
      #{outwarehousetime,jdbcType=TIMESTAMP}, #{outweight,jdbcType=DECIMAL}, #{packageno,jdbcType=VARCHAR},
      #{isassignlogistics,jdbcType=INTEGER}, #{assignlogistics,jdbcType=VARCHAR}, #{shiplogistics,jdbcType=VARCHAR}, 
      #{isfaraway,jdbcType=INTEGER}, #{logisticsno,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},
      #{updatetime,jdbcType=TIMESTAMP}, #{hid,jdbcType=BIGINT}, #{platformexpress,jdbcType=VARCHAR},
      #{shipaddress,jdbcType=VARCHAR}, #{shipcountry,jdbcType=VARCHAR}, #{shipwarehousesjson,jdbcType=VARCHAR}, 
      #{matchwarehousecount,jdbcType=INTEGER}, #{orderSystem,jdbcType=VARCHAR}, #{originalsku,jdbcType=LONGVARCHAR}, 
      #{haspeihuosku,jdbcType=LONGVARCHAR}, #{nopeihuosku,jdbcType=LONGVARCHAR}, #{hasshipsku,jdbcType=LONGVARCHAR}, 
      #{noshipsku,jdbcType=LONGVARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.TOrderShippingWithBLOBs">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into t_order_shipping
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        Id,
      </if>
      <if test="ordernoplatform != null">
        OrderNoPlatform,
      </if>
      <if test="ordernosystem != null">
        OrderNoSystem,
      </if>
      <if test="ordersource != null">
        OrderSource,
      </if>
      <if test="shipwarehouse != null">
        ShipWarehouse,
      </if>
      <if test="orderexceptionstatus != null">
        OrderExceptionStatus,
      </if>
      <if test="exceptionname != null">
        ExceptionName,
      </if>
      <if test="isshipagain != null">
        IsShipAgain,
      </if>
      <if test="peihuostatus != null">
        PeihuoStatus,
      </if>
      <if test="peihuono != null">
        PeihuoNo,
      </if>
      <if test="peihuotime != null">
        PeihuoTime,
      </if>
      <if test="shipstatus != null">
        ShipStatus,
      </if>
      <if test="outwarehousetime != null">
        OutWarehouseTime,
      </if>
      <if test="outweight != null">
        OutWeight,
      </if>
      <if test="packageno != null">
        PackageNo,
      </if>
      <if test="isassignlogistics != null">
        IsAssignLogistics,
      </if>
      <if test="assignlogistics != null">
        AssignLogistics,
      </if>
      <if test="shiplogistics != null">
        ShipLogistics,
      </if>
      <if test="isfaraway != null">
        IsFaraway,
      </if>
      <if test="logisticsno != null">
        LogisticsNo,
      </if>
      <if test="createtime != null">
        CreateTime,
      </if>
      <if test="updatetime != null">
        UpdateTime,
      </if>
      <if test="hid != null">
        Hid,
      </if>
      <if test="platformexpress != null">
        PlatformExpress,
      </if>
      <if test="shipaddress != null">
        ShipAddress,
      </if>
      <if test="shipcountry != null">
        ShipCountry,
      </if>
      <if test="shipwarehousesjson != null">
        ShipWarehousesJson,
      </if>
      <if test="matchwarehousecount != null">
        MatchWarehouseCount,
      </if>
      <if test="orderSystem != null">
        order_system,
      </if>
      <if test="originalsku != null">
        OriginalSku,
      </if>
      <if test="haspeihuosku != null">
        HasPeihuoSku,
      </if>
      <if test="nopeihuosku != null">
        NoPeihuoSku,
      </if>
      <if test="hasshipsku != null">
        HasShipSku,
      </if>
      <if test="noshipsku != null">
        NoShipSku,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="ordernoplatform != null">
        #{ordernoplatform,jdbcType=VARCHAR},
      </if>
      <if test="ordernosystem != null">
        #{ordernosystem,jdbcType=VARCHAR},
      </if>
      <if test="ordersource != null">
        #{ordersource,jdbcType=VARCHAR},
      </if>
      <if test="shipwarehouse != null">
        #{shipwarehouse,jdbcType=VARCHAR},
      </if>
      <if test="orderexceptionstatus != null">
        #{orderexceptionstatus,jdbcType=VARCHAR},
      </if>
      <if test="exceptionname != null">
        #{exceptionname,jdbcType=VARCHAR},
      </if>
      <if test="isshipagain != null">
        #{isshipagain,jdbcType=INTEGER},
      </if>
      <if test="peihuostatus != null">
        #{peihuostatus,jdbcType=VARCHAR},
      </if>
      <if test="peihuono != null">
        #{peihuono,jdbcType=VARCHAR},
      </if>
      <if test="peihuotime != null">
        #{peihuotime,jdbcType=TIMESTAMP},
      </if>
      <if test="shipstatus != null">
        #{shipstatus,jdbcType=VARCHAR},
      </if>
      <if test="outwarehousetime != null">
        #{outwarehousetime,jdbcType=TIMESTAMP},
      </if>
      <if test="outweight != null">
        #{outweight,jdbcType=DECIMAL},
      </if>
      <if test="packageno != null">
        #{packageno,jdbcType=VARCHAR},
      </if>
      <if test="isassignlogistics != null">
        #{isassignlogistics,jdbcType=INTEGER},
      </if>
      <if test="assignlogistics != null">
        #{assignlogistics,jdbcType=VARCHAR},
      </if>
      <if test="shiplogistics != null">
        #{shiplogistics,jdbcType=VARCHAR},
      </if>
      <if test="isfaraway != null">
        #{isfaraway,jdbcType=INTEGER},
      </if>
      <if test="logisticsno != null">
        #{logisticsno,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null">
        #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="hid != null">
        #{hid,jdbcType=BIGINT},
      </if>
      <if test="platformexpress != null">
        #{platformexpress,jdbcType=VARCHAR},
      </if>
      <if test="shipaddress != null">
        #{shipaddress,jdbcType=VARCHAR},
      </if>
      <if test="shipcountry != null">
        #{shipcountry,jdbcType=VARCHAR},
      </if>
      <if test="shipwarehousesjson != null">
        #{shipwarehousesjson,jdbcType=VARCHAR},
      </if>
      <if test="matchwarehousecount != null">
        #{matchwarehousecount,jdbcType=INTEGER},
      </if>
      <if test="orderSystem != null">
        #{orderSystem,jdbcType=VARCHAR},
      </if>
      <if test="originalsku != null">
        #{originalsku,jdbcType=LONGVARCHAR},
      </if>
      <if test="haspeihuosku != null">
        #{haspeihuosku,jdbcType=LONGVARCHAR},
      </if>
      <if test="nopeihuosku != null">
        #{nopeihuosku,jdbcType=LONGVARCHAR},
      </if>
      <if test="hasshipsku != null">
        #{hasshipsku,jdbcType=LONGVARCHAR},
      </if>
      <if test="noshipsku != null">
        #{noshipsku,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.bailuntec.domain.example.TOrderShippingExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from t_order_shipping
    <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 t_order_shipping
    <set>
      <if test="record.id != null">
        Id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.ordernoplatform != null">
        OrderNoPlatform = #{record.ordernoplatform,jdbcType=VARCHAR},
      </if>
      <if test="record.ordernosystem != null">
        OrderNoSystem = #{record.ordernosystem,jdbcType=VARCHAR},
      </if>
      <if test="record.ordersource != null">
        OrderSource = #{record.ordersource,jdbcType=VARCHAR},
      </if>
      <if test="record.shipwarehouse != null">
        ShipWarehouse = #{record.shipwarehouse,jdbcType=VARCHAR},
      </if>
      <if test="record.orderexceptionstatus != null">
        OrderExceptionStatus = #{record.orderexceptionstatus,jdbcType=VARCHAR},
      </if>
      <if test="record.exceptionname != null">
        ExceptionName = #{record.exceptionname,jdbcType=VARCHAR},
      </if>
      <if test="record.isshipagain != null">
        IsShipAgain = #{record.isshipagain,jdbcType=INTEGER},
      </if>
      <if test="record.peihuostatus != null">
        PeihuoStatus = #{record.peihuostatus,jdbcType=VARCHAR},
      </if>
      <if test="record.peihuono != null">
        PeihuoNo = #{record.peihuono,jdbcType=VARCHAR},
      </if>
      <if test="record.peihuotime != null">
        PeihuoTime = #{record.peihuotime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.shipstatus != null">
        ShipStatus = #{record.shipstatus,jdbcType=VARCHAR},
      </if>
      <if test="record.outwarehousetime != null">
        OutWarehouseTime = #{record.outwarehousetime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.outweight != null">
        OutWeight = #{record.outweight,jdbcType=DECIMAL},
      </if>
      <if test="record.packageno != null">
        PackageNo = #{record.packageno,jdbcType=VARCHAR},
      </if>
      <if test="record.isassignlogistics != null">
        IsAssignLogistics = #{record.isassignlogistics,jdbcType=INTEGER},
      </if>
      <if test="record.assignlogistics != null">
        AssignLogistics = #{record.assignlogistics,jdbcType=VARCHAR},
      </if>
      <if test="record.shiplogistics != null">
        ShipLogistics = #{record.shiplogistics,jdbcType=VARCHAR},
      </if>
      <if test="record.isfaraway != null">
        IsFaraway = #{record.isfaraway,jdbcType=INTEGER},
      </if>
      <if test="record.logisticsno != null">
        LogisticsNo = #{record.logisticsno,jdbcType=VARCHAR},
      </if>
      <if test="record.createtime != null">
        CreateTime = #{record.createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updatetime != null">
        UpdateTime = #{record.updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.hid != null">
        Hid = #{record.hid,jdbcType=BIGINT},
      </if>
      <if test="record.platformexpress != null">
        PlatformExpress = #{record.platformexpress,jdbcType=VARCHAR},
      </if>
      <if test="record.shipaddress != null">
        ShipAddress = #{record.shipaddress,jdbcType=VARCHAR},
      </if>
      <if test="record.shipcountry != null">
        ShipCountry = #{record.shipcountry,jdbcType=VARCHAR},
      </if>
      <if test="record.shipwarehousesjson != null">
        ShipWarehousesJson = #{record.shipwarehousesjson,jdbcType=VARCHAR},
      </if>
      <if test="record.matchwarehousecount != null">
        MatchWarehouseCount = #{record.matchwarehousecount,jdbcType=INTEGER},
      </if>
      <if test="record.orderSystem != null">
        order_system = #{record.orderSystem,jdbcType=VARCHAR},
      </if>
      <if test="record.originalsku != null">
        OriginalSku = #{record.originalsku,jdbcType=LONGVARCHAR},
      </if>
      <if test="record.haspeihuosku != null">
        HasPeihuoSku = #{record.haspeihuosku,jdbcType=LONGVARCHAR},
      </if>
      <if test="record.nopeihuosku != null">
        NoPeihuoSku = #{record.nopeihuosku,jdbcType=LONGVARCHAR},
      </if>
      <if test="record.hasshipsku != null">
        HasShipSku = #{record.hasshipsku,jdbcType=LONGVARCHAR},
      </if>
      <if test="record.noshipsku != null">
        NoShipSku = #{record.noshipsku,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 t_order_shipping
    set Id = #{record.id,jdbcType=BIGINT},
      OrderNoPlatform = #{record.ordernoplatform,jdbcType=VARCHAR},
      OrderNoSystem = #{record.ordernosystem,jdbcType=VARCHAR},
      OrderSource = #{record.ordersource,jdbcType=VARCHAR},
      ShipWarehouse = #{record.shipwarehouse,jdbcType=VARCHAR},
      OrderExceptionStatus = #{record.orderexceptionstatus,jdbcType=VARCHAR},
      ExceptionName = #{record.exceptionname,jdbcType=VARCHAR},
      IsShipAgain = #{record.isshipagain,jdbcType=INTEGER},
      PeihuoStatus = #{record.peihuostatus,jdbcType=VARCHAR},
      PeihuoNo = #{record.peihuono,jdbcType=VARCHAR},
      PeihuoTime = #{record.peihuotime,jdbcType=TIMESTAMP},
      ShipStatus = #{record.shipstatus,jdbcType=VARCHAR},
      OutWarehouseTime = #{record.outwarehousetime,jdbcType=TIMESTAMP},
      OutWeight = #{record.outweight,jdbcType=DECIMAL},
      PackageNo = #{record.packageno,jdbcType=VARCHAR},
      IsAssignLogistics = #{record.isassignlogistics,jdbcType=INTEGER},
      AssignLogistics = #{record.assignlogistics,jdbcType=VARCHAR},
      ShipLogistics = #{record.shiplogistics,jdbcType=VARCHAR},
      IsFaraway = #{record.isfaraway,jdbcType=INTEGER},
      LogisticsNo = #{record.logisticsno,jdbcType=VARCHAR},
      CreateTime = #{record.createtime,jdbcType=TIMESTAMP},
      UpdateTime = #{record.updatetime,jdbcType=TIMESTAMP},
      Hid = #{record.hid,jdbcType=BIGINT},
      PlatformExpress = #{record.platformexpress,jdbcType=VARCHAR},
      ShipAddress = #{record.shipaddress,jdbcType=VARCHAR},
      ShipCountry = #{record.shipcountry,jdbcType=VARCHAR},
      ShipWarehousesJson = #{record.shipwarehousesjson,jdbcType=VARCHAR},
      MatchWarehouseCount = #{record.matchwarehousecount,jdbcType=INTEGER},
      order_system = #{record.orderSystem,jdbcType=VARCHAR},
      OriginalSku = #{record.originalsku,jdbcType=LONGVARCHAR},
      HasPeihuoSku = #{record.haspeihuosku,jdbcType=LONGVARCHAR},
      NoPeihuoSku = #{record.nopeihuosku,jdbcType=LONGVARCHAR},
      HasShipSku = #{record.hasshipsku,jdbcType=LONGVARCHAR},
      NoShipSku = #{record.noshipsku,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 t_order_shipping
    set Id = #{record.id,jdbcType=BIGINT},
      OrderNoPlatform = #{record.ordernoplatform,jdbcType=VARCHAR},
      OrderNoSystem = #{record.ordernosystem,jdbcType=VARCHAR},
      OrderSource = #{record.ordersource,jdbcType=VARCHAR},
      ShipWarehouse = #{record.shipwarehouse,jdbcType=VARCHAR},
      OrderExceptionStatus = #{record.orderexceptionstatus,jdbcType=VARCHAR},
      ExceptionName = #{record.exceptionname,jdbcType=VARCHAR},
      IsShipAgain = #{record.isshipagain,jdbcType=INTEGER},
      PeihuoStatus = #{record.peihuostatus,jdbcType=VARCHAR},
      PeihuoNo = #{record.peihuono,jdbcType=VARCHAR},
      PeihuoTime = #{record.peihuotime,jdbcType=TIMESTAMP},
      ShipStatus = #{record.shipstatus,jdbcType=VARCHAR},
      OutWarehouseTime = #{record.outwarehousetime,jdbcType=TIMESTAMP},
      OutWeight = #{record.outweight,jdbcType=DECIMAL},
      PackageNo = #{record.packageno,jdbcType=VARCHAR},
      IsAssignLogistics = #{record.isassignlogistics,jdbcType=INTEGER},
      AssignLogistics = #{record.assignlogistics,jdbcType=VARCHAR},
      ShipLogistics = #{record.shiplogistics,jdbcType=VARCHAR},
      IsFaraway = #{record.isfaraway,jdbcType=INTEGER},
      LogisticsNo = #{record.logisticsno,jdbcType=VARCHAR},
      CreateTime = #{record.createtime,jdbcType=TIMESTAMP},
      UpdateTime = #{record.updatetime,jdbcType=TIMESTAMP},
      Hid = #{record.hid,jdbcType=BIGINT},
      PlatformExpress = #{record.platformexpress,jdbcType=VARCHAR},
      ShipAddress = #{record.shipaddress,jdbcType=VARCHAR},
      ShipCountry = #{record.shipcountry,jdbcType=VARCHAR},
      ShipWarehousesJson = #{record.shipwarehousesjson,jdbcType=VARCHAR},
      MatchWarehouseCount = #{record.matchwarehousecount,jdbcType=INTEGER},
      order_system = #{record.orderSystem,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.TOrderShippingWithBLOBs">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update t_order_shipping
    <set>
      <if test="ordernoplatform != null">
        OrderNoPlatform = #{ordernoplatform,jdbcType=VARCHAR},
      </if>
      <if test="ordernosystem != null">
        OrderNoSystem = #{ordernosystem,jdbcType=VARCHAR},
      </if>
      <if test="ordersource != null">
        OrderSource = #{ordersource,jdbcType=VARCHAR},
      </if>
      <if test="shipwarehouse != null">
        ShipWarehouse = #{shipwarehouse,jdbcType=VARCHAR},
      </if>
      <if test="orderexceptionstatus != null">
        OrderExceptionStatus = #{orderexceptionstatus,jdbcType=VARCHAR},
      </if>
      <if test="exceptionname != null">
        ExceptionName = #{exceptionname,jdbcType=VARCHAR},
      </if>
      <if test="isshipagain != null">
        IsShipAgain = #{isshipagain,jdbcType=INTEGER},
      </if>
      <if test="peihuostatus != null">
        PeihuoStatus = #{peihuostatus,jdbcType=VARCHAR},
      </if>
      <if test="peihuono != null">
        PeihuoNo = #{peihuono,jdbcType=VARCHAR},
      </if>
      <if test="peihuotime != null">
        PeihuoTime = #{peihuotime,jdbcType=TIMESTAMP},
      </if>
      <if test="shipstatus != null">
        ShipStatus = #{shipstatus,jdbcType=VARCHAR},
      </if>
      <if test="outwarehousetime != null">
        OutWarehouseTime = #{outwarehousetime,jdbcType=TIMESTAMP},
      </if>
      <if test="outweight != null">
        OutWeight = #{outweight,jdbcType=DECIMAL},
      </if>
      <if test="packageno != null">
        PackageNo = #{packageno,jdbcType=VARCHAR},
      </if>
      <if test="isassignlogistics != null">
        IsAssignLogistics = #{isassignlogistics,jdbcType=INTEGER},
      </if>
      <if test="assignlogistics != null">
        AssignLogistics = #{assignlogistics,jdbcType=VARCHAR},
      </if>
      <if test="shiplogistics != null">
        ShipLogistics = #{shiplogistics,jdbcType=VARCHAR},
      </if>
      <if test="isfaraway != null">
        IsFaraway = #{isfaraway,jdbcType=INTEGER},
      </if>
      <if test="logisticsno != null">
        LogisticsNo = #{logisticsno,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        CreateTime = #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null">
        UpdateTime = #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="hid != null">
        Hid = #{hid,jdbcType=BIGINT},
      </if>
      <if test="platformexpress != null">
        PlatformExpress = #{platformexpress,jdbcType=VARCHAR},
      </if>
      <if test="shipaddress != null">
        ShipAddress = #{shipaddress,jdbcType=VARCHAR},
      </if>
      <if test="shipcountry != null">
        ShipCountry = #{shipcountry,jdbcType=VARCHAR},
      </if>
      <if test="shipwarehousesjson != null">
        ShipWarehousesJson = #{shipwarehousesjson,jdbcType=VARCHAR},
      </if>
      <if test="matchwarehousecount != null">
        MatchWarehouseCount = #{matchwarehousecount,jdbcType=INTEGER},
      </if>
      <if test="orderSystem != null">
        order_system = #{orderSystem,jdbcType=VARCHAR},
      </if>
      <if test="originalsku != null">
        OriginalSku = #{originalsku,jdbcType=LONGVARCHAR},
      </if>
      <if test="haspeihuosku != null">
        HasPeihuoSku = #{haspeihuosku,jdbcType=LONGVARCHAR},
      </if>
      <if test="nopeihuosku != null">
        NoPeihuoSku = #{nopeihuosku,jdbcType=LONGVARCHAR},
      </if>
      <if test="hasshipsku != null">
        HasShipSku = #{hasshipsku,jdbcType=LONGVARCHAR},
      </if>
      <if test="noshipsku != null">
        NoShipSku = #{noshipsku,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where Id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.bailuntec.domain.entity.TOrderShippingWithBLOBs">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update t_order_shipping
    set OrderNoPlatform = #{ordernoplatform,jdbcType=VARCHAR},
      OrderNoSystem = #{ordernosystem,jdbcType=VARCHAR},
      OrderSource = #{ordersource,jdbcType=VARCHAR},
      ShipWarehouse = #{shipwarehouse,jdbcType=VARCHAR},
      OrderExceptionStatus = #{orderexceptionstatus,jdbcType=VARCHAR},
      ExceptionName = #{exceptionname,jdbcType=VARCHAR},
      IsShipAgain = #{isshipagain,jdbcType=INTEGER},
      PeihuoStatus = #{peihuostatus,jdbcType=VARCHAR},
      PeihuoNo = #{peihuono,jdbcType=VARCHAR},
      PeihuoTime = #{peihuotime,jdbcType=TIMESTAMP},
      ShipStatus = #{shipstatus,jdbcType=VARCHAR},
      OutWarehouseTime = #{outwarehousetime,jdbcType=TIMESTAMP},
      OutWeight = #{outweight,jdbcType=DECIMAL},
      PackageNo = #{packageno,jdbcType=VARCHAR},
      IsAssignLogistics = #{isassignlogistics,jdbcType=INTEGER},
      AssignLogistics = #{assignlogistics,jdbcType=VARCHAR},
      ShipLogistics = #{shiplogistics,jdbcType=VARCHAR},
      IsFaraway = #{isfaraway,jdbcType=INTEGER},
      LogisticsNo = #{logisticsno,jdbcType=VARCHAR},
      CreateTime = #{createtime,jdbcType=TIMESTAMP},
      UpdateTime = #{updatetime,jdbcType=TIMESTAMP},
      Hid = #{hid,jdbcType=BIGINT},
      PlatformExpress = #{platformexpress,jdbcType=VARCHAR},
      ShipAddress = #{shipaddress,jdbcType=VARCHAR},
      ShipCountry = #{shipcountry,jdbcType=VARCHAR},
      ShipWarehousesJson = #{shipwarehousesjson,jdbcType=VARCHAR},
      MatchWarehouseCount = #{matchwarehousecount,jdbcType=INTEGER},
      order_system = #{orderSystem,jdbcType=VARCHAR},
      OriginalSku = #{originalsku,jdbcType=LONGVARCHAR},
      HasPeihuoSku = #{haspeihuosku,jdbcType=LONGVARCHAR},
      NoPeihuoSku = #{nopeihuosku,jdbcType=LONGVARCHAR},
      HasShipSku = #{hasshipsku,jdbcType=LONGVARCHAR},
      NoShipSku = #{noshipsku,jdbcType=LONGVARCHAR}
    where Id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.bailuntec.domain.entity.TOrderShipping">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update t_order_shipping
    set OrderNoPlatform = #{ordernoplatform,jdbcType=VARCHAR},
      OrderNoSystem = #{ordernosystem,jdbcType=VARCHAR},
      OrderSource = #{ordersource,jdbcType=VARCHAR},
      ShipWarehouse = #{shipwarehouse,jdbcType=VARCHAR},
      OrderExceptionStatus = #{orderexceptionstatus,jdbcType=VARCHAR},
      ExceptionName = #{exceptionname,jdbcType=VARCHAR},
      IsShipAgain = #{isshipagain,jdbcType=INTEGER},
      PeihuoStatus = #{peihuostatus,jdbcType=VARCHAR},
      PeihuoNo = #{peihuono,jdbcType=VARCHAR},
      PeihuoTime = #{peihuotime,jdbcType=TIMESTAMP},
      ShipStatus = #{shipstatus,jdbcType=VARCHAR},
      OutWarehouseTime = #{outwarehousetime,jdbcType=TIMESTAMP},
      OutWeight = #{outweight,jdbcType=DECIMAL},
      PackageNo = #{packageno,jdbcType=VARCHAR},
      IsAssignLogistics = #{isassignlogistics,jdbcType=INTEGER},
      AssignLogistics = #{assignlogistics,jdbcType=VARCHAR},
      ShipLogistics = #{shiplogistics,jdbcType=VARCHAR},
      IsFaraway = #{isfaraway,jdbcType=INTEGER},
      LogisticsNo = #{logisticsno,jdbcType=VARCHAR},
      CreateTime = #{createtime,jdbcType=TIMESTAMP},
      UpdateTime = #{updatetime,jdbcType=TIMESTAMP},
      Hid = #{hid,jdbcType=BIGINT},
      PlatformExpress = #{platformexpress,jdbcType=VARCHAR},
      ShipAddress = #{shipaddress,jdbcType=VARCHAR},
      ShipCountry = #{shipcountry,jdbcType=VARCHAR},
      ShipWarehousesJson = #{shipwarehousesjson,jdbcType=VARCHAR},
      MatchWarehouseCount = #{matchwarehousecount,jdbcType=INTEGER},
      order_system = #{orderSystem,jdbcType=VARCHAR}
    where Id = #{id,jdbcType=BIGINT}
  </update>
  <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.TOrderShippingWithBLOBs">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    insert into t_order_shipping
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        Id,
      </if>
      <if test="ordernoplatform != null">
        OrderNoPlatform,
      </if>
      <if test="ordernosystem != null">
        OrderNoSystem,
      </if>
      <if test="ordersource != null">
        OrderSource,
      </if>
      <if test="shipwarehouse != null">
        ShipWarehouse,
      </if>
      <if test="orderexceptionstatus != null">
        OrderExceptionStatus,
      </if>
      <if test="exceptionname != null">
        ExceptionName,
      </if>
      <if test="isshipagain != null">
        IsShipAgain,
      </if>
      <if test="peihuostatus != null">
        PeihuoStatus,
      </if>
      <if test="peihuono != null">
        PeihuoNo,
      </if>
      <if test="peihuotime != null">
        PeihuoTime,
      </if>
      <if test="shipstatus != null">
        ShipStatus,
      </if>
      <if test="outwarehousetime != null">
        OutWarehouseTime,
      </if>
      <if test="outweight != null">
        OutWeight,
      </if>
      <if test="packageno != null">
        PackageNo,
      </if>
      <if test="isassignlogistics != null">
        IsAssignLogistics,
      </if>
      <if test="assignlogistics != null">
        AssignLogistics,
      </if>
      <if test="shiplogistics != null">
        ShipLogistics,
      </if>
      <if test="isfaraway != null">
        IsFaraway,
      </if>
      <if test="logisticsno != null">
        LogisticsNo,
      </if>
      <if test="createtime != null">
        CreateTime,
      </if>
      <if test="updatetime != null">
        UpdateTime,
      </if>
      <if test="hid != null">
        Hid,
      </if>
      <if test="platformexpress != null">
        PlatformExpress,
      </if>
      <if test="shipaddress != null">
        ShipAddress,
      </if>
      <if test="shipcountry != null">
        ShipCountry,
      </if>
      <if test="shipwarehousesjson != null">
        ShipWarehousesJson,
      </if>
      <if test="matchwarehousecount != null">
        MatchWarehouseCount,
      </if>
      <if test="orderSystem != null">
        order_system,
      </if>
      <if test="originalsku != null">
        OriginalSku,
      </if>
      <if test="haspeihuosku != null">
        HasPeihuoSku,
      </if>
      <if test="nopeihuosku != null">
        NoPeihuoSku,
      </if>
      <if test="hasshipsku != null">
        HasShipSku,
      </if>
      <if test="noshipsku != null">
        NoShipSku,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="ordernoplatform != null">
        #{ordernoplatform,jdbcType=VARCHAR},
      </if>
      <if test="ordernosystem != null">
        #{ordernosystem,jdbcType=VARCHAR},
      </if>
      <if test="ordersource != null">
        #{ordersource,jdbcType=VARCHAR},
      </if>
      <if test="shipwarehouse != null">
        #{shipwarehouse,jdbcType=VARCHAR},
      </if>
      <if test="orderexceptionstatus != null">
        #{orderexceptionstatus,jdbcType=VARCHAR},
      </if>
      <if test="exceptionname != null">
        #{exceptionname,jdbcType=VARCHAR},
      </if>
      <if test="isshipagain != null">
        #{isshipagain,jdbcType=INTEGER},
      </if>
      <if test="peihuostatus != null">
        #{peihuostatus,jdbcType=VARCHAR},
      </if>
      <if test="peihuono != null">
        #{peihuono,jdbcType=VARCHAR},
      </if>
      <if test="peihuotime != null">
        #{peihuotime,jdbcType=TIMESTAMP},
      </if>
      <if test="shipstatus != null">
        #{shipstatus,jdbcType=VARCHAR},
      </if>
      <if test="outwarehousetime != null">
        #{outwarehousetime,jdbcType=TIMESTAMP},
      </if>
      <if test="outweight != null">
        #{outweight,jdbcType=DECIMAL},
      </if>
      <if test="packageno != null">
        #{packageno,jdbcType=VARCHAR},
      </if>
      <if test="isassignlogistics != null">
        #{isassignlogistics,jdbcType=INTEGER},
      </if>
      <if test="assignlogistics != null">
        #{assignlogistics,jdbcType=VARCHAR},
      </if>
      <if test="shiplogistics != null">
        #{shiplogistics,jdbcType=VARCHAR},
      </if>
      <if test="isfaraway != null">
        #{isfaraway,jdbcType=INTEGER},
      </if>
      <if test="logisticsno != null">
        #{logisticsno,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null">
        #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="hid != null">
        #{hid,jdbcType=BIGINT},
      </if>
      <if test="platformexpress != null">
        #{platformexpress,jdbcType=VARCHAR},
      </if>
      <if test="shipaddress != null">
        #{shipaddress,jdbcType=VARCHAR},
      </if>
      <if test="shipcountry != null">
        #{shipcountry,jdbcType=VARCHAR},
      </if>
      <if test="shipwarehousesjson != null">
        #{shipwarehousesjson,jdbcType=VARCHAR},
      </if>
      <if test="matchwarehousecount != null">
        #{matchwarehousecount,jdbcType=INTEGER},
      </if>
      <if test="orderSystem != null">
        #{orderSystem,jdbcType=VARCHAR},
      </if>
      <if test="originalsku != null">
        #{originalsku,jdbcType=LONGVARCHAR},
      </if>
      <if test="haspeihuosku != null">
        #{haspeihuosku,jdbcType=LONGVARCHAR},
      </if>
      <if test="nopeihuosku != null">
        #{nopeihuosku,jdbcType=LONGVARCHAR},
      </if>
      <if test="hasshipsku != null">
        #{hasshipsku,jdbcType=LONGVARCHAR},
      </if>
      <if test="noshipsku != null">
        #{noshipsku,jdbcType=LONGVARCHAR},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
        Id = #{id,jdbcType=BIGINT},
      </if>
      <if test="ordernoplatform != null">
        OrderNoPlatform = #{ordernoplatform,jdbcType=VARCHAR},
      </if>
      <if test="ordernosystem != null">
        OrderNoSystem = #{ordernosystem,jdbcType=VARCHAR},
      </if>
      <if test="ordersource != null">
        OrderSource = #{ordersource,jdbcType=VARCHAR},
      </if>
      <if test="shipwarehouse != null">
        ShipWarehouse = #{shipwarehouse,jdbcType=VARCHAR},
      </if>
      <if test="orderexceptionstatus != null">
        OrderExceptionStatus = #{orderexceptionstatus,jdbcType=VARCHAR},
      </if>
      <if test="exceptionname != null">
        ExceptionName = #{exceptionname,jdbcType=VARCHAR},
      </if>
      <if test="isshipagain != null">
        IsShipAgain = #{isshipagain,jdbcType=INTEGER},
      </if>
      <if test="peihuostatus != null">
        PeihuoStatus = #{peihuostatus,jdbcType=VARCHAR},
      </if>
      <if test="peihuono != null">
        PeihuoNo = #{peihuono,jdbcType=VARCHAR},
      </if>
      <if test="peihuotime != null">
        PeihuoTime = #{peihuotime,jdbcType=TIMESTAMP},
      </if>
      <if test="shipstatus != null">
        ShipStatus = #{shipstatus,jdbcType=VARCHAR},
      </if>
      <if test="outwarehousetime != null">
        OutWarehouseTime = #{outwarehousetime,jdbcType=TIMESTAMP},
      </if>
      <if test="outweight != null">
        OutWeight = #{outweight,jdbcType=DECIMAL},
      </if>
      <if test="packageno != null">
        PackageNo = #{packageno,jdbcType=VARCHAR},
      </if>
      <if test="isassignlogistics != null">
        IsAssignLogistics = #{isassignlogistics,jdbcType=INTEGER},
      </if>
      <if test="assignlogistics != null">
        AssignLogistics = #{assignlogistics,jdbcType=VARCHAR},
      </if>
      <if test="shiplogistics != null">
        ShipLogistics = #{shiplogistics,jdbcType=VARCHAR},
      </if>
      <if test="isfaraway != null">
        IsFaraway = #{isfaraway,jdbcType=INTEGER},
      </if>
      <if test="logisticsno != null">
        LogisticsNo = #{logisticsno,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        CreateTime = #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null">
        UpdateTime = #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="hid != null">
        Hid = #{hid,jdbcType=BIGINT},
      </if>
      <if test="platformexpress != null">
        PlatformExpress = #{platformexpress,jdbcType=VARCHAR},
      </if>
      <if test="shipaddress != null">
        ShipAddress = #{shipaddress,jdbcType=VARCHAR},
      </if>
      <if test="shipcountry != null">
        ShipCountry = #{shipcountry,jdbcType=VARCHAR},
      </if>
      <if test="shipwarehousesjson != null">
        ShipWarehousesJson = #{shipwarehousesjson,jdbcType=VARCHAR},
      </if>
      <if test="matchwarehousecount != null">
        MatchWarehouseCount = #{matchwarehousecount,jdbcType=INTEGER},
      </if>
      <if test="orderSystem != null">
        order_system = #{orderSystem,jdbcType=VARCHAR},
      </if>
      <if test="originalsku != null">
        OriginalSku = #{originalsku,jdbcType=LONGVARCHAR},
      </if>
      <if test="haspeihuosku != null">
        HasPeihuoSku = #{haspeihuosku,jdbcType=LONGVARCHAR},
      </if>
      <if test="nopeihuosku != null">
        NoPeihuoSku = #{nopeihuosku,jdbcType=LONGVARCHAR},
      </if>
      <if test="hasshipsku != null">
        HasShipSku = #{hasshipsku,jdbcType=LONGVARCHAR},
      </if>
      <if test="noshipsku != null">
        NoShipSku = #{noshipsku,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <insert id="upsert" parameterType="com.bailuntec.domain.entity.TOrderShipping">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    insert into t_order_shipping
    (Id, OrderNoPlatform, OrderNoSystem, OrderSource, ShipWarehouse, OrderExceptionStatus, 
      ExceptionName, IsShipAgain, PeihuoStatus, PeihuoNo, PeihuoTime, ShipStatus, OutWarehouseTime, 
      OutWeight, PackageNo, IsAssignLogistics, AssignLogistics, ShipLogistics, IsFaraway, 
      LogisticsNo, CreateTime, UpdateTime, Hid, PlatformExpress, ShipAddress, ShipCountry, 
      ShipWarehousesJson, MatchWarehouseCount, order_system)
    values
    (#{id,jdbcType=BIGINT}, #{ordernoplatform,jdbcType=VARCHAR}, #{ordernosystem,jdbcType=VARCHAR}, 
      #{ordersource,jdbcType=VARCHAR}, #{shipwarehouse,jdbcType=VARCHAR}, #{orderexceptionstatus,jdbcType=VARCHAR}, 
      #{exceptionname,jdbcType=VARCHAR}, #{isshipagain,jdbcType=INTEGER}, #{peihuostatus,jdbcType=VARCHAR}, 
      #{peihuono,jdbcType=VARCHAR}, #{peihuotime,jdbcType=TIMESTAMP}, #{shipstatus,jdbcType=VARCHAR},
      #{outwarehousetime,jdbcType=TIMESTAMP}, #{outweight,jdbcType=DECIMAL}, #{packageno,jdbcType=VARCHAR},
      #{isassignlogistics,jdbcType=INTEGER}, #{assignlogistics,jdbcType=VARCHAR}, #{shiplogistics,jdbcType=VARCHAR}, 
      #{isfaraway,jdbcType=INTEGER}, #{logisticsno,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},
      #{updatetime,jdbcType=TIMESTAMP}, #{hid,jdbcType=BIGINT}, #{platformexpress,jdbcType=VARCHAR},
      #{shipaddress,jdbcType=VARCHAR}, #{shipcountry,jdbcType=VARCHAR}, #{shipwarehousesjson,jdbcType=VARCHAR}, 
      #{matchwarehousecount,jdbcType=INTEGER}, #{orderSystem,jdbcType=VARCHAR})
    on duplicate key update 
    Id = #{id,jdbcType=BIGINT}, 
    OrderNoPlatform = #{ordernoplatform,jdbcType=VARCHAR}, 
    OrderNoSystem = #{ordernosystem,jdbcType=VARCHAR}, 
    OrderSource = #{ordersource,jdbcType=VARCHAR}, 
    ShipWarehouse = #{shipwarehouse,jdbcType=VARCHAR}, 
    OrderExceptionStatus = #{orderexceptionstatus,jdbcType=VARCHAR}, 
    ExceptionName = #{exceptionname,jdbcType=VARCHAR}, 
    IsShipAgain = #{isshipagain,jdbcType=INTEGER}, 
    PeihuoStatus = #{peihuostatus,jdbcType=VARCHAR}, 
    PeihuoNo = #{peihuono,jdbcType=VARCHAR}, 
    PeihuoTime = #{peihuotime,jdbcType=TIMESTAMP},
    ShipStatus = #{shipstatus,jdbcType=VARCHAR}, 
    OutWarehouseTime = #{outwarehousetime,jdbcType=TIMESTAMP},
    OutWeight = #{outweight,jdbcType=DECIMAL}, 
    PackageNo = #{packageno,jdbcType=VARCHAR}, 
    IsAssignLogistics = #{isassignlogistics,jdbcType=INTEGER}, 
    AssignLogistics = #{assignlogistics,jdbcType=VARCHAR}, 
    ShipLogistics = #{shiplogistics,jdbcType=VARCHAR}, 
    IsFaraway = #{isfaraway,jdbcType=INTEGER}, 
    LogisticsNo = #{logisticsno,jdbcType=VARCHAR}, 
    CreateTime = #{createtime,jdbcType=TIMESTAMP},
    UpdateTime = #{updatetime,jdbcType=TIMESTAMP},
    Hid = #{hid,jdbcType=BIGINT}, 
    PlatformExpress = #{platformexpress,jdbcType=VARCHAR}, 
    ShipAddress = #{shipaddress,jdbcType=VARCHAR}, 
    ShipCountry = #{shipcountry,jdbcType=VARCHAR}, 
    ShipWarehousesJson = #{shipwarehousesjson,jdbcType=VARCHAR}, 
    MatchWarehouseCount = #{matchwarehousecount,jdbcType=INTEGER}, 
    order_system = #{orderSystem,jdbcType=VARCHAR}
  </insert>
  <insert id="upsertWithBLOBs" parameterType="com.bailuntec.domain.entity.TOrderShippingWithBLOBs">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    insert into t_order_shipping
    (Id, OrderNoPlatform, OrderNoSystem, OrderSource, ShipWarehouse, OrderExceptionStatus, 
      ExceptionName, IsShipAgain, PeihuoStatus, PeihuoNo, PeihuoTime, ShipStatus, OutWarehouseTime, 
      OutWeight, PackageNo, IsAssignLogistics, AssignLogistics, ShipLogistics, IsFaraway, 
      LogisticsNo, CreateTime, UpdateTime, Hid, PlatformExpress, ShipAddress, ShipCountry, 
      ShipWarehousesJson, MatchWarehouseCount, order_system, OriginalSku, HasPeihuoSku, 
      NoPeihuoSku, HasShipSku, NoShipSku)
    values
    (#{id,jdbcType=BIGINT}, #{ordernoplatform,jdbcType=VARCHAR}, #{ordernosystem,jdbcType=VARCHAR}, 
      #{ordersource,jdbcType=VARCHAR}, #{shipwarehouse,jdbcType=VARCHAR}, #{orderexceptionstatus,jdbcType=VARCHAR}, 
      #{exceptionname,jdbcType=VARCHAR}, #{isshipagain,jdbcType=INTEGER}, #{peihuostatus,jdbcType=VARCHAR}, 
      #{peihuono,jdbcType=VARCHAR}, #{peihuotime,jdbcType=TIMESTAMP}, #{shipstatus,jdbcType=VARCHAR},
      #{outwarehousetime,jdbcType=TIMESTAMP}, #{outweight,jdbcType=DECIMAL}, #{packageno,jdbcType=VARCHAR},
      #{isassignlogistics,jdbcType=INTEGER}, #{assignlogistics,jdbcType=VARCHAR}, #{shiplogistics,jdbcType=VARCHAR}, 
      #{isfaraway,jdbcType=INTEGER}, #{logisticsno,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},
      #{updatetime,jdbcType=TIMESTAMP}, #{hid,jdbcType=BIGINT}, #{platformexpress,jdbcType=VARCHAR},
      #{shipaddress,jdbcType=VARCHAR}, #{shipcountry,jdbcType=VARCHAR}, #{shipwarehousesjson,jdbcType=VARCHAR}, 
      #{matchwarehousecount,jdbcType=INTEGER}, #{orderSystem,jdbcType=VARCHAR}, #{originalsku,jdbcType=LONGVARCHAR}, 
      #{haspeihuosku,jdbcType=LONGVARCHAR}, #{nopeihuosku,jdbcType=LONGVARCHAR}, #{hasshipsku,jdbcType=LONGVARCHAR}, 
      #{noshipsku,jdbcType=LONGVARCHAR})
    on duplicate key update 
    Id = #{id,jdbcType=BIGINT}, 
    OrderNoPlatform = #{ordernoplatform,jdbcType=VARCHAR}, 
    OrderNoSystem = #{ordernosystem,jdbcType=VARCHAR}, 
    OrderSource = #{ordersource,jdbcType=VARCHAR}, 
    ShipWarehouse = #{shipwarehouse,jdbcType=VARCHAR}, 
    OrderExceptionStatus = #{orderexceptionstatus,jdbcType=VARCHAR}, 
    ExceptionName = #{exceptionname,jdbcType=VARCHAR}, 
    IsShipAgain = #{isshipagain,jdbcType=INTEGER}, 
    PeihuoStatus = #{peihuostatus,jdbcType=VARCHAR}, 
    PeihuoNo = #{peihuono,jdbcType=VARCHAR}, 
    PeihuoTime = #{peihuotime,jdbcType=TIMESTAMP},
    ShipStatus = #{shipstatus,jdbcType=VARCHAR}, 
    OutWarehouseTime = #{outwarehousetime,jdbcType=TIMESTAMP},
    OutWeight = #{outweight,jdbcType=DECIMAL}, 
    PackageNo = #{packageno,jdbcType=VARCHAR}, 
    IsAssignLogistics = #{isassignlogistics,jdbcType=INTEGER}, 
    AssignLogistics = #{assignlogistics,jdbcType=VARCHAR}, 
    ShipLogistics = #{shiplogistics,jdbcType=VARCHAR}, 
    IsFaraway = #{isfaraway,jdbcType=INTEGER}, 
    LogisticsNo = #{logisticsno,jdbcType=VARCHAR}, 
    CreateTime = #{createtime,jdbcType=TIMESTAMP},
    UpdateTime = #{updatetime,jdbcType=TIMESTAMP},
    Hid = #{hid,jdbcType=BIGINT}, 
    PlatformExpress = #{platformexpress,jdbcType=VARCHAR}, 
    ShipAddress = #{shipaddress,jdbcType=VARCHAR}, 
    ShipCountry = #{shipcountry,jdbcType=VARCHAR}, 
    ShipWarehousesJson = #{shipwarehousesjson,jdbcType=VARCHAR}, 
    MatchWarehouseCount = #{matchwarehousecount,jdbcType=INTEGER}, 
    order_system = #{orderSystem,jdbcType=VARCHAR}, 
    OriginalSku = #{originalsku,jdbcType=LONGVARCHAR}, 
    HasPeihuoSku = #{haspeihuosku,jdbcType=LONGVARCHAR}, 
    NoPeihuoSku = #{nopeihuosku,jdbcType=LONGVARCHAR}, 
    HasShipSku = #{hasshipsku,jdbcType=LONGVARCHAR}, 
    NoShipSku = #{noshipsku,jdbcType=LONGVARCHAR}
  </insert>
  <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.TOrderShippingExample" 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 t_order_shipping
    <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.TOrderShippingExample" 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 t_order_shipping
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
</mapper>