<?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.chaozhanggui.dao.system.dao.TbPlussMerchantOrderSplitMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderSplit">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="orderNumber" jdbcType="VARCHAR" property="ordernumber" />
    <result column="orderAmt" jdbcType="DECIMAL" property="orderamt" />
    <result column="payTime" jdbcType="TIMESTAMP" property="paytime" />
    <result column="status" jdbcType="INTEGER" property="status" />
    <result column="mercOrderNo" jdbcType="VARCHAR" property="mercorderno" />
    <result column="merchantCode" jdbcType="VARCHAR" property="merchantcode" />
    <result column="merchantId" jdbcType="VARCHAR" property="merchantid" />
    <result column="merchantName" jdbcType="VARCHAR" property="merchantname" />
    <result column="divisionMode" jdbcType="VARCHAR" property="divisionmode" />
    <result column="divStatus" jdbcType="TINYINT" property="divstatus" />
    <result column="fee" jdbcType="DECIMAL" property="fee" />
    <result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
    <result column="feePayer" jdbcType="VARCHAR" property="feepayer" />
    <result column="divStatusCode" jdbcType="VARCHAR" property="divstatuscode" />
    <result column="remark" jdbcType="VARCHAR" property="remark" />
    <result column="refundAmt" jdbcType="DECIMAL" property="refundamt" />
    <result column="notifyUrl" jdbcType="VARCHAR" property="notifyurl" />
    <result column="aisleSwitch" jdbcType="VARCHAR" property="aisleswitch" />
    <result column="payTypeName" jdbcType="VARCHAR" property="paytypename" />
    <result column="payTypeCode" jdbcType="VARCHAR" property="paytypecode" />
    <result column="orderType" jdbcType="VARCHAR" property="ordertype" />
  </resultMap>
  <sql id="Base_Column_List">
    id, orderNumber, orderAmt, payTime, status, mercOrderNo, merchantCode, merchantId, 
    merchantName, divisionMode, divStatus, fee, createTime, feePayer, divStatusCode, 
    remark, refundAmt, notifyUrl, aisleSwitch, payTypeName, payTypeCode, orderType
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_merchant_order_split
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_merchant_order_split
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderSplit">
    insert into tb_pluss_merchant_order_split (id, orderNumber, orderAmt, 
      payTime, status, mercOrderNo, 
      merchantCode, merchantId, merchantName, 
      divisionMode, divStatus, fee, 
      createTime, feePayer, divStatusCode, 
      remark, refundAmt, notifyUrl, 
      aisleSwitch, payTypeName, payTypeCode, 
      orderType)
    values (#{id,jdbcType=INTEGER}, #{ordernumber,jdbcType=VARCHAR}, #{orderamt,jdbcType=DECIMAL}, 
      #{paytime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{mercorderno,jdbcType=VARCHAR}, 
      #{merchantcode,jdbcType=VARCHAR}, #{merchantid,jdbcType=VARCHAR}, #{merchantname,jdbcType=VARCHAR}, 
      #{divisionmode,jdbcType=VARCHAR}, #{divstatus,jdbcType=TINYINT}, #{fee,jdbcType=DECIMAL}, 
      #{createtime,jdbcType=TIMESTAMP}, #{feepayer,jdbcType=VARCHAR}, #{divstatuscode,jdbcType=VARCHAR}, 
      #{remark,jdbcType=VARCHAR}, #{refundamt,jdbcType=DECIMAL}, #{notifyurl,jdbcType=VARCHAR}, 
      #{aisleswitch,jdbcType=VARCHAR}, #{paytypename,jdbcType=VARCHAR}, #{paytypecode,jdbcType=VARCHAR}, 
      #{ordertype,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderSplit">
    insert into tb_pluss_merchant_order_split
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="ordernumber != null">
        orderNumber,
      </if>
      <if test="orderamt != null">
        orderAmt,
      </if>
      <if test="paytime != null">
        payTime,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="mercorderno != null">
        mercOrderNo,
      </if>
      <if test="merchantcode != null">
        merchantCode,
      </if>
      <if test="merchantid != null">
        merchantId,
      </if>
      <if test="merchantname != null">
        merchantName,
      </if>
      <if test="divisionmode != null">
        divisionMode,
      </if>
      <if test="divstatus != null">
        divStatus,
      </if>
      <if test="fee != null">
        fee,
      </if>
      <if test="createtime != null">
        createTime,
      </if>
      <if test="feepayer != null">
        feePayer,
      </if>
      <if test="divstatuscode != null">
        divStatusCode,
      </if>
      <if test="remark != null">
        remark,
      </if>
      <if test="refundamt != null">
        refundAmt,
      </if>
      <if test="notifyurl != null">
        notifyUrl,
      </if>
      <if test="aisleswitch != null">
        aisleSwitch,
      </if>
      <if test="paytypename != null">
        payTypeName,
      </if>
      <if test="paytypecode != null">
        payTypeCode,
      </if>
      <if test="ordertype != null">
        orderType,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="ordernumber != null">
        #{ordernumber,jdbcType=VARCHAR},
      </if>
      <if test="orderamt != null">
        #{orderamt,jdbcType=DECIMAL},
      </if>
      <if test="paytime != null">
        #{paytime,jdbcType=TIMESTAMP},
      </if>
      <if test="status != null">
        #{status,jdbcType=INTEGER},
      </if>
      <if test="mercorderno != null">
        #{mercorderno,jdbcType=VARCHAR},
      </if>
      <if test="merchantcode != null">
        #{merchantcode,jdbcType=VARCHAR},
      </if>
      <if test="merchantid != null">
        #{merchantid,jdbcType=VARCHAR},
      </if>
      <if test="merchantname != null">
        #{merchantname,jdbcType=VARCHAR},
      </if>
      <if test="divisionmode != null">
        #{divisionmode,jdbcType=VARCHAR},
      </if>
      <if test="divstatus != null">
        #{divstatus,jdbcType=TINYINT},
      </if>
      <if test="fee != null">
        #{fee,jdbcType=DECIMAL},
      </if>
      <if test="createtime != null">
        #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="feepayer != null">
        #{feepayer,jdbcType=VARCHAR},
      </if>
      <if test="divstatuscode != null">
        #{divstatuscode,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="refundamt != null">
        #{refundamt,jdbcType=DECIMAL},
      </if>
      <if test="notifyurl != null">
        #{notifyurl,jdbcType=VARCHAR},
      </if>
      <if test="aisleswitch != null">
        #{aisleswitch,jdbcType=VARCHAR},
      </if>
      <if test="paytypename != null">
        #{paytypename,jdbcType=VARCHAR},
      </if>
      <if test="paytypecode != null">
        #{paytypecode,jdbcType=VARCHAR},
      </if>
      <if test="ordertype != null">
        #{ordertype,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderSplit">
    update tb_pluss_merchant_order_split
    <set>
      <if test="ordernumber != null">
        orderNumber = #{ordernumber,jdbcType=VARCHAR},
      </if>
      <if test="orderamt != null">
        orderAmt = #{orderamt,jdbcType=DECIMAL},
      </if>
      <if test="paytime != null">
        payTime = #{paytime,jdbcType=TIMESTAMP},
      </if>
      <if test="status != null">
        status = #{status,jdbcType=INTEGER},
      </if>
      <if test="mercorderno != null">
        mercOrderNo = #{mercorderno,jdbcType=VARCHAR},
      </if>
      <if test="merchantcode != null">
        merchantCode = #{merchantcode,jdbcType=VARCHAR},
      </if>
      <if test="merchantid != null">
        merchantId = #{merchantid,jdbcType=VARCHAR},
      </if>
      <if test="merchantname != null">
        merchantName = #{merchantname,jdbcType=VARCHAR},
      </if>
      <if test="divisionmode != null">
        divisionMode = #{divisionmode,jdbcType=VARCHAR},
      </if>
      <if test="divstatus != null">
        divStatus = #{divstatus,jdbcType=TINYINT},
      </if>
      <if test="fee != null">
        fee = #{fee,jdbcType=DECIMAL},
      </if>
      <if test="createtime != null">
        createTime = #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="feepayer != null">
        feePayer = #{feepayer,jdbcType=VARCHAR},
      </if>
      <if test="divstatuscode != null">
        divStatusCode = #{divstatuscode,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="refundamt != null">
        refundAmt = #{refundamt,jdbcType=DECIMAL},
      </if>
      <if test="notifyurl != null">
        notifyUrl = #{notifyurl,jdbcType=VARCHAR},
      </if>
      <if test="aisleswitch != null">
        aisleSwitch = #{aisleswitch,jdbcType=VARCHAR},
      </if>
      <if test="paytypename != null">
        payTypeName = #{paytypename,jdbcType=VARCHAR},
      </if>
      <if test="paytypecode != null">
        payTypeCode = #{paytypecode,jdbcType=VARCHAR},
      </if>
      <if test="ordertype != null">
        orderType = #{ordertype,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderSplit">
    update tb_pluss_merchant_order_split
    set orderNumber = #{ordernumber,jdbcType=VARCHAR},
      orderAmt = #{orderamt,jdbcType=DECIMAL},
      payTime = #{paytime,jdbcType=TIMESTAMP},
      status = #{status,jdbcType=INTEGER},
      mercOrderNo = #{mercorderno,jdbcType=VARCHAR},
      merchantCode = #{merchantcode,jdbcType=VARCHAR},
      merchantId = #{merchantid,jdbcType=VARCHAR},
      merchantName = #{merchantname,jdbcType=VARCHAR},
      divisionMode = #{divisionmode,jdbcType=VARCHAR},
      divStatus = #{divstatus,jdbcType=TINYINT},
      fee = #{fee,jdbcType=DECIMAL},
      createTime = #{createtime,jdbcType=TIMESTAMP},
      feePayer = #{feepayer,jdbcType=VARCHAR},
      divStatusCode = #{divstatuscode,jdbcType=VARCHAR},
      remark = #{remark,jdbcType=VARCHAR},
      refundAmt = #{refundamt,jdbcType=DECIMAL},
      notifyUrl = #{notifyurl,jdbcType=VARCHAR},
      aisleSwitch = #{aisleswitch,jdbcType=VARCHAR},
      payTypeName = #{paytypename,jdbcType=VARCHAR},
      payTypeCode = #{paytypecode,jdbcType=VARCHAR},
      orderType = #{ordertype,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>