<?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.platform.dao.TransactionJournalMapper">
  <resultMap id="BaseResultMap" type="com.platform.pojo.TransactionJournal">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="trade_channel" jdbcType="VARCHAR" property="tradeChannel" />
    <result column="retcode" jdbcType="VARCHAR" property="retcode" />
    <result column="retmsg" jdbcType="VARCHAR" property="retmsg" />
    <result column="trade_mode" jdbcType="VARCHAR" property="tradeMode" />
    <result column="trade_state" jdbcType="VARCHAR" property="tradeState" />
    <result column="pay_info" jdbcType="VARCHAR" property="payInfo" />
    <result column="trans_channel" jdbcType="VARCHAR" property="transChannel" />
    <result column="partner" jdbcType="VARCHAR" property="partner" />
    <result column="subpartner" jdbcType="VARCHAR" property="subpartner" />
    <result column="out_trade_no" jdbcType="VARCHAR" property="outTradeNo" />
    <result column="transaction_id" jdbcType="VARCHAR" property="transactionId" />
    <result column="bank_type" jdbcType="VARCHAR" property="bankType" />
    <result column="bank_transno" jdbcType="VARCHAR" property="bankTransno" />
    <result column="total_fee" jdbcType="REAL" property="totalFee" />
    <result column="fee_type" jdbcType="VARCHAR" property="feeType" />
    <result column="notify_id" jdbcType="VARCHAR" property="notifyId" />
    <result column="time_end" jdbcType="VARCHAR" property="timeEnd" />
    <result column="transport_fee" jdbcType="REAL" property="transportFee" />
    <result column="product_fee" jdbcType="REAL" property="productFee" />
    <result column="discount" jdbcType="REAL" property="discount" />
    <result column="buyer_alias" jdbcType="VARCHAR" property="buyerAlias" />
    <result column="attach" jdbcType="VARCHAR" property="attach" />
    <result column="out_refund_no" jdbcType="VARCHAR" property="outRefundNo" />
    <result column="refund_id" jdbcType="VARCHAR" property="refundId" />
    <result column="refund_channel" jdbcType="VARCHAR" property="refundChannel" />
    <result column="refund_fee" jdbcType="VARCHAR" property="refundFee" />
    <result column="refund_status" jdbcType="VARCHAR" property="refundStatus" />
    <result column="refund_state" jdbcType="VARCHAR" property="refundState" />
    <result column="recv_user_id" jdbcType="VARCHAR" property="recvUserId" />
    <result column="reccv_user_name" jdbcType="VARCHAR" property="reccvUserName" />
    <result column="refund_type" jdbcType="VARCHAR" property="refundType" />
    <result column="clear_state" jdbcType="VARCHAR" property="clearState" />
    <result column="trade_type" jdbcType="VARCHAR" property="tradeType" />
    <result column="is_split" jdbcType="VARCHAR" property="isSplit" />
    <result column="plat_charge" jdbcType="VARCHAR" property="platCharge" />
    <result column="sub_plat_charge" jdbcType="VARCHAR" property="subPlatCharge" />
    <result column="note" jdbcType="VARCHAR" property="note" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbggenerated
      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 - @mbggenerated
      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 - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    id, trade_channel, retcode, retmsg, trade_mode, trade_state, pay_info, trans_channel, 
    partner, subpartner, out_trade_no, transaction_id, bank_type, bank_transno, total_fee, 
    fee_type, notify_id, time_end, transport_fee, product_fee, discount, buyer_alias, 
    attach, out_refund_no, refund_id, refund_channel, refund_fee, refund_status, refund_state, 
    recv_user_id, reccv_user_name, refund_type, clear_state, trade_type, is_split, plat_charge, 
    sub_plat_charge, note, create_time, update_time, delete_flag
  </sql>
  <select id="selectByExample" parameterType="com.platform.pojo.TransactionJournalExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from transaction_journal
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from transaction_journal
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from transaction_journal
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.platform.pojo.TransactionJournalExample">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from transaction_journal
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.platform.pojo.TransactionJournal">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into transaction_journal (id, trade_channel, retcode, 
      retmsg, trade_mode, trade_state, 
      pay_info, trans_channel, partner, 
      subpartner, out_trade_no, transaction_id, 
      bank_type, bank_transno, total_fee, 
      fee_type, notify_id, time_end, 
      transport_fee, product_fee, discount, 
      buyer_alias, attach, out_refund_no, 
      refund_id, refund_channel, refund_fee, 
      refund_status, refund_state, recv_user_id, 
      reccv_user_name, refund_type, clear_state, 
      trade_type, is_split, plat_charge, 
      sub_plat_charge, note, create_time, 
      update_time, delete_flag)
    values (#{id,jdbcType=INTEGER}, #{tradeChannel,jdbcType=VARCHAR}, #{retcode,jdbcType=VARCHAR}, 
      #{retmsg,jdbcType=VARCHAR}, #{tradeMode,jdbcType=VARCHAR}, #{tradeState,jdbcType=VARCHAR}, 
      #{payInfo,jdbcType=VARCHAR}, #{transChannel,jdbcType=VARCHAR}, #{partner,jdbcType=VARCHAR}, 
      #{subpartner,jdbcType=VARCHAR}, #{outTradeNo,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR}, 
      #{bankType,jdbcType=VARCHAR}, #{bankTransno,jdbcType=VARCHAR}, #{totalFee,jdbcType=REAL}, 
      #{feeType,jdbcType=VARCHAR}, #{notifyId,jdbcType=VARCHAR}, #{timeEnd,jdbcType=VARCHAR}, 
      #{transportFee,jdbcType=REAL}, #{productFee,jdbcType=REAL}, #{discount,jdbcType=REAL}, 
      #{buyerAlias,jdbcType=VARCHAR}, #{attach,jdbcType=VARCHAR}, #{outRefundNo,jdbcType=VARCHAR}, 
      #{refundId,jdbcType=VARCHAR}, #{refundChannel,jdbcType=VARCHAR}, #{refundFee,jdbcType=VARCHAR}, 
      #{refundStatus,jdbcType=VARCHAR}, #{refundState,jdbcType=VARCHAR}, #{recvUserId,jdbcType=VARCHAR}, 
      #{reccvUserName,jdbcType=VARCHAR}, #{refundType,jdbcType=VARCHAR}, #{clearState,jdbcType=VARCHAR}, 
      #{tradeType,jdbcType=VARCHAR}, #{isSplit,jdbcType=VARCHAR}, #{platCharge,jdbcType=VARCHAR}, 
      #{subPlatCharge,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{deleteFlag,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" keyProperty="id" parameterType="com.platform.pojo.TransactionJournal" useGeneratedKeys="true">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into transaction_journal
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="tradeChannel != null">
        trade_channel,
      </if>
      <if test="retcode != null">
        retcode,
      </if>
      <if test="retmsg != null">
        retmsg,
      </if>
      <if test="tradeMode != null">
        trade_mode,
      </if>
      <if test="tradeState != null">
        trade_state,
      </if>
      <if test="payInfo != null">
        pay_info,
      </if>
      <if test="transChannel != null">
        trans_channel,
      </if>
      <if test="partner != null">
        partner,
      </if>
      <if test="subpartner != null">
        subpartner,
      </if>
      <if test="outTradeNo != null">
        out_trade_no,
      </if>
      <if test="transactionId != null">
        transaction_id,
      </if>
      <if test="bankType != null">
        bank_type,
      </if>
      <if test="bankTransno != null">
        bank_transno,
      </if>
      <if test="totalFee != null">
        total_fee,
      </if>
      <if test="feeType != null">
        fee_type,
      </if>
      <if test="notifyId != null">
        notify_id,
      </if>
      <if test="timeEnd != null">
        time_end,
      </if>
      <if test="transportFee != null">
        transport_fee,
      </if>
      <if test="productFee != null">
        product_fee,
      </if>
      <if test="discount != null">
        discount,
      </if>
      <if test="buyerAlias != null">
        buyer_alias,
      </if>
      <if test="attach != null">
        attach,
      </if>
      <if test="outRefundNo != null">
        out_refund_no,
      </if>
      <if test="refundId != null">
        refund_id,
      </if>
      <if test="refundChannel != null">
        refund_channel,
      </if>
      <if test="refundFee != null">
        refund_fee,
      </if>
      <if test="refundStatus != null">
        refund_status,
      </if>
      <if test="refundState != null">
        refund_state,
      </if>
      <if test="recvUserId != null">
        recv_user_id,
      </if>
      <if test="reccvUserName != null">
        reccv_user_name,
      </if>
      <if test="refundType != null">
        refund_type,
      </if>
      <if test="clearState != null">
        clear_state,
      </if>
      <if test="tradeType != null">
        trade_type,
      </if>
      <if test="isSplit != null">
        is_split,
      </if>
      <if test="platCharge != null">
        plat_charge,
      </if>
      <if test="subPlatCharge != null">
        sub_plat_charge,
      </if>
      <if test="note != null">
        note,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="deleteFlag != null">
        delete_flag,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="tradeChannel != null">
        #{tradeChannel,jdbcType=VARCHAR},
      </if>
      <if test="retcode != null">
        #{retcode,jdbcType=VARCHAR},
      </if>
      <if test="retmsg != null">
        #{retmsg,jdbcType=VARCHAR},
      </if>
      <if test="tradeMode != null">
        #{tradeMode,jdbcType=VARCHAR},
      </if>
      <if test="tradeState != null">
        #{tradeState,jdbcType=VARCHAR},
      </if>
      <if test="payInfo != null">
        #{payInfo,jdbcType=VARCHAR},
      </if>
      <if test="transChannel != null">
        #{transChannel,jdbcType=VARCHAR},
      </if>
      <if test="partner != null">
        #{partner,jdbcType=VARCHAR},
      </if>
      <if test="subpartner != null">
        #{subpartner,jdbcType=VARCHAR},
      </if>
      <if test="outTradeNo != null">
        #{outTradeNo,jdbcType=VARCHAR},
      </if>
      <if test="transactionId != null">
        #{transactionId,jdbcType=VARCHAR},
      </if>
      <if test="bankType != null">
        #{bankType,jdbcType=VARCHAR},
      </if>
      <if test="bankTransno != null">
        #{bankTransno,jdbcType=VARCHAR},
      </if>
      <if test="totalFee != null">
        #{totalFee,jdbcType=REAL},
      </if>
      <if test="feeType != null">
        #{feeType,jdbcType=VARCHAR},
      </if>
      <if test="notifyId != null">
        #{notifyId,jdbcType=VARCHAR},
      </if>
      <if test="timeEnd != null">
        #{timeEnd,jdbcType=VARCHAR},
      </if>
      <if test="transportFee != null">
        #{transportFee,jdbcType=REAL},
      </if>
      <if test="productFee != null">
        #{productFee,jdbcType=REAL},
      </if>
      <if test="discount != null">
        #{discount,jdbcType=REAL},
      </if>
      <if test="buyerAlias != null">
        #{buyerAlias,jdbcType=VARCHAR},
      </if>
      <if test="attach != null">
        #{attach,jdbcType=VARCHAR},
      </if>
      <if test="outRefundNo != null">
        #{outRefundNo,jdbcType=VARCHAR},
      </if>
      <if test="refundId != null">
        #{refundId,jdbcType=VARCHAR},
      </if>
      <if test="refundChannel != null">
        #{refundChannel,jdbcType=VARCHAR},
      </if>
      <if test="refundFee != null">
        #{refundFee,jdbcType=VARCHAR},
      </if>
      <if test="refundStatus != null">
        #{refundStatus,jdbcType=VARCHAR},
      </if>
      <if test="refundState != null">
        #{refundState,jdbcType=VARCHAR},
      </if>
      <if test="recvUserId != null">
        #{recvUserId,jdbcType=VARCHAR},
      </if>
      <if test="reccvUserName != null">
        #{reccvUserName,jdbcType=VARCHAR},
      </if>
      <if test="refundType != null">
        #{refundType,jdbcType=VARCHAR},
      </if>
      <if test="clearState != null">
        #{clearState,jdbcType=VARCHAR},
      </if>
      <if test="tradeType != null">
        #{tradeType,jdbcType=VARCHAR},
      </if>
      <if test="isSplit != null">
        #{isSplit,jdbcType=VARCHAR},
      </if>
      <if test="platCharge != null">
        #{platCharge,jdbcType=VARCHAR},
      </if>
      <if test="subPlatCharge != null">
        #{subPlatCharge,jdbcType=VARCHAR},
      </if>
      <if test="note != null">
        #{note,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteFlag != null">
        #{deleteFlag,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.platform.pojo.TransactionJournalExample" resultType="java.lang.Integer">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from transaction_journal
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update transaction_journal
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.tradeChannel != null">
        trade_channel = #{record.tradeChannel,jdbcType=VARCHAR},
      </if>
      <if test="record.retcode != null">
        retcode = #{record.retcode,jdbcType=VARCHAR},
      </if>
      <if test="record.retmsg != null">
        retmsg = #{record.retmsg,jdbcType=VARCHAR},
      </if>
      <if test="record.tradeMode != null">
        trade_mode = #{record.tradeMode,jdbcType=VARCHAR},
      </if>
      <if test="record.tradeState != null">
        trade_state = #{record.tradeState,jdbcType=VARCHAR},
      </if>
      <if test="record.payInfo != null">
        pay_info = #{record.payInfo,jdbcType=VARCHAR},
      </if>
      <if test="record.transChannel != null">
        trans_channel = #{record.transChannel,jdbcType=VARCHAR},
      </if>
      <if test="record.partner != null">
        partner = #{record.partner,jdbcType=VARCHAR},
      </if>
      <if test="record.subpartner != null">
        subpartner = #{record.subpartner,jdbcType=VARCHAR},
      </if>
      <if test="record.outTradeNo != null">
        out_trade_no = #{record.outTradeNo,jdbcType=VARCHAR},
      </if>
      <if test="record.transactionId != null">
        transaction_id = #{record.transactionId,jdbcType=VARCHAR},
      </if>
      <if test="record.bankType != null">
        bank_type = #{record.bankType,jdbcType=VARCHAR},
      </if>
      <if test="record.bankTransno != null">
        bank_transno = #{record.bankTransno,jdbcType=VARCHAR},
      </if>
      <if test="record.totalFee != null">
        total_fee = #{record.totalFee,jdbcType=REAL},
      </if>
      <if test="record.feeType != null">
        fee_type = #{record.feeType,jdbcType=VARCHAR},
      </if>
      <if test="record.notifyId != null">
        notify_id = #{record.notifyId,jdbcType=VARCHAR},
      </if>
      <if test="record.timeEnd != null">
        time_end = #{record.timeEnd,jdbcType=VARCHAR},
      </if>
      <if test="record.transportFee != null">
        transport_fee = #{record.transportFee,jdbcType=REAL},
      </if>
      <if test="record.productFee != null">
        product_fee = #{record.productFee,jdbcType=REAL},
      </if>
      <if test="record.discount != null">
        discount = #{record.discount,jdbcType=REAL},
      </if>
      <if test="record.buyerAlias != null">
        buyer_alias = #{record.buyerAlias,jdbcType=VARCHAR},
      </if>
      <if test="record.attach != null">
        attach = #{record.attach,jdbcType=VARCHAR},
      </if>
      <if test="record.outRefundNo != null">
        out_refund_no = #{record.outRefundNo,jdbcType=VARCHAR},
      </if>
      <if test="record.refundId != null">
        refund_id = #{record.refundId,jdbcType=VARCHAR},
      </if>
      <if test="record.refundChannel != null">
        refund_channel = #{record.refundChannel,jdbcType=VARCHAR},
      </if>
      <if test="record.refundFee != null">
        refund_fee = #{record.refundFee,jdbcType=VARCHAR},
      </if>
      <if test="record.refundStatus != null">
        refund_status = #{record.refundStatus,jdbcType=VARCHAR},
      </if>
      <if test="record.refundState != null">
        refund_state = #{record.refundState,jdbcType=VARCHAR},
      </if>
      <if test="record.recvUserId != null">
        recv_user_id = #{record.recvUserId,jdbcType=VARCHAR},
      </if>
      <if test="record.reccvUserName != null">
        reccv_user_name = #{record.reccvUserName,jdbcType=VARCHAR},
      </if>
      <if test="record.refundType != null">
        refund_type = #{record.refundType,jdbcType=VARCHAR},
      </if>
      <if test="record.clearState != null">
        clear_state = #{record.clearState,jdbcType=VARCHAR},
      </if>
      <if test="record.tradeType != null">
        trade_type = #{record.tradeType,jdbcType=VARCHAR},
      </if>
      <if test="record.isSplit != null">
        is_split = #{record.isSplit,jdbcType=VARCHAR},
      </if>
      <if test="record.platCharge != null">
        plat_charge = #{record.platCharge,jdbcType=VARCHAR},
      </if>
      <if test="record.subPlatCharge != null">
        sub_plat_charge = #{record.subPlatCharge,jdbcType=VARCHAR},
      </if>
      <if test="record.note != null">
        note = #{record.note,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.deleteFlag != null">
        delete_flag = #{record.deleteFlag,jdbcType=INTEGER},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update transaction_journal
    set id = #{record.id,jdbcType=INTEGER},
      trade_channel = #{record.tradeChannel,jdbcType=VARCHAR},
      retcode = #{record.retcode,jdbcType=VARCHAR},
      retmsg = #{record.retmsg,jdbcType=VARCHAR},
      trade_mode = #{record.tradeMode,jdbcType=VARCHAR},
      trade_state = #{record.tradeState,jdbcType=VARCHAR},
      pay_info = #{record.payInfo,jdbcType=VARCHAR},
      trans_channel = #{record.transChannel,jdbcType=VARCHAR},
      partner = #{record.partner,jdbcType=VARCHAR},
      subpartner = #{record.subpartner,jdbcType=VARCHAR},
      out_trade_no = #{record.outTradeNo,jdbcType=VARCHAR},
      transaction_id = #{record.transactionId,jdbcType=VARCHAR},
      bank_type = #{record.bankType,jdbcType=VARCHAR},
      bank_transno = #{record.bankTransno,jdbcType=VARCHAR},
      total_fee = #{record.totalFee,jdbcType=REAL},
      fee_type = #{record.feeType,jdbcType=VARCHAR},
      notify_id = #{record.notifyId,jdbcType=VARCHAR},
      time_end = #{record.timeEnd,jdbcType=VARCHAR},
      transport_fee = #{record.transportFee,jdbcType=REAL},
      product_fee = #{record.productFee,jdbcType=REAL},
      discount = #{record.discount,jdbcType=REAL},
      buyer_alias = #{record.buyerAlias,jdbcType=VARCHAR},
      attach = #{record.attach,jdbcType=VARCHAR},
      out_refund_no = #{record.outRefundNo,jdbcType=VARCHAR},
      refund_id = #{record.refundId,jdbcType=VARCHAR},
      refund_channel = #{record.refundChannel,jdbcType=VARCHAR},
      refund_fee = #{record.refundFee,jdbcType=VARCHAR},
      refund_status = #{record.refundStatus,jdbcType=VARCHAR},
      refund_state = #{record.refundState,jdbcType=VARCHAR},
      recv_user_id = #{record.recvUserId,jdbcType=VARCHAR},
      reccv_user_name = #{record.reccvUserName,jdbcType=VARCHAR},
      refund_type = #{record.refundType,jdbcType=VARCHAR},
      clear_state = #{record.clearState,jdbcType=VARCHAR},
      trade_type = #{record.tradeType,jdbcType=VARCHAR},
      is_split = #{record.isSplit,jdbcType=VARCHAR},
      plat_charge = #{record.platCharge,jdbcType=VARCHAR},
      sub_plat_charge = #{record.subPlatCharge,jdbcType=VARCHAR},
      note = #{record.note,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      delete_flag = #{record.deleteFlag,jdbcType=INTEGER}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.platform.pojo.TransactionJournal">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update transaction_journal
    <set>
      <if test="tradeChannel != null">
        trade_channel = #{tradeChannel,jdbcType=VARCHAR},
      </if>
      <if test="retcode != null">
        retcode = #{retcode,jdbcType=VARCHAR},
      </if>
      <if test="retmsg != null">
        retmsg = #{retmsg,jdbcType=VARCHAR},
      </if>
      <if test="tradeMode != null">
        trade_mode = #{tradeMode,jdbcType=VARCHAR},
      </if>
      <if test="tradeState != null">
        trade_state = #{tradeState,jdbcType=VARCHAR},
      </if>
      <if test="payInfo != null">
        pay_info = #{payInfo,jdbcType=VARCHAR},
      </if>
      <if test="transChannel != null">
        trans_channel = #{transChannel,jdbcType=VARCHAR},
      </if>
      <if test="partner != null">
        partner = #{partner,jdbcType=VARCHAR},
      </if>
      <if test="subpartner != null">
        subpartner = #{subpartner,jdbcType=VARCHAR},
      </if>
      <if test="outTradeNo != null">
        out_trade_no = #{outTradeNo,jdbcType=VARCHAR},
      </if>
      <if test="transactionId != null">
        transaction_id = #{transactionId,jdbcType=VARCHAR},
      </if>
      <if test="bankType != null">
        bank_type = #{bankType,jdbcType=VARCHAR},
      </if>
      <if test="bankTransno != null">
        bank_transno = #{bankTransno,jdbcType=VARCHAR},
      </if>
      <if test="totalFee != null">
        total_fee = #{totalFee,jdbcType=REAL},
      </if>
      <if test="feeType != null">
        fee_type = #{feeType,jdbcType=VARCHAR},
      </if>
      <if test="notifyId != null">
        notify_id = #{notifyId,jdbcType=VARCHAR},
      </if>
      <if test="timeEnd != null">
        time_end = #{timeEnd,jdbcType=VARCHAR},
      </if>
      <if test="transportFee != null">
        transport_fee = #{transportFee,jdbcType=REAL},
      </if>
      <if test="productFee != null">
        product_fee = #{productFee,jdbcType=REAL},
      </if>
      <if test="discount != null">
        discount = #{discount,jdbcType=REAL},
      </if>
      <if test="buyerAlias != null">
        buyer_alias = #{buyerAlias,jdbcType=VARCHAR},
      </if>
      <if test="attach != null">
        attach = #{attach,jdbcType=VARCHAR},
      </if>
      <if test="outRefundNo != null">
        out_refund_no = #{outRefundNo,jdbcType=VARCHAR},
      </if>
      <if test="refundId != null">
        refund_id = #{refundId,jdbcType=VARCHAR},
      </if>
      <if test="refundChannel != null">
        refund_channel = #{refundChannel,jdbcType=VARCHAR},
      </if>
      <if test="refundFee != null">
        refund_fee = #{refundFee,jdbcType=VARCHAR},
      </if>
      <if test="refundStatus != null">
        refund_status = #{refundStatus,jdbcType=VARCHAR},
      </if>
      <if test="refundState != null">
        refund_state = #{refundState,jdbcType=VARCHAR},
      </if>
      <if test="recvUserId != null">
        recv_user_id = #{recvUserId,jdbcType=VARCHAR},
      </if>
      <if test="reccvUserName != null">
        reccv_user_name = #{reccvUserName,jdbcType=VARCHAR},
      </if>
      <if test="refundType != null">
        refund_type = #{refundType,jdbcType=VARCHAR},
      </if>
      <if test="clearState != null">
        clear_state = #{clearState,jdbcType=VARCHAR},
      </if>
      <if test="tradeType != null">
        trade_type = #{tradeType,jdbcType=VARCHAR},
      </if>
      <if test="isSplit != null">
        is_split = #{isSplit,jdbcType=VARCHAR},
      </if>
      <if test="platCharge != null">
        plat_charge = #{platCharge,jdbcType=VARCHAR},
      </if>
      <if test="subPlatCharge != null">
        sub_plat_charge = #{subPlatCharge,jdbcType=VARCHAR},
      </if>
      <if test="note != null">
        note = #{note,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteFlag != null">
        delete_flag = #{deleteFlag,jdbcType=INTEGER},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.platform.pojo.TransactionJournal">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update transaction_journal
    set trade_channel = #{tradeChannel,jdbcType=VARCHAR},
      retcode = #{retcode,jdbcType=VARCHAR},
      retmsg = #{retmsg,jdbcType=VARCHAR},
      trade_mode = #{tradeMode,jdbcType=VARCHAR},
      trade_state = #{tradeState,jdbcType=VARCHAR},
      pay_info = #{payInfo,jdbcType=VARCHAR},
      trans_channel = #{transChannel,jdbcType=VARCHAR},
      partner = #{partner,jdbcType=VARCHAR},
      subpartner = #{subpartner,jdbcType=VARCHAR},
      out_trade_no = #{outTradeNo,jdbcType=VARCHAR},
      transaction_id = #{transactionId,jdbcType=VARCHAR},
      bank_type = #{bankType,jdbcType=VARCHAR},
      bank_transno = #{bankTransno,jdbcType=VARCHAR},
      total_fee = #{totalFee,jdbcType=REAL},
      fee_type = #{feeType,jdbcType=VARCHAR},
      notify_id = #{notifyId,jdbcType=VARCHAR},
      time_end = #{timeEnd,jdbcType=VARCHAR},
      transport_fee = #{transportFee,jdbcType=REAL},
      product_fee = #{productFee,jdbcType=REAL},
      discount = #{discount,jdbcType=REAL},
      buyer_alias = #{buyerAlias,jdbcType=VARCHAR},
      attach = #{attach,jdbcType=VARCHAR},
      out_refund_no = #{outRefundNo,jdbcType=VARCHAR},
      refund_id = #{refundId,jdbcType=VARCHAR},
      refund_channel = #{refundChannel,jdbcType=VARCHAR},
      refund_fee = #{refundFee,jdbcType=VARCHAR},
      refund_status = #{refundStatus,jdbcType=VARCHAR},
      refund_state = #{refundState,jdbcType=VARCHAR},
      recv_user_id = #{recvUserId,jdbcType=VARCHAR},
      reccv_user_name = #{reccvUserName,jdbcType=VARCHAR},
      refund_type = #{refundType,jdbcType=VARCHAR},
      clear_state = #{clearState,jdbcType=VARCHAR},
      trade_type = #{tradeType,jdbcType=VARCHAR},
      is_split = #{isSplit,jdbcType=VARCHAR},
      plat_charge = #{platCharge,jdbcType=VARCHAR},
      sub_plat_charge = #{subPlatCharge,jdbcType=VARCHAR},
      note = #{note,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      delete_flag = #{deleteFlag,jdbcType=INTEGER}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>