<?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.TbPlussBankUnionpayCodeMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussBankUnionpayCode">
    <id column="F_unionpay_code" jdbcType="VARCHAR" property="fUnionpayCode" />
    <result column="F_bank_area" jdbcType="VARCHAR" property="fBankArea" />
    <result column="F_bank_city" jdbcType="VARCHAR" property="fBankCity" />
    <result column="F_cft_area_code" jdbcType="VARCHAR" property="fCftAreaCode" />
    <result column="F_cft_city_code" jdbcType="VARCHAR" property="fCftCityCode" />
    <result column="F_branch_name" jdbcType="VARCHAR" property="fBranchName" />
    <result column="F_bank_name" jdbcType="VARCHAR" property="fBankName" />
    <result column="F_x" jdbcType="VARCHAR" property="fX" />
    <result column="F_y" jdbcType="VARCHAR" property="fY" />
  </resultMap>
  <sql id="Base_Column_List">
    F_unionpay_code, F_bank_area, F_bank_city, F_cft_area_code, F_cft_city_code, F_branch_name, 
    F_bank_name, F_x, F_y
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_bank_unionpay_code
    where F_unionpay_code = #{fUnionpayCode,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from tb_pluss_bank_unionpay_code
    where F_unionpay_code = #{fUnionpayCode,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussBankUnionpayCode">
    insert into tb_pluss_bank_unionpay_code (F_unionpay_code, F_bank_area, F_bank_city, 
      F_cft_area_code, F_cft_city_code, F_branch_name, 
      F_bank_name, F_x, F_y)
    values (#{fUnionpayCode,jdbcType=VARCHAR}, #{fBankArea,jdbcType=VARCHAR}, #{fBankCity,jdbcType=VARCHAR}, 
      #{fCftAreaCode,jdbcType=VARCHAR}, #{fCftCityCode,jdbcType=VARCHAR}, #{fBranchName,jdbcType=VARCHAR}, 
      #{fBankName,jdbcType=VARCHAR}, #{fX,jdbcType=VARCHAR}, #{fY,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussBankUnionpayCode">
    insert into tb_pluss_bank_unionpay_code
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="fUnionpayCode != null">
        F_unionpay_code,
      </if>
      <if test="fBankArea != null">
        F_bank_area,
      </if>
      <if test="fBankCity != null">
        F_bank_city,
      </if>
      <if test="fCftAreaCode != null">
        F_cft_area_code,
      </if>
      <if test="fCftCityCode != null">
        F_cft_city_code,
      </if>
      <if test="fBranchName != null">
        F_branch_name,
      </if>
      <if test="fBankName != null">
        F_bank_name,
      </if>
      <if test="fX != null">
        F_x,
      </if>
      <if test="fY != null">
        F_y,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="fUnionpayCode != null">
        #{fUnionpayCode,jdbcType=VARCHAR},
      </if>
      <if test="fBankArea != null">
        #{fBankArea,jdbcType=VARCHAR},
      </if>
      <if test="fBankCity != null">
        #{fBankCity,jdbcType=VARCHAR},
      </if>
      <if test="fCftAreaCode != null">
        #{fCftAreaCode,jdbcType=VARCHAR},
      </if>
      <if test="fCftCityCode != null">
        #{fCftCityCode,jdbcType=VARCHAR},
      </if>
      <if test="fBranchName != null">
        #{fBranchName,jdbcType=VARCHAR},
      </if>
      <if test="fBankName != null">
        #{fBankName,jdbcType=VARCHAR},
      </if>
      <if test="fX != null">
        #{fX,jdbcType=VARCHAR},
      </if>
      <if test="fY != null">
        #{fY,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussBankUnionpayCode">
    update tb_pluss_bank_unionpay_code
    <set>
      <if test="fBankArea != null">
        F_bank_area = #{fBankArea,jdbcType=VARCHAR},
      </if>
      <if test="fBankCity != null">
        F_bank_city = #{fBankCity,jdbcType=VARCHAR},
      </if>
      <if test="fCftAreaCode != null">
        F_cft_area_code = #{fCftAreaCode,jdbcType=VARCHAR},
      </if>
      <if test="fCftCityCode != null">
        F_cft_city_code = #{fCftCityCode,jdbcType=VARCHAR},
      </if>
      <if test="fBranchName != null">
        F_branch_name = #{fBranchName,jdbcType=VARCHAR},
      </if>
      <if test="fBankName != null">
        F_bank_name = #{fBankName,jdbcType=VARCHAR},
      </if>
      <if test="fX != null">
        F_x = #{fX,jdbcType=VARCHAR},
      </if>
      <if test="fY != null">
        F_y = #{fY,jdbcType=VARCHAR},
      </if>
    </set>
    where F_unionpay_code = #{fUnionpayCode,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussBankUnionpayCode">
    update tb_pluss_bank_unionpay_code
    set F_bank_area = #{fBankArea,jdbcType=VARCHAR},
      F_bank_city = #{fBankCity,jdbcType=VARCHAR},
      F_cft_area_code = #{fCftAreaCode,jdbcType=VARCHAR},
      F_cft_city_code = #{fCftCityCode,jdbcType=VARCHAR},
      F_branch_name = #{fBranchName,jdbcType=VARCHAR},
      F_bank_name = #{fBankName,jdbcType=VARCHAR},
      F_x = #{fX,jdbcType=VARCHAR},
      F_y = #{fY,jdbcType=VARCHAR}
    where F_unionpay_code = #{fUnionpayCode,jdbcType=VARCHAR}
  </update>
</mapper>