<?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.TbPlussMerchantOrderOldLsMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderOldLs">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="orderNumber" jdbcType="VARCHAR" property="ordernumber" />
    <result column="userImg" jdbcType="VARCHAR" property="userimg" />
    <result column="nickName" jdbcType="VARCHAR" property="nickname" />
    <result column="orderType" jdbcType="VARCHAR" property="ordertype" />
    <result column="merchantCode" jdbcType="VARCHAR" property="merchantcode" />
    <result column="merchantName" jdbcType="VARCHAR" property="merchantname" />
    <result column="payTypeCode" jdbcType="VARCHAR" property="paytypecode" />
    <result column="payTypeName" jdbcType="VARCHAR" property="paytypename" />
    <result column="thirdTransNo" jdbcType="VARCHAR" property="thirdtransno" />
    <result column="storeId" jdbcType="VARCHAR" property="storeid" />
    <result column="storeName" jdbcType="VARCHAR" property="storename" />
    <result column="consumeFee" jdbcType="DOUBLE" property="consumefee" />
    <result column="transNo" jdbcType="VARCHAR" property="transno" />
    <result column="memberCode" jdbcType="VARCHAR" property="membercode" />
    <result column="createDt" jdbcType="TIMESTAMP" property="createdt" />
    <result column="transDt" jdbcType="TIMESTAMP" property="transdt" />
    <result column="staffCode" jdbcType="VARCHAR" property="staffcode" />
    <result column="staffName" jdbcType="VARCHAR" property="staffname" />
    <result column="status" jdbcType="VARCHAR" property="status" />
    <result column="enterFee" jdbcType="DOUBLE" property="enterfee" />
    <result column="aisleSwitch" jdbcType="VARCHAR" property="aisleswitch" />
    <result column="remark" jdbcType="VARCHAR" property="remark" />
    <result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
    <result column="rate" jdbcType="DECIMAL" property="rate" />
    <result column="marketAmt" jdbcType="DECIMAL" property="marketamt" />
    <result column="mercOrderNo" jdbcType="VARCHAR" property="mercorderno" />
    <result column="mercNotifyUrl" jdbcType="VARCHAR" property="mercnotifyurl" />
    <result column="mercUserId" jdbcType="VARCHAR" property="mercuserid" />
    <result column="mercNotifyStatus" jdbcType="CHAR" property="mercnotifystatus" />
    <result column="mercRemark" jdbcType="VARCHAR" property="mercremark" />
    <result column="isRecharge" jdbcType="VARCHAR" property="isrecharge" />
    <result column="snNo" jdbcType="VARCHAR" property="snno" />
    <result column="cashPlaceId" jdbcType="INTEGER" property="cashplaceid" />
    <result column="settlementType" jdbcType="BIT" property="settlementtype" />
    <result column="fansShareMoney" jdbcType="DOUBLE" property="fanssharemoney" />
    <result column="profitShareMoney" jdbcType="DOUBLE" property="profitsharemoney" />
    <result column="drType" jdbcType="CHAR" property="drtype" />
    <result column="channelRate" jdbcType="DECIMAL" property="channelrate" />
    <result column="channelFee" jdbcType="DECIMAL" property="channelfee" />
    <result column="mercFee" jdbcType="DECIMAL" property="mercfee" />
    <result column="ip" jdbcType="VARCHAR" property="ip" />
    <result column="ipAddress" jdbcType="VARCHAR" property="ipaddress" />
    <result column="mercReturnUrl" jdbcType="VARCHAR" property="mercreturnurl" />
    <result column="channelType" jdbcType="VARCHAR" property="channeltype" />
    <result column="createDate" jdbcType="DATE" property="createdate" />
    <result column="preAuthStatus" jdbcType="CHAR" property="preauthstatus" />
    <result column="refundAmt" jdbcType="DECIMAL" property="refundamt" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderOldLs">
    <result column="payData" jdbcType="LONGVARCHAR" property="paydata" />
  </resultMap>
  <sql id="Base_Column_List">
    id, orderNumber, userImg, nickName, orderType, merchantCode, merchantName, payTypeCode, 
    payTypeName, thirdTransNo, storeId, storeName, consumeFee, transNo, memberCode, createDt, 
    transDt, staffCode, staffName, status, enterFee, aisleSwitch, remark, updateTime, 
    rate, marketAmt, mercOrderNo, mercNotifyUrl, mercUserId, mercNotifyStatus, mercRemark, 
    isRecharge, snNo, cashPlaceId, settlementType, fansShareMoney, profitShareMoney, 
    drType, channelRate, channelFee, mercFee, ip, ipAddress, mercReturnUrl, channelType, 
    createDate, preAuthStatus, refundAmt
  </sql>
  <sql id="Blob_Column_List">
    payData
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from tb_pluss_merchant_order_old_ls
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_merchant_order_old_ls
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderOldLs">
    insert into tb_pluss_merchant_order_old_ls (id, orderNumber, userImg, 
      nickName, orderType, merchantCode, 
      merchantName, payTypeCode, payTypeName, 
      thirdTransNo, storeId, storeName, 
      consumeFee, transNo, memberCode, 
      createDt, transDt, staffCode, 
      staffName, status, enterFee, 
      aisleSwitch, remark, updateTime, 
      rate, marketAmt, mercOrderNo, 
      mercNotifyUrl, mercUserId, mercNotifyStatus, 
      mercRemark, isRecharge, snNo, 
      cashPlaceId, settlementType, fansShareMoney, 
      profitShareMoney, drType, channelRate, 
      channelFee, mercFee, ip, 
      ipAddress, mercReturnUrl, channelType, 
      createDate, preAuthStatus, refundAmt, 
      payData)
    values (#{id,jdbcType=INTEGER}, #{ordernumber,jdbcType=VARCHAR}, #{userimg,jdbcType=VARCHAR}, 
      #{nickname,jdbcType=VARCHAR}, #{ordertype,jdbcType=VARCHAR}, #{merchantcode,jdbcType=VARCHAR}, 
      #{merchantname,jdbcType=VARCHAR}, #{paytypecode,jdbcType=VARCHAR}, #{paytypename,jdbcType=VARCHAR}, 
      #{thirdtransno,jdbcType=VARCHAR}, #{storeid,jdbcType=VARCHAR}, #{storename,jdbcType=VARCHAR}, 
      #{consumefee,jdbcType=DOUBLE}, #{transno,jdbcType=VARCHAR}, #{membercode,jdbcType=VARCHAR}, 
      #{createdt,jdbcType=TIMESTAMP}, #{transdt,jdbcType=TIMESTAMP}, #{staffcode,jdbcType=VARCHAR}, 
      #{staffname,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{enterfee,jdbcType=DOUBLE}, 
      #{aisleswitch,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, 
      #{rate,jdbcType=DECIMAL}, #{marketamt,jdbcType=DECIMAL}, #{mercorderno,jdbcType=VARCHAR}, 
      #{mercnotifyurl,jdbcType=VARCHAR}, #{mercuserid,jdbcType=VARCHAR}, #{mercnotifystatus,jdbcType=CHAR}, 
      #{mercremark,jdbcType=VARCHAR}, #{isrecharge,jdbcType=VARCHAR}, #{snno,jdbcType=VARCHAR}, 
      #{cashplaceid,jdbcType=INTEGER}, #{settlementtype,jdbcType=BIT}, #{fanssharemoney,jdbcType=DOUBLE}, 
      #{profitsharemoney,jdbcType=DOUBLE}, #{drtype,jdbcType=CHAR}, #{channelrate,jdbcType=DECIMAL}, 
      #{channelfee,jdbcType=DECIMAL}, #{mercfee,jdbcType=DECIMAL}, #{ip,jdbcType=VARCHAR}, 
      #{ipaddress,jdbcType=VARCHAR}, #{mercreturnurl,jdbcType=VARCHAR}, #{channeltype,jdbcType=VARCHAR}, 
      #{createdate,jdbcType=DATE}, #{preauthstatus,jdbcType=CHAR}, #{refundamt,jdbcType=DECIMAL}, 
      #{paydata,jdbcType=LONGVARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderOldLs">
    insert into tb_pluss_merchant_order_old_ls
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="ordernumber != null">
        orderNumber,
      </if>
      <if test="userimg != null">
        userImg,
      </if>
      <if test="nickname != null">
        nickName,
      </if>
      <if test="ordertype != null">
        orderType,
      </if>
      <if test="merchantcode != null">
        merchantCode,
      </if>
      <if test="merchantname != null">
        merchantName,
      </if>
      <if test="paytypecode != null">
        payTypeCode,
      </if>
      <if test="paytypename != null">
        payTypeName,
      </if>
      <if test="thirdtransno != null">
        thirdTransNo,
      </if>
      <if test="storeid != null">
        storeId,
      </if>
      <if test="storename != null">
        storeName,
      </if>
      <if test="consumefee != null">
        consumeFee,
      </if>
      <if test="transno != null">
        transNo,
      </if>
      <if test="membercode != null">
        memberCode,
      </if>
      <if test="createdt != null">
        createDt,
      </if>
      <if test="transdt != null">
        transDt,
      </if>
      <if test="staffcode != null">
        staffCode,
      </if>
      <if test="staffname != null">
        staffName,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="enterfee != null">
        enterFee,
      </if>
      <if test="aisleswitch != null">
        aisleSwitch,
      </if>
      <if test="remark != null">
        remark,
      </if>
      <if test="updatetime != null">
        updateTime,
      </if>
      <if test="rate != null">
        rate,
      </if>
      <if test="marketamt != null">
        marketAmt,
      </if>
      <if test="mercorderno != null">
        mercOrderNo,
      </if>
      <if test="mercnotifyurl != null">
        mercNotifyUrl,
      </if>
      <if test="mercuserid != null">
        mercUserId,
      </if>
      <if test="mercnotifystatus != null">
        mercNotifyStatus,
      </if>
      <if test="mercremark != null">
        mercRemark,
      </if>
      <if test="isrecharge != null">
        isRecharge,
      </if>
      <if test="snno != null">
        snNo,
      </if>
      <if test="cashplaceid != null">
        cashPlaceId,
      </if>
      <if test="settlementtype != null">
        settlementType,
      </if>
      <if test="fanssharemoney != null">
        fansShareMoney,
      </if>
      <if test="profitsharemoney != null">
        profitShareMoney,
      </if>
      <if test="drtype != null">
        drType,
      </if>
      <if test="channelrate != null">
        channelRate,
      </if>
      <if test="channelfee != null">
        channelFee,
      </if>
      <if test="mercfee != null">
        mercFee,
      </if>
      <if test="ip != null">
        ip,
      </if>
      <if test="ipaddress != null">
        ipAddress,
      </if>
      <if test="mercreturnurl != null">
        mercReturnUrl,
      </if>
      <if test="channeltype != null">
        channelType,
      </if>
      <if test="createdate != null">
        createDate,
      </if>
      <if test="preauthstatus != null">
        preAuthStatus,
      </if>
      <if test="refundamt != null">
        refundAmt,
      </if>
      <if test="paydata != null">
        payData,
      </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="userimg != null">
        #{userimg,jdbcType=VARCHAR},
      </if>
      <if test="nickname != null">
        #{nickname,jdbcType=VARCHAR},
      </if>
      <if test="ordertype != null">
        #{ordertype,jdbcType=VARCHAR},
      </if>
      <if test="merchantcode != null">
        #{merchantcode,jdbcType=VARCHAR},
      </if>
      <if test="merchantname != null">
        #{merchantname,jdbcType=VARCHAR},
      </if>
      <if test="paytypecode != null">
        #{paytypecode,jdbcType=VARCHAR},
      </if>
      <if test="paytypename != null">
        #{paytypename,jdbcType=VARCHAR},
      </if>
      <if test="thirdtransno != null">
        #{thirdtransno,jdbcType=VARCHAR},
      </if>
      <if test="storeid != null">
        #{storeid,jdbcType=VARCHAR},
      </if>
      <if test="storename != null">
        #{storename,jdbcType=VARCHAR},
      </if>
      <if test="consumefee != null">
        #{consumefee,jdbcType=DOUBLE},
      </if>
      <if test="transno != null">
        #{transno,jdbcType=VARCHAR},
      </if>
      <if test="membercode != null">
        #{membercode,jdbcType=VARCHAR},
      </if>
      <if test="createdt != null">
        #{createdt,jdbcType=TIMESTAMP},
      </if>
      <if test="transdt != null">
        #{transdt,jdbcType=TIMESTAMP},
      </if>
      <if test="staffcode != null">
        #{staffcode,jdbcType=VARCHAR},
      </if>
      <if test="staffname != null">
        #{staffname,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=VARCHAR},
      </if>
      <if test="enterfee != null">
        #{enterfee,jdbcType=DOUBLE},
      </if>
      <if test="aisleswitch != null">
        #{aisleswitch,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="updatetime != null">
        #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="rate != null">
        #{rate,jdbcType=DECIMAL},
      </if>
      <if test="marketamt != null">
        #{marketamt,jdbcType=DECIMAL},
      </if>
      <if test="mercorderno != null">
        #{mercorderno,jdbcType=VARCHAR},
      </if>
      <if test="mercnotifyurl != null">
        #{mercnotifyurl,jdbcType=VARCHAR},
      </if>
      <if test="mercuserid != null">
        #{mercuserid,jdbcType=VARCHAR},
      </if>
      <if test="mercnotifystatus != null">
        #{mercnotifystatus,jdbcType=CHAR},
      </if>
      <if test="mercremark != null">
        #{mercremark,jdbcType=VARCHAR},
      </if>
      <if test="isrecharge != null">
        #{isrecharge,jdbcType=VARCHAR},
      </if>
      <if test="snno != null">
        #{snno,jdbcType=VARCHAR},
      </if>
      <if test="cashplaceid != null">
        #{cashplaceid,jdbcType=INTEGER},
      </if>
      <if test="settlementtype != null">
        #{settlementtype,jdbcType=BIT},
      </if>
      <if test="fanssharemoney != null">
        #{fanssharemoney,jdbcType=DOUBLE},
      </if>
      <if test="profitsharemoney != null">
        #{profitsharemoney,jdbcType=DOUBLE},
      </if>
      <if test="drtype != null">
        #{drtype,jdbcType=CHAR},
      </if>
      <if test="channelrate != null">
        #{channelrate,jdbcType=DECIMAL},
      </if>
      <if test="channelfee != null">
        #{channelfee,jdbcType=DECIMAL},
      </if>
      <if test="mercfee != null">
        #{mercfee,jdbcType=DECIMAL},
      </if>
      <if test="ip != null">
        #{ip,jdbcType=VARCHAR},
      </if>
      <if test="ipaddress != null">
        #{ipaddress,jdbcType=VARCHAR},
      </if>
      <if test="mercreturnurl != null">
        #{mercreturnurl,jdbcType=VARCHAR},
      </if>
      <if test="channeltype != null">
        #{channeltype,jdbcType=VARCHAR},
      </if>
      <if test="createdate != null">
        #{createdate,jdbcType=DATE},
      </if>
      <if test="preauthstatus != null">
        #{preauthstatus,jdbcType=CHAR},
      </if>
      <if test="refundamt != null">
        #{refundamt,jdbcType=DECIMAL},
      </if>
      <if test="paydata != null">
        #{paydata,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderOldLs">
    update tb_pluss_merchant_order_old_ls
    <set>
      <if test="ordernumber != null">
        orderNumber = #{ordernumber,jdbcType=VARCHAR},
      </if>
      <if test="userimg != null">
        userImg = #{userimg,jdbcType=VARCHAR},
      </if>
      <if test="nickname != null">
        nickName = #{nickname,jdbcType=VARCHAR},
      </if>
      <if test="ordertype != null">
        orderType = #{ordertype,jdbcType=VARCHAR},
      </if>
      <if test="merchantcode != null">
        merchantCode = #{merchantcode,jdbcType=VARCHAR},
      </if>
      <if test="merchantname != null">
        merchantName = #{merchantname,jdbcType=VARCHAR},
      </if>
      <if test="paytypecode != null">
        payTypeCode = #{paytypecode,jdbcType=VARCHAR},
      </if>
      <if test="paytypename != null">
        payTypeName = #{paytypename,jdbcType=VARCHAR},
      </if>
      <if test="thirdtransno != null">
        thirdTransNo = #{thirdtransno,jdbcType=VARCHAR},
      </if>
      <if test="storeid != null">
        storeId = #{storeid,jdbcType=VARCHAR},
      </if>
      <if test="storename != null">
        storeName = #{storename,jdbcType=VARCHAR},
      </if>
      <if test="consumefee != null">
        consumeFee = #{consumefee,jdbcType=DOUBLE},
      </if>
      <if test="transno != null">
        transNo = #{transno,jdbcType=VARCHAR},
      </if>
      <if test="membercode != null">
        memberCode = #{membercode,jdbcType=VARCHAR},
      </if>
      <if test="createdt != null">
        createDt = #{createdt,jdbcType=TIMESTAMP},
      </if>
      <if test="transdt != null">
        transDt = #{transdt,jdbcType=TIMESTAMP},
      </if>
      <if test="staffcode != null">
        staffCode = #{staffcode,jdbcType=VARCHAR},
      </if>
      <if test="staffname != null">
        staffName = #{staffname,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        status = #{status,jdbcType=VARCHAR},
      </if>
      <if test="enterfee != null">
        enterFee = #{enterfee,jdbcType=DOUBLE},
      </if>
      <if test="aisleswitch != null">
        aisleSwitch = #{aisleswitch,jdbcType=VARCHAR},
      </if>
      <if test="remark != null">
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="updatetime != null">
        updateTime = #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="rate != null">
        rate = #{rate,jdbcType=DECIMAL},
      </if>
      <if test="marketamt != null">
        marketAmt = #{marketamt,jdbcType=DECIMAL},
      </if>
      <if test="mercorderno != null">
        mercOrderNo = #{mercorderno,jdbcType=VARCHAR},
      </if>
      <if test="mercnotifyurl != null">
        mercNotifyUrl = #{mercnotifyurl,jdbcType=VARCHAR},
      </if>
      <if test="mercuserid != null">
        mercUserId = #{mercuserid,jdbcType=VARCHAR},
      </if>
      <if test="mercnotifystatus != null">
        mercNotifyStatus = #{mercnotifystatus,jdbcType=CHAR},
      </if>
      <if test="mercremark != null">
        mercRemark = #{mercremark,jdbcType=VARCHAR},
      </if>
      <if test="isrecharge != null">
        isRecharge = #{isrecharge,jdbcType=VARCHAR},
      </if>
      <if test="snno != null">
        snNo = #{snno,jdbcType=VARCHAR},
      </if>
      <if test="cashplaceid != null">
        cashPlaceId = #{cashplaceid,jdbcType=INTEGER},
      </if>
      <if test="settlementtype != null">
        settlementType = #{settlementtype,jdbcType=BIT},
      </if>
      <if test="fanssharemoney != null">
        fansShareMoney = #{fanssharemoney,jdbcType=DOUBLE},
      </if>
      <if test="profitsharemoney != null">
        profitShareMoney = #{profitsharemoney,jdbcType=DOUBLE},
      </if>
      <if test="drtype != null">
        drType = #{drtype,jdbcType=CHAR},
      </if>
      <if test="channelrate != null">
        channelRate = #{channelrate,jdbcType=DECIMAL},
      </if>
      <if test="channelfee != null">
        channelFee = #{channelfee,jdbcType=DECIMAL},
      </if>
      <if test="mercfee != null">
        mercFee = #{mercfee,jdbcType=DECIMAL},
      </if>
      <if test="ip != null">
        ip = #{ip,jdbcType=VARCHAR},
      </if>
      <if test="ipaddress != null">
        ipAddress = #{ipaddress,jdbcType=VARCHAR},
      </if>
      <if test="mercreturnurl != null">
        mercReturnUrl = #{mercreturnurl,jdbcType=VARCHAR},
      </if>
      <if test="channeltype != null">
        channelType = #{channeltype,jdbcType=VARCHAR},
      </if>
      <if test="createdate != null">
        createDate = #{createdate,jdbcType=DATE},
      </if>
      <if test="preauthstatus != null">
        preAuthStatus = #{preauthstatus,jdbcType=CHAR},
      </if>
      <if test="refundamt != null">
        refundAmt = #{refundamt,jdbcType=DECIMAL},
      </if>
      <if test="paydata != null">
        payData = #{paydata,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderOldLs">
    update tb_pluss_merchant_order_old_ls
    set orderNumber = #{ordernumber,jdbcType=VARCHAR},
      userImg = #{userimg,jdbcType=VARCHAR},
      nickName = #{nickname,jdbcType=VARCHAR},
      orderType = #{ordertype,jdbcType=VARCHAR},
      merchantCode = #{merchantcode,jdbcType=VARCHAR},
      merchantName = #{merchantname,jdbcType=VARCHAR},
      payTypeCode = #{paytypecode,jdbcType=VARCHAR},
      payTypeName = #{paytypename,jdbcType=VARCHAR},
      thirdTransNo = #{thirdtransno,jdbcType=VARCHAR},
      storeId = #{storeid,jdbcType=VARCHAR},
      storeName = #{storename,jdbcType=VARCHAR},
      consumeFee = #{consumefee,jdbcType=DOUBLE},
      transNo = #{transno,jdbcType=VARCHAR},
      memberCode = #{membercode,jdbcType=VARCHAR},
      createDt = #{createdt,jdbcType=TIMESTAMP},
      transDt = #{transdt,jdbcType=TIMESTAMP},
      staffCode = #{staffcode,jdbcType=VARCHAR},
      staffName = #{staffname,jdbcType=VARCHAR},
      status = #{status,jdbcType=VARCHAR},
      enterFee = #{enterfee,jdbcType=DOUBLE},
      aisleSwitch = #{aisleswitch,jdbcType=VARCHAR},
      remark = #{remark,jdbcType=VARCHAR},
      updateTime = #{updatetime,jdbcType=TIMESTAMP},
      rate = #{rate,jdbcType=DECIMAL},
      marketAmt = #{marketamt,jdbcType=DECIMAL},
      mercOrderNo = #{mercorderno,jdbcType=VARCHAR},
      mercNotifyUrl = #{mercnotifyurl,jdbcType=VARCHAR},
      mercUserId = #{mercuserid,jdbcType=VARCHAR},
      mercNotifyStatus = #{mercnotifystatus,jdbcType=CHAR},
      mercRemark = #{mercremark,jdbcType=VARCHAR},
      isRecharge = #{isrecharge,jdbcType=VARCHAR},
      snNo = #{snno,jdbcType=VARCHAR},
      cashPlaceId = #{cashplaceid,jdbcType=INTEGER},
      settlementType = #{settlementtype,jdbcType=BIT},
      fansShareMoney = #{fanssharemoney,jdbcType=DOUBLE},
      profitShareMoney = #{profitsharemoney,jdbcType=DOUBLE},
      drType = #{drtype,jdbcType=CHAR},
      channelRate = #{channelrate,jdbcType=DECIMAL},
      channelFee = #{channelfee,jdbcType=DECIMAL},
      mercFee = #{mercfee,jdbcType=DECIMAL},
      ip = #{ip,jdbcType=VARCHAR},
      ipAddress = #{ipaddress,jdbcType=VARCHAR},
      mercReturnUrl = #{mercreturnurl,jdbcType=VARCHAR},
      channelType = #{channeltype,jdbcType=VARCHAR},
      createDate = #{createdate,jdbcType=DATE},
      preAuthStatus = #{preauthstatus,jdbcType=CHAR},
      refundAmt = #{refundamt,jdbcType=DECIMAL},
      payData = #{paydata,jdbcType=LONGVARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantOrderOldLs">
    update tb_pluss_merchant_order_old_ls
    set orderNumber = #{ordernumber,jdbcType=VARCHAR},
      userImg = #{userimg,jdbcType=VARCHAR},
      nickName = #{nickname,jdbcType=VARCHAR},
      orderType = #{ordertype,jdbcType=VARCHAR},
      merchantCode = #{merchantcode,jdbcType=VARCHAR},
      merchantName = #{merchantname,jdbcType=VARCHAR},
      payTypeCode = #{paytypecode,jdbcType=VARCHAR},
      payTypeName = #{paytypename,jdbcType=VARCHAR},
      thirdTransNo = #{thirdtransno,jdbcType=VARCHAR},
      storeId = #{storeid,jdbcType=VARCHAR},
      storeName = #{storename,jdbcType=VARCHAR},
      consumeFee = #{consumefee,jdbcType=DOUBLE},
      transNo = #{transno,jdbcType=VARCHAR},
      memberCode = #{membercode,jdbcType=VARCHAR},
      createDt = #{createdt,jdbcType=TIMESTAMP},
      transDt = #{transdt,jdbcType=TIMESTAMP},
      staffCode = #{staffcode,jdbcType=VARCHAR},
      staffName = #{staffname,jdbcType=VARCHAR},
      status = #{status,jdbcType=VARCHAR},
      enterFee = #{enterfee,jdbcType=DOUBLE},
      aisleSwitch = #{aisleswitch,jdbcType=VARCHAR},
      remark = #{remark,jdbcType=VARCHAR},
      updateTime = #{updatetime,jdbcType=TIMESTAMP},
      rate = #{rate,jdbcType=DECIMAL},
      marketAmt = #{marketamt,jdbcType=DECIMAL},
      mercOrderNo = #{mercorderno,jdbcType=VARCHAR},
      mercNotifyUrl = #{mercnotifyurl,jdbcType=VARCHAR},
      mercUserId = #{mercuserid,jdbcType=VARCHAR},
      mercNotifyStatus = #{mercnotifystatus,jdbcType=CHAR},
      mercRemark = #{mercremark,jdbcType=VARCHAR},
      isRecharge = #{isrecharge,jdbcType=VARCHAR},
      snNo = #{snno,jdbcType=VARCHAR},
      cashPlaceId = #{cashplaceid,jdbcType=INTEGER},
      settlementType = #{settlementtype,jdbcType=BIT},
      fansShareMoney = #{fanssharemoney,jdbcType=DOUBLE},
      profitShareMoney = #{profitsharemoney,jdbcType=DOUBLE},
      drType = #{drtype,jdbcType=CHAR},
      channelRate = #{channelrate,jdbcType=DECIMAL},
      channelFee = #{channelfee,jdbcType=DECIMAL},
      mercFee = #{mercfee,jdbcType=DECIMAL},
      ip = #{ip,jdbcType=VARCHAR},
      ipAddress = #{ipaddress,jdbcType=VARCHAR},
      mercReturnUrl = #{mercreturnurl,jdbcType=VARCHAR},
      channelType = #{channeltype,jdbcType=VARCHAR},
      createDate = #{createdate,jdbcType=DATE},
      preAuthStatus = #{preauthstatus,jdbcType=CHAR},
      refundAmt = #{refundamt,jdbcType=DECIMAL}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>