<?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.TbPlussJftMercBaseInfoMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussJftMercBaseInfo">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="userId" jdbcType="INTEGER" property="userid" />
    <result column="merchantCode" jdbcType="VARCHAR" property="merchantcode" />
    <result column="merchantName" jdbcType="VARCHAR" property="merchantname" />
    <result column="merchantType" jdbcType="VARCHAR" property="merchanttype" />
    <result column="mcc" jdbcType="VARCHAR" property="mcc" />
    <result column="mccName" jdbcType="VARCHAR" property="mccname" />
    <result column="alias" jdbcType="VARCHAR" property="alias" />
    <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="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="createTime" jdbcType="TIMESTAMP" property="createtime" />
    <result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
    <result column="buslicType" jdbcType="VARCHAR" property="buslictype" />
    <result column="frontPic" jdbcType="VARCHAR" property="frontpic" />
    <result column="cashDesk" jdbcType="VARCHAR" property="cashdesk" />
    <result column="interior" jdbcType="VARCHAR" property="interior" />
    <result column="notifyUrl" jdbcType="VARCHAR" property="notifyurl" />
  </resultMap>
  <sql id="Base_Column_List">
    id, userId, merchantCode, merchantName, merchantType, mcc, mccName, alias, addressNo, 
    province, city, district, address, principalPerson, bussAuthName, bussAuthNum, bussAuthAddress, 
    bussAuthStartTime, bussAuthEndTime, createTime, updateTime, buslicType, frontPic, 
    cashDesk, interior, notifyUrl
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_jft_merc_base_info
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_jft_merc_base_info
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussJftMercBaseInfo">
    insert into tb_pluss_jft_merc_base_info (id, userId, merchantCode, 
      merchantName, merchantType, mcc, 
      mccName, alias, addressNo, 
      province, city, district, 
      address, principalPerson, bussAuthName, 
      bussAuthNum, bussAuthAddress, bussAuthStartTime, 
      bussAuthEndTime, createTime, updateTime, 
      buslicType, frontPic, cashDesk, 
      interior, notifyUrl)
    values (#{id,jdbcType=INTEGER}, #{userid,jdbcType=INTEGER}, #{merchantcode,jdbcType=VARCHAR}, 
      #{merchantname,jdbcType=VARCHAR}, #{merchanttype,jdbcType=VARCHAR}, #{mcc,jdbcType=VARCHAR}, 
      #{mccname,jdbcType=VARCHAR}, #{alias,jdbcType=VARCHAR}, #{addressno,jdbcType=VARCHAR}, 
      #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{district,jdbcType=VARCHAR}, 
      #{address,jdbcType=VARCHAR}, #{principalperson,jdbcType=VARCHAR}, #{bussauthname,jdbcType=VARCHAR}, 
      #{bussauthnum,jdbcType=VARCHAR}, #{bussauthaddress,jdbcType=VARCHAR}, #{bussauthstarttime,jdbcType=VARCHAR}, 
      #{bussauthendtime,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}, 
      #{buslictype,jdbcType=VARCHAR}, #{frontpic,jdbcType=VARCHAR}, #{cashdesk,jdbcType=VARCHAR}, 
      #{interior,jdbcType=VARCHAR}, #{notifyurl,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussJftMercBaseInfo">
    insert into tb_pluss_jft_merc_base_info
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="userid != null">
        userId,
      </if>
      <if test="merchantcode != null">
        merchantCode,
      </if>
      <if test="merchantname != null">
        merchantName,
      </if>
      <if test="merchanttype != null">
        merchantType,
      </if>
      <if test="mcc != null">
        mcc,
      </if>
      <if test="mccname != null">
        mccName,
      </if>
      <if test="alias != null">
        alias,
      </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="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="createtime != null">
        createTime,
      </if>
      <if test="updatetime != null">
        updateTime,
      </if>
      <if test="buslictype != null">
        buslicType,
      </if>
      <if test="frontpic != null">
        frontPic,
      </if>
      <if test="cashdesk != null">
        cashDesk,
      </if>
      <if test="interior != null">
        interior,
      </if>
      <if test="notifyurl != null">
        notifyUrl,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="userid != null">
        #{userid,jdbcType=INTEGER},
      </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="mcc != null">
        #{mcc,jdbcType=VARCHAR},
      </if>
      <if test="mccname != null">
        #{mccname,jdbcType=VARCHAR},
      </if>
      <if test="alias != null">
        #{alias,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="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="createtime != null">
        #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null">
        #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="buslictype != null">
        #{buslictype,jdbcType=VARCHAR},
      </if>
      <if test="frontpic != null">
        #{frontpic,jdbcType=VARCHAR},
      </if>
      <if test="cashdesk != null">
        #{cashdesk,jdbcType=VARCHAR},
      </if>
      <if test="interior != null">
        #{interior,jdbcType=VARCHAR},
      </if>
      <if test="notifyurl != null">
        #{notifyurl,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussJftMercBaseInfo">
    update tb_pluss_jft_merc_base_info
    <set>
      <if test="userid != null">
        userId = #{userid,jdbcType=INTEGER},
      </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="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="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="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="createtime != null">
        createTime = #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null">
        updateTime = #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="buslictype != null">
        buslicType = #{buslictype,jdbcType=VARCHAR},
      </if>
      <if test="frontpic != null">
        frontPic = #{frontpic,jdbcType=VARCHAR},
      </if>
      <if test="cashdesk != null">
        cashDesk = #{cashdesk,jdbcType=VARCHAR},
      </if>
      <if test="interior != null">
        interior = #{interior,jdbcType=VARCHAR},
      </if>
      <if test="notifyurl != null">
        notifyUrl = #{notifyurl,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussJftMercBaseInfo">
    update tb_pluss_jft_merc_base_info
    set userId = #{userid,jdbcType=INTEGER},
      merchantCode = #{merchantcode,jdbcType=VARCHAR},
      merchantName = #{merchantname,jdbcType=VARCHAR},
      merchantType = #{merchanttype,jdbcType=VARCHAR},
      mcc = #{mcc,jdbcType=VARCHAR},
      mccName = #{mccname,jdbcType=VARCHAR},
      alias = #{alias,jdbcType=VARCHAR},
      addressNo = #{addressno,jdbcType=VARCHAR},
      province = #{province,jdbcType=VARCHAR},
      city = #{city,jdbcType=VARCHAR},
      district = #{district,jdbcType=VARCHAR},
      address = #{address,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},
      createTime = #{createtime,jdbcType=TIMESTAMP},
      updateTime = #{updatetime,jdbcType=TIMESTAMP},
      buslicType = #{buslictype,jdbcType=VARCHAR},
      frontPic = #{frontpic,jdbcType=VARCHAR},
      cashDesk = #{cashdesk,jdbcType=VARCHAR},
      interior = #{interior,jdbcType=VARCHAR},
      notifyUrl = #{notifyurl,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>