TdBPayBlncacWxMapper.xml 12.1 KB
<?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.zteits.pay.mapper.TdBPayBlncacWxMapper" >
  <resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdBPayBlncacWx" >
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="tradetime" property="tradetime" jdbcType="VARCHAR" />
    <result column="appid" property="appid" jdbcType="VARCHAR" />
    <result column="mchid" property="mchid" jdbcType="VARCHAR" />
    <result column="submch" property="submch" jdbcType="VARCHAR" />
    <result column="device_no" property="deviceNo" jdbcType="VARCHAR" />
    <result column="transaction_id" property="transactionId" jdbcType="VARCHAR" />
    <result column="out_trade_no" property="outTradeNo" jdbcType="VARCHAR" />
    <result column="openid" property="openid" jdbcType="VARCHAR" />
    <result column="trade_type" property="tradeType" jdbcType="VARCHAR" />
    <result column="trade_status" property="tradeStatus" jdbcType="VARCHAR" />
    <result column="bank" property="bank" jdbcType="VARCHAR" />
    <result column="currency" property="currency" jdbcType="VARCHAR" />
    <result column="total_fee" property="totalFee" jdbcType="VARCHAR" />
    <result column="coupon_fee" property="couponFee" jdbcType="VARCHAR" />
    <result column="refund_transaction_id" property="refundTransactionId" jdbcType="VARCHAR" />
    <result column="out_refund_no" property="outRefundNo" jdbcType="VARCHAR" />
    <result column="refund_fee" property="refundFee" jdbcType="VARCHAR" />
    <result column="refund_coupon_fee" property="refundCouponFee" jdbcType="VARCHAR" />
    <result column="refund_type" property="refundType" jdbcType="VARCHAR" />
    <result column="refund_status" property="refundStatus" jdbcType="VARCHAR" />
    <result column="productname" property="productname" jdbcType="VARCHAR" />
    <result column="attach" property="attach" jdbcType="VARCHAR" />
    <result column="fee" property="fee" jdbcType="VARCHAR" />
    <result column="rate" property="rate" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, tradetime, appid, mchid, submch, device_no, transaction_id, out_trade_no, openid, 
    trade_type, trade_status, bank, currency, total_fee, coupon_fee, refund_transaction_id, 
    out_refund_no, refund_fee, refund_coupon_fee, refund_type, refund_status, productname, 
    attach, fee, rate
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    from td_b_pay_blncac_wx
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from td_b_pay_blncac_wx
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.zteits.pay.domain.TdBPayBlncacWx" >
    <selectKey resultType="java.lang.Integer" keyProperty="id" order="AFTER" >
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into td_b_pay_blncac_wx (tradetime, appid, mchid, 
      submch, device_no, transaction_id, 
      out_trade_no, openid, trade_type, 
      trade_status, bank, currency, 
      total_fee, coupon_fee, refund_transaction_id, 
      out_refund_no, refund_fee, refund_coupon_fee, 
      refund_type, refund_status, productname, 
      attach, fee, rate)
    values (#{tradetime,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR}, #{mchid,jdbcType=VARCHAR}, 
      #{submch,jdbcType=VARCHAR}, #{deviceNo,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR}, 
      #{outTradeNo,jdbcType=VARCHAR}, #{openid,jdbcType=VARCHAR}, #{tradeType,jdbcType=VARCHAR}, 
      #{tradeStatus,jdbcType=VARCHAR}, #{bank,jdbcType=VARCHAR}, #{currency,jdbcType=VARCHAR}, 
      #{totalFee,jdbcType=VARCHAR}, #{couponFee,jdbcType=VARCHAR}, #{refundTransactionId,jdbcType=VARCHAR}, 
      #{outRefundNo,jdbcType=VARCHAR}, #{refundFee,jdbcType=VARCHAR}, #{refundCouponFee,jdbcType=VARCHAR}, 
      #{refundType,jdbcType=VARCHAR}, #{refundStatus,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, 
      #{attach,jdbcType=VARCHAR}, #{fee,jdbcType=VARCHAR}, #{rate,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.zteits.pay.domain.TdBPayBlncacWx" >
    <selectKey resultType="java.lang.Integer" keyProperty="id" order="AFTER" >
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into td_b_pay_blncac_wx
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="tradetime != null" >
        tradetime,
      </if>
      <if test="appid != null" >
        appid,
      </if>
      <if test="mchid != null" >
        mchid,
      </if>
      <if test="submch != null" >
        submch,
      </if>
      <if test="deviceNo != null" >
        device_no,
      </if>
      <if test="transactionId != null" >
        transaction_id,
      </if>
      <if test="outTradeNo != null" >
        out_trade_no,
      </if>
      <if test="openid != null" >
        openid,
      </if>
      <if test="tradeType != null" >
        trade_type,
      </if>
      <if test="tradeStatus != null" >
        trade_status,
      </if>
      <if test="bank != null" >
        bank,
      </if>
      <if test="currency != null" >
        currency,
      </if>
      <if test="totalFee != null" >
        total_fee,
      </if>
      <if test="couponFee != null" >
        coupon_fee,
      </if>
      <if test="refundTransactionId != null" >
        refund_transaction_id,
      </if>
      <if test="outRefundNo != null" >
        out_refund_no,
      </if>
      <if test="refundFee != null" >
        refund_fee,
      </if>
      <if test="refundCouponFee != null" >
        refund_coupon_fee,
      </if>
      <if test="refundType != null" >
        refund_type,
      </if>
      <if test="refundStatus != null" >
        refund_status,
      </if>
      <if test="productname != null" >
        productname,
      </if>
      <if test="attach != null" >
        attach,
      </if>
      <if test="fee != null" >
        fee,
      </if>
      <if test="rate != null" >
        rate,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="tradetime != null" >
        #{tradetime,jdbcType=VARCHAR},
      </if>
      <if test="appid != null" >
        #{appid,jdbcType=VARCHAR},
      </if>
      <if test="mchid != null" >
        #{mchid,jdbcType=VARCHAR},
      </if>
      <if test="submch != null" >
        #{submch,jdbcType=VARCHAR},
      </if>
      <if test="deviceNo != null" >
        #{deviceNo,jdbcType=VARCHAR},
      </if>
      <if test="transactionId != null" >
        #{transactionId,jdbcType=VARCHAR},
      </if>
      <if test="outTradeNo != null" >
        #{outTradeNo,jdbcType=VARCHAR},
      </if>
      <if test="openid != null" >
        #{openid,jdbcType=VARCHAR},
      </if>
      <if test="tradeType != null" >
        #{tradeType,jdbcType=VARCHAR},
      </if>
      <if test="tradeStatus != null" >
        #{tradeStatus,jdbcType=VARCHAR},
      </if>
      <if test="bank != null" >
        #{bank,jdbcType=VARCHAR},
      </if>
      <if test="currency != null" >
        #{currency,jdbcType=VARCHAR},
      </if>
      <if test="totalFee != null" >
        #{totalFee,jdbcType=VARCHAR},
      </if>
      <if test="couponFee != null" >
        #{couponFee,jdbcType=VARCHAR},
      </if>
      <if test="refundTransactionId != null" >
        #{refundTransactionId,jdbcType=VARCHAR},
      </if>
      <if test="outRefundNo != null" >
        #{outRefundNo,jdbcType=VARCHAR},
      </if>
      <if test="refundFee != null" >
        #{refundFee,jdbcType=VARCHAR},
      </if>
      <if test="refundCouponFee != null" >
        #{refundCouponFee,jdbcType=VARCHAR},
      </if>
      <if test="refundType != null" >
        #{refundType,jdbcType=VARCHAR},
      </if>
      <if test="refundStatus != null" >
        #{refundStatus,jdbcType=VARCHAR},
      </if>
      <if test="productname != null" >
        #{productname,jdbcType=VARCHAR},
      </if>
      <if test="attach != null" >
        #{attach,jdbcType=VARCHAR},
      </if>
      <if test="fee != null" >
        #{fee,jdbcType=VARCHAR},
      </if>
      <if test="rate != null" >
        #{rate,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.zteits.pay.domain.TdBPayBlncacWx" >
    update td_b_pay_blncac_wx
    <set >
      <if test="tradetime != null" >
        tradetime = #{tradetime,jdbcType=VARCHAR},
      </if>
      <if test="appid != null" >
        appid = #{appid,jdbcType=VARCHAR},
      </if>
      <if test="mchid != null" >
        mchid = #{mchid,jdbcType=VARCHAR},
      </if>
      <if test="submch != null" >
        submch = #{submch,jdbcType=VARCHAR},
      </if>
      <if test="deviceNo != null" >
        device_no = #{deviceNo,jdbcType=VARCHAR},
      </if>
      <if test="transactionId != null" >
        transaction_id = #{transactionId,jdbcType=VARCHAR},
      </if>
      <if test="outTradeNo != null" >
        out_trade_no = #{outTradeNo,jdbcType=VARCHAR},
      </if>
      <if test="openid != null" >
        openid = #{openid,jdbcType=VARCHAR},
      </if>
      <if test="tradeType != null" >
        trade_type = #{tradeType,jdbcType=VARCHAR},
      </if>
      <if test="tradeStatus != null" >
        trade_status = #{tradeStatus,jdbcType=VARCHAR},
      </if>
      <if test="bank != null" >
        bank = #{bank,jdbcType=VARCHAR},
      </if>
      <if test="currency != null" >
        currency = #{currency,jdbcType=VARCHAR},
      </if>
      <if test="totalFee != null" >
        total_fee = #{totalFee,jdbcType=VARCHAR},
      </if>
      <if test="couponFee != null" >
        coupon_fee = #{couponFee,jdbcType=VARCHAR},
      </if>
      <if test="refundTransactionId != null" >
        refund_transaction_id = #{refundTransactionId,jdbcType=VARCHAR},
      </if>
      <if test="outRefundNo != null" >
        out_refund_no = #{outRefundNo,jdbcType=VARCHAR},
      </if>
      <if test="refundFee != null" >
        refund_fee = #{refundFee,jdbcType=VARCHAR},
      </if>
      <if test="refundCouponFee != null" >
        refund_coupon_fee = #{refundCouponFee,jdbcType=VARCHAR},
      </if>
      <if test="refundType != null" >
        refund_type = #{refundType,jdbcType=VARCHAR},
      </if>
      <if test="refundStatus != null" >
        refund_status = #{refundStatus,jdbcType=VARCHAR},
      </if>
      <if test="productname != null" >
        productname = #{productname,jdbcType=VARCHAR},
      </if>
      <if test="attach != null" >
        attach = #{attach,jdbcType=VARCHAR},
      </if>
      <if test="fee != null" >
        fee = #{fee,jdbcType=VARCHAR},
      </if>
      <if test="rate != null" >
        rate = #{rate,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.zteits.pay.domain.TdBPayBlncacWx" >
    update td_b_pay_blncac_wx
    set tradetime = #{tradetime,jdbcType=VARCHAR},
      appid = #{appid,jdbcType=VARCHAR},
      mchid = #{mchid,jdbcType=VARCHAR},
      submch = #{submch,jdbcType=VARCHAR},
      device_no = #{deviceNo,jdbcType=VARCHAR},
      transaction_id = #{transactionId,jdbcType=VARCHAR},
      out_trade_no = #{outTradeNo,jdbcType=VARCHAR},
      openid = #{openid,jdbcType=VARCHAR},
      trade_type = #{tradeType,jdbcType=VARCHAR},
      trade_status = #{tradeStatus,jdbcType=VARCHAR},
      bank = #{bank,jdbcType=VARCHAR},
      currency = #{currency,jdbcType=VARCHAR},
      total_fee = #{totalFee,jdbcType=VARCHAR},
      coupon_fee = #{couponFee,jdbcType=VARCHAR},
      refund_transaction_id = #{refundTransactionId,jdbcType=VARCHAR},
      out_refund_no = #{outRefundNo,jdbcType=VARCHAR},
      refund_fee = #{refundFee,jdbcType=VARCHAR},
      refund_coupon_fee = #{refundCouponFee,jdbcType=VARCHAR},
      refund_type = #{refundType,jdbcType=VARCHAR},
      refund_status = #{refundStatus,jdbcType=VARCHAR},
      productname = #{productname,jdbcType=VARCHAR},
      attach = #{attach,jdbcType=VARCHAR},
      fee = #{fee,jdbcType=VARCHAR},
      rate = #{rate,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>