<?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.TbPlussBankBranchLklMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussBankBranchLkl">
    <result column="id" jdbcType="VARCHAR" property="id" />
    <result column="create_time" jdbcType="VARCHAR" property="createTime" />
    <result column="optimistic" jdbcType="VARCHAR" property="optimistic" />
    <result column="update_time" jdbcType="VARCHAR" property="updateTime" />
    <result column="area_code" jdbcType="VARCHAR" property="areaCode" />
    <result column="bank_no" jdbcType="VARCHAR" property="bankNo" />
    <result column="branch_bank_name" jdbcType="VARCHAR" property="branchBankName" />
    <result column="branch_bank_no" jdbcType="VARCHAR" property="branchBankNo" />
    <result column="clear_no" jdbcType="VARCHAR" property="clearNo" />
  </resultMap>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussBankBranchLkl">
    insert into tb_pluss_bank_branch_lkl (id, create_time, optimistic, 
      update_time, area_code, bank_no, 
      branch_bank_name, branch_bank_no, clear_no
      )
    values (#{id,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{optimistic,jdbcType=VARCHAR}, 
      #{updateTime,jdbcType=VARCHAR}, #{areaCode,jdbcType=VARCHAR}, #{bankNo,jdbcType=VARCHAR}, 
      #{branchBankName,jdbcType=VARCHAR}, #{branchBankNo,jdbcType=VARCHAR}, #{clearNo,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussBankBranchLkl">
    insert into tb_pluss_bank_branch_lkl
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="optimistic != null">
        optimistic,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="areaCode != null">
        area_code,
      </if>
      <if test="bankNo != null">
        bank_no,
      </if>
      <if test="branchBankName != null">
        branch_bank_name,
      </if>
      <if test="branchBankNo != null">
        branch_bank_no,
      </if>
      <if test="clearNo != null">
        clear_no,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=VARCHAR},
      </if>
      <if test="optimistic != null">
        #{optimistic,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=VARCHAR},
      </if>
      <if test="areaCode != null">
        #{areaCode,jdbcType=VARCHAR},
      </if>
      <if test="bankNo != null">
        #{bankNo,jdbcType=VARCHAR},
      </if>
      <if test="branchBankName != null">
        #{branchBankName,jdbcType=VARCHAR},
      </if>
      <if test="branchBankNo != null">
        #{branchBankNo,jdbcType=VARCHAR},
      </if>
      <if test="clearNo != null">
        #{clearNo,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
</mapper>