TdBPayBlncacMapper.xml 11.3 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.order.mapper.TdBPayBlncacMapper" >
  <resultMap id="BaseResultMap" type="com.zteits.order.domain.TdBPayBlncac" >
    <id column="id" property="id" jdbcType="BIGINT" />
    <result column="pay_order_id" property="payOrderId" jdbcType="VARCHAR" />
    <result column="rlt_pay_order_id" property="rltPayOrderId" jdbcType="VARCHAR" />
    <result column="bus_type" property="busType" jdbcType="INTEGER" />
    <result column="order_refund_id" property="orderRefundId" jdbcType="VARCHAR" />
    <result column="pay_create_time" property="payCreateTime" jdbcType="TIMESTAMP" />
    <result column="pay_finish_time" property="payFinishTime" jdbcType="TIMESTAMP" />
    <result column="pay_account" property="payAccount" jdbcType="VARCHAR" />
    <result column="coll_account" property="collAccount" jdbcType="VARCHAR" />
    <result column="pay_fee" property="payFee" jdbcType="DECIMAL" />
    <result column="actual_fee" property="actualFee" jdbcType="DECIMAL" />
    <result column="serve_fee" property="serveFee" jdbcType="DECIMAL" />
    <result column="profit_fee" property="profitFee" jdbcType="DECIMAL" />
    <result column="pay_channel" property="payChannel" jdbcType="INTEGER" />
    <result column="bill_begin_time" property="billBeginTime" jdbcType="TIMESTAMP" />
    <result column="bill_end_time" property="billEndTime" jdbcType="TIMESTAMP" />
    <result column="remark" property="remark" jdbcType="VARCHAR" />
    <result column="data_state" property="dataState" jdbcType="INTEGER" />
    <result column="create_empid" property="createEmpid" jdbcType="VARCHAR" />
    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
    <result column="modfiy_empid" property="modfiyEmpid" jdbcType="VARCHAR" />
    <result column="modfiy_date" property="modfiyDate" jdbcType="TIMESTAMP" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, pay_order_id, rlt_pay_order_id, bus_type, order_refund_id, pay_create_time, pay_finish_time, 
    pay_account, coll_account, pay_fee, actual_fee, serve_fee, profit_fee, pay_channel, 
    bill_begin_time, bill_end_time, remark, data_state, create_empid, create_date, modfiy_empid, 
    modfiy_date
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    select 
    <include refid="Base_Column_List" />
    from td_b_pay_blncac
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    delete from td_b_pay_blncac
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="com.zteits.order.domain.TdBPayBlncac" >
    <selectKey resultType="java.lang.Long" keyProperty="id" order="AFTER" >
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into td_b_pay_blncac (pay_order_id, rlt_pay_order_id, bus_type, 
      order_refund_id, pay_create_time, pay_finish_time, 
      pay_account, coll_account, pay_fee, 
      actual_fee, serve_fee, profit_fee, 
      pay_channel, bill_begin_time, bill_end_time, 
      remark, data_state, create_empid, 
      create_date, modfiy_empid, modfiy_date
      )
    values (#{payOrderId,jdbcType=VARCHAR}, #{rltPayOrderId,jdbcType=VARCHAR}, #{busType,jdbcType=INTEGER}, 
      #{orderRefundId,jdbcType=VARCHAR}, #{payCreateTime,jdbcType=TIMESTAMP}, #{payFinishTime,jdbcType=TIMESTAMP}, 
      #{payAccount,jdbcType=VARCHAR}, #{collAccount,jdbcType=VARCHAR}, #{payFee,jdbcType=DECIMAL}, 
      #{actualFee,jdbcType=DECIMAL}, #{serveFee,jdbcType=DECIMAL}, #{profitFee,jdbcType=DECIMAL}, 
      #{payChannel,jdbcType=INTEGER}, #{billBeginTime,jdbcType=TIMESTAMP}, #{billEndTime,jdbcType=TIMESTAMP}, 
      #{remark,jdbcType=VARCHAR}, #{dataState,jdbcType=INTEGER}, #{createEmpid,jdbcType=VARCHAR}, 
      #{createDate,jdbcType=TIMESTAMP}, #{modfiyEmpid,jdbcType=VARCHAR}, #{modfiyDate,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.zteits.order.domain.TdBPayBlncac" >
    <selectKey resultType="java.lang.Long" keyProperty="id" order="AFTER" >
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into td_b_pay_blncac
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="payOrderId != null" >
        pay_order_id,
      </if>
      <if test="rltPayOrderId != null" >
        rlt_pay_order_id,
      </if>
      <if test="busType != null" >
        bus_type,
      </if>
      <if test="orderRefundId != null" >
        order_refund_id,
      </if>
      <if test="payCreateTime != null" >
        pay_create_time,
      </if>
      <if test="payFinishTime != null" >
        pay_finish_time,
      </if>
      <if test="payAccount != null" >
        pay_account,
      </if>
      <if test="collAccount != null" >
        coll_account,
      </if>
      <if test="payFee != null" >
        pay_fee,
      </if>
      <if test="actualFee != null" >
        actual_fee,
      </if>
      <if test="serveFee != null" >
        serve_fee,
      </if>
      <if test="profitFee != null" >
        profit_fee,
      </if>
      <if test="payChannel != null" >
        pay_channel,
      </if>
      <if test="billBeginTime != null" >
        bill_begin_time,
      </if>
      <if test="billEndTime != null" >
        bill_end_time,
      </if>
      <if test="remark != null" >
        remark,
      </if>
      <if test="dataState != null" >
        data_state,
      </if>
      <if test="createEmpid != null" >
        create_empid,
      </if>
      <if test="createDate != null" >
        create_date,
      </if>
      <if test="modfiyEmpid != null" >
        modfiy_empid,
      </if>
      <if test="modfiyDate != null" >
        modfiy_date,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="payOrderId != null" >
        #{payOrderId,jdbcType=VARCHAR},
      </if>
      <if test="rltPayOrderId != null" >
        #{rltPayOrderId,jdbcType=VARCHAR},
      </if>
      <if test="busType != null" >
        #{busType,jdbcType=INTEGER},
      </if>
      <if test="orderRefundId != null" >
        #{orderRefundId,jdbcType=VARCHAR},
      </if>
      <if test="payCreateTime != null" >
        #{payCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="payFinishTime != null" >
        #{payFinishTime,jdbcType=TIMESTAMP},
      </if>
      <if test="payAccount != null" >
        #{payAccount,jdbcType=VARCHAR},
      </if>
      <if test="collAccount != null" >
        #{collAccount,jdbcType=VARCHAR},
      </if>
      <if test="payFee != null" >
        #{payFee,jdbcType=DECIMAL},
      </if>
      <if test="actualFee != null" >
        #{actualFee,jdbcType=DECIMAL},
      </if>
      <if test="serveFee != null" >
        #{serveFee,jdbcType=DECIMAL},
      </if>
      <if test="profitFee != null" >
        #{profitFee,jdbcType=DECIMAL},
      </if>
      <if test="payChannel != null" >
        #{payChannel,jdbcType=INTEGER},
      </if>
      <if test="billBeginTime != null" >
        #{billBeginTime,jdbcType=TIMESTAMP},
      </if>
      <if test="billEndTime != null" >
        #{billEndTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null" >
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="dataState != null" >
        #{dataState,jdbcType=INTEGER},
      </if>
      <if test="createEmpid != null" >
        #{createEmpid,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null" >
        #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="modfiyEmpid != null" >
        #{modfiyEmpid,jdbcType=VARCHAR},
      </if>
      <if test="modfiyDate != null" >
        #{modfiyDate,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.zteits.order.domain.TdBPayBlncac" >
    update td_b_pay_blncac
    <set >
      <if test="payOrderId != null" >
        pay_order_id = #{payOrderId,jdbcType=VARCHAR},
      </if>
      <if test="rltPayOrderId != null" >
        rlt_pay_order_id = #{rltPayOrderId,jdbcType=VARCHAR},
      </if>
      <if test="busType != null" >
        bus_type = #{busType,jdbcType=INTEGER},
      </if>
      <if test="orderRefundId != null" >
        order_refund_id = #{orderRefundId,jdbcType=VARCHAR},
      </if>
      <if test="payCreateTime != null" >
        pay_create_time = #{payCreateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="payFinishTime != null" >
        pay_finish_time = #{payFinishTime,jdbcType=TIMESTAMP},
      </if>
      <if test="payAccount != null" >
        pay_account = #{payAccount,jdbcType=VARCHAR},
      </if>
      <if test="collAccount != null" >
        coll_account = #{collAccount,jdbcType=VARCHAR},
      </if>
      <if test="payFee != null" >
        pay_fee = #{payFee,jdbcType=DECIMAL},
      </if>
      <if test="actualFee != null" >
        actual_fee = #{actualFee,jdbcType=DECIMAL},
      </if>
      <if test="serveFee != null" >
        serve_fee = #{serveFee,jdbcType=DECIMAL},
      </if>
      <if test="profitFee != null" >
        profit_fee = #{profitFee,jdbcType=DECIMAL},
      </if>
      <if test="payChannel != null" >
        pay_channel = #{payChannel,jdbcType=INTEGER},
      </if>
      <if test="billBeginTime != null" >
        bill_begin_time = #{billBeginTime,jdbcType=TIMESTAMP},
      </if>
      <if test="billEndTime != null" >
        bill_end_time = #{billEndTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null" >
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="dataState != null" >
        data_state = #{dataState,jdbcType=INTEGER},
      </if>
      <if test="createEmpid != null" >
        create_empid = #{createEmpid,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null" >
        create_date = #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="modfiyEmpid != null" >
        modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR},
      </if>
      <if test="modfiyDate != null" >
        modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.zteits.order.domain.TdBPayBlncac" >
    update td_b_pay_blncac
    set pay_order_id = #{payOrderId,jdbcType=VARCHAR},
      rlt_pay_order_id = #{rltPayOrderId,jdbcType=VARCHAR},
      bus_type = #{busType,jdbcType=INTEGER},
      order_refund_id = #{orderRefundId,jdbcType=VARCHAR},
      pay_create_time = #{payCreateTime,jdbcType=TIMESTAMP},
      pay_finish_time = #{payFinishTime,jdbcType=TIMESTAMP},
      pay_account = #{payAccount,jdbcType=VARCHAR},
      coll_account = #{collAccount,jdbcType=VARCHAR},
      pay_fee = #{payFee,jdbcType=DECIMAL},
      actual_fee = #{actualFee,jdbcType=DECIMAL},
      serve_fee = #{serveFee,jdbcType=DECIMAL},
      profit_fee = #{profitFee,jdbcType=DECIMAL},
      pay_channel = #{payChannel,jdbcType=INTEGER},
      bill_begin_time = #{billBeginTime,jdbcType=TIMESTAMP},
      bill_end_time = #{billEndTime,jdbcType=TIMESTAMP},
      remark = #{remark,jdbcType=VARCHAR},
      data_state = #{dataState,jdbcType=INTEGER},
      create_empid = #{createEmpid,jdbcType=VARCHAR},
      create_date = #{createDate,jdbcType=TIMESTAMP},
      modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR},
      modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>