<?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.DcBaseFinanceLogisticsMapper">
  <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcBaseFinanceLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="no" jdbcType="VARCHAR" property="no" />
    <result column="receive_unit" jdbcType="VARCHAR" property="receiveUnit" />
    <result column="receive_bank" jdbcType="VARCHAR" property="receiveBank" />
    <result column="receive_card" jdbcType="VARCHAR" property="receiveCard" />
    <result column="receive_card_user" jdbcType="VARCHAR" property="receiveCardUser" />
    <result column="reason" jdbcType="VARCHAR" property="reason" />
    <result column="pay_time" jdbcType="TIMESTAMP" property="payTime" />
    <result column="manage_cost_type" jdbcType="INTEGER" property="manageCostType" />
    <result column="department_name" jdbcType="VARCHAR" property="departmentName" />
    <result column="company_value" jdbcType="VARCHAR" property="companyValue" />
    <result column="company_name" jdbcType="VARCHAR" property="companyName" />
    <result column="fee_super_type" jdbcType="VARCHAR" property="feeSuperType" />
    <result column="fee_sub_type" jdbcType="VARCHAR" property="feeSubType" />
    <result column="amount" jdbcType="DECIMAL" property="amount" />
    <result column="currency" jdbcType="VARCHAR" property="currency" />
    <result column="amount_rmb" jdbcType="DECIMAL" property="amountRmb" />
    <result column="cost_id1" jdbcType="INTEGER" property="costId1" />
    <result column="cost_id" jdbcType="INTEGER" property="costId" />
    <result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" />
    <result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
  </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, no, receive_unit, receive_bank, receive_card, receive_card_user, reason, pay_time, 
    manage_cost_type, department_name, company_value, company_name, fee_super_type, fee_sub_type, 
    amount, currency, amount_rmb, cost_id1, cost_id, gmt_create, gmt_modified
  </sql>
  <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceLogisticsExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from dc_base_finance_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_finance_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_finance_logistics
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceLogisticsExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_base_finance_logistics
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_finance_logistics (id, no, receive_unit, 
      receive_bank, receive_card, receive_card_user, 
      reason, pay_time, manage_cost_type, 
      department_name, company_value, company_name, 
      fee_super_type, fee_sub_type, amount, 
      currency, amount_rmb, cost_id1, 
      cost_id, gmt_create, gmt_modified
      )
    values (#{id,jdbcType=INTEGER}, #{no,jdbcType=VARCHAR}, #{receiveUnit,jdbcType=VARCHAR}, 
      #{receiveBank,jdbcType=VARCHAR}, #{receiveCard,jdbcType=VARCHAR}, #{receiveCardUser,jdbcType=VARCHAR}, 
      #{reason,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{manageCostType,jdbcType=INTEGER}, 
      #{departmentName,jdbcType=VARCHAR}, #{companyValue,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, 
      #{feeSuperType,jdbcType=VARCHAR}, #{feeSubType,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, 
      #{currency,jdbcType=VARCHAR}, #{amountRmb,jdbcType=DECIMAL}, #{costId1,jdbcType=INTEGER}, 
      #{costId,jdbcType=INTEGER}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_finance_logistics
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="no != null">
        no,
      </if>
      <if test="receiveUnit != null">
        receive_unit,
      </if>
      <if test="receiveBank != null">
        receive_bank,
      </if>
      <if test="receiveCard != null">
        receive_card,
      </if>
      <if test="receiveCardUser != null">
        receive_card_user,
      </if>
      <if test="reason != null">
        reason,
      </if>
      <if test="payTime != null">
        pay_time,
      </if>
      <if test="manageCostType != null">
        manage_cost_type,
      </if>
      <if test="departmentName != null">
        department_name,
      </if>
      <if test="companyValue != null">
        company_value,
      </if>
      <if test="companyName != null">
        company_name,
      </if>
      <if test="feeSuperType != null">
        fee_super_type,
      </if>
      <if test="feeSubType != null">
        fee_sub_type,
      </if>
      <if test="amount != null">
        amount,
      </if>
      <if test="currency != null">
        currency,
      </if>
      <if test="amountRmb != null">
        amount_rmb,
      </if>
      <if test="costId1 != null">
        cost_id1,
      </if>
      <if test="costId != null">
        cost_id,
      </if>
      <if test="gmtCreate != null">
        gmt_create,
      </if>
      <if test="gmtModified != null">
        gmt_modified,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="no != null">
        #{no,jdbcType=VARCHAR},
      </if>
      <if test="receiveUnit != null">
        #{receiveUnit,jdbcType=VARCHAR},
      </if>
      <if test="receiveBank != null">
        #{receiveBank,jdbcType=VARCHAR},
      </if>
      <if test="receiveCard != null">
        #{receiveCard,jdbcType=VARCHAR},
      </if>
      <if test="receiveCardUser != null">
        #{receiveCardUser,jdbcType=VARCHAR},
      </if>
      <if test="reason != null">
        #{reason,jdbcType=VARCHAR},
      </if>
      <if test="payTime != null">
        #{payTime,jdbcType=TIMESTAMP},
      </if>
      <if test="manageCostType != null">
        #{manageCostType,jdbcType=INTEGER},
      </if>
      <if test="departmentName != null">
        #{departmentName,jdbcType=VARCHAR},
      </if>
      <if test="companyValue != null">
        #{companyValue,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="feeSuperType != null">
        #{feeSuperType,jdbcType=VARCHAR},
      </if>
      <if test="feeSubType != null">
        #{feeSubType,jdbcType=VARCHAR},
      </if>
      <if test="amount != null">
        #{amount,jdbcType=DECIMAL},
      </if>
      <if test="currency != null">
        #{currency,jdbcType=VARCHAR},
      </if>
      <if test="amountRmb != null">
        #{amountRmb,jdbcType=DECIMAL},
      </if>
      <if test="costId1 != null">
        #{costId1,jdbcType=INTEGER},
      </if>
      <if test="costId != null">
        #{costId,jdbcType=INTEGER},
      </if>
      <if test="gmtCreate != null">
        #{gmtCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModified != null">
        #{gmtModified,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceLogisticsExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from dc_base_finance_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_finance_logistics
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.no != null">
        no = #{record.no,jdbcType=VARCHAR},
      </if>
      <if test="record.receiveUnit != null">
        receive_unit = #{record.receiveUnit,jdbcType=VARCHAR},
      </if>
      <if test="record.receiveBank != null">
        receive_bank = #{record.receiveBank,jdbcType=VARCHAR},
      </if>
      <if test="record.receiveCard != null">
        receive_card = #{record.receiveCard,jdbcType=VARCHAR},
      </if>
      <if test="record.receiveCardUser != null">
        receive_card_user = #{record.receiveCardUser,jdbcType=VARCHAR},
      </if>
      <if test="record.reason != null">
        reason = #{record.reason,jdbcType=VARCHAR},
      </if>
      <if test="record.payTime != null">
        pay_time = #{record.payTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.manageCostType != null">
        manage_cost_type = #{record.manageCostType,jdbcType=INTEGER},
      </if>
      <if test="record.departmentName != null">
        department_name = #{record.departmentName,jdbcType=VARCHAR},
      </if>
      <if test="record.companyValue != null">
        company_value = #{record.companyValue,jdbcType=VARCHAR},
      </if>
      <if test="record.companyName != null">
        company_name = #{record.companyName,jdbcType=VARCHAR},
      </if>
      <if test="record.feeSuperType != null">
        fee_super_type = #{record.feeSuperType,jdbcType=VARCHAR},
      </if>
      <if test="record.feeSubType != null">
        fee_sub_type = #{record.feeSubType,jdbcType=VARCHAR},
      </if>
      <if test="record.amount != null">
        amount = #{record.amount,jdbcType=DECIMAL},
      </if>
      <if test="record.currency != null">
        currency = #{record.currency,jdbcType=VARCHAR},
      </if>
      <if test="record.amountRmb != null">
        amount_rmb = #{record.amountRmb,jdbcType=DECIMAL},
      </if>
      <if test="record.costId1 != null">
        cost_id1 = #{record.costId1,jdbcType=INTEGER},
      </if>
      <if test="record.costId != null">
        cost_id = #{record.costId,jdbcType=INTEGER},
      </if>
      <if test="record.gmtCreate != null">
        gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.gmtModified != null">
        gmt_modified = #{record.gmtModified,jdbcType=TIMESTAMP},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_logistics
    set id = #{record.id,jdbcType=INTEGER},
      no = #{record.no,jdbcType=VARCHAR},
      receive_unit = #{record.receiveUnit,jdbcType=VARCHAR},
      receive_bank = #{record.receiveBank,jdbcType=VARCHAR},
      receive_card = #{record.receiveCard,jdbcType=VARCHAR},
      receive_card_user = #{record.receiveCardUser,jdbcType=VARCHAR},
      reason = #{record.reason,jdbcType=VARCHAR},
      pay_time = #{record.payTime,jdbcType=TIMESTAMP},
      manage_cost_type = #{record.manageCostType,jdbcType=INTEGER},
      department_name = #{record.departmentName,jdbcType=VARCHAR},
      company_value = #{record.companyValue,jdbcType=VARCHAR},
      company_name = #{record.companyName,jdbcType=VARCHAR},
      fee_super_type = #{record.feeSuperType,jdbcType=VARCHAR},
      fee_sub_type = #{record.feeSubType,jdbcType=VARCHAR},
      amount = #{record.amount,jdbcType=DECIMAL},
      currency = #{record.currency,jdbcType=VARCHAR},
      amount_rmb = #{record.amountRmb,jdbcType=DECIMAL},
      cost_id1 = #{record.costId1,jdbcType=INTEGER},
      cost_id = #{record.costId,jdbcType=INTEGER},
      gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP},
      gmt_modified = #{record.gmtModified,jdbcType=TIMESTAMP}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_logistics
    <set>
      <if test="no != null">
        no = #{no,jdbcType=VARCHAR},
      </if>
      <if test="receiveUnit != null">
        receive_unit = #{receiveUnit,jdbcType=VARCHAR},
      </if>
      <if test="receiveBank != null">
        receive_bank = #{receiveBank,jdbcType=VARCHAR},
      </if>
      <if test="receiveCard != null">
        receive_card = #{receiveCard,jdbcType=VARCHAR},
      </if>
      <if test="receiveCardUser != null">
        receive_card_user = #{receiveCardUser,jdbcType=VARCHAR},
      </if>
      <if test="reason != null">
        reason = #{reason,jdbcType=VARCHAR},
      </if>
      <if test="payTime != null">
        pay_time = #{payTime,jdbcType=TIMESTAMP},
      </if>
      <if test="manageCostType != null">
        manage_cost_type = #{manageCostType,jdbcType=INTEGER},
      </if>
      <if test="departmentName != null">
        department_name = #{departmentName,jdbcType=VARCHAR},
      </if>
      <if test="companyValue != null">
        company_value = #{companyValue,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        company_name = #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="feeSuperType != null">
        fee_super_type = #{feeSuperType,jdbcType=VARCHAR},
      </if>
      <if test="feeSubType != null">
        fee_sub_type = #{feeSubType,jdbcType=VARCHAR},
      </if>
      <if test="amount != null">
        amount = #{amount,jdbcType=DECIMAL},
      </if>
      <if test="currency != null">
        currency = #{currency,jdbcType=VARCHAR},
      </if>
      <if test="amountRmb != null">
        amount_rmb = #{amountRmb,jdbcType=DECIMAL},
      </if>
      <if test="costId1 != null">
        cost_id1 = #{costId1,jdbcType=INTEGER},
      </if>
      <if test="costId != null">
        cost_id = #{costId,jdbcType=INTEGER},
      </if>
      <if test="gmtCreate != null">
        gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModified != null">
        gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.bailuntec.domain.entity.DcBaseFinanceLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_logistics
    set no = #{no,jdbcType=VARCHAR},
      receive_unit = #{receiveUnit,jdbcType=VARCHAR},
      receive_bank = #{receiveBank,jdbcType=VARCHAR},
      receive_card = #{receiveCard,jdbcType=VARCHAR},
      receive_card_user = #{receiveCardUser,jdbcType=VARCHAR},
      reason = #{reason,jdbcType=VARCHAR},
      pay_time = #{payTime,jdbcType=TIMESTAMP},
      manage_cost_type = #{manageCostType,jdbcType=INTEGER},
      department_name = #{departmentName,jdbcType=VARCHAR},
      company_value = #{companyValue,jdbcType=VARCHAR},
      company_name = #{companyName,jdbcType=VARCHAR},
      fee_super_type = #{feeSuperType,jdbcType=VARCHAR},
      fee_sub_type = #{feeSubType,jdbcType=VARCHAR},
      amount = #{amount,jdbcType=DECIMAL},
      currency = #{currency,jdbcType=VARCHAR},
      amount_rmb = #{amountRmb,jdbcType=DECIMAL},
      cost_id1 = #{costId1,jdbcType=INTEGER},
      cost_id = #{costId,jdbcType=INTEGER},
      gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
      gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    insert into dc_base_finance_logistics
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="no != null">
        no,
      </if>
      <if test="receiveUnit != null">
        receive_unit,
      </if>
      <if test="receiveBank != null">
        receive_bank,
      </if>
      <if test="receiveCard != null">
        receive_card,
      </if>
      <if test="receiveCardUser != null">
        receive_card_user,
      </if>
      <if test="reason != null">
        reason,
      </if>
      <if test="payTime != null">
        pay_time,
      </if>
      <if test="manageCostType != null">
        manage_cost_type,
      </if>
      <if test="departmentName != null">
        department_name,
      </if>
      <if test="companyValue != null">
        company_value,
      </if>
      <if test="companyName != null">
        company_name,
      </if>
      <if test="feeSuperType != null">
        fee_super_type,
      </if>
      <if test="feeSubType != null">
        fee_sub_type,
      </if>
      <if test="amount != null">
        amount,
      </if>
      <if test="currency != null">
        currency,
      </if>
      <if test="amountRmb != null">
        amount_rmb,
      </if>
      <if test="costId1 != null">
        cost_id1,
      </if>
      <if test="costId != null">
        cost_id,
      </if>
      <if test="gmtCreate != null">
        gmt_create,
      </if>
      <if test="gmtModified != null">
        gmt_modified,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="no != null">
        #{no,jdbcType=VARCHAR},
      </if>
      <if test="receiveUnit != null">
        #{receiveUnit,jdbcType=VARCHAR},
      </if>
      <if test="receiveBank != null">
        #{receiveBank,jdbcType=VARCHAR},
      </if>
      <if test="receiveCard != null">
        #{receiveCard,jdbcType=VARCHAR},
      </if>
      <if test="receiveCardUser != null">
        #{receiveCardUser,jdbcType=VARCHAR},
      </if>
      <if test="reason != null">
        #{reason,jdbcType=VARCHAR},
      </if>
      <if test="payTime != null">
        #{payTime,jdbcType=TIMESTAMP},
      </if>
      <if test="manageCostType != null">
        #{manageCostType,jdbcType=INTEGER},
      </if>
      <if test="departmentName != null">
        #{departmentName,jdbcType=VARCHAR},
      </if>
      <if test="companyValue != null">
        #{companyValue,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="feeSuperType != null">
        #{feeSuperType,jdbcType=VARCHAR},
      </if>
      <if test="feeSubType != null">
        #{feeSubType,jdbcType=VARCHAR},
      </if>
      <if test="amount != null">
        #{amount,jdbcType=DECIMAL},
      </if>
      <if test="currency != null">
        #{currency,jdbcType=VARCHAR},
      </if>
      <if test="amountRmb != null">
        #{amountRmb,jdbcType=DECIMAL},
      </if>
      <if test="costId1 != null">
        #{costId1,jdbcType=INTEGER},
      </if>
      <if test="costId != null">
        #{costId,jdbcType=INTEGER},
      </if>
      <if test="gmtCreate != null">
        #{gmtCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModified != null">
        #{gmtModified,jdbcType=TIMESTAMP},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
        id = #{id,jdbcType=INTEGER},
      </if>
      <if test="no != null">
        no = #{no,jdbcType=VARCHAR},
      </if>
      <if test="receiveUnit != null">
        receive_unit = #{receiveUnit,jdbcType=VARCHAR},
      </if>
      <if test="receiveBank != null">
        receive_bank = #{receiveBank,jdbcType=VARCHAR},
      </if>
      <if test="receiveCard != null">
        receive_card = #{receiveCard,jdbcType=VARCHAR},
      </if>
      <if test="receiveCardUser != null">
        receive_card_user = #{receiveCardUser,jdbcType=VARCHAR},
      </if>
      <if test="reason != null">
        reason = #{reason,jdbcType=VARCHAR},
      </if>
      <if test="payTime != null">
        pay_time = #{payTime,jdbcType=TIMESTAMP},
      </if>
      <if test="manageCostType != null">
        manage_cost_type = #{manageCostType,jdbcType=INTEGER},
      </if>
      <if test="departmentName != null">
        department_name = #{departmentName,jdbcType=VARCHAR},
      </if>
      <if test="companyValue != null">
        company_value = #{companyValue,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        company_name = #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="feeSuperType != null">
        fee_super_type = #{feeSuperType,jdbcType=VARCHAR},
      </if>
      <if test="feeSubType != null">
        fee_sub_type = #{feeSubType,jdbcType=VARCHAR},
      </if>
      <if test="amount != null">
        amount = #{amount,jdbcType=DECIMAL},
      </if>
      <if test="currency != null">
        currency = #{currency,jdbcType=VARCHAR},
      </if>
      <if test="amountRmb != null">
        amount_rmb = #{amountRmb,jdbcType=DECIMAL},
      </if>
      <if test="costId1 != null">
        cost_id1 = #{costId1,jdbcType=INTEGER},
      </if>
      <if test="costId != null">
        cost_id = #{costId,jdbcType=INTEGER},
      </if>
      <if test="gmtCreate != null">
        gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModified != null">
        gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceLogistics">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    insert into dc_base_finance_logistics
    (id, no, receive_unit, receive_bank, receive_card, receive_card_user, reason, pay_time, 
      manage_cost_type, department_name, company_value, company_name, fee_super_type, 
      fee_sub_type, amount, currency, amount_rmb, cost_id1, cost_id, gmt_create, gmt_modified
      )
    values
    (#{id,jdbcType=INTEGER}, #{no,jdbcType=VARCHAR}, #{receiveUnit,jdbcType=VARCHAR}, 
      #{receiveBank,jdbcType=VARCHAR}, #{receiveCard,jdbcType=VARCHAR}, #{receiveCardUser,jdbcType=VARCHAR}, 
      #{reason,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{manageCostType,jdbcType=INTEGER}, 
      #{departmentName,jdbcType=VARCHAR}, #{companyValue,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, 
      #{feeSuperType,jdbcType=VARCHAR}, #{feeSubType,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, 
      #{currency,jdbcType=VARCHAR}, #{amountRmb,jdbcType=DECIMAL}, #{costId1,jdbcType=INTEGER}, 
      #{costId,jdbcType=INTEGER}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}
      )
    on duplicate key update 
    id = #{id,jdbcType=INTEGER}, 
    no = #{no,jdbcType=VARCHAR}, 
    receive_unit = #{receiveUnit,jdbcType=VARCHAR}, 
    receive_bank = #{receiveBank,jdbcType=VARCHAR}, 
    receive_card = #{receiveCard,jdbcType=VARCHAR}, 
    receive_card_user = #{receiveCardUser,jdbcType=VARCHAR}, 
    reason = #{reason,jdbcType=VARCHAR}, 
    pay_time = #{payTime,jdbcType=TIMESTAMP}, 
    manage_cost_type = #{manageCostType,jdbcType=INTEGER}, 
    department_name = #{departmentName,jdbcType=VARCHAR}, 
    company_value = #{companyValue,jdbcType=VARCHAR}, 
    company_name = #{companyName,jdbcType=VARCHAR}, 
    fee_super_type = #{feeSuperType,jdbcType=VARCHAR}, 
    fee_sub_type = #{feeSubType,jdbcType=VARCHAR}, 
    amount = #{amount,jdbcType=DECIMAL}, 
    currency = #{currency,jdbcType=VARCHAR}, 
    amount_rmb = #{amountRmb,jdbcType=DECIMAL}, 
    cost_id1 = #{costId1,jdbcType=INTEGER}, 
    cost_id = #{costId,jdbcType=INTEGER}, 
    gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, 
    gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
  </insert>
  <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceLogisticsExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    select
    <include refid="Base_Column_List" />
    from dc_base_finance_logistics
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
</mapper>