<?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.TbPlussMerchantBaseInfoMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussMerchantBaseInfo">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="bindingCode" jdbcType="VARCHAR" property="bindingcode" />
    <result column="userId" jdbcType="INTEGER" property="userid" />
    <result column="aliAccount" jdbcType="VARCHAR" property="aliaccount" />
    <result column="merchantCode" jdbcType="VARCHAR" property="merchantcode" />
    <result column="merchantName" jdbcType="VARCHAR" property="merchantname" />
    <result column="merchantType" jdbcType="VARCHAR" property="merchanttype" />
    <result column="productDesc" jdbcType="VARCHAR" property="productdesc" />
    <result column="aliMcc" jdbcType="VARCHAR" property="alimcc" />
    <result column="mcc" jdbcType="VARCHAR" property="mcc" />
    <result column="mccName" jdbcType="VARCHAR" property="mccname" />
    <result column="alias" jdbcType="VARCHAR" property="alias" />
    <result column="contactMobile" jdbcType="VARCHAR" property="contactmobile" />
    <result column="contactName" jdbcType="VARCHAR" property="contactname" />
    <result column="addressNo" jdbcType="VARCHAR" property="addressno" />
    <result column="province" jdbcType="VARCHAR" property="province" />
    <result column="city" jdbcType="VARCHAR" property="city" />
    <result column="district" jdbcType="VARCHAR" property="district" />
    <result column="address" jdbcType="VARCHAR" property="address" />
    <result column="email" jdbcType="VARCHAR" property="email" />
    <result column="principalMobile" jdbcType="VARCHAR" property="principalmobile" />
    <result column="principalCertType" jdbcType="VARCHAR" property="principalcerttype" />
    <result column="principalCertNo" jdbcType="VARCHAR" property="principalcertno" />
    <result column="principalPerson" jdbcType="VARCHAR" property="principalperson" />
    <result column="bussAuthName" jdbcType="VARCHAR" property="bussauthname" />
    <result column="bussAuthNum" jdbcType="VARCHAR" property="bussauthnum" />
    <result column="bussAuthAddress" jdbcType="VARCHAR" property="bussauthaddress" />
    <result column="bussAuthStartTime" jdbcType="VARCHAR" property="bussauthstarttime" />
    <result column="bussAuthEndTime" jdbcType="VARCHAR" property="bussauthendtime" />
    <result column="certOrgCode" jdbcType="VARCHAR" property="certorgcode" />
    <result column="createDt" jdbcType="TIMESTAMP" property="createdt" />
    <result column="updateDt" jdbcType="TIMESTAMP" property="updatedt" />
    <result column="creator" jdbcType="VARCHAR" property="creator" />
    <result column="buslicType" jdbcType="VARCHAR" property="buslictype" />
    <result column="isVoice" jdbcType="VARCHAR" property="isvoice" />
    <result column="allowBankLarge" jdbcType="VARCHAR" property="allowbanklarge" />
    <result column="wxCertStatus" jdbcType="VARCHAR" property="wxcertstatus" />
    <result column="isPushWxMessage" jdbcType="CHAR" property="ispushwxmessage" />
    <result column="isUnionPay" jdbcType="CHAR" property="isunionpay" />
    <result column="md5Key" jdbcType="VARCHAR" property="md5key" />
    <result column="limitPay" jdbcType="VARCHAR" property="limitpay" />
    <result column="subAppId" jdbcType="VARCHAR" property="subappid" />
    <result column="appid" jdbcType="VARCHAR" property="appid" />
    <result column="firstTradeTime" jdbcType="TIMESTAMP" property="firsttradetime" />
    <result column="lastTradeTime" jdbcType="TIMESTAMP" property="lasttradetime" />
    <result column="splitFlag" jdbcType="TINYINT" property="splitflag" />
    <result column="validFlag" jdbcType="TINYINT" property="validflag" />
  </resultMap>
  <sql id="Base_Column_List">
    id, bindingCode, userId, aliAccount, merchantCode, merchantName, merchantType, productDesc, 
    aliMcc, mcc, mccName, alias, contactMobile, contactName, addressNo, province, city, 
    district, address, email, principalMobile, principalCertType, principalCertNo, principalPerson, 
    bussAuthName, bussAuthNum, bussAuthAddress, bussAuthStartTime, bussAuthEndTime, certOrgCode, 
    createDt, updateDt, creator, buslicType, isVoice, allowBankLarge, wxCertStatus, isPushWxMessage, 
    isUnionPay, md5Key, limitPay, subAppId, appid, firstTradeTime, lastTradeTime, splitFlag, 
    validFlag
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_merchant_base_info
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_merchant_base_info
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantBaseInfo">
    insert into tb_pluss_merchant_base_info (id, bindingCode, userId, 
      aliAccount, merchantCode, merchantName, 
      merchantType, productDesc, aliMcc, 
      mcc, mccName, alias, 
      contactMobile, contactName, addressNo, 
      province, city, district, 
      address, email, principalMobile, 
      principalCertType, principalCertNo, principalPerson, 
      bussAuthName, bussAuthNum, bussAuthAddress, 
      bussAuthStartTime, bussAuthEndTime, certOrgCode, 
      createDt, updateDt, creator, 
      buslicType, isVoice, allowBankLarge, 
      wxCertStatus, isPushWxMessage, isUnionPay, 
      md5Key, limitPay, subAppId, 
      appid, firstTradeTime, lastTradeTime, 
      splitFlag, validFlag)
    values (#{id,jdbcType=INTEGER}, #{bindingcode,jdbcType=VARCHAR}, #{userid,jdbcType=INTEGER}, 
      #{aliaccount,jdbcType=VARCHAR}, #{merchantcode,jdbcType=VARCHAR}, #{merchantname,jdbcType=VARCHAR}, 
      #{merchanttype,jdbcType=VARCHAR}, #{productdesc,jdbcType=VARCHAR}, #{alimcc,jdbcType=VARCHAR}, 
      #{mcc,jdbcType=VARCHAR}, #{mccname,jdbcType=VARCHAR}, #{alias,jdbcType=VARCHAR}, 
      #{contactmobile,jdbcType=VARCHAR}, #{contactname,jdbcType=VARCHAR}, #{addressno,jdbcType=VARCHAR}, 
      #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{district,jdbcType=VARCHAR}, 
      #{address,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{principalmobile,jdbcType=VARCHAR}, 
      #{principalcerttype,jdbcType=VARCHAR}, #{principalcertno,jdbcType=VARCHAR}, #{principalperson,jdbcType=VARCHAR}, 
      #{bussauthname,jdbcType=VARCHAR}, #{bussauthnum,jdbcType=VARCHAR}, #{bussauthaddress,jdbcType=VARCHAR}, 
      #{bussauthstarttime,jdbcType=VARCHAR}, #{bussauthendtime,jdbcType=VARCHAR}, #{certorgcode,jdbcType=VARCHAR}, 
      #{createdt,jdbcType=TIMESTAMP}, #{updatedt,jdbcType=TIMESTAMP}, #{creator,jdbcType=VARCHAR}, 
      #{buslictype,jdbcType=VARCHAR}, #{isvoice,jdbcType=VARCHAR}, #{allowbanklarge,jdbcType=VARCHAR}, 
      #{wxcertstatus,jdbcType=VARCHAR}, #{ispushwxmessage,jdbcType=CHAR}, #{isunionpay,jdbcType=CHAR}, 
      #{md5key,jdbcType=VARCHAR}, #{limitpay,jdbcType=VARCHAR}, #{subappid,jdbcType=VARCHAR}, 
      #{appid,jdbcType=VARCHAR}, #{firsttradetime,jdbcType=TIMESTAMP}, #{lasttradetime,jdbcType=TIMESTAMP}, 
      #{splitflag,jdbcType=TINYINT}, #{validflag,jdbcType=TINYINT})
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantBaseInfo">
    insert into tb_pluss_merchant_base_info
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="bindingcode != null">
        bindingCode,
      </if>
      <if test="userid != null">
        userId,
      </if>
      <if test="aliaccount != null">
        aliAccount,
      </if>
      <if test="merchantcode != null">
        merchantCode,
      </if>
      <if test="merchantname != null">
        merchantName,
      </if>
      <if test="merchanttype != null">
        merchantType,
      </if>
      <if test="productdesc != null">
        productDesc,
      </if>
      <if test="alimcc != null">
        aliMcc,
      </if>
      <if test="mcc != null">
        mcc,
      </if>
      <if test="mccname != null">
        mccName,
      </if>
      <if test="alias != null">
        alias,
      </if>
      <if test="contactmobile != null">
        contactMobile,
      </if>
      <if test="contactname != null">
        contactName,
      </if>
      <if test="addressno != null">
        addressNo,
      </if>
      <if test="province != null">
        province,
      </if>
      <if test="city != null">
        city,
      </if>
      <if test="district != null">
        district,
      </if>
      <if test="address != null">
        address,
      </if>
      <if test="email != null">
        email,
      </if>
      <if test="principalmobile != null">
        principalMobile,
      </if>
      <if test="principalcerttype != null">
        principalCertType,
      </if>
      <if test="principalcertno != null">
        principalCertNo,
      </if>
      <if test="principalperson != null">
        principalPerson,
      </if>
      <if test="bussauthname != null">
        bussAuthName,
      </if>
      <if test="bussauthnum != null">
        bussAuthNum,
      </if>
      <if test="bussauthaddress != null">
        bussAuthAddress,
      </if>
      <if test="bussauthstarttime != null">
        bussAuthStartTime,
      </if>
      <if test="bussauthendtime != null">
        bussAuthEndTime,
      </if>
      <if test="certorgcode != null">
        certOrgCode,
      </if>
      <if test="createdt != null">
        createDt,
      </if>
      <if test="updatedt != null">
        updateDt,
      </if>
      <if test="creator != null">
        creator,
      </if>
      <if test="buslictype != null">
        buslicType,
      </if>
      <if test="isvoice != null">
        isVoice,
      </if>
      <if test="allowbanklarge != null">
        allowBankLarge,
      </if>
      <if test="wxcertstatus != null">
        wxCertStatus,
      </if>
      <if test="ispushwxmessage != null">
        isPushWxMessage,
      </if>
      <if test="isunionpay != null">
        isUnionPay,
      </if>
      <if test="md5key != null">
        md5Key,
      </if>
      <if test="limitpay != null">
        limitPay,
      </if>
      <if test="subappid != null">
        subAppId,
      </if>
      <if test="appid != null">
        appid,
      </if>
      <if test="firsttradetime != null">
        firstTradeTime,
      </if>
      <if test="lasttradetime != null">
        lastTradeTime,
      </if>
      <if test="splitflag != null">
        splitFlag,
      </if>
      <if test="validflag != null">
        validFlag,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="bindingcode != null">
        #{bindingcode,jdbcType=VARCHAR},
      </if>
      <if test="userid != null">
        #{userid,jdbcType=INTEGER},
      </if>
      <if test="aliaccount != null">
        #{aliaccount,jdbcType=VARCHAR},
      </if>
      <if test="merchantcode != null">
        #{merchantcode,jdbcType=VARCHAR},
      </if>
      <if test="merchantname != null">
        #{merchantname,jdbcType=VARCHAR},
      </if>
      <if test="merchanttype != null">
        #{merchanttype,jdbcType=VARCHAR},
      </if>
      <if test="productdesc != null">
        #{productdesc,jdbcType=VARCHAR},
      </if>
      <if test="alimcc != null">
        #{alimcc,jdbcType=VARCHAR},
      </if>
      <if test="mcc != null">
        #{mcc,jdbcType=VARCHAR},
      </if>
      <if test="mccname != null">
        #{mccname,jdbcType=VARCHAR},
      </if>
      <if test="alias != null">
        #{alias,jdbcType=VARCHAR},
      </if>
      <if test="contactmobile != null">
        #{contactmobile,jdbcType=VARCHAR},
      </if>
      <if test="contactname != null">
        #{contactname,jdbcType=VARCHAR},
      </if>
      <if test="addressno != null">
        #{addressno,jdbcType=VARCHAR},
      </if>
      <if test="province != null">
        #{province,jdbcType=VARCHAR},
      </if>
      <if test="city != null">
        #{city,jdbcType=VARCHAR},
      </if>
      <if test="district != null">
        #{district,jdbcType=VARCHAR},
      </if>
      <if test="address != null">
        #{address,jdbcType=VARCHAR},
      </if>
      <if test="email != null">
        #{email,jdbcType=VARCHAR},
      </if>
      <if test="principalmobile != null">
        #{principalmobile,jdbcType=VARCHAR},
      </if>
      <if test="principalcerttype != null">
        #{principalcerttype,jdbcType=VARCHAR},
      </if>
      <if test="principalcertno != null">
        #{principalcertno,jdbcType=VARCHAR},
      </if>
      <if test="principalperson != null">
        #{principalperson,jdbcType=VARCHAR},
      </if>
      <if test="bussauthname != null">
        #{bussauthname,jdbcType=VARCHAR},
      </if>
      <if test="bussauthnum != null">
        #{bussauthnum,jdbcType=VARCHAR},
      </if>
      <if test="bussauthaddress != null">
        #{bussauthaddress,jdbcType=VARCHAR},
      </if>
      <if test="bussauthstarttime != null">
        #{bussauthstarttime,jdbcType=VARCHAR},
      </if>
      <if test="bussauthendtime != null">
        #{bussauthendtime,jdbcType=VARCHAR},
      </if>
      <if test="certorgcode != null">
        #{certorgcode,jdbcType=VARCHAR},
      </if>
      <if test="createdt != null">
        #{createdt,jdbcType=TIMESTAMP},
      </if>
      <if test="updatedt != null">
        #{updatedt,jdbcType=TIMESTAMP},
      </if>
      <if test="creator != null">
        #{creator,jdbcType=VARCHAR},
      </if>
      <if test="buslictype != null">
        #{buslictype,jdbcType=VARCHAR},
      </if>
      <if test="isvoice != null">
        #{isvoice,jdbcType=VARCHAR},
      </if>
      <if test="allowbanklarge != null">
        #{allowbanklarge,jdbcType=VARCHAR},
      </if>
      <if test="wxcertstatus != null">
        #{wxcertstatus,jdbcType=VARCHAR},
      </if>
      <if test="ispushwxmessage != null">
        #{ispushwxmessage,jdbcType=CHAR},
      </if>
      <if test="isunionpay != null">
        #{isunionpay,jdbcType=CHAR},
      </if>
      <if test="md5key != null">
        #{md5key,jdbcType=VARCHAR},
      </if>
      <if test="limitpay != null">
        #{limitpay,jdbcType=VARCHAR},
      </if>
      <if test="subappid != null">
        #{subappid,jdbcType=VARCHAR},
      </if>
      <if test="appid != null">
        #{appid,jdbcType=VARCHAR},
      </if>
      <if test="firsttradetime != null">
        #{firsttradetime,jdbcType=TIMESTAMP},
      </if>
      <if test="lasttradetime != null">
        #{lasttradetime,jdbcType=TIMESTAMP},
      </if>
      <if test="splitflag != null">
        #{splitflag,jdbcType=TINYINT},
      </if>
      <if test="validflag != null">
        #{validflag,jdbcType=TINYINT},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantBaseInfo">
    update tb_pluss_merchant_base_info
    <set>
      <if test="bindingcode != null">
        bindingCode = #{bindingcode,jdbcType=VARCHAR},
      </if>
      <if test="userid != null">
        userId = #{userid,jdbcType=INTEGER},
      </if>
      <if test="aliaccount != null">
        aliAccount = #{aliaccount,jdbcType=VARCHAR},
      </if>
      <if test="merchantcode != null">
        merchantCode = #{merchantcode,jdbcType=VARCHAR},
      </if>
      <if test="merchantname != null">
        merchantName = #{merchantname,jdbcType=VARCHAR},
      </if>
      <if test="merchanttype != null">
        merchantType = #{merchanttype,jdbcType=VARCHAR},
      </if>
      <if test="productdesc != null">
        productDesc = #{productdesc,jdbcType=VARCHAR},
      </if>
      <if test="alimcc != null">
        aliMcc = #{alimcc,jdbcType=VARCHAR},
      </if>
      <if test="mcc != null">
        mcc = #{mcc,jdbcType=VARCHAR},
      </if>
      <if test="mccname != null">
        mccName = #{mccname,jdbcType=VARCHAR},
      </if>
      <if test="alias != null">
        alias = #{alias,jdbcType=VARCHAR},
      </if>
      <if test="contactmobile != null">
        contactMobile = #{contactmobile,jdbcType=VARCHAR},
      </if>
      <if test="contactname != null">
        contactName = #{contactname,jdbcType=VARCHAR},
      </if>
      <if test="addressno != null">
        addressNo = #{addressno,jdbcType=VARCHAR},
      </if>
      <if test="province != null">
        province = #{province,jdbcType=VARCHAR},
      </if>
      <if test="city != null">
        city = #{city,jdbcType=VARCHAR},
      </if>
      <if test="district != null">
        district = #{district,jdbcType=VARCHAR},
      </if>
      <if test="address != null">
        address = #{address,jdbcType=VARCHAR},
      </if>
      <if test="email != null">
        email = #{email,jdbcType=VARCHAR},
      </if>
      <if test="principalmobile != null">
        principalMobile = #{principalmobile,jdbcType=VARCHAR},
      </if>
      <if test="principalcerttype != null">
        principalCertType = #{principalcerttype,jdbcType=VARCHAR},
      </if>
      <if test="principalcertno != null">
        principalCertNo = #{principalcertno,jdbcType=VARCHAR},
      </if>
      <if test="principalperson != null">
        principalPerson = #{principalperson,jdbcType=VARCHAR},
      </if>
      <if test="bussauthname != null">
        bussAuthName = #{bussauthname,jdbcType=VARCHAR},
      </if>
      <if test="bussauthnum != null">
        bussAuthNum = #{bussauthnum,jdbcType=VARCHAR},
      </if>
      <if test="bussauthaddress != null">
        bussAuthAddress = #{bussauthaddress,jdbcType=VARCHAR},
      </if>
      <if test="bussauthstarttime != null">
        bussAuthStartTime = #{bussauthstarttime,jdbcType=VARCHAR},
      </if>
      <if test="bussauthendtime != null">
        bussAuthEndTime = #{bussauthendtime,jdbcType=VARCHAR},
      </if>
      <if test="certorgcode != null">
        certOrgCode = #{certorgcode,jdbcType=VARCHAR},
      </if>
      <if test="createdt != null">
        createDt = #{createdt,jdbcType=TIMESTAMP},
      </if>
      <if test="updatedt != null">
        updateDt = #{updatedt,jdbcType=TIMESTAMP},
      </if>
      <if test="creator != null">
        creator = #{creator,jdbcType=VARCHAR},
      </if>
      <if test="buslictype != null">
        buslicType = #{buslictype,jdbcType=VARCHAR},
      </if>
      <if test="isvoice != null">
        isVoice = #{isvoice,jdbcType=VARCHAR},
      </if>
      <if test="allowbanklarge != null">
        allowBankLarge = #{allowbanklarge,jdbcType=VARCHAR},
      </if>
      <if test="wxcertstatus != null">
        wxCertStatus = #{wxcertstatus,jdbcType=VARCHAR},
      </if>
      <if test="ispushwxmessage != null">
        isPushWxMessage = #{ispushwxmessage,jdbcType=CHAR},
      </if>
      <if test="isunionpay != null">
        isUnionPay = #{isunionpay,jdbcType=CHAR},
      </if>
      <if test="md5key != null">
        md5Key = #{md5key,jdbcType=VARCHAR},
      </if>
      <if test="limitpay != null">
        limitPay = #{limitpay,jdbcType=VARCHAR},
      </if>
      <if test="subappid != null">
        subAppId = #{subappid,jdbcType=VARCHAR},
      </if>
      <if test="appid != null">
        appid = #{appid,jdbcType=VARCHAR},
      </if>
      <if test="firsttradetime != null">
        firstTradeTime = #{firsttradetime,jdbcType=TIMESTAMP},
      </if>
      <if test="lasttradetime != null">
        lastTradeTime = #{lasttradetime,jdbcType=TIMESTAMP},
      </if>
      <if test="splitflag != null">
        splitFlag = #{splitflag,jdbcType=TINYINT},
      </if>
      <if test="validflag != null">
        validFlag = #{validflag,jdbcType=TINYINT},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantBaseInfo">
    update tb_pluss_merchant_base_info
    set bindingCode = #{bindingcode,jdbcType=VARCHAR},
      userId = #{userid,jdbcType=INTEGER},
      aliAccount = #{aliaccount,jdbcType=VARCHAR},
      merchantCode = #{merchantcode,jdbcType=VARCHAR},
      merchantName = #{merchantname,jdbcType=VARCHAR},
      merchantType = #{merchanttype,jdbcType=VARCHAR},
      productDesc = #{productdesc,jdbcType=VARCHAR},
      aliMcc = #{alimcc,jdbcType=VARCHAR},
      mcc = #{mcc,jdbcType=VARCHAR},
      mccName = #{mccname,jdbcType=VARCHAR},
      alias = #{alias,jdbcType=VARCHAR},
      contactMobile = #{contactmobile,jdbcType=VARCHAR},
      contactName = #{contactname,jdbcType=VARCHAR},
      addressNo = #{addressno,jdbcType=VARCHAR},
      province = #{province,jdbcType=VARCHAR},
      city = #{city,jdbcType=VARCHAR},
      district = #{district,jdbcType=VARCHAR},
      address = #{address,jdbcType=VARCHAR},
      email = #{email,jdbcType=VARCHAR},
      principalMobile = #{principalmobile,jdbcType=VARCHAR},
      principalCertType = #{principalcerttype,jdbcType=VARCHAR},
      principalCertNo = #{principalcertno,jdbcType=VARCHAR},
      principalPerson = #{principalperson,jdbcType=VARCHAR},
      bussAuthName = #{bussauthname,jdbcType=VARCHAR},
      bussAuthNum = #{bussauthnum,jdbcType=VARCHAR},
      bussAuthAddress = #{bussauthaddress,jdbcType=VARCHAR},
      bussAuthStartTime = #{bussauthstarttime,jdbcType=VARCHAR},
      bussAuthEndTime = #{bussauthendtime,jdbcType=VARCHAR},
      certOrgCode = #{certorgcode,jdbcType=VARCHAR},
      createDt = #{createdt,jdbcType=TIMESTAMP},
      updateDt = #{updatedt,jdbcType=TIMESTAMP},
      creator = #{creator,jdbcType=VARCHAR},
      buslicType = #{buslictype,jdbcType=VARCHAR},
      isVoice = #{isvoice,jdbcType=VARCHAR},
      allowBankLarge = #{allowbanklarge,jdbcType=VARCHAR},
      wxCertStatus = #{wxcertstatus,jdbcType=VARCHAR},
      isPushWxMessage = #{ispushwxmessage,jdbcType=CHAR},
      isUnionPay = #{isunionpay,jdbcType=CHAR},
      md5Key = #{md5key,jdbcType=VARCHAR},
      limitPay = #{limitpay,jdbcType=VARCHAR},
      subAppId = #{subappid,jdbcType=VARCHAR},
      appid = #{appid,jdbcType=VARCHAR},
      firstTradeTime = #{firsttradetime,jdbcType=TIMESTAMP},
      lastTradeTime = #{lasttradetime,jdbcType=TIMESTAMP},
      splitFlag = #{splitflag,jdbcType=TINYINT},
      validFlag = #{validflag,jdbcType=TINYINT}
    where id = #{id,jdbcType=INTEGER}
  </update>

  <select id="selectByUserId" resultMap="BaseResultMap">

    select * from tb_pluss_merchant_base_info where userId=#{userId}
    </select>

  <select id="selectByMerchantcode" resultMap="BaseResultMap">
    select * from tb_pluss_merchant_base_info where merchantCode=#{merchantcode}
    </select>
</mapper>