<?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="cn.superdesk.uniorder.dao.mapper.invoice.common.InvoiceBankInfoMapper">
  <resultMap id="BaseResultMap" type="cn.superdesk.uniorder.dao.entity.invoice.common.InvoiceBankInfo">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="company_name" jdbcType="VARCHAR" property="companyName" />
    <result column="taxpayers_i_d_code" jdbcType="VARCHAR" property="taxpayersIDCode" />
    <result column="bank_account" jdbcType="VARCHAR" property="bankAccount" />
    <result column="bank_name" jdbcType="VARCHAR" property="bankName" />
    <result column="supply_name" jdbcType="VARCHAR" property="supplyName" />
    <result column="tel" jdbcType="VARCHAR" property="tel" />
    <result column="address" jdbcType="VARCHAR" property="address" />
    <result column="param1" jdbcType="VARCHAR" property="param1" />
    <result column="param2" jdbcType="VARCHAR" property="param2" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_user_id" jdbcType="BIGINT" property="createUserId" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="update_user_id" jdbcType="BIGINT" property="updateUserId" />
    <result column="is_default" jdbcType="TINYINT" property="isDefault" />
    <result column="enabled" jdbcType="TINYINT" property="enabled" />
    <result column="deleted" jdbcType="TINYINT" property="deleted" />
    <result column="person_name_invoice" jdbcType="VARCHAR" property="personNameInvoice" />
    <result column="person_name_review" jdbcType="VARCHAR" property="personNameReview" />
    <result column="person_name_cashier" jdbcType="VARCHAR" property="personNameCashier" />
    <result column="sys_user_id_invoice" jdbcType="BIGINT" property="sysUserIdInvoice" />
    <result column="sys_user_id_review" jdbcType="BIGINT" property="sysUserIdReview" />
    <result column="sys_user_id_cashier" jdbcType="BIGINT" property="sysUserIdCashier" />
    <result column="single_invoice_max_amount_1" jdbcType="DECIMAL" property="singleInvoiceMaxAmount1" />
    <result column="single_invoice_max_amount_2" jdbcType="DECIMAL" property="singleInvoiceMaxAmount2" />
    <result column="single_invoice_max_amount_3" jdbcType="DECIMAL" property="singleInvoiceMaxAmount3" />
    <result column="single_invoice_max_amount_4" jdbcType="DECIMAL" property="singleInvoiceMaxAmount4" />
    <result column="invoice_state" jdbcType="INTEGER" property="invoiceState" />
    <result column="invoice_type" jdbcType="INTEGER" property="invoiceType" />
    <result column="invoice_name" jdbcType="VARCHAR" property="invoiceName" />
    <result column="invoice_phone" jdbcType="VARCHAR" property="invoicePhone" />
    <result column="invoice_provice" jdbcType="INTEGER" property="invoiceProvice" />
    <result column="invoice_city" jdbcType="INTEGER" property="invoiceCity" />
    <result column="invoice_county" jdbcType="INTEGER" property="invoiceCounty" />
    <result column="invoice_address" jdbcType="VARCHAR" property="invoiceAddress" />
    <result column="invoice_bank" jdbcType="VARCHAR" property="invoiceBank" />
    <result column="invoice_account" jdbcType="VARCHAR" property="invoiceAccount" />
    <result column="invoice_bank_account_number" jdbcType="VARCHAR" property="invoiceBankAccountNumber" />
    <result column="invoice_address_phone" jdbcType="VARCHAR" property="invoiceAddressPhone" />
    <result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    id, company_name, taxpayers_i_d_code, bank_account, bank_name, supply_name, tel,
    address, param1, param2, create_time, create_user_id, update_time, update_user_id,
    is_default, enabled, deleted, person_name_invoice, person_name_review, person_name_cashier,
    sys_user_id_invoice, sys_user_id_review, sys_user_id_cashier, single_invoice_max_amount_1,
    single_invoice_max_amount_2, single_invoice_max_amount_3, single_invoice_max_amount_4,
    invoice_state, invoice_type, invoice_name, invoice_phone, invoice_provice, invoice_city,
    invoice_county, invoice_address, invoice_bank, invoice_account, invoice_bank_account_number,
    invoice_address_phone, serial_number
  </sql>
  <select id="selectByExample" parameterType="cn.superdesk.uniorder.dao.entity.invoice.common.InvoiceBankInfoExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from invoice_bank_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
    select
    <include refid="Base_Column_List" />
    from invoice_bank_info
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    delete from invoice_bank_info
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="cn.superdesk.uniorder.dao.entity.invoice.common.InvoiceBankInfoExample">
    delete from invoice_bank_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="cn.superdesk.uniorder.dao.entity.invoice.common.InvoiceBankInfo">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into invoice_bank_info (company_name, taxpayers_i_d_code, bank_account,
      bank_name, supply_name, tel,
      address, param1, param2,
      create_time, create_user_id, update_time,
      update_user_id, is_default, enabled,
      deleted, person_name_invoice, person_name_review,
      person_name_cashier, sys_user_id_invoice, sys_user_id_review,
      sys_user_id_cashier, single_invoice_max_amount_1,
      single_invoice_max_amount_2, single_invoice_max_amount_3,
      single_invoice_max_amount_4, invoice_state,
      invoice_type, invoice_name, invoice_phone,
      invoice_provice, invoice_city, invoice_county,
      invoice_address, invoice_bank, invoice_account,
      invoice_bank_account_number, invoice_address_phone,
      serial_number)
    values (#{companyName,jdbcType=VARCHAR}, #{taxpayersIDCode,jdbcType=VARCHAR}, #{bankAccount,jdbcType=VARCHAR},
      #{bankName,jdbcType=VARCHAR}, #{supplyName,jdbcType=VARCHAR}, #{tel,jdbcType=VARCHAR},
      #{address,jdbcType=VARCHAR}, #{param1,jdbcType=VARCHAR}, #{param2,jdbcType=VARCHAR},
      #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP},
      #{updateUserId,jdbcType=BIGINT}, #{isDefault,jdbcType=TINYINT}, #{enabled,jdbcType=TINYINT},
      #{deleted,jdbcType=TINYINT}, #{personNameInvoice,jdbcType=VARCHAR}, #{personNameReview,jdbcType=VARCHAR},
      #{personNameCashier,jdbcType=VARCHAR}, #{sysUserIdInvoice,jdbcType=BIGINT}, #{sysUserIdReview,jdbcType=BIGINT},
      #{sysUserIdCashier,jdbcType=BIGINT}, #{singleInvoiceMaxAmount1,jdbcType=DECIMAL},
      #{singleInvoiceMaxAmount2,jdbcType=DECIMAL}, #{singleInvoiceMaxAmount3,jdbcType=DECIMAL},
      #{singleInvoiceMaxAmount4,jdbcType=DECIMAL}, #{invoiceState,jdbcType=INTEGER},
      #{invoiceType,jdbcType=INTEGER}, #{invoiceName,jdbcType=VARCHAR}, #{invoicePhone,jdbcType=VARCHAR},
      #{invoiceProvice,jdbcType=INTEGER}, #{invoiceCity,jdbcType=INTEGER}, #{invoiceCounty,jdbcType=INTEGER},
      #{invoiceAddress,jdbcType=VARCHAR}, #{invoiceBank,jdbcType=VARCHAR}, #{invoiceAccount,jdbcType=VARCHAR},
      #{invoiceBankAccountNumber,jdbcType=VARCHAR}, #{invoiceAddressPhone,jdbcType=VARCHAR},
      #{serialNumber,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="cn.superdesk.uniorder.dao.entity.invoice.common.InvoiceBankInfo">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into invoice_bank_info
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="companyName != null">
        company_name,
      </if>
      <if test="taxpayersIDCode != null">
        taxpayers_i_d_code,
      </if>
      <if test="bankAccount != null">
        bank_account,
      </if>
      <if test="bankName != null">
        bank_name,
      </if>
      <if test="supplyName != null">
        supply_name,
      </if>
      <if test="tel != null">
        tel,
      </if>
      <if test="address != null">
        address,
      </if>
      <if test="param1 != null">
        param1,
      </if>
      <if test="param2 != null">
        param2,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createUserId != null">
        create_user_id,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="updateUserId != null">
        update_user_id,
      </if>
      <if test="isDefault != null">
        is_default,
      </if>
      <if test="enabled != null">
        enabled,
      </if>
      <if test="deleted != null">
        deleted,
      </if>
      <if test="personNameInvoice != null">
        person_name_invoice,
      </if>
      <if test="personNameReview != null">
        person_name_review,
      </if>
      <if test="personNameCashier != null">
        person_name_cashier,
      </if>
      <if test="sysUserIdInvoice != null">
        sys_user_id_invoice,
      </if>
      <if test="sysUserIdReview != null">
        sys_user_id_review,
      </if>
      <if test="sysUserIdCashier != null">
        sys_user_id_cashier,
      </if>
      <if test="singleInvoiceMaxAmount1 != null">
        single_invoice_max_amount_1,
      </if>
      <if test="singleInvoiceMaxAmount2 != null">
        single_invoice_max_amount_2,
      </if>
      <if test="singleInvoiceMaxAmount3 != null">
        single_invoice_max_amount_3,
      </if>
      <if test="singleInvoiceMaxAmount4 != null">
        single_invoice_max_amount_4,
      </if>
      <if test="invoiceState != null">
        invoice_state,
      </if>
      <if test="invoiceType != null">
        invoice_type,
      </if>
      <if test="invoiceName != null">
        invoice_name,
      </if>
      <if test="invoicePhone != null">
        invoice_phone,
      </if>
      <if test="invoiceProvice != null">
        invoice_provice,
      </if>
      <if test="invoiceCity != null">
        invoice_city,
      </if>
      <if test="invoiceCounty != null">
        invoice_county,
      </if>
      <if test="invoiceAddress != null">
        invoice_address,
      </if>
      <if test="invoiceBank != null">
        invoice_bank,
      </if>
      <if test="invoiceAccount != null">
        invoice_account,
      </if>
      <if test="invoiceBankAccountNumber != null">
        invoice_bank_account_number,
      </if>
      <if test="invoiceAddressPhone != null">
        invoice_address_phone,
      </if>
      <if test="serialNumber != null">
        serial_number,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="companyName != null">
        #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="taxpayersIDCode != null">
        #{taxpayersIDCode,jdbcType=VARCHAR},
      </if>
      <if test="bankAccount != null">
        #{bankAccount,jdbcType=VARCHAR},
      </if>
      <if test="bankName != null">
        #{bankName,jdbcType=VARCHAR},
      </if>
      <if test="supplyName != null">
        #{supplyName,jdbcType=VARCHAR},
      </if>
      <if test="tel != null">
        #{tel,jdbcType=VARCHAR},
      </if>
      <if test="address != null">
        #{address,jdbcType=VARCHAR},
      </if>
      <if test="param1 != null">
        #{param1,jdbcType=VARCHAR},
      </if>
      <if test="param2 != null">
        #{param2,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUserId != null">
        #{createUserId,jdbcType=BIGINT},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        #{updateUserId,jdbcType=BIGINT},
      </if>
      <if test="isDefault != null">
        #{isDefault,jdbcType=TINYINT},
      </if>
      <if test="enabled != null">
        #{enabled,jdbcType=TINYINT},
      </if>
      <if test="deleted != null">
        #{deleted,jdbcType=TINYINT},
      </if>
      <if test="personNameInvoice != null">
        #{personNameInvoice,jdbcType=VARCHAR},
      </if>
      <if test="personNameReview != null">
        #{personNameReview,jdbcType=VARCHAR},
      </if>
      <if test="personNameCashier != null">
        #{personNameCashier,jdbcType=VARCHAR},
      </if>
      <if test="sysUserIdInvoice != null">
        #{sysUserIdInvoice,jdbcType=BIGINT},
      </if>
      <if test="sysUserIdReview != null">
        #{sysUserIdReview,jdbcType=BIGINT},
      </if>
      <if test="sysUserIdCashier != null">
        #{sysUserIdCashier,jdbcType=BIGINT},
      </if>
      <if test="singleInvoiceMaxAmount1 != null">
        #{singleInvoiceMaxAmount1,jdbcType=DECIMAL},
      </if>
      <if test="singleInvoiceMaxAmount2 != null">
        #{singleInvoiceMaxAmount2,jdbcType=DECIMAL},
      </if>
      <if test="singleInvoiceMaxAmount3 != null">
        #{singleInvoiceMaxAmount3,jdbcType=DECIMAL},
      </if>
      <if test="singleInvoiceMaxAmount4 != null">
        #{singleInvoiceMaxAmount4,jdbcType=DECIMAL},
      </if>
      <if test="invoiceState != null">
        #{invoiceState,jdbcType=INTEGER},
      </if>
      <if test="invoiceType != null">
        #{invoiceType,jdbcType=INTEGER},
      </if>
      <if test="invoiceName != null">
        #{invoiceName,jdbcType=VARCHAR},
      </if>
      <if test="invoicePhone != null">
        #{invoicePhone,jdbcType=VARCHAR},
      </if>
      <if test="invoiceProvice != null">
        #{invoiceProvice,jdbcType=INTEGER},
      </if>
      <if test="invoiceCity != null">
        #{invoiceCity,jdbcType=INTEGER},
      </if>
      <if test="invoiceCounty != null">
        #{invoiceCounty,jdbcType=INTEGER},
      </if>
      <if test="invoiceAddress != null">
        #{invoiceAddress,jdbcType=VARCHAR},
      </if>
      <if test="invoiceBank != null">
        #{invoiceBank,jdbcType=VARCHAR},
      </if>
      <if test="invoiceAccount != null">
        #{invoiceAccount,jdbcType=VARCHAR},
      </if>
      <if test="invoiceBankAccountNumber != null">
        #{invoiceBankAccountNumber,jdbcType=VARCHAR},
      </if>
      <if test="invoiceAddressPhone != null">
        #{invoiceAddressPhone,jdbcType=VARCHAR},
      </if>
      <if test="serialNumber != null">
        #{serialNumber,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="cn.superdesk.uniorder.dao.entity.invoice.common.InvoiceBankInfoExample" resultType="java.lang.Long">
    select count(*) from invoice_bank_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update invoice_bank_info
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.companyName != null">
        company_name = #{record.companyName,jdbcType=VARCHAR},
      </if>
      <if test="record.taxpayersIDCode != null">
        taxpayers_i_d_code = #{record.taxpayersIDCode,jdbcType=VARCHAR},
      </if>
      <if test="record.bankAccount != null">
        bank_account = #{record.bankAccount,jdbcType=VARCHAR},
      </if>
      <if test="record.bankName != null">
        bank_name = #{record.bankName,jdbcType=VARCHAR},
      </if>
      <if test="record.supplyName != null">
        supply_name = #{record.supplyName,jdbcType=VARCHAR},
      </if>
      <if test="record.tel != null">
        tel = #{record.tel,jdbcType=VARCHAR},
      </if>
      <if test="record.address != null">
        address = #{record.address,jdbcType=VARCHAR},
      </if>
      <if test="record.param1 != null">
        param1 = #{record.param1,jdbcType=VARCHAR},
      </if>
      <if test="record.param2 != null">
        param2 = #{record.param2,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createUserId != null">
        create_user_id = #{record.createUserId,jdbcType=BIGINT},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateUserId != null">
        update_user_id = #{record.updateUserId,jdbcType=BIGINT},
      </if>
      <if test="record.isDefault != null">
        is_default = #{record.isDefault,jdbcType=TINYINT},
      </if>
      <if test="record.enabled != null">
        enabled = #{record.enabled,jdbcType=TINYINT},
      </if>
      <if test="record.deleted != null">
        deleted = #{record.deleted,jdbcType=TINYINT},
      </if>
      <if test="record.personNameInvoice != null">
        person_name_invoice = #{record.personNameInvoice,jdbcType=VARCHAR},
      </if>
      <if test="record.personNameReview != null">
        person_name_review = #{record.personNameReview,jdbcType=VARCHAR},
      </if>
      <if test="record.personNameCashier != null">
        person_name_cashier = #{record.personNameCashier,jdbcType=VARCHAR},
      </if>
      <if test="record.sysUserIdInvoice != null">
        sys_user_id_invoice = #{record.sysUserIdInvoice,jdbcType=BIGINT},
      </if>
      <if test="record.sysUserIdReview != null">
        sys_user_id_review = #{record.sysUserIdReview,jdbcType=BIGINT},
      </if>
      <if test="record.sysUserIdCashier != null">
        sys_user_id_cashier = #{record.sysUserIdCashier,jdbcType=BIGINT},
      </if>
      <if test="record.singleInvoiceMaxAmount1 != null">
        single_invoice_max_amount_1 = #{record.singleInvoiceMaxAmount1,jdbcType=DECIMAL},
      </if>
      <if test="record.singleInvoiceMaxAmount2 != null">
        single_invoice_max_amount_2 = #{record.singleInvoiceMaxAmount2,jdbcType=DECIMAL},
      </if>
      <if test="record.singleInvoiceMaxAmount3 != null">
        single_invoice_max_amount_3 = #{record.singleInvoiceMaxAmount3,jdbcType=DECIMAL},
      </if>
      <if test="record.singleInvoiceMaxAmount4 != null">
        single_invoice_max_amount_4 = #{record.singleInvoiceMaxAmount4,jdbcType=DECIMAL},
      </if>
      <if test="record.invoiceState != null">
        invoice_state = #{record.invoiceState,jdbcType=INTEGER},
      </if>
      <if test="record.invoiceType != null">
        invoice_type = #{record.invoiceType,jdbcType=INTEGER},
      </if>
      <if test="record.invoiceName != null">
        invoice_name = #{record.invoiceName,jdbcType=VARCHAR},
      </if>
      <if test="record.invoicePhone != null">
        invoice_phone = #{record.invoicePhone,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceProvice != null">
        invoice_provice = #{record.invoiceProvice,jdbcType=INTEGER},
      </if>
      <if test="record.invoiceCity != null">
        invoice_city = #{record.invoiceCity,jdbcType=INTEGER},
      </if>
      <if test="record.invoiceCounty != null">
        invoice_county = #{record.invoiceCounty,jdbcType=INTEGER},
      </if>
      <if test="record.invoiceAddress != null">
        invoice_address = #{record.invoiceAddress,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceBank != null">
        invoice_bank = #{record.invoiceBank,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceAccount != null">
        invoice_account = #{record.invoiceAccount,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceBankAccountNumber != null">
        invoice_bank_account_number = #{record.invoiceBankAccountNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceAddressPhone != null">
        invoice_address_phone = #{record.invoiceAddressPhone,jdbcType=VARCHAR},
      </if>
      <if test="record.serialNumber != null">
        serial_number = #{record.serialNumber,jdbcType=VARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update invoice_bank_info
    set id = #{record.id,jdbcType=BIGINT},
      company_name = #{record.companyName,jdbcType=VARCHAR},
      taxpayers_i_d_code = #{record.taxpayersIDCode,jdbcType=VARCHAR},
      bank_account = #{record.bankAccount,jdbcType=VARCHAR},
      bank_name = #{record.bankName,jdbcType=VARCHAR},
      supply_name = #{record.supplyName,jdbcType=VARCHAR},
      tel = #{record.tel,jdbcType=VARCHAR},
      address = #{record.address,jdbcType=VARCHAR},
      param1 = #{record.param1,jdbcType=VARCHAR},
      param2 = #{record.param2,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      create_user_id = #{record.createUserId,jdbcType=BIGINT},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{record.updateUserId,jdbcType=BIGINT},
      is_default = #{record.isDefault,jdbcType=TINYINT},
      enabled = #{record.enabled,jdbcType=TINYINT},
      deleted = #{record.deleted,jdbcType=TINYINT},
      person_name_invoice = #{record.personNameInvoice,jdbcType=VARCHAR},
      person_name_review = #{record.personNameReview,jdbcType=VARCHAR},
      person_name_cashier = #{record.personNameCashier,jdbcType=VARCHAR},
      sys_user_id_invoice = #{record.sysUserIdInvoice,jdbcType=BIGINT},
      sys_user_id_review = #{record.sysUserIdReview,jdbcType=BIGINT},
      sys_user_id_cashier = #{record.sysUserIdCashier,jdbcType=BIGINT},
      single_invoice_max_amount_1 = #{record.singleInvoiceMaxAmount1,jdbcType=DECIMAL},
      single_invoice_max_amount_2 = #{record.singleInvoiceMaxAmount2,jdbcType=DECIMAL},
      single_invoice_max_amount_3 = #{record.singleInvoiceMaxAmount3,jdbcType=DECIMAL},
      single_invoice_max_amount_4 = #{record.singleInvoiceMaxAmount4,jdbcType=DECIMAL},
      invoice_state = #{record.invoiceState,jdbcType=INTEGER},
      invoice_type = #{record.invoiceType,jdbcType=INTEGER},
      invoice_name = #{record.invoiceName,jdbcType=VARCHAR},
      invoice_phone = #{record.invoicePhone,jdbcType=VARCHAR},
      invoice_provice = #{record.invoiceProvice,jdbcType=INTEGER},
      invoice_city = #{record.invoiceCity,jdbcType=INTEGER},
      invoice_county = #{record.invoiceCounty,jdbcType=INTEGER},
      invoice_address = #{record.invoiceAddress,jdbcType=VARCHAR},
      invoice_bank = #{record.invoiceBank,jdbcType=VARCHAR},
      invoice_account = #{record.invoiceAccount,jdbcType=VARCHAR},
      invoice_bank_account_number = #{record.invoiceBankAccountNumber,jdbcType=VARCHAR},
      invoice_address_phone = #{record.invoiceAddressPhone,jdbcType=VARCHAR},
      serial_number = #{record.serialNumber,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="cn.superdesk.uniorder.dao.entity.invoice.common.InvoiceBankInfo">
    update invoice_bank_info
    <set>
      <if test="companyName != null">
        company_name = #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="taxpayersIDCode != null">
        taxpayers_i_d_code = #{taxpayersIDCode,jdbcType=VARCHAR},
      </if>
      <if test="bankAccount != null">
        bank_account = #{bankAccount,jdbcType=VARCHAR},
      </if>
      <if test="bankName != null">
        bank_name = #{bankName,jdbcType=VARCHAR},
      </if>
      <if test="supplyName != null">
        supply_name = #{supplyName,jdbcType=VARCHAR},
      </if>
      <if test="tel != null">
        tel = #{tel,jdbcType=VARCHAR},
      </if>
      <if test="address != null">
        address = #{address,jdbcType=VARCHAR},
      </if>
      <if test="param1 != null">
        param1 = #{param1,jdbcType=VARCHAR},
      </if>
      <if test="param2 != null">
        param2 = #{param2,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUserId != null">
        create_user_id = #{createUserId,jdbcType=BIGINT},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        update_user_id = #{updateUserId,jdbcType=BIGINT},
      </if>
      <if test="isDefault != null">
        is_default = #{isDefault,jdbcType=TINYINT},
      </if>
      <if test="enabled != null">
        enabled = #{enabled,jdbcType=TINYINT},
      </if>
      <if test="deleted != null">
        deleted = #{deleted,jdbcType=TINYINT},
      </if>
      <if test="personNameInvoice != null">
        person_name_invoice = #{personNameInvoice,jdbcType=VARCHAR},
      </if>
      <if test="personNameReview != null">
        person_name_review = #{personNameReview,jdbcType=VARCHAR},
      </if>
      <if test="personNameCashier != null">
        person_name_cashier = #{personNameCashier,jdbcType=VARCHAR},
      </if>
      <if test="sysUserIdInvoice != null">
        sys_user_id_invoice = #{sysUserIdInvoice,jdbcType=BIGINT},
      </if>
      <if test="sysUserIdReview != null">
        sys_user_id_review = #{sysUserIdReview,jdbcType=BIGINT},
      </if>
      <if test="sysUserIdCashier != null">
        sys_user_id_cashier = #{sysUserIdCashier,jdbcType=BIGINT},
      </if>
      <if test="singleInvoiceMaxAmount1 != null">
        single_invoice_max_amount_1 = #{singleInvoiceMaxAmount1,jdbcType=DECIMAL},
      </if>
      <if test="singleInvoiceMaxAmount2 != null">
        single_invoice_max_amount_2 = #{singleInvoiceMaxAmount2,jdbcType=DECIMAL},
      </if>
      <if test="singleInvoiceMaxAmount3 != null">
        single_invoice_max_amount_3 = #{singleInvoiceMaxAmount3,jdbcType=DECIMAL},
      </if>
      <if test="singleInvoiceMaxAmount4 != null">
        single_invoice_max_amount_4 = #{singleInvoiceMaxAmount4,jdbcType=DECIMAL},
      </if>
      <if test="invoiceState != null">
        invoice_state = #{invoiceState,jdbcType=INTEGER},
      </if>
      <if test="invoiceType != null">
        invoice_type = #{invoiceType,jdbcType=INTEGER},
      </if>
      <if test="invoiceName != null">
        invoice_name = #{invoiceName,jdbcType=VARCHAR},
      </if>
      <if test="invoicePhone != null">
        invoice_phone = #{invoicePhone,jdbcType=VARCHAR},
      </if>
      <if test="invoiceProvice != null">
        invoice_provice = #{invoiceProvice,jdbcType=INTEGER},
      </if>
      <if test="invoiceCity != null">
        invoice_city = #{invoiceCity,jdbcType=INTEGER},
      </if>
      <if test="invoiceCounty != null">
        invoice_county = #{invoiceCounty,jdbcType=INTEGER},
      </if>
      <if test="invoiceAddress != null">
        invoice_address = #{invoiceAddress,jdbcType=VARCHAR},
      </if>
      <if test="invoiceBank != null">
        invoice_bank = #{invoiceBank,jdbcType=VARCHAR},
      </if>
      <if test="invoiceAccount != null">
        invoice_account = #{invoiceAccount,jdbcType=VARCHAR},
      </if>
      <if test="invoiceBankAccountNumber != null">
        invoice_bank_account_number = #{invoiceBankAccountNumber,jdbcType=VARCHAR},
      </if>
      <if test="invoiceAddressPhone != null">
        invoice_address_phone = #{invoiceAddressPhone,jdbcType=VARCHAR},
      </if>
      <if test="serialNumber != null">
        serial_number = #{serialNumber,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.superdesk.uniorder.dao.entity.invoice.common.InvoiceBankInfo">
    update invoice_bank_info
    set company_name = #{companyName,jdbcType=VARCHAR},
      taxpayers_i_d_code = #{taxpayersIDCode,jdbcType=VARCHAR},
      bank_account = #{bankAccount,jdbcType=VARCHAR},
      bank_name = #{bankName,jdbcType=VARCHAR},
      supply_name = #{supplyName,jdbcType=VARCHAR},
      tel = #{tel,jdbcType=VARCHAR},
      address = #{address,jdbcType=VARCHAR},
      param1 = #{param1,jdbcType=VARCHAR},
      param2 = #{param2,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_user_id = #{createUserId,jdbcType=BIGINT},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{updateUserId,jdbcType=BIGINT},
      is_default = #{isDefault,jdbcType=TINYINT},
      enabled = #{enabled,jdbcType=TINYINT},
      deleted = #{deleted,jdbcType=TINYINT},
      person_name_invoice = #{personNameInvoice,jdbcType=VARCHAR},
      person_name_review = #{personNameReview,jdbcType=VARCHAR},
      person_name_cashier = #{personNameCashier,jdbcType=VARCHAR},
      sys_user_id_invoice = #{sysUserIdInvoice,jdbcType=BIGINT},
      sys_user_id_review = #{sysUserIdReview,jdbcType=BIGINT},
      sys_user_id_cashier = #{sysUserIdCashier,jdbcType=BIGINT},
      single_invoice_max_amount_1 = #{singleInvoiceMaxAmount1,jdbcType=DECIMAL},
      single_invoice_max_amount_2 = #{singleInvoiceMaxAmount2,jdbcType=DECIMAL},
      single_invoice_max_amount_3 = #{singleInvoiceMaxAmount3,jdbcType=DECIMAL},
      single_invoice_max_amount_4 = #{singleInvoiceMaxAmount4,jdbcType=DECIMAL},
      invoice_state = #{invoiceState,jdbcType=INTEGER},
      invoice_type = #{invoiceType,jdbcType=INTEGER},
      invoice_name = #{invoiceName,jdbcType=VARCHAR},
      invoice_phone = #{invoicePhone,jdbcType=VARCHAR},
      invoice_provice = #{invoiceProvice,jdbcType=INTEGER},
      invoice_city = #{invoiceCity,jdbcType=INTEGER},
      invoice_county = #{invoiceCounty,jdbcType=INTEGER},
      invoice_address = #{invoiceAddress,jdbcType=VARCHAR},
      invoice_bank = #{invoiceBank,jdbcType=VARCHAR},
      invoice_account = #{invoiceAccount,jdbcType=VARCHAR},
      invoice_bank_account_number = #{invoiceBankAccountNumber,jdbcType=VARCHAR},
      invoice_address_phone = #{invoiceAddressPhone,jdbcType=VARCHAR},
      serial_number = #{serialNumber,jdbcType=VARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>
