<?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.TbPlussJftBankCardMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussJftBankCard">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="userId" jdbcType="INTEGER" property="userid" />
    <result column="bankHolder" jdbcType="VARCHAR" property="bankholder" />
    <result column="bankCardNo" jdbcType="VARCHAR" property="bankcardno" />
    <result column="bankName" jdbcType="VARCHAR" property="bankname" />
    <result column="branchName" jdbcType="VARCHAR" property="branchname" />
    <result column="contactLine" jdbcType="VARCHAR" property="contactline" />
    <result column="branchProvince" jdbcType="VARCHAR" property="branchprovince" />
    <result column="branchCity" jdbcType="VARCHAR" property="branchcity" />
    <result column="branchArea" jdbcType="VARCHAR" property="brancharea" />
    <result column="phone" jdbcType="VARCHAR" property="phone" />
    <result column="imgUrl" jdbcType="VARCHAR" property="imgurl" />
    <result column="status" jdbcType="VARCHAR" property="status" />
    <result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
    <result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chaozhanggui.dao.system.entity.TbPlussJftBankCard">
    <result column="bak" jdbcType="LONGVARCHAR" property="bak" />
  </resultMap>
  <sql id="Base_Column_List">
    id, userId, bankHolder, bankCardNo, bankName, branchName, contactLine, branchProvince, 
    branchCity, branchArea, phone, imgUrl, status, createTime, updateTime
  </sql>
  <sql id="Blob_Column_List">
    bak
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from tb_pluss_jft_bank_card
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_jft_bank_card
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussJftBankCard">
    insert into tb_pluss_jft_bank_card (id, userId, bankHolder, 
      bankCardNo, bankName, branchName, 
      contactLine, branchProvince, branchCity, 
      branchArea, phone, imgUrl, 
      status, createTime, updateTime, 
      bak)
    values (#{id,jdbcType=INTEGER}, #{userid,jdbcType=INTEGER}, #{bankholder,jdbcType=VARCHAR}, 
      #{bankcardno,jdbcType=VARCHAR}, #{bankname,jdbcType=VARCHAR}, #{branchname,jdbcType=VARCHAR}, 
      #{contactline,jdbcType=VARCHAR}, #{branchprovince,jdbcType=VARCHAR}, #{branchcity,jdbcType=VARCHAR}, 
      #{brancharea,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{imgurl,jdbcType=VARCHAR}, 
      #{status,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}, 
      #{bak,jdbcType=LONGVARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussJftBankCard">
    insert into tb_pluss_jft_bank_card
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="userid != null">
        userId,
      </if>
      <if test="bankholder != null">
        bankHolder,
      </if>
      <if test="bankcardno != null">
        bankCardNo,
      </if>
      <if test="bankname != null">
        bankName,
      </if>
      <if test="branchname != null">
        branchName,
      </if>
      <if test="contactline != null">
        contactLine,
      </if>
      <if test="branchprovince != null">
        branchProvince,
      </if>
      <if test="branchcity != null">
        branchCity,
      </if>
      <if test="brancharea != null">
        branchArea,
      </if>
      <if test="phone != null">
        phone,
      </if>
      <if test="imgurl != null">
        imgUrl,
      </if>
      <if test="status != null">
        status,
      </if>
      <if test="createtime != null">
        createTime,
      </if>
      <if test="updatetime != null">
        updateTime,
      </if>
      <if test="bak != null">
        bak,
      </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="bankholder != null">
        #{bankholder,jdbcType=VARCHAR},
      </if>
      <if test="bankcardno != null">
        #{bankcardno,jdbcType=VARCHAR},
      </if>
      <if test="bankname != null">
        #{bankname,jdbcType=VARCHAR},
      </if>
      <if test="branchname != null">
        #{branchname,jdbcType=VARCHAR},
      </if>
      <if test="contactline != null">
        #{contactline,jdbcType=VARCHAR},
      </if>
      <if test="branchprovince != null">
        #{branchprovince,jdbcType=VARCHAR},
      </if>
      <if test="branchcity != null">
        #{branchcity,jdbcType=VARCHAR},
      </if>
      <if test="brancharea != null">
        #{brancharea,jdbcType=VARCHAR},
      </if>
      <if test="phone != null">
        #{phone,jdbcType=VARCHAR},
      </if>
      <if test="imgurl != null">
        #{imgurl,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null">
        #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="bak != null">
        #{bak,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussJftBankCard">
    update tb_pluss_jft_bank_card
    <set>
      <if test="userid != null">
        userId = #{userid,jdbcType=INTEGER},
      </if>
      <if test="bankholder != null">
        bankHolder = #{bankholder,jdbcType=VARCHAR},
      </if>
      <if test="bankcardno != null">
        bankCardNo = #{bankcardno,jdbcType=VARCHAR},
      </if>
      <if test="bankname != null">
        bankName = #{bankname,jdbcType=VARCHAR},
      </if>
      <if test="branchname != null">
        branchName = #{branchname,jdbcType=VARCHAR},
      </if>
      <if test="contactline != null">
        contactLine = #{contactline,jdbcType=VARCHAR},
      </if>
      <if test="branchprovince != null">
        branchProvince = #{branchprovince,jdbcType=VARCHAR},
      </if>
      <if test="branchcity != null">
        branchCity = #{branchcity,jdbcType=VARCHAR},
      </if>
      <if test="brancharea != null">
        branchArea = #{brancharea,jdbcType=VARCHAR},
      </if>
      <if test="phone != null">
        phone = #{phone,jdbcType=VARCHAR},
      </if>
      <if test="imgurl != null">
        imgUrl = #{imgurl,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        status = #{status,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        createTime = #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="updatetime != null">
        updateTime = #{updatetime,jdbcType=TIMESTAMP},
      </if>
      <if test="bak != null">
        bak = #{bak,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.chaozhanggui.dao.system.entity.TbPlussJftBankCard">
    update tb_pluss_jft_bank_card
    set userId = #{userid,jdbcType=INTEGER},
      bankHolder = #{bankholder,jdbcType=VARCHAR},
      bankCardNo = #{bankcardno,jdbcType=VARCHAR},
      bankName = #{bankname,jdbcType=VARCHAR},
      branchName = #{branchname,jdbcType=VARCHAR},
      contactLine = #{contactline,jdbcType=VARCHAR},
      branchProvince = #{branchprovince,jdbcType=VARCHAR},
      branchCity = #{branchcity,jdbcType=VARCHAR},
      branchArea = #{brancharea,jdbcType=VARCHAR},
      phone = #{phone,jdbcType=VARCHAR},
      imgUrl = #{imgurl,jdbcType=VARCHAR},
      status = #{status,jdbcType=VARCHAR},
      createTime = #{createtime,jdbcType=TIMESTAMP},
      updateTime = #{updatetime,jdbcType=TIMESTAMP},
      bak = #{bak,jdbcType=LONGVARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussJftBankCard">
    update tb_pluss_jft_bank_card
    set userId = #{userid,jdbcType=INTEGER},
      bankHolder = #{bankholder,jdbcType=VARCHAR},
      bankCardNo = #{bankcardno,jdbcType=VARCHAR},
      bankName = #{bankname,jdbcType=VARCHAR},
      branchName = #{branchname,jdbcType=VARCHAR},
      contactLine = #{contactline,jdbcType=VARCHAR},
      branchProvince = #{branchprovince,jdbcType=VARCHAR},
      branchCity = #{branchcity,jdbcType=VARCHAR},
      branchArea = #{brancharea,jdbcType=VARCHAR},
      phone = #{phone,jdbcType=VARCHAR},
      imgUrl = #{imgurl,jdbcType=VARCHAR},
      status = #{status,jdbcType=VARCHAR},
      createTime = #{createtime,jdbcType=TIMESTAMP},
      updateTime = #{updatetime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>