<?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.DcBaseLogisticsMapper">
  <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcBaseLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="wms_id" jdbcType="INTEGER" property="wmsId" />
    <result column="company_code" jdbcType="VARCHAR" property="companyCode" />
    <result column="company_name" jdbcType="VARCHAR" property="companyName" />
    <result column="bill_code" jdbcType="VARCHAR" property="billCode" />
    <result column="tracking_no" jdbcType="VARCHAR" property="trackingNo" />
    <result column="merchant_output_weight_kg" jdbcType="DECIMAL" property="merchantOutputWeightKg" />
    <result column="merchant_shipment_cost_cny" jdbcType="DECIMAL" property="merchantShipmentCostCny" />
    <result column="merchant_reconciliation_time" jdbcType="TIMESTAMP" property="merchantReconciliationTime" />
    <result column="reconciliation_type" jdbcType="VARCHAR" property="reconciliationType" />
    <result column="info_id" jdbcType="VARCHAR" property="infoId" />
    <result column="output_weight_kg" jdbcType="DECIMAL" property="outputWeightKg" />
    <result column="bailun_shipment_cost_cny" jdbcType="DECIMAL" property="bailunShipmentCostCny" />
    <result column="shipment_time" jdbcType="TIMESTAMP" property="shipmentTime" />
    <result column="diff_state_type" jdbcType="VARCHAR" property="diffStateType" />
    <result column="merchant_output_weight_kg_original" jdbcType="DECIMAL" property="merchantOutputWeightKgOriginal" />
    <result column="merchant_shipment_cost_sny_original" jdbcType="DECIMAL" property="merchantShipmentCostSnyOriginal" />
    <result column="cost_diff_decimal" jdbcType="DECIMAL" property="costDiffDecimal" />
    <result column="weight_diff_decimal" jdbcType="DECIMAL" property="weightDiffDecimal" />
    <result column="line_name" jdbcType="VARCHAR" property="lineName" />
    <result column="fee_code" jdbcType="VARCHAR" property="feeCode" />
    <result column="remark" jdbcType="VARCHAR" property="remark" />
    <result column="generate_bill_status" jdbcType="VARCHAR" property="generateBillStatus" />
    <result column="fee_product_type" jdbcType="VARCHAR" property="feeProductType" />
    <result column="last_modification_time" jdbcType="TIMESTAMP" property="lastModificationTime" />
    <result column="gmt_create_time" jdbcType="TIMESTAMP" property="gmtCreateTime" />
    <result column="gmt_modify_time" jdbcType="TIMESTAMP" property="gmtModifyTime" />
  </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, wms_id, company_code, company_name, bill_code, tracking_no, merchant_output_weight_kg, 
    merchant_shipment_cost_cny, merchant_reconciliation_time, reconciliation_type, info_id, 
    output_weight_kg, bailun_shipment_cost_cny, shipment_time, diff_state_type, merchant_output_weight_kg_original, 
    merchant_shipment_cost_sny_original, cost_diff_decimal, weight_diff_decimal, line_name, 
    fee_code, remark, generate_bill_status, fee_product_type, last_modification_time, 
    gmt_create_time, gmt_modify_time
  </sql>
  <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseLogisticsExample" 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_logistics
    <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_logistics
    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_logistics
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcBaseLogisticsExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_base_logistics
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.bailuntec.domain.entity.DcBaseLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_logistics (id, wms_id, company_code, 
      company_name, bill_code, tracking_no, 
      merchant_output_weight_kg, merchant_shipment_cost_cny, 
      merchant_reconciliation_time, reconciliation_type, 
      info_id, output_weight_kg, bailun_shipment_cost_cny, 
      shipment_time, diff_state_type, merchant_output_weight_kg_original, 
      merchant_shipment_cost_sny_original, cost_diff_decimal, 
      weight_diff_decimal, line_name, fee_code, 
      remark, generate_bill_status, fee_product_type, 
      last_modification_time, gmt_create_time, 
      gmt_modify_time)
    values (#{id,jdbcType=INTEGER}, #{wmsId,jdbcType=INTEGER}, #{companyCode,jdbcType=VARCHAR}, 
      #{companyName,jdbcType=VARCHAR}, #{billCode,jdbcType=VARCHAR}, #{trackingNo,jdbcType=VARCHAR}, 
      #{merchantOutputWeightKg,jdbcType=DECIMAL}, #{merchantShipmentCostCny,jdbcType=DECIMAL}, 
      #{merchantReconciliationTime,jdbcType=TIMESTAMP}, #{reconciliationType,jdbcType=VARCHAR}, 
      #{infoId,jdbcType=VARCHAR}, #{outputWeightKg,jdbcType=DECIMAL}, #{bailunShipmentCostCny,jdbcType=DECIMAL}, 
      #{shipmentTime,jdbcType=TIMESTAMP}, #{diffStateType,jdbcType=VARCHAR}, #{merchantOutputWeightKgOriginal,jdbcType=DECIMAL}, 
      #{merchantShipmentCostSnyOriginal,jdbcType=DECIMAL}, #{costDiffDecimal,jdbcType=DECIMAL}, 
      #{weightDiffDecimal,jdbcType=DECIMAL}, #{lineName,jdbcType=VARCHAR}, #{feeCode,jdbcType=VARCHAR}, 
      #{remark,jdbcType=VARCHAR}, #{generateBillStatus,jdbcType=VARCHAR}, #{feeProductType,jdbcType=VARCHAR}, 
      #{lastModificationTime,jdbcType=TIMESTAMP}, #{gmtCreateTime,jdbcType=TIMESTAMP}, 
      #{gmtModifyTime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_logistics
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="wmsId != null">
        wms_id,
      </if>
      <if test="companyCode != null">
        company_code,
      </if>
      <if test="companyName != null">
        company_name,
      </if>
      <if test="billCode != null">
        bill_code,
      </if>
      <if test="trackingNo != null">
        tracking_no,
      </if>
      <if test="merchantOutputWeightKg != null">
        merchant_output_weight_kg,
      </if>
      <if test="merchantShipmentCostCny != null">
        merchant_shipment_cost_cny,
      </if>
      <if test="merchantReconciliationTime != null">
        merchant_reconciliation_time,
      </if>
      <if test="reconciliationType != null">
        reconciliation_type,
      </if>
      <if test="infoId != null">
        info_id,
      </if>
      <if test="outputWeightKg != null">
        output_weight_kg,
      </if>
      <if test="bailunShipmentCostCny != null">
        bailun_shipment_cost_cny,
      </if>
      <if test="shipmentTime != null">
        shipment_time,
      </if>
      <if test="diffStateType != null">
        diff_state_type,
      </if>
      <if test="merchantOutputWeightKgOriginal != null">
        merchant_output_weight_kg_original,
      </if>
      <if test="merchantShipmentCostSnyOriginal != null">
        merchant_shipment_cost_sny_original,
      </if>
      <if test="costDiffDecimal != null">
        cost_diff_decimal,
      </if>
      <if test="weightDiffDecimal != null">
        weight_diff_decimal,
      </if>
      <if test="lineName != null">
        line_name,
      </if>
      <if test="feeCode != null">
        fee_code,
      </if>
      <if test="remark != null">
        remark,
      </if>
      <if test="generateBillStatus != null">
        generate_bill_status,
      </if>
      <if test="feeProductType != null">
        fee_product_type,
      </if>
      <if test="lastModificationTime != null">
        last_modification_time,
      </if>
      <if test="gmtCreateTime != null">
        gmt_create_time,
      </if>
      <if test="gmtModifyTime != null">
        gmt_modify_time,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="wmsId != null">
        #{wmsId,jdbcType=INTEGER},
      </if>
      <if test="companyCode != null">
        #{companyCode,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="billCode != null">
        #{billCode,jdbcType=VARCHAR},
      </if>
      <if test="trackingNo != null">
        #{trackingNo,jdbcType=VARCHAR},
      </if>
      <if test="merchantOutputWeightKg != null">
        #{merchantOutputWeightKg,jdbcType=DECIMAL},
      </if>
      <if test="merchantShipmentCostCny != null">
        #{merchantShipmentCostCny,jdbcType=DECIMAL},
      </if>
      <if test="merchantReconciliationTime != null">
        #{merchantReconciliationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="reconciliationType != null">
        #{reconciliationType,jdbcType=VARCHAR},
      </if>
      <if test="infoId != null">
        #{infoId,jdbcType=VARCHAR},
      </if>
      <if test="outputWeightKg != null">
        #{outputWeightKg,jdbcType=DECIMAL},
      </if>
      <if test="bailunShipmentCostCny != null">
        #{bailunShipmentCostCny,jdbcType=DECIMAL},
      </if>
      <if test="shipmentTime != null">
        #{shipmentTime,jdbcType=TIMESTAMP},
      </if>
      <if test="diffStateType != null">
        #{diffStateType,jdbcType=VARCHAR},
      </if>
      <if test="merchantOutputWeightKgOriginal != null">
        #{merchantOutputWeightKgOriginal,jdbcType=DECIMAL},
      </if>
      <if test="merchantShipmentCostSnyOriginal != null">
        #{merchantShipmentCostSnyOriginal,jdbcType=DECIMAL},
      </if>
      <if test="costDiffDecimal != null">
        #{costDiffDecimal,jdbcType=DECIMAL},
      </if>
      <if test="weightDiffDecimal != null">
        #{weightDiffDecimal,jdbcType=DECIMAL},
      </if>
      <if test="lineName != null">
        #{lineName,jdbcType=VARCHAR},
      </if>
      <if test="feeCode != null">
        #{feeCode,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="generateBillStatus != null">
        #{generateBillStatus,jdbcType=VARCHAR},
      </if>
      <if test="feeProductType != null">
        #{feeProductType,jdbcType=VARCHAR},
      </if>
      <if test="lastModificationTime != null">
        #{lastModificationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtCreateTime != null">
        #{gmtCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModifyTime != null">
        #{gmtModifyTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseLogisticsExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from dc_base_logistics
    <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_logistics
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.wmsId != null">
        wms_id = #{record.wmsId,jdbcType=INTEGER},
      </if>
      <if test="record.companyCode != null">
        company_code = #{record.companyCode,jdbcType=VARCHAR},
      </if>
      <if test="record.companyName != null">
        company_name = #{record.companyName,jdbcType=VARCHAR},
      </if>
      <if test="record.billCode != null">
        bill_code = #{record.billCode,jdbcType=VARCHAR},
      </if>
      <if test="record.trackingNo != null">
        tracking_no = #{record.trackingNo,jdbcType=VARCHAR},
      </if>
      <if test="record.merchantOutputWeightKg != null">
        merchant_output_weight_kg = #{record.merchantOutputWeightKg,jdbcType=DECIMAL},
      </if>
      <if test="record.merchantShipmentCostCny != null">
        merchant_shipment_cost_cny = #{record.merchantShipmentCostCny,jdbcType=DECIMAL},
      </if>
      <if test="record.merchantReconciliationTime != null">
        merchant_reconciliation_time = #{record.merchantReconciliationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.reconciliationType != null">
        reconciliation_type = #{record.reconciliationType,jdbcType=VARCHAR},
      </if>
      <if test="record.infoId != null">
        info_id = #{record.infoId,jdbcType=VARCHAR},
      </if>
      <if test="record.outputWeightKg != null">
        output_weight_kg = #{record.outputWeightKg,jdbcType=DECIMAL},
      </if>
      <if test="record.bailunShipmentCostCny != null">
        bailun_shipment_cost_cny = #{record.bailunShipmentCostCny,jdbcType=DECIMAL},
      </if>
      <if test="record.shipmentTime != null">
        shipment_time = #{record.shipmentTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.diffStateType != null">
        diff_state_type = #{record.diffStateType,jdbcType=VARCHAR},
      </if>
      <if test="record.merchantOutputWeightKgOriginal != null">
        merchant_output_weight_kg_original = #{record.merchantOutputWeightKgOriginal,jdbcType=DECIMAL},
      </if>
      <if test="record.merchantShipmentCostSnyOriginal != null">
        merchant_shipment_cost_sny_original = #{record.merchantShipmentCostSnyOriginal,jdbcType=DECIMAL},
      </if>
      <if test="record.costDiffDecimal != null">
        cost_diff_decimal = #{record.costDiffDecimal,jdbcType=DECIMAL},
      </if>
      <if test="record.weightDiffDecimal != null">
        weight_diff_decimal = #{record.weightDiffDecimal,jdbcType=DECIMAL},
      </if>
      <if test="record.lineName != null">
        line_name = #{record.lineName,jdbcType=VARCHAR},
      </if>
      <if test="record.feeCode != null">
        fee_code = #{record.feeCode,jdbcType=VARCHAR},
      </if>
      <if test="record.remark != null">
        remark = #{record.remark,jdbcType=VARCHAR},
      </if>
      <if test="record.generateBillStatus != null">
        generate_bill_status = #{record.generateBillStatus,jdbcType=VARCHAR},
      </if>
      <if test="record.feeProductType != null">
        fee_product_type = #{record.feeProductType,jdbcType=VARCHAR},
      </if>
      <if test="record.lastModificationTime != null">
        last_modification_time = #{record.lastModificationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.gmtCreateTime != null">
        gmt_create_time = #{record.gmtCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.gmtModifyTime != null">
        gmt_modify_time = #{record.gmtModifyTime,jdbcType=TIMESTAMP},
      </if>
    </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_logistics
    set id = #{record.id,jdbcType=INTEGER},
      wms_id = #{record.wmsId,jdbcType=INTEGER},
      company_code = #{record.companyCode,jdbcType=VARCHAR},
      company_name = #{record.companyName,jdbcType=VARCHAR},
      bill_code = #{record.billCode,jdbcType=VARCHAR},
      tracking_no = #{record.trackingNo,jdbcType=VARCHAR},
      merchant_output_weight_kg = #{record.merchantOutputWeightKg,jdbcType=DECIMAL},
      merchant_shipment_cost_cny = #{record.merchantShipmentCostCny,jdbcType=DECIMAL},
      merchant_reconciliation_time = #{record.merchantReconciliationTime,jdbcType=TIMESTAMP},
      reconciliation_type = #{record.reconciliationType,jdbcType=VARCHAR},
      info_id = #{record.infoId,jdbcType=VARCHAR},
      output_weight_kg = #{record.outputWeightKg,jdbcType=DECIMAL},
      bailun_shipment_cost_cny = #{record.bailunShipmentCostCny,jdbcType=DECIMAL},
      shipment_time = #{record.shipmentTime,jdbcType=TIMESTAMP},
      diff_state_type = #{record.diffStateType,jdbcType=VARCHAR},
      merchant_output_weight_kg_original = #{record.merchantOutputWeightKgOriginal,jdbcType=DECIMAL},
      merchant_shipment_cost_sny_original = #{record.merchantShipmentCostSnyOriginal,jdbcType=DECIMAL},
      cost_diff_decimal = #{record.costDiffDecimal,jdbcType=DECIMAL},
      weight_diff_decimal = #{record.weightDiffDecimal,jdbcType=DECIMAL},
      line_name = #{record.lineName,jdbcType=VARCHAR},
      fee_code = #{record.feeCode,jdbcType=VARCHAR},
      remark = #{record.remark,jdbcType=VARCHAR},
      generate_bill_status = #{record.generateBillStatus,jdbcType=VARCHAR},
      fee_product_type = #{record.feeProductType,jdbcType=VARCHAR},
      last_modification_time = #{record.lastModificationTime,jdbcType=TIMESTAMP},
      gmt_create_time = #{record.gmtCreateTime,jdbcType=TIMESTAMP},
      gmt_modify_time = #{record.gmtModifyTime,jdbcType=TIMESTAMP}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcBaseLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_logistics
    <set>
      <if test="wmsId != null">
        wms_id = #{wmsId,jdbcType=INTEGER},
      </if>
      <if test="companyCode != null">
        company_code = #{companyCode,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        company_name = #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="billCode != null">
        bill_code = #{billCode,jdbcType=VARCHAR},
      </if>
      <if test="trackingNo != null">
        tracking_no = #{trackingNo,jdbcType=VARCHAR},
      </if>
      <if test="merchantOutputWeightKg != null">
        merchant_output_weight_kg = #{merchantOutputWeightKg,jdbcType=DECIMAL},
      </if>
      <if test="merchantShipmentCostCny != null">
        merchant_shipment_cost_cny = #{merchantShipmentCostCny,jdbcType=DECIMAL},
      </if>
      <if test="merchantReconciliationTime != null">
        merchant_reconciliation_time = #{merchantReconciliationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="reconciliationType != null">
        reconciliation_type = #{reconciliationType,jdbcType=VARCHAR},
      </if>
      <if test="infoId != null">
        info_id = #{infoId,jdbcType=VARCHAR},
      </if>
      <if test="outputWeightKg != null">
        output_weight_kg = #{outputWeightKg,jdbcType=DECIMAL},
      </if>
      <if test="bailunShipmentCostCny != null">
        bailun_shipment_cost_cny = #{bailunShipmentCostCny,jdbcType=DECIMAL},
      </if>
      <if test="shipmentTime != null">
        shipment_time = #{shipmentTime,jdbcType=TIMESTAMP},
      </if>
      <if test="diffStateType != null">
        diff_state_type = #{diffStateType,jdbcType=VARCHAR},
      </if>
      <if test="merchantOutputWeightKgOriginal != null">
        merchant_output_weight_kg_original = #{merchantOutputWeightKgOriginal,jdbcType=DECIMAL},
      </if>
      <if test="merchantShipmentCostSnyOriginal != null">
        merchant_shipment_cost_sny_original = #{merchantShipmentCostSnyOriginal,jdbcType=DECIMAL},
      </if>
      <if test="costDiffDecimal != null">
        cost_diff_decimal = #{costDiffDecimal,jdbcType=DECIMAL},
      </if>
      <if test="weightDiffDecimal != null">
        weight_diff_decimal = #{weightDiffDecimal,jdbcType=DECIMAL},
      </if>
      <if test="lineName != null">
        line_name = #{lineName,jdbcType=VARCHAR},
      </if>
      <if test="feeCode != null">
        fee_code = #{feeCode,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="generateBillStatus != null">
        generate_bill_status = #{generateBillStatus,jdbcType=VARCHAR},
      </if>
      <if test="feeProductType != null">
        fee_product_type = #{feeProductType,jdbcType=VARCHAR},
      </if>
      <if test="lastModificationTime != null">
        last_modification_time = #{lastModificationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtCreateTime != null">
        gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModifyTime != null">
        gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.bailuntec.domain.entity.DcBaseLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_logistics
    set wms_id = #{wmsId,jdbcType=INTEGER},
      company_code = #{companyCode,jdbcType=VARCHAR},
      company_name = #{companyName,jdbcType=VARCHAR},
      bill_code = #{billCode,jdbcType=VARCHAR},
      tracking_no = #{trackingNo,jdbcType=VARCHAR},
      merchant_output_weight_kg = #{merchantOutputWeightKg,jdbcType=DECIMAL},
      merchant_shipment_cost_cny = #{merchantShipmentCostCny,jdbcType=DECIMAL},
      merchant_reconciliation_time = #{merchantReconciliationTime,jdbcType=TIMESTAMP},
      reconciliation_type = #{reconciliationType,jdbcType=VARCHAR},
      info_id = #{infoId,jdbcType=VARCHAR},
      output_weight_kg = #{outputWeightKg,jdbcType=DECIMAL},
      bailun_shipment_cost_cny = #{bailunShipmentCostCny,jdbcType=DECIMAL},
      shipment_time = #{shipmentTime,jdbcType=TIMESTAMP},
      diff_state_type = #{diffStateType,jdbcType=VARCHAR},
      merchant_output_weight_kg_original = #{merchantOutputWeightKgOriginal,jdbcType=DECIMAL},
      merchant_shipment_cost_sny_original = #{merchantShipmentCostSnyOriginal,jdbcType=DECIMAL},
      cost_diff_decimal = #{costDiffDecimal,jdbcType=DECIMAL},
      weight_diff_decimal = #{weightDiffDecimal,jdbcType=DECIMAL},
      line_name = #{lineName,jdbcType=VARCHAR},
      fee_code = #{feeCode,jdbcType=VARCHAR},
      remark = #{remark,jdbcType=VARCHAR},
      generate_bill_status = #{generateBillStatus,jdbcType=VARCHAR},
      fee_product_type = #{feeProductType,jdbcType=VARCHAR},
      last_modification_time = #{lastModificationTime,jdbcType=TIMESTAMP},
      gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
      gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseLogistics">
    <!--
      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_logistics
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="wmsId != null">
        wms_id,
      </if>
      <if test="companyCode != null">
        company_code,
      </if>
      <if test="companyName != null">
        company_name,
      </if>
      <if test="billCode != null">
        bill_code,
      </if>
      <if test="trackingNo != null">
        tracking_no,
      </if>
      <if test="merchantOutputWeightKg != null">
        merchant_output_weight_kg,
      </if>
      <if test="merchantShipmentCostCny != null">
        merchant_shipment_cost_cny,
      </if>
      <if test="merchantReconciliationTime != null">
        merchant_reconciliation_time,
      </if>
      <if test="reconciliationType != null">
        reconciliation_type,
      </if>
      <if test="infoId != null">
        info_id,
      </if>
      <if test="outputWeightKg != null">
        output_weight_kg,
      </if>
      <if test="bailunShipmentCostCny != null">
        bailun_shipment_cost_cny,
      </if>
      <if test="shipmentTime != null">
        shipment_time,
      </if>
      <if test="diffStateType != null">
        diff_state_type,
      </if>
      <if test="merchantOutputWeightKgOriginal != null">
        merchant_output_weight_kg_original,
      </if>
      <if test="merchantShipmentCostSnyOriginal != null">
        merchant_shipment_cost_sny_original,
      </if>
      <if test="costDiffDecimal != null">
        cost_diff_decimal,
      </if>
      <if test="weightDiffDecimal != null">
        weight_diff_decimal,
      </if>
      <if test="lineName != null">
        line_name,
      </if>
      <if test="feeCode != null">
        fee_code,
      </if>
      <if test="remark != null">
        remark,
      </if>
      <if test="generateBillStatus != null">
        generate_bill_status,
      </if>
      <if test="feeProductType != null">
        fee_product_type,
      </if>
      <if test="lastModificationTime != null">
        last_modification_time,
      </if>
      <if test="gmtCreateTime != null">
        gmt_create_time,
      </if>
      <if test="gmtModifyTime != null">
        gmt_modify_time,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="wmsId != null">
        #{wmsId,jdbcType=INTEGER},
      </if>
      <if test="companyCode != null">
        #{companyCode,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="billCode != null">
        #{billCode,jdbcType=VARCHAR},
      </if>
      <if test="trackingNo != null">
        #{trackingNo,jdbcType=VARCHAR},
      </if>
      <if test="merchantOutputWeightKg != null">
        #{merchantOutputWeightKg,jdbcType=DECIMAL},
      </if>
      <if test="merchantShipmentCostCny != null">
        #{merchantShipmentCostCny,jdbcType=DECIMAL},
      </if>
      <if test="merchantReconciliationTime != null">
        #{merchantReconciliationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="reconciliationType != null">
        #{reconciliationType,jdbcType=VARCHAR},
      </if>
      <if test="infoId != null">
        #{infoId,jdbcType=VARCHAR},
      </if>
      <if test="outputWeightKg != null">
        #{outputWeightKg,jdbcType=DECIMAL},
      </if>
      <if test="bailunShipmentCostCny != null">
        #{bailunShipmentCostCny,jdbcType=DECIMAL},
      </if>
      <if test="shipmentTime != null">
        #{shipmentTime,jdbcType=TIMESTAMP},
      </if>
      <if test="diffStateType != null">
        #{diffStateType,jdbcType=VARCHAR},
      </if>
      <if test="merchantOutputWeightKgOriginal != null">
        #{merchantOutputWeightKgOriginal,jdbcType=DECIMAL},
      </if>
      <if test="merchantShipmentCostSnyOriginal != null">
        #{merchantShipmentCostSnyOriginal,jdbcType=DECIMAL},
      </if>
      <if test="costDiffDecimal != null">
        #{costDiffDecimal,jdbcType=DECIMAL},
      </if>
      <if test="weightDiffDecimal != null">
        #{weightDiffDecimal,jdbcType=DECIMAL},
      </if>
      <if test="lineName != null">
        #{lineName,jdbcType=VARCHAR},
      </if>
      <if test="feeCode != null">
        #{feeCode,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="generateBillStatus != null">
        #{generateBillStatus,jdbcType=VARCHAR},
      </if>
      <if test="feeProductType != null">
        #{feeProductType,jdbcType=VARCHAR},
      </if>
      <if test="lastModificationTime != null">
        #{lastModificationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtCreateTime != null">
        #{gmtCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModifyTime != null">
        #{gmtModifyTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
        id = #{id,jdbcType=INTEGER},
      </if>
      <if test="wmsId != null">
        wms_id = #{wmsId,jdbcType=INTEGER},
      </if>
      <if test="companyCode != null">
        company_code = #{companyCode,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        company_name = #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="billCode != null">
        bill_code = #{billCode,jdbcType=VARCHAR},
      </if>
      <if test="trackingNo != null">
        tracking_no = #{trackingNo,jdbcType=VARCHAR},
      </if>
      <if test="merchantOutputWeightKg != null">
        merchant_output_weight_kg = #{merchantOutputWeightKg,jdbcType=DECIMAL},
      </if>
      <if test="merchantShipmentCostCny != null">
        merchant_shipment_cost_cny = #{merchantShipmentCostCny,jdbcType=DECIMAL},
      </if>
      <if test="merchantReconciliationTime != null">
        merchant_reconciliation_time = #{merchantReconciliationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="reconciliationType != null">
        reconciliation_type = #{reconciliationType,jdbcType=VARCHAR},
      </if>
      <if test="infoId != null">
        info_id = #{infoId,jdbcType=VARCHAR},
      </if>
      <if test="outputWeightKg != null">
        output_weight_kg = #{outputWeightKg,jdbcType=DECIMAL},
      </if>
      <if test="bailunShipmentCostCny != null">
        bailun_shipment_cost_cny = #{bailunShipmentCostCny,jdbcType=DECIMAL},
      </if>
      <if test="shipmentTime != null">
        shipment_time = #{shipmentTime,jdbcType=TIMESTAMP},
      </if>
      <if test="diffStateType != null">
        diff_state_type = #{diffStateType,jdbcType=VARCHAR},
      </if>
      <if test="merchantOutputWeightKgOriginal != null">
        merchant_output_weight_kg_original = #{merchantOutputWeightKgOriginal,jdbcType=DECIMAL},
      </if>
      <if test="merchantShipmentCostSnyOriginal != null">
        merchant_shipment_cost_sny_original = #{merchantShipmentCostSnyOriginal,jdbcType=DECIMAL},
      </if>
      <if test="costDiffDecimal != null">
        cost_diff_decimal = #{costDiffDecimal,jdbcType=DECIMAL},
      </if>
      <if test="weightDiffDecimal != null">
        weight_diff_decimal = #{weightDiffDecimal,jdbcType=DECIMAL},
      </if>
      <if test="lineName != null">
        line_name = #{lineName,jdbcType=VARCHAR},
      </if>
      <if test="feeCode != null">
        fee_code = #{feeCode,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="generateBillStatus != null">
        generate_bill_status = #{generateBillStatus,jdbcType=VARCHAR},
      </if>
      <if test="feeProductType != null">
        fee_product_type = #{feeProductType,jdbcType=VARCHAR},
      </if>
      <if test="lastModificationTime != null">
        last_modification_time = #{lastModificationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtCreateTime != null">
        gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModifyTime != null">
        gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseLogistics">
    <!--
      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_logistics
    (id, wms_id, company_code, company_name, bill_code, tracking_no, merchant_output_weight_kg, 
      merchant_shipment_cost_cny, merchant_reconciliation_time, reconciliation_type, 
      info_id, output_weight_kg, bailun_shipment_cost_cny, shipment_time, diff_state_type, 
      merchant_output_weight_kg_original, merchant_shipment_cost_sny_original, cost_diff_decimal, 
      weight_diff_decimal, line_name, fee_code, remark, generate_bill_status, fee_product_type, 
      last_modification_time, gmt_create_time, gmt_modify_time)
    values
    (#{id,jdbcType=INTEGER}, #{wmsId,jdbcType=INTEGER}, #{companyCode,jdbcType=VARCHAR}, 
      #{companyName,jdbcType=VARCHAR}, #{billCode,jdbcType=VARCHAR}, #{trackingNo,jdbcType=VARCHAR}, 
      #{merchantOutputWeightKg,jdbcType=DECIMAL}, #{merchantShipmentCostCny,jdbcType=DECIMAL}, 
      #{merchantReconciliationTime,jdbcType=TIMESTAMP}, #{reconciliationType,jdbcType=VARCHAR}, 
      #{infoId,jdbcType=VARCHAR}, #{outputWeightKg,jdbcType=DECIMAL}, #{bailunShipmentCostCny,jdbcType=DECIMAL}, 
      #{shipmentTime,jdbcType=TIMESTAMP}, #{diffStateType,jdbcType=VARCHAR}, #{merchantOutputWeightKgOriginal,jdbcType=DECIMAL}, 
      #{merchantShipmentCostSnyOriginal,jdbcType=DECIMAL}, #{costDiffDecimal,jdbcType=DECIMAL}, 
      #{weightDiffDecimal,jdbcType=DECIMAL}, #{lineName,jdbcType=VARCHAR}, #{feeCode,jdbcType=VARCHAR}, 
      #{remark,jdbcType=VARCHAR}, #{generateBillStatus,jdbcType=VARCHAR}, #{feeProductType,jdbcType=VARCHAR}, 
      #{lastModificationTime,jdbcType=TIMESTAMP}, #{gmtCreateTime,jdbcType=TIMESTAMP}, 
      #{gmtModifyTime,jdbcType=TIMESTAMP})
    on duplicate key update 
    id = #{id,jdbcType=INTEGER}, 
    wms_id = #{wmsId,jdbcType=INTEGER}, 
    company_code = #{companyCode,jdbcType=VARCHAR}, 
    company_name = #{companyName,jdbcType=VARCHAR}, 
    bill_code = #{billCode,jdbcType=VARCHAR}, 
    tracking_no = #{trackingNo,jdbcType=VARCHAR}, 
    merchant_output_weight_kg = #{merchantOutputWeightKg,jdbcType=DECIMAL}, 
    merchant_shipment_cost_cny = #{merchantShipmentCostCny,jdbcType=DECIMAL}, 
    merchant_reconciliation_time = #{merchantReconciliationTime,jdbcType=TIMESTAMP}, 
    reconciliation_type = #{reconciliationType,jdbcType=VARCHAR}, 
    info_id = #{infoId,jdbcType=VARCHAR}, 
    output_weight_kg = #{outputWeightKg,jdbcType=DECIMAL}, 
    bailun_shipment_cost_cny = #{bailunShipmentCostCny,jdbcType=DECIMAL}, 
    shipment_time = #{shipmentTime,jdbcType=TIMESTAMP}, 
    diff_state_type = #{diffStateType,jdbcType=VARCHAR}, 
    merchant_output_weight_kg_original = #{merchantOutputWeightKgOriginal,jdbcType=DECIMAL}, 
    merchant_shipment_cost_sny_original = #{merchantShipmentCostSnyOriginal,jdbcType=DECIMAL}, 
    cost_diff_decimal = #{costDiffDecimal,jdbcType=DECIMAL}, 
    weight_diff_decimal = #{weightDiffDecimal,jdbcType=DECIMAL}, 
    line_name = #{lineName,jdbcType=VARCHAR}, 
    fee_code = #{feeCode,jdbcType=VARCHAR}, 
    remark = #{remark,jdbcType=VARCHAR}, 
    generate_bill_status = #{generateBillStatus,jdbcType=VARCHAR}, 
    fee_product_type = #{feeProductType,jdbcType=VARCHAR}, 
    last_modification_time = #{lastModificationTime,jdbcType=TIMESTAMP}, 
    gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP}, 
    gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP}
  </insert>
  <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseLogisticsExample" 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_logistics
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
</mapper>