<?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.DcBaseFinanceManagecostMapper">
  <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcBaseFinanceManagecost">
    <!--
      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="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="INTEGER" 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_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, no, receive_unit, 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_time, gmt_modify_time
  </sql>
  <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceManagecostExample" 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_managecost
    <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_managecost
    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_managecost
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceManagecostExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_base_finance_managecost
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceManagecost">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_finance_managecost (id, no, receive_unit, 
      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_time, gmt_modify_time
      )
    values (#{id,jdbcType=INTEGER}, #{no,jdbcType=VARCHAR}, #{receiveUnit,jdbcType=VARCHAR}, 
      #{reason,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{manageCostType,jdbcType=INTEGER}, 
      #{departmentName,jdbcType=VARCHAR}, #{companyValue,jdbcType=INTEGER}, #{companyName,jdbcType=VARCHAR}, 
      #{feeSuperType,jdbcType=VARCHAR}, #{feeSubType,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, 
      #{currency,jdbcType=VARCHAR}, #{amountRmb,jdbcType=DECIMAL}, #{costId1,jdbcType=INTEGER}, 
      #{costId,jdbcType=INTEGER}, #{gmtCreateTime,jdbcType=TIMESTAMP}, #{gmtModifyTime,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceManagecost">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_finance_managecost
    <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="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="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="no != null">
        #{no,jdbcType=VARCHAR},
      </if>
      <if test="receiveUnit != null">
        #{receiveUnit,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=INTEGER},
      </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="gmtCreateTime != null">
        #{gmtCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="gmtModifyTime != null">
        #{gmtModifyTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceManagecostExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from dc_base_finance_managecost
    <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_managecost
    <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.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=INTEGER},
      </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.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_finance_managecost
    set id = #{record.id,jdbcType=INTEGER},
      no = #{record.no,jdbcType=VARCHAR},
      receive_unit = #{record.receiveUnit,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=INTEGER},
      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_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.DcBaseFinanceManagecost">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_managecost
    <set>
      <if test="no != null">
        no = #{no,jdbcType=VARCHAR},
      </if>
      <if test="receiveUnit != null">
        receive_unit = #{receiveUnit,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=INTEGER},
      </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="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.DcBaseFinanceManagecost">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_managecost
    set no = #{no,jdbcType=VARCHAR},
      receive_unit = #{receiveUnit,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=INTEGER},
      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_time = #{gmtCreateTime,jdbcType=TIMESTAMP},
      gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceManagecost">
    <!--
      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_managecost
    <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="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="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="no != null">
        #{no,jdbcType=VARCHAR},
      </if>
      <if test="receiveUnit != null">
        #{receiveUnit,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=INTEGER},
      </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="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="no != null">
        no = #{no,jdbcType=VARCHAR},
      </if>
      <if test="receiveUnit != null">
        receive_unit = #{receiveUnit,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=INTEGER},
      </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="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.DcBaseFinanceManagecost">
    <!--
      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_managecost
    (id, no, receive_unit, 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_time, gmt_modify_time)
    values
    (#{id,jdbcType=INTEGER}, #{no,jdbcType=VARCHAR}, #{receiveUnit,jdbcType=VARCHAR}, 
      #{reason,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{manageCostType,jdbcType=INTEGER}, 
      #{departmentName,jdbcType=VARCHAR}, #{companyValue,jdbcType=INTEGER}, #{companyName,jdbcType=VARCHAR}, 
      #{feeSuperType,jdbcType=VARCHAR}, #{feeSubType,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, 
      #{currency,jdbcType=VARCHAR}, #{amountRmb,jdbcType=DECIMAL}, #{costId1,jdbcType=INTEGER}, 
      #{costId,jdbcType=INTEGER}, #{gmtCreateTime,jdbcType=TIMESTAMP}, #{gmtModifyTime,jdbcType=TIMESTAMP}
      )
    on duplicate key update 
    id = #{id,jdbcType=INTEGER}, 
    no = #{no,jdbcType=VARCHAR}, 
    receive_unit = #{receiveUnit,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=INTEGER}, 
    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_time = #{gmtCreateTime,jdbcType=TIMESTAMP}, 
    gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP}
  </insert>
  <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceManagecostExample" 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_managecost
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
</mapper>