<?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.TbPlussMerchantStoreMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussMerchantStore">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="merchantCode" jdbcType="VARCHAR" property="merchantcode" />
    <result column="merchantName" jdbcType="VARCHAR" property="merchantname" />
    <result column="aliAccount" jdbcType="VARCHAR" property="aliaccount" />
    <result column="aliMcc" jdbcType="VARCHAR" property="alimcc" />
    <result column="mcc" jdbcType="VARCHAR" property="mcc" />
    <result column="mccName" jdbcType="VARCHAR" property="mccname" />
    <result column="storeId" jdbcType="VARCHAR" property="storeid" />
    <result column="storeName" jdbcType="VARCHAR" property="storename" />
    <result column="linkName" jdbcType="VARCHAR" property="linkname" />
    <result column="linkPhone" jdbcType="VARCHAR" property="linkphone" />
    <result column="addressNo" jdbcType="VARCHAR" property="addressno" />
    <result column="storeAddress" jdbcType="VARCHAR" property="storeaddress" />
    <result column="leshuaMerchantAddress" jdbcType="VARCHAR" property="leshuamerchantaddress" />
    <result column="address" jdbcType="VARCHAR" property="address" />
    <result column="businessLicenseNo" jdbcType="VARCHAR" property="businesslicenseno" />
    <result column="businessStartTime" jdbcType="TIMESTAMP" property="businessstarttime" />
    <result column="businessEndTime" jdbcType="TIMESTAMP" property="businessendtime" />
    <result column="businessLicensePic" jdbcType="VARCHAR" property="businesslicensepic" />
    <result column="storeDesc" jdbcType="VARCHAR" property="storedesc" />
    <result column="logo" jdbcType="VARCHAR" property="logo" />
    <result column="creator" jdbcType="VARCHAR" property="creator" />
    <result column="createDt" jdbcType="TIMESTAMP" property="createdt" />
    <result column="openingTime" jdbcType="VARCHAR" property="openingtime" />
    <result column="status" jdbcType="VARCHAR" property="status" />
    <result column="parentCode" jdbcType="VARCHAR" property="parentcode" />
    <result column="email" jdbcType="VARCHAR" property="email" />
    <result column="isAccount" jdbcType="VARCHAR" property="isaccount" />
    <result column="loginName" jdbcType="VARCHAR" property="loginname" />
    <result column="paymentCodeUrl" jdbcType="VARCHAR" property="paymentcodeurl" />
    <result column="storeHeadPic" jdbcType="VARCHAR" property="storeheadpic" />
    <result column="storeInsidePic" jdbcType="VARCHAR" property="storeinsidepic" />
    <result column="cashPic" jdbcType="VARCHAR" property="cashpic" />
    <result column="productDesc" jdbcType="VARCHAR" property="productdesc" />
    <result column="rate" jdbcType="DOUBLE" property="rate" />
    <result column="alipaySource" jdbcType="VARCHAR" property="alipaysource" />
    <result column="applymentId" jdbcType="VARCHAR" property="applymentid" />
    <result column="aliStatus" jdbcType="VARCHAR" property="alistatus" />
    <result column="wechatStatus" jdbcType="VARCHAR" property="wechatstatus" />
    <result column="leshuaStatus" jdbcType="VARCHAR" property="leshuastatus" />
    <result column="subMchId" jdbcType="VARCHAR" property="submchid" />
    <result column="appTokenAuth" jdbcType="VARCHAR" property="apptokenauth" />
    <result column="leshuaMchId" jdbcType="VARCHAR" property="leshuamchid" />
    <result column="leshuaUserName" jdbcType="VARCHAR" property="leshuausername" />
    <result column="payEcdemicSwitch" jdbcType="VARCHAR" property="payecdemicswitch" />
    <result column="isMarket" jdbcType="VARCHAR" property="ismarket" />
  </resultMap>
  <sql id="Base_Column_List">
    id, merchantCode, merchantName, aliAccount, aliMcc, mcc, mccName, storeId, storeName, 
    linkName, linkPhone, addressNo, storeAddress, leshuaMerchantAddress, address, businessLicenseNo, 
    businessStartTime, businessEndTime, businessLicensePic, storeDesc, logo, creator, 
    createDt, openingTime, status, parentCode, email, isAccount, loginName, paymentCodeUrl, 
    storeHeadPic, storeInsidePic, cashPic, productDesc, rate, alipaySource, applymentId, 
    aliStatus, wechatStatus, leshuaStatus, subMchId, appTokenAuth, leshuaMchId, leshuaUserName, 
    payEcdemicSwitch, isMarket
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_merchant_store
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_merchant_store
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantStore">
    insert into tb_pluss_merchant_store (id, merchantCode, merchantName, 
      aliAccount, aliMcc, mcc, 
      mccName, storeId, storeName, 
      linkName, linkPhone, addressNo, 
      storeAddress, leshuaMerchantAddress, address, 
      businessLicenseNo, businessStartTime, 
      businessEndTime, businessLicensePic, 
      storeDesc, logo, creator, 
      createDt, openingTime, status, 
      parentCode, email, isAccount, 
      loginName, paymentCodeUrl, storeHeadPic, 
      storeInsidePic, cashPic, productDesc, 
      rate, alipaySource, applymentId, 
      aliStatus, wechatStatus, leshuaStatus, 
      subMchId, appTokenAuth, leshuaMchId, 
      leshuaUserName, payEcdemicSwitch, isMarket
      )
    values (#{id,jdbcType=INTEGER}, #{merchantcode,jdbcType=VARCHAR}, #{merchantname,jdbcType=VARCHAR}, 
      #{aliaccount,jdbcType=VARCHAR}, #{alimcc,jdbcType=VARCHAR}, #{mcc,jdbcType=VARCHAR}, 
      #{mccname,jdbcType=VARCHAR}, #{storeid,jdbcType=VARCHAR}, #{storename,jdbcType=VARCHAR}, 
      #{linkname,jdbcType=VARCHAR}, #{linkphone,jdbcType=VARCHAR}, #{addressno,jdbcType=VARCHAR}, 
      #{storeaddress,jdbcType=VARCHAR}, #{leshuamerchantaddress,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, 
      #{businesslicenseno,jdbcType=VARCHAR}, #{businessstarttime,jdbcType=TIMESTAMP}, 
      #{businessendtime,jdbcType=TIMESTAMP}, #{businesslicensepic,jdbcType=VARCHAR}, 
      #{storedesc,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR}, 
      #{createdt,jdbcType=TIMESTAMP}, #{openingtime,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, 
      #{parentcode,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{isaccount,jdbcType=VARCHAR}, 
      #{loginname,jdbcType=VARCHAR}, #{paymentcodeurl,jdbcType=VARCHAR}, #{storeheadpic,jdbcType=VARCHAR}, 
      #{storeinsidepic,jdbcType=VARCHAR}, #{cashpic,jdbcType=VARCHAR}, #{productdesc,jdbcType=VARCHAR}, 
      #{rate,jdbcType=DOUBLE}, #{alipaysource,jdbcType=VARCHAR}, #{applymentid,jdbcType=VARCHAR}, 
      #{alistatus,jdbcType=VARCHAR}, #{wechatstatus,jdbcType=VARCHAR}, #{leshuastatus,jdbcType=VARCHAR}, 
      #{submchid,jdbcType=VARCHAR}, #{apptokenauth,jdbcType=VARCHAR}, #{leshuamchid,jdbcType=VARCHAR}, 
      #{leshuausername,jdbcType=VARCHAR}, #{payecdemicswitch,jdbcType=VARCHAR}, #{ismarket,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantStore">
    insert into tb_pluss_merchant_store
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="merchantcode != null">
        merchantCode,
      </if>
      <if test="merchantname != null">
        merchantName,
      </if>
      <if test="aliaccount != null">
        aliAccount,
      </if>
      <if test="alimcc != null">
        aliMcc,
      </if>
      <if test="mcc != null">
        mcc,
      </if>
      <if test="mccname != null">
        mccName,
      </if>
      <if test="storeid != null">
        storeId,
      </if>
      <if test="storename != null">
        storeName,
      </if>
      <if test="linkname != null">
        linkName,
      </if>
      <if test="linkphone != null">
        linkPhone,
      </if>
      <if test="addressno != null">
        addressNo,
      </if>
      <if test="storeaddress != null">
        storeAddress,
      </if>
      <if test="leshuamerchantaddress != null">
        leshuaMerchantAddress,
      </if>
      <if test="address != null">
        address,
      </if>
      <if test="businesslicenseno != null">
        businessLicenseNo,
      </if>
      <if test="businessstarttime != null">
        businessStartTime,
      </if>
      <if test="businessendtime != null">
        businessEndTime,
      </if>
      <if test="businesslicensepic != null">
        businessLicensePic,
      </if>
      <if test="storedesc != null">
        storeDesc,
      </if>
      <if test="logo != null">
        logo,
      </if>
      <if test="creator != null">
        creator,
      </if>
      <if test="createdt != null">
        createDt,
      </if>
      <if test="openingtime != null">
        openingTime,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="parentcode != null">
        parentCode,
      </if>
      <if test="email != null">
        email,
      </if>
      <if test="isaccount != null">
        isAccount,
      </if>
      <if test="loginname != null">
        loginName,
      </if>
      <if test="paymentcodeurl != null">
        paymentCodeUrl,
      </if>
      <if test="storeheadpic != null">
        storeHeadPic,
      </if>
      <if test="storeinsidepic != null">
        storeInsidePic,
      </if>
      <if test="cashpic != null">
        cashPic,
      </if>
      <if test="productdesc != null">
        productDesc,
      </if>
      <if test="rate != null">
        rate,
      </if>
      <if test="alipaysource != null">
        alipaySource,
      </if>
      <if test="applymentid != null">
        applymentId,
      </if>
      <if test="alistatus != null">
        aliStatus,
      </if>
      <if test="wechatstatus != null">
        wechatStatus,
      </if>
      <if test="leshuastatus != null">
        leshuaStatus,
      </if>
      <if test="submchid != null">
        subMchId,
      </if>
      <if test="apptokenauth != null">
        appTokenAuth,
      </if>
      <if test="leshuamchid != null">
        leshuaMchId,
      </if>
      <if test="leshuausername != null">
        leshuaUserName,
      </if>
      <if test="payecdemicswitch != null">
        payEcdemicSwitch,
      </if>
      <if test="ismarket != null">
        isMarket,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="merchantcode != null">
        #{merchantcode,jdbcType=VARCHAR},
      </if>
      <if test="merchantname != null">
        #{merchantname,jdbcType=VARCHAR},
      </if>
      <if test="aliaccount != null">
        #{aliaccount,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="storeid != null">
        #{storeid,jdbcType=VARCHAR},
      </if>
      <if test="storename != null">
        #{storename,jdbcType=VARCHAR},
      </if>
      <if test="linkname != null">
        #{linkname,jdbcType=VARCHAR},
      </if>
      <if test="linkphone != null">
        #{linkphone,jdbcType=VARCHAR},
      </if>
      <if test="addressno != null">
        #{addressno,jdbcType=VARCHAR},
      </if>
      <if test="storeaddress != null">
        #{storeaddress,jdbcType=VARCHAR},
      </if>
      <if test="leshuamerchantaddress != null">
        #{leshuamerchantaddress,jdbcType=VARCHAR},
      </if>
      <if test="address != null">
        #{address,jdbcType=VARCHAR},
      </if>
      <if test="businesslicenseno != null">
        #{businesslicenseno,jdbcType=VARCHAR},
      </if>
      <if test="businessstarttime != null">
        #{businessstarttime,jdbcType=TIMESTAMP},
      </if>
      <if test="businessendtime != null">
        #{businessendtime,jdbcType=TIMESTAMP},
      </if>
      <if test="businesslicensepic != null">
        #{businesslicensepic,jdbcType=VARCHAR},
      </if>
      <if test="storedesc != null">
        #{storedesc,jdbcType=VARCHAR},
      </if>
      <if test="logo != null">
        #{logo,jdbcType=VARCHAR},
      </if>
      <if test="creator != null">
        #{creator,jdbcType=VARCHAR},
      </if>
      <if test="createdt != null">
        #{createdt,jdbcType=TIMESTAMP},
      </if>
      <if test="openingtime != null">
        #{openingtime,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=VARCHAR},
      </if>
      <if test="parentcode != null">
        #{parentcode,jdbcType=VARCHAR},
      </if>
      <if test="email != null">
        #{email,jdbcType=VARCHAR},
      </if>
      <if test="isaccount != null">
        #{isaccount,jdbcType=VARCHAR},
      </if>
      <if test="loginname != null">
        #{loginname,jdbcType=VARCHAR},
      </if>
      <if test="paymentcodeurl != null">
        #{paymentcodeurl,jdbcType=VARCHAR},
      </if>
      <if test="storeheadpic != null">
        #{storeheadpic,jdbcType=VARCHAR},
      </if>
      <if test="storeinsidepic != null">
        #{storeinsidepic,jdbcType=VARCHAR},
      </if>
      <if test="cashpic != null">
        #{cashpic,jdbcType=VARCHAR},
      </if>
      <if test="productdesc != null">
        #{productdesc,jdbcType=VARCHAR},
      </if>
      <if test="rate != null">
        #{rate,jdbcType=DOUBLE},
      </if>
      <if test="alipaysource != null">
        #{alipaysource,jdbcType=VARCHAR},
      </if>
      <if test="applymentid != null">
        #{applymentid,jdbcType=VARCHAR},
      </if>
      <if test="alistatus != null">
        #{alistatus,jdbcType=VARCHAR},
      </if>
      <if test="wechatstatus != null">
        #{wechatstatus,jdbcType=VARCHAR},
      </if>
      <if test="leshuastatus != null">
        #{leshuastatus,jdbcType=VARCHAR},
      </if>
      <if test="submchid != null">
        #{submchid,jdbcType=VARCHAR},
      </if>
      <if test="apptokenauth != null">
        #{apptokenauth,jdbcType=VARCHAR},
      </if>
      <if test="leshuamchid != null">
        #{leshuamchid,jdbcType=VARCHAR},
      </if>
      <if test="leshuausername != null">
        #{leshuausername,jdbcType=VARCHAR},
      </if>
      <if test="payecdemicswitch != null">
        #{payecdemicswitch,jdbcType=VARCHAR},
      </if>
      <if test="ismarket != null">
        #{ismarket,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantStore">
    update tb_pluss_merchant_store
    <set>
      <if test="merchantcode != null">
        merchantCode = #{merchantcode,jdbcType=VARCHAR},
      </if>
      <if test="merchantname != null">
        merchantName = #{merchantname,jdbcType=VARCHAR},
      </if>
      <if test="aliaccount != null">
        aliAccount = #{aliaccount,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="storeid != null">
        storeId = #{storeid,jdbcType=VARCHAR},
      </if>
      <if test="storename != null">
        storeName = #{storename,jdbcType=VARCHAR},
      </if>
      <if test="linkname != null">
        linkName = #{linkname,jdbcType=VARCHAR},
      </if>
      <if test="linkphone != null">
        linkPhone = #{linkphone,jdbcType=VARCHAR},
      </if>
      <if test="addressno != null">
        addressNo = #{addressno,jdbcType=VARCHAR},
      </if>
      <if test="storeaddress != null">
        storeAddress = #{storeaddress,jdbcType=VARCHAR},
      </if>
      <if test="leshuamerchantaddress != null">
        leshuaMerchantAddress = #{leshuamerchantaddress,jdbcType=VARCHAR},
      </if>
      <if test="address != null">
        address = #{address,jdbcType=VARCHAR},
      </if>
      <if test="businesslicenseno != null">
        businessLicenseNo = #{businesslicenseno,jdbcType=VARCHAR},
      </if>
      <if test="businessstarttime != null">
        businessStartTime = #{businessstarttime,jdbcType=TIMESTAMP},
      </if>
      <if test="businessendtime != null">
        businessEndTime = #{businessendtime,jdbcType=TIMESTAMP},
      </if>
      <if test="businesslicensepic != null">
        businessLicensePic = #{businesslicensepic,jdbcType=VARCHAR},
      </if>
      <if test="storedesc != null">
        storeDesc = #{storedesc,jdbcType=VARCHAR},
      </if>
      <if test="logo != null">
        logo = #{logo,jdbcType=VARCHAR},
      </if>
      <if test="creator != null">
        creator = #{creator,jdbcType=VARCHAR},
      </if>
      <if test="createdt != null">
        createDt = #{createdt,jdbcType=TIMESTAMP},
      </if>
      <if test="openingtime != null">
        openingTime = #{openingtime,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        status = #{status,jdbcType=VARCHAR},
      </if>
      <if test="parentcode != null">
        parentCode = #{parentcode,jdbcType=VARCHAR},
      </if>
      <if test="email != null">
        email = #{email,jdbcType=VARCHAR},
      </if>
      <if test="isaccount != null">
        isAccount = #{isaccount,jdbcType=VARCHAR},
      </if>
      <if test="loginname != null">
        loginName = #{loginname,jdbcType=VARCHAR},
      </if>
      <if test="paymentcodeurl != null">
        paymentCodeUrl = #{paymentcodeurl,jdbcType=VARCHAR},
      </if>
      <if test="storeheadpic != null">
        storeHeadPic = #{storeheadpic,jdbcType=VARCHAR},
      </if>
      <if test="storeinsidepic != null">
        storeInsidePic = #{storeinsidepic,jdbcType=VARCHAR},
      </if>
      <if test="cashpic != null">
        cashPic = #{cashpic,jdbcType=VARCHAR},
      </if>
      <if test="productdesc != null">
        productDesc = #{productdesc,jdbcType=VARCHAR},
      </if>
      <if test="rate != null">
        rate = #{rate,jdbcType=DOUBLE},
      </if>
      <if test="alipaysource != null">
        alipaySource = #{alipaysource,jdbcType=VARCHAR},
      </if>
      <if test="applymentid != null">
        applymentId = #{applymentid,jdbcType=VARCHAR},
      </if>
      <if test="alistatus != null">
        aliStatus = #{alistatus,jdbcType=VARCHAR},
      </if>
      <if test="wechatstatus != null">
        wechatStatus = #{wechatstatus,jdbcType=VARCHAR},
      </if>
      <if test="leshuastatus != null">
        leshuaStatus = #{leshuastatus,jdbcType=VARCHAR},
      </if>
      <if test="submchid != null">
        subMchId = #{submchid,jdbcType=VARCHAR},
      </if>
      <if test="apptokenauth != null">
        appTokenAuth = #{apptokenauth,jdbcType=VARCHAR},
      </if>
      <if test="leshuamchid != null">
        leshuaMchId = #{leshuamchid,jdbcType=VARCHAR},
      </if>
      <if test="leshuausername != null">
        leshuaUserName = #{leshuausername,jdbcType=VARCHAR},
      </if>
      <if test="payecdemicswitch != null">
        payEcdemicSwitch = #{payecdemicswitch,jdbcType=VARCHAR},
      </if>
      <if test="ismarket != null">
        isMarket = #{ismarket,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantStore">
    update tb_pluss_merchant_store
    set merchantCode = #{merchantcode,jdbcType=VARCHAR},
      merchantName = #{merchantname,jdbcType=VARCHAR},
      aliAccount = #{aliaccount,jdbcType=VARCHAR},
      aliMcc = #{alimcc,jdbcType=VARCHAR},
      mcc = #{mcc,jdbcType=VARCHAR},
      mccName = #{mccname,jdbcType=VARCHAR},
      storeId = #{storeid,jdbcType=VARCHAR},
      storeName = #{storename,jdbcType=VARCHAR},
      linkName = #{linkname,jdbcType=VARCHAR},
      linkPhone = #{linkphone,jdbcType=VARCHAR},
      addressNo = #{addressno,jdbcType=VARCHAR},
      storeAddress = #{storeaddress,jdbcType=VARCHAR},
      leshuaMerchantAddress = #{leshuamerchantaddress,jdbcType=VARCHAR},
      address = #{address,jdbcType=VARCHAR},
      businessLicenseNo = #{businesslicenseno,jdbcType=VARCHAR},
      businessStartTime = #{businessstarttime,jdbcType=TIMESTAMP},
      businessEndTime = #{businessendtime,jdbcType=TIMESTAMP},
      businessLicensePic = #{businesslicensepic,jdbcType=VARCHAR},
      storeDesc = #{storedesc,jdbcType=VARCHAR},
      logo = #{logo,jdbcType=VARCHAR},
      creator = #{creator,jdbcType=VARCHAR},
      createDt = #{createdt,jdbcType=TIMESTAMP},
      openingTime = #{openingtime,jdbcType=VARCHAR},
      status = #{status,jdbcType=VARCHAR},
      parentCode = #{parentcode,jdbcType=VARCHAR},
      email = #{email,jdbcType=VARCHAR},
      isAccount = #{isaccount,jdbcType=VARCHAR},
      loginName = #{loginname,jdbcType=VARCHAR},
      paymentCodeUrl = #{paymentcodeurl,jdbcType=VARCHAR},
      storeHeadPic = #{storeheadpic,jdbcType=VARCHAR},
      storeInsidePic = #{storeinsidepic,jdbcType=VARCHAR},
      cashPic = #{cashpic,jdbcType=VARCHAR},
      productDesc = #{productdesc,jdbcType=VARCHAR},
      rate = #{rate,jdbcType=DOUBLE},
      alipaySource = #{alipaysource,jdbcType=VARCHAR},
      applymentId = #{applymentid,jdbcType=VARCHAR},
      aliStatus = #{alistatus,jdbcType=VARCHAR},
      wechatStatus = #{wechatstatus,jdbcType=VARCHAR},
      leshuaStatus = #{leshuastatus,jdbcType=VARCHAR},
      subMchId = #{submchid,jdbcType=VARCHAR},
      appTokenAuth = #{apptokenauth,jdbcType=VARCHAR},
      leshuaMchId = #{leshuamchid,jdbcType=VARCHAR},
      leshuaUserName = #{leshuausername,jdbcType=VARCHAR},
      payEcdemicSwitch = #{payecdemicswitch,jdbcType=VARCHAR},
      isMarket = #{ismarket,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>

  <select id="getStoreByMerchantCode" resultMap="BaseResultMap">
    select * from tb_pluss_merchant_store where merchantCode=#{merchantCode}
    </select>

  <select id="selectByIdOrMerchantCode" resultMap="BaseResultMap">
    select * from tb_pluss_merchant_store where 1=1
    <if test="id !=null and id !=''">
    and  id=#{id}
    </if>
    <if test="merchantCode !=null and merchantCode !=''">
      and  merchantCode=#{merchantCode}
    </if>
  </select>
</mapper>