<?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.DcBaseFinanceCashierdetailMapper">
  <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcBaseFinanceCashierdetail">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="cw_id" jdbcType="INTEGER" property="cwId" />
    <result column="data_type" jdbcType="INTEGER" property="dataType" />
    <result column="from_account" jdbcType="VARCHAR" property="fromAccount" />
    <result column="from_currency" jdbcType="INTEGER" property="fromCurrency" />
    <result column="exchange_currency" jdbcType="VARCHAR" property="exchangeCurrency" />
    <result column="exchange_money" jdbcType="DECIMAL" property="exchangeMoney" />
    <result column="to_account" jdbcType="VARCHAR" property="toAccount" />
    <result column="to_currency" jdbcType="INTEGER" property="toCurrency" />
    <result column="money" jdbcType="DECIMAL" property="money" />
    <result column="service_charge" jdbcType="DECIMAL" property="serviceCharge" />
    <result column="daozhang_time" jdbcType="TIMESTAMP" property="daozhangTime" />
    <result column="daozhang_money" jdbcType="DECIMAL" property="daozhangMoney" />
    <result column="confirm_name" jdbcType="VARCHAR" property="confirmName" />
    <result column="status" jdbcType="INTEGER" property="status" />
    <result column="create_name" jdbcType="VARCHAR" property="createName" />
    <result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
    <result column="update_name" jdbcType="VARCHAR" property="updateName" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="remark" jdbcType="VARCHAR" property="remark" />
    <result column="from_currency_name" jdbcType="VARCHAR" property="fromCurrencyName" />
    <result column="to_currency_name" jdbcType="VARCHAR" property="toCurrencyName" />
    <result column="collection_platform" jdbcType="INTEGER" property="collectionPlatform" />
    <result column="bank" jdbcType="VARCHAR" property="bank" />
    <result column="salesl_platform" jdbcType="INTEGER" property="saleslPlatform" />
    <result column="sales_account" jdbcType="VARCHAR" property="salesAccount" />
    <result column="other_to_cny_exchange_rate" jdbcType="DECIMAL" property="otherToCnyExchangeRate" />
    <result column="other_to_cny_money" jdbcType="DECIMAL" property="otherToCnyMoney" />
    <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, cw_id, data_type, from_account, from_currency, exchange_currency, exchange_money, 
    to_account, to_currency, money, service_charge, daozhang_time, daozhang_money, confirm_name, 
    status, create_name, createTime, update_name, update_time, remark, from_currency_name, 
    to_currency_name, collection_platform, bank, salesl_platform, sales_account, other_to_cny_exchange_rate, 
    other_to_cny_money, gmt_create_time, gmt_modify_time
  </sql>
  <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceCashierdetailExample" 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_cashierdetail
    <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_cashierdetail
    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_cashierdetail
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceCashierdetailExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_base_finance_cashierdetail
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.bailuntec.domain.entity.DcBaseFinanceCashierdetail">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_finance_cashierdetail (id, cw_id, data_type, 
      from_account, from_currency, exchange_currency, 
      exchange_money, to_account, to_currency, 
      money, service_charge, daozhang_time, 
      daozhang_money, confirm_name, status, 
      create_name, createTime, update_name, 
      update_time, remark, from_currency_name, 
      to_currency_name, collection_platform, bank, 
      salesl_platform, sales_account, other_to_cny_exchange_rate, 
      other_to_cny_money, gmt_create_time, gmt_modify_time
      )
    values (#{id,jdbcType=INTEGER}, #{cwId,jdbcType=INTEGER}, #{dataType,jdbcType=INTEGER}, 
      #{fromAccount,jdbcType=VARCHAR}, #{fromCurrency,jdbcType=INTEGER}, #{exchangeCurrency,jdbcType=VARCHAR}, 
      #{exchangeMoney,jdbcType=DECIMAL}, #{toAccount,jdbcType=VARCHAR}, #{toCurrency,jdbcType=INTEGER}, 
      #{money,jdbcType=DECIMAL}, #{serviceCharge,jdbcType=DECIMAL}, #{daozhangTime,jdbcType=TIMESTAMP}, 
      #{daozhangMoney,jdbcType=DECIMAL}, #{confirmName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, 
      #{createName,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{updateName,jdbcType=VARCHAR}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{fromCurrencyName,jdbcType=VARCHAR}, 
      #{toCurrencyName,jdbcType=VARCHAR}, #{collectionPlatform,jdbcType=INTEGER}, #{bank,jdbcType=VARCHAR}, 
      #{saleslPlatform,jdbcType=INTEGER}, #{salesAccount,jdbcType=VARCHAR}, #{otherToCnyExchangeRate,jdbcType=DECIMAL}, 
      #{otherToCnyMoney,jdbcType=DECIMAL}, #{gmtCreateTime,jdbcType=TIMESTAMP}, #{gmtModifyTime,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseFinanceCashierdetail">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_finance_cashierdetail
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="cwId != null">
        cw_id,
      </if>
      <if test="dataType != null">
        data_type,
      </if>
      <if test="fromAccount != null">
        from_account,
      </if>
      <if test="fromCurrency != null">
        from_currency,
      </if>
      <if test="exchangeCurrency != null">
        exchange_currency,
      </if>
      <if test="exchangeMoney != null">
        exchange_money,
      </if>
      <if test="toAccount != null">
        to_account,
      </if>
      <if test="toCurrency != null">
        to_currency,
      </if>
      <if test="money != null">
        money,
      </if>
      <if test="serviceCharge != null">
        service_charge,
      </if>
      <if test="daozhangTime != null">
        daozhang_time,
      </if>
      <if test="daozhangMoney != null">
        daozhang_money,
      </if>
      <if test="confirmName != null">
        confirm_name,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="createName != null">
        create_name,
      </if>
      <if test="createtime != null">
        createTime,
      </if>
      <if test="updateName != null">
        update_name,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="remark != null">
        remark,
      </if>
      <if test="fromCurrencyName != null">
        from_currency_name,
      </if>
      <if test="toCurrencyName != null">
        to_currency_name,
      </if>
      <if test="collectionPlatform != null">
        collection_platform,
      </if>
      <if test="bank != null">
        bank,
      </if>
      <if test="saleslPlatform != null">
        salesl_platform,
      </if>
      <if test="salesAccount != null">
        sales_account,
      </if>
      <if test="otherToCnyExchangeRate != null">
        other_to_cny_exchange_rate,
      </if>
      <if test="otherToCnyMoney != null">
        other_to_cny_money,
      </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="cwId != null">
        #{cwId,jdbcType=INTEGER},
      </if>
      <if test="dataType != null">
        #{dataType,jdbcType=INTEGER},
      </if>
      <if test="fromAccount != null">
        #{fromAccount,jdbcType=VARCHAR},
      </if>
      <if test="fromCurrency != null">
        #{fromCurrency,jdbcType=INTEGER},
      </if>
      <if test="exchangeCurrency != null">
        #{exchangeCurrency,jdbcType=VARCHAR},
      </if>
      <if test="exchangeMoney != null">
        #{exchangeMoney,jdbcType=DECIMAL},
      </if>
      <if test="toAccount != null">
        #{toAccount,jdbcType=VARCHAR},
      </if>
      <if test="toCurrency != null">
        #{toCurrency,jdbcType=INTEGER},
      </if>
      <if test="money != null">
        #{money,jdbcType=DECIMAL},
      </if>
      <if test="serviceCharge != null">
        #{serviceCharge,jdbcType=DECIMAL},
      </if>
      <if test="daozhangTime != null">
        #{daozhangTime,jdbcType=TIMESTAMP},
      </if>
      <if test="daozhangMoney != null">
        #{daozhangMoney,jdbcType=DECIMAL},
      </if>
      <if test="confirmName != null">
        #{confirmName,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=INTEGER},
      </if>
      <if test="createName != null">
        #{createName,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateName != null">
        #{updateName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="fromCurrencyName != null">
        #{fromCurrencyName,jdbcType=VARCHAR},
      </if>
      <if test="toCurrencyName != null">
        #{toCurrencyName,jdbcType=VARCHAR},
      </if>
      <if test="collectionPlatform != null">
        #{collectionPlatform,jdbcType=INTEGER},
      </if>
      <if test="bank != null">
        #{bank,jdbcType=VARCHAR},
      </if>
      <if test="saleslPlatform != null">
        #{saleslPlatform,jdbcType=INTEGER},
      </if>
      <if test="salesAccount != null">
        #{salesAccount,jdbcType=VARCHAR},
      </if>
      <if test="otherToCnyExchangeRate != null">
        #{otherToCnyExchangeRate,jdbcType=DECIMAL},
      </if>
      <if test="otherToCnyMoney != null">
        #{otherToCnyMoney,jdbcType=DECIMAL},
      </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.DcBaseFinanceCashierdetailExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from dc_base_finance_cashierdetail
    <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_cashierdetail
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.cwId != null">
        cw_id = #{record.cwId,jdbcType=INTEGER},
      </if>
      <if test="record.dataType != null">
        data_type = #{record.dataType,jdbcType=INTEGER},
      </if>
      <if test="record.fromAccount != null">
        from_account = #{record.fromAccount,jdbcType=VARCHAR},
      </if>
      <if test="record.fromCurrency != null">
        from_currency = #{record.fromCurrency,jdbcType=INTEGER},
      </if>
      <if test="record.exchangeCurrency != null">
        exchange_currency = #{record.exchangeCurrency,jdbcType=VARCHAR},
      </if>
      <if test="record.exchangeMoney != null">
        exchange_money = #{record.exchangeMoney,jdbcType=DECIMAL},
      </if>
      <if test="record.toAccount != null">
        to_account = #{record.toAccount,jdbcType=VARCHAR},
      </if>
      <if test="record.toCurrency != null">
        to_currency = #{record.toCurrency,jdbcType=INTEGER},
      </if>
      <if test="record.money != null">
        money = #{record.money,jdbcType=DECIMAL},
      </if>
      <if test="record.serviceCharge != null">
        service_charge = #{record.serviceCharge,jdbcType=DECIMAL},
      </if>
      <if test="record.daozhangTime != null">
        daozhang_time = #{record.daozhangTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.daozhangMoney != null">
        daozhang_money = #{record.daozhangMoney,jdbcType=DECIMAL},
      </if>
      <if test="record.confirmName != null">
        confirm_name = #{record.confirmName,jdbcType=VARCHAR},
      </if>
      <if test="record.status != null">
        status = #{record.status,jdbcType=INTEGER},
      </if>
      <if test="record.createName != null">
        create_name = #{record.createName,jdbcType=VARCHAR},
      </if>
      <if test="record.createtime != null">
        createTime = #{record.createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateName != null">
        update_name = #{record.updateName,jdbcType=VARCHAR},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.remark != null">
        remark = #{record.remark,jdbcType=VARCHAR},
      </if>
      <if test="record.fromCurrencyName != null">
        from_currency_name = #{record.fromCurrencyName,jdbcType=VARCHAR},
      </if>
      <if test="record.toCurrencyName != null">
        to_currency_name = #{record.toCurrencyName,jdbcType=VARCHAR},
      </if>
      <if test="record.collectionPlatform != null">
        collection_platform = #{record.collectionPlatform,jdbcType=INTEGER},
      </if>
      <if test="record.bank != null">
        bank = #{record.bank,jdbcType=VARCHAR},
      </if>
      <if test="record.saleslPlatform != null">
        salesl_platform = #{record.saleslPlatform,jdbcType=INTEGER},
      </if>
      <if test="record.salesAccount != null">
        sales_account = #{record.salesAccount,jdbcType=VARCHAR},
      </if>
      <if test="record.otherToCnyExchangeRate != null">
        other_to_cny_exchange_rate = #{record.otherToCnyExchangeRate,jdbcType=DECIMAL},
      </if>
      <if test="record.otherToCnyMoney != null">
        other_to_cny_money = #{record.otherToCnyMoney,jdbcType=DECIMAL},
      </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_cashierdetail
    set id = #{record.id,jdbcType=INTEGER},
      cw_id = #{record.cwId,jdbcType=INTEGER},
      data_type = #{record.dataType,jdbcType=INTEGER},
      from_account = #{record.fromAccount,jdbcType=VARCHAR},
      from_currency = #{record.fromCurrency,jdbcType=INTEGER},
      exchange_currency = #{record.exchangeCurrency,jdbcType=VARCHAR},
      exchange_money = #{record.exchangeMoney,jdbcType=DECIMAL},
      to_account = #{record.toAccount,jdbcType=VARCHAR},
      to_currency = #{record.toCurrency,jdbcType=INTEGER},
      money = #{record.money,jdbcType=DECIMAL},
      service_charge = #{record.serviceCharge,jdbcType=DECIMAL},
      daozhang_time = #{record.daozhangTime,jdbcType=TIMESTAMP},
      daozhang_money = #{record.daozhangMoney,jdbcType=DECIMAL},
      confirm_name = #{record.confirmName,jdbcType=VARCHAR},
      status = #{record.status,jdbcType=INTEGER},
      create_name = #{record.createName,jdbcType=VARCHAR},
      createTime = #{record.createtime,jdbcType=TIMESTAMP},
      update_name = #{record.updateName,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      remark = #{record.remark,jdbcType=VARCHAR},
      from_currency_name = #{record.fromCurrencyName,jdbcType=VARCHAR},
      to_currency_name = #{record.toCurrencyName,jdbcType=VARCHAR},
      collection_platform = #{record.collectionPlatform,jdbcType=INTEGER},
      bank = #{record.bank,jdbcType=VARCHAR},
      salesl_platform = #{record.saleslPlatform,jdbcType=INTEGER},
      sales_account = #{record.salesAccount,jdbcType=VARCHAR},
      other_to_cny_exchange_rate = #{record.otherToCnyExchangeRate,jdbcType=DECIMAL},
      other_to_cny_money = #{record.otherToCnyMoney,jdbcType=DECIMAL},
      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.DcBaseFinanceCashierdetail">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_cashierdetail
    <set>
      <if test="cwId != null">
        cw_id = #{cwId,jdbcType=INTEGER},
      </if>
      <if test="dataType != null">
        data_type = #{dataType,jdbcType=INTEGER},
      </if>
      <if test="fromAccount != null">
        from_account = #{fromAccount,jdbcType=VARCHAR},
      </if>
      <if test="fromCurrency != null">
        from_currency = #{fromCurrency,jdbcType=INTEGER},
      </if>
      <if test="exchangeCurrency != null">
        exchange_currency = #{exchangeCurrency,jdbcType=VARCHAR},
      </if>
      <if test="exchangeMoney != null">
        exchange_money = #{exchangeMoney,jdbcType=DECIMAL},
      </if>
      <if test="toAccount != null">
        to_account = #{toAccount,jdbcType=VARCHAR},
      </if>
      <if test="toCurrency != null">
        to_currency = #{toCurrency,jdbcType=INTEGER},
      </if>
      <if test="money != null">
        money = #{money,jdbcType=DECIMAL},
      </if>
      <if test="serviceCharge != null">
        service_charge = #{serviceCharge,jdbcType=DECIMAL},
      </if>
      <if test="daozhangTime != null">
        daozhang_time = #{daozhangTime,jdbcType=TIMESTAMP},
      </if>
      <if test="daozhangMoney != null">
        daozhang_money = #{daozhangMoney,jdbcType=DECIMAL},
      </if>
      <if test="confirmName != null">
        confirm_name = #{confirmName,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        status = #{status,jdbcType=INTEGER},
      </if>
      <if test="createName != null">
        create_name = #{createName,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        createTime = #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateName != null">
        update_name = #{updateName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null">
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="fromCurrencyName != null">
        from_currency_name = #{fromCurrencyName,jdbcType=VARCHAR},
      </if>
      <if test="toCurrencyName != null">
        to_currency_name = #{toCurrencyName,jdbcType=VARCHAR},
      </if>
      <if test="collectionPlatform != null">
        collection_platform = #{collectionPlatform,jdbcType=INTEGER},
      </if>
      <if test="bank != null">
        bank = #{bank,jdbcType=VARCHAR},
      </if>
      <if test="saleslPlatform != null">
        salesl_platform = #{saleslPlatform,jdbcType=INTEGER},
      </if>
      <if test="salesAccount != null">
        sales_account = #{salesAccount,jdbcType=VARCHAR},
      </if>
      <if test="otherToCnyExchangeRate != null">
        other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL},
      </if>
      <if test="otherToCnyMoney != null">
        other_to_cny_money = #{otherToCnyMoney,jdbcType=DECIMAL},
      </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.DcBaseFinanceCashierdetail">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_finance_cashierdetail
    set cw_id = #{cwId,jdbcType=INTEGER},
      data_type = #{dataType,jdbcType=INTEGER},
      from_account = #{fromAccount,jdbcType=VARCHAR},
      from_currency = #{fromCurrency,jdbcType=INTEGER},
      exchange_currency = #{exchangeCurrency,jdbcType=VARCHAR},
      exchange_money = #{exchangeMoney,jdbcType=DECIMAL},
      to_account = #{toAccount,jdbcType=VARCHAR},
      to_currency = #{toCurrency,jdbcType=INTEGER},
      money = #{money,jdbcType=DECIMAL},
      service_charge = #{serviceCharge,jdbcType=DECIMAL},
      daozhang_time = #{daozhangTime,jdbcType=TIMESTAMP},
      daozhang_money = #{daozhangMoney,jdbcType=DECIMAL},
      confirm_name = #{confirmName,jdbcType=VARCHAR},
      status = #{status,jdbcType=INTEGER},
      create_name = #{createName,jdbcType=VARCHAR},
      createTime = #{createtime,jdbcType=TIMESTAMP},
      update_name = #{updateName,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      remark = #{remark,jdbcType=VARCHAR},
      from_currency_name = #{fromCurrencyName,jdbcType=VARCHAR},
      to_currency_name = #{toCurrencyName,jdbcType=VARCHAR},
      collection_platform = #{collectionPlatform,jdbcType=INTEGER},
      bank = #{bank,jdbcType=VARCHAR},
      salesl_platform = #{saleslPlatform,jdbcType=INTEGER},
      sales_account = #{salesAccount,jdbcType=VARCHAR},
      other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL},
      other_to_cny_money = #{otherToCnyMoney,jdbcType=DECIMAL},
      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.DcBaseFinanceCashierdetail">
    <!--
      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_cashierdetail
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="cwId != null">
        cw_id,
      </if>
      <if test="dataType != null">
        data_type,
      </if>
      <if test="fromAccount != null">
        from_account,
      </if>
      <if test="fromCurrency != null">
        from_currency,
      </if>
      <if test="exchangeCurrency != null">
        exchange_currency,
      </if>
      <if test="exchangeMoney != null">
        exchange_money,
      </if>
      <if test="toAccount != null">
        to_account,
      </if>
      <if test="toCurrency != null">
        to_currency,
      </if>
      <if test="money != null">
        money,
      </if>
      <if test="serviceCharge != null">
        service_charge,
      </if>
      <if test="daozhangTime != null">
        daozhang_time,
      </if>
      <if test="daozhangMoney != null">
        daozhang_money,
      </if>
      <if test="confirmName != null">
        confirm_name,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="createName != null">
        create_name,
      </if>
      <if test="createtime != null">
        createTime,
      </if>
      <if test="updateName != null">
        update_name,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="remark != null">
        remark,
      </if>
      <if test="fromCurrencyName != null">
        from_currency_name,
      </if>
      <if test="toCurrencyName != null">
        to_currency_name,
      </if>
      <if test="collectionPlatform != null">
        collection_platform,
      </if>
      <if test="bank != null">
        bank,
      </if>
      <if test="saleslPlatform != null">
        salesl_platform,
      </if>
      <if test="salesAccount != null">
        sales_account,
      </if>
      <if test="otherToCnyExchangeRate != null">
        other_to_cny_exchange_rate,
      </if>
      <if test="otherToCnyMoney != null">
        other_to_cny_money,
      </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="cwId != null">
        #{cwId,jdbcType=INTEGER},
      </if>
      <if test="dataType != null">
        #{dataType,jdbcType=INTEGER},
      </if>
      <if test="fromAccount != null">
        #{fromAccount,jdbcType=VARCHAR},
      </if>
      <if test="fromCurrency != null">
        #{fromCurrency,jdbcType=INTEGER},
      </if>
      <if test="exchangeCurrency != null">
        #{exchangeCurrency,jdbcType=VARCHAR},
      </if>
      <if test="exchangeMoney != null">
        #{exchangeMoney,jdbcType=DECIMAL},
      </if>
      <if test="toAccount != null">
        #{toAccount,jdbcType=VARCHAR},
      </if>
      <if test="toCurrency != null">
        #{toCurrency,jdbcType=INTEGER},
      </if>
      <if test="money != null">
        #{money,jdbcType=DECIMAL},
      </if>
      <if test="serviceCharge != null">
        #{serviceCharge,jdbcType=DECIMAL},
      </if>
      <if test="daozhangTime != null">
        #{daozhangTime,jdbcType=TIMESTAMP},
      </if>
      <if test="daozhangMoney != null">
        #{daozhangMoney,jdbcType=DECIMAL},
      </if>
      <if test="confirmName != null">
        #{confirmName,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=INTEGER},
      </if>
      <if test="createName != null">
        #{createName,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateName != null">
        #{updateName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="fromCurrencyName != null">
        #{fromCurrencyName,jdbcType=VARCHAR},
      </if>
      <if test="toCurrencyName != null">
        #{toCurrencyName,jdbcType=VARCHAR},
      </if>
      <if test="collectionPlatform != null">
        #{collectionPlatform,jdbcType=INTEGER},
      </if>
      <if test="bank != null">
        #{bank,jdbcType=VARCHAR},
      </if>
      <if test="saleslPlatform != null">
        #{saleslPlatform,jdbcType=INTEGER},
      </if>
      <if test="salesAccount != null">
        #{salesAccount,jdbcType=VARCHAR},
      </if>
      <if test="otherToCnyExchangeRate != null">
        #{otherToCnyExchangeRate,jdbcType=DECIMAL},
      </if>
      <if test="otherToCnyMoney != null">
        #{otherToCnyMoney,jdbcType=DECIMAL},
      </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="cwId != null">
        cw_id = #{cwId,jdbcType=INTEGER},
      </if>
      <if test="dataType != null">
        data_type = #{dataType,jdbcType=INTEGER},
      </if>
      <if test="fromAccount != null">
        from_account = #{fromAccount,jdbcType=VARCHAR},
      </if>
      <if test="fromCurrency != null">
        from_currency = #{fromCurrency,jdbcType=INTEGER},
      </if>
      <if test="exchangeCurrency != null">
        exchange_currency = #{exchangeCurrency,jdbcType=VARCHAR},
      </if>
      <if test="exchangeMoney != null">
        exchange_money = #{exchangeMoney,jdbcType=DECIMAL},
      </if>
      <if test="toAccount != null">
        to_account = #{toAccount,jdbcType=VARCHAR},
      </if>
      <if test="toCurrency != null">
        to_currency = #{toCurrency,jdbcType=INTEGER},
      </if>
      <if test="money != null">
        money = #{money,jdbcType=DECIMAL},
      </if>
      <if test="serviceCharge != null">
        service_charge = #{serviceCharge,jdbcType=DECIMAL},
      </if>
      <if test="daozhangTime != null">
        daozhang_time = #{daozhangTime,jdbcType=TIMESTAMP},
      </if>
      <if test="daozhangMoney != null">
        daozhang_money = #{daozhangMoney,jdbcType=DECIMAL},
      </if>
      <if test="confirmName != null">
        confirm_name = #{confirmName,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        status = #{status,jdbcType=INTEGER},
      </if>
      <if test="createName != null">
        create_name = #{createName,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        createTime = #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateName != null">
        update_name = #{updateName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null">
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="fromCurrencyName != null">
        from_currency_name = #{fromCurrencyName,jdbcType=VARCHAR},
      </if>
      <if test="toCurrencyName != null">
        to_currency_name = #{toCurrencyName,jdbcType=VARCHAR},
      </if>
      <if test="collectionPlatform != null">
        collection_platform = #{collectionPlatform,jdbcType=INTEGER},
      </if>
      <if test="bank != null">
        bank = #{bank,jdbcType=VARCHAR},
      </if>
      <if test="saleslPlatform != null">
        salesl_platform = #{saleslPlatform,jdbcType=INTEGER},
      </if>
      <if test="salesAccount != null">
        sales_account = #{salesAccount,jdbcType=VARCHAR},
      </if>
      <if test="otherToCnyExchangeRate != null">
        other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL},
      </if>
      <if test="otherToCnyMoney != null">
        other_to_cny_money = #{otherToCnyMoney,jdbcType=DECIMAL},
      </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.DcBaseFinanceCashierdetail">
    <!--
      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_cashierdetail
    (id, cw_id, data_type, from_account, from_currency, exchange_currency, exchange_money, 
      to_account, to_currency, money, service_charge, daozhang_time, daozhang_money, 
      confirm_name, status, create_name, createTime, update_name, update_time, remark, 
      from_currency_name, to_currency_name, collection_platform, bank, salesl_platform, 
      sales_account, other_to_cny_exchange_rate, other_to_cny_money, gmt_create_time, 
      gmt_modify_time)
    values
    (#{id,jdbcType=INTEGER}, #{cwId,jdbcType=INTEGER}, #{dataType,jdbcType=INTEGER}, 
      #{fromAccount,jdbcType=VARCHAR}, #{fromCurrency,jdbcType=INTEGER}, #{exchangeCurrency,jdbcType=VARCHAR}, 
      #{exchangeMoney,jdbcType=DECIMAL}, #{toAccount,jdbcType=VARCHAR}, #{toCurrency,jdbcType=INTEGER}, 
      #{money,jdbcType=DECIMAL}, #{serviceCharge,jdbcType=DECIMAL}, #{daozhangTime,jdbcType=TIMESTAMP}, 
      #{daozhangMoney,jdbcType=DECIMAL}, #{confirmName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, 
      #{createName,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{updateName,jdbcType=VARCHAR}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{fromCurrencyName,jdbcType=VARCHAR}, 
      #{toCurrencyName,jdbcType=VARCHAR}, #{collectionPlatform,jdbcType=INTEGER}, #{bank,jdbcType=VARCHAR}, 
      #{saleslPlatform,jdbcType=INTEGER}, #{salesAccount,jdbcType=VARCHAR}, #{otherToCnyExchangeRate,jdbcType=DECIMAL}, 
      #{otherToCnyMoney,jdbcType=DECIMAL}, #{gmtCreateTime,jdbcType=TIMESTAMP}, #{gmtModifyTime,jdbcType=TIMESTAMP}
      )
    on duplicate key update 
    id = #{id,jdbcType=INTEGER}, 
    cw_id = #{cwId,jdbcType=INTEGER}, 
    data_type = #{dataType,jdbcType=INTEGER}, 
    from_account = #{fromAccount,jdbcType=VARCHAR}, 
    from_currency = #{fromCurrency,jdbcType=INTEGER}, 
    exchange_currency = #{exchangeCurrency,jdbcType=VARCHAR}, 
    exchange_money = #{exchangeMoney,jdbcType=DECIMAL}, 
    to_account = #{toAccount,jdbcType=VARCHAR}, 
    to_currency = #{toCurrency,jdbcType=INTEGER}, 
    money = #{money,jdbcType=DECIMAL}, 
    service_charge = #{serviceCharge,jdbcType=DECIMAL}, 
    daozhang_time = #{daozhangTime,jdbcType=TIMESTAMP}, 
    daozhang_money = #{daozhangMoney,jdbcType=DECIMAL}, 
    confirm_name = #{confirmName,jdbcType=VARCHAR}, 
    status = #{status,jdbcType=INTEGER}, 
    create_name = #{createName,jdbcType=VARCHAR}, 
    createTime = #{createtime,jdbcType=TIMESTAMP}, 
    update_name = #{updateName,jdbcType=VARCHAR}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    remark = #{remark,jdbcType=VARCHAR}, 
    from_currency_name = #{fromCurrencyName,jdbcType=VARCHAR}, 
    to_currency_name = #{toCurrencyName,jdbcType=VARCHAR}, 
    collection_platform = #{collectionPlatform,jdbcType=INTEGER}, 
    bank = #{bank,jdbcType=VARCHAR}, 
    salesl_platform = #{saleslPlatform,jdbcType=INTEGER}, 
    sales_account = #{salesAccount,jdbcType=VARCHAR}, 
    other_to_cny_exchange_rate = #{otherToCnyExchangeRate,jdbcType=DECIMAL}, 
    other_to_cny_money = #{otherToCnyMoney,jdbcType=DECIMAL}, 
    gmt_create_time = #{gmtCreateTime,jdbcType=TIMESTAMP}, 
    gmt_modify_time = #{gmtModifyTime,jdbcType=TIMESTAMP}
  </insert>
  <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseFinanceCashierdetailExample" 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_cashierdetail
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
</mapper>