<?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.bailuntec.mapper.DcBasePaypalAccountMapper">
  <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcBasePaypalAccount">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="seller" jdbcType="VARCHAR" property="seller" />
    <result column="seller_password" jdbcType="VARCHAR" property="sellerPassword" />
    <result column="seller_user" jdbcType="VARCHAR" property="sellerUser" />
    <result column="abbreviation" jdbcType="VARCHAR" property="abbreviation" />
    <result column="phone_number" jdbcType="VARCHAR" property="phoneNumber" />
    <result column="phone_number_user" jdbcType="VARCHAR" property="phoneNumberUser" />
    <result column="merchant" jdbcType="VARCHAR" property="merchant" />
    <result column="credit_card" jdbcType="VARCHAR" property="creditCard" />
    <result column="credit_card_user" jdbcType="VARCHAR" property="creditCardUser" />
    <result column="credit_card_expiration_date" jdbcType="TIMESTAMP" property="creditCardExpirationDate" />
    <result column="withdraw_bank" jdbcType="VARCHAR" property="withdrawBank" />
    <result column="api_user_name" jdbcType="VARCHAR" property="apiUserName" />
    <result column="api_password" jdbcType="VARCHAR" property="apiPassword" />
    <result column="api_signature" jdbcType="VARCHAR" property="apiSignature" />
    <result column="auth_json" jdbcType="VARCHAR" property="authJson" />
    <result column="auth_time" jdbcType="TIMESTAMP" property="authTime" />
    <result column="auth_token_expire_time" jdbcType="TIMESTAMP" property="authTokenExpireTime" />
    <result column="create_user_id" jdbcType="INTEGER" property="createUserId" />
    <result column="create_user_name" jdbcType="VARCHAR" property="createUserName" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="modify_user_id" jdbcType="INTEGER" property="modifyUserId" />
    <result column="modify_user_name" jdbcType="VARCHAR" property="modifyUserName" />
    <result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
    <result column="company_id" jdbcType="INTEGER" property="companyId" />
    <result column="paypal_id" jdbcType="INTEGER" property="paypalId" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <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">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <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">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    id, seller, seller_password, seller_user, abbreviation, phone_number, phone_number_user, 
    merchant, credit_card, credit_card_user, credit_card_expiration_date, withdraw_bank, 
    api_user_name, api_password, api_signature, auth_json, auth_time, auth_token_expire_time, 
    create_user_id, create_user_name, create_time, modify_user_id, modify_user_name, 
    modify_time, company_id, paypal_id
  </sql>
  <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBasePaypalAccountExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from dc_base_paypal_account
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    <if test="rows != null">
      <if test="offset != null">
        limit ${offset}, ${rows}
      </if>
      <if test="offset == null">
        limit ${rows}
      </if>
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from dc_base_paypal_account
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_base_paypal_account
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcBasePaypalAccountExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_base_paypal_account
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.bailuntec.domain.entity.DcBasePaypalAccount">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_paypal_account (id, seller, seller_password, 
      seller_user, abbreviation, phone_number, 
      phone_number_user, merchant, credit_card, 
      credit_card_user, credit_card_expiration_date, 
      withdraw_bank, api_user_name, api_password, 
      api_signature, auth_json, auth_time, 
      auth_token_expire_time, create_user_id, create_user_name, 
      create_time, modify_user_id, modify_user_name, 
      modify_time, company_id, paypal_id
      )
    values (#{id,jdbcType=INTEGER}, #{seller,jdbcType=VARCHAR}, #{sellerPassword,jdbcType=VARCHAR}, 
      #{sellerUser,jdbcType=VARCHAR}, #{abbreviation,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR}, 
      #{phoneNumberUser,jdbcType=VARCHAR}, #{merchant,jdbcType=VARCHAR}, #{creditCard,jdbcType=VARCHAR}, 
      #{creditCardUser,jdbcType=VARCHAR}, #{creditCardExpirationDate,jdbcType=TIMESTAMP}, 
      #{withdrawBank,jdbcType=VARCHAR}, #{apiUserName,jdbcType=VARCHAR}, #{apiPassword,jdbcType=VARCHAR}, 
      #{apiSignature,jdbcType=VARCHAR}, #{authJson,jdbcType=VARCHAR}, #{authTime,jdbcType=TIMESTAMP}, 
      #{authTokenExpireTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=INTEGER}, #{createUserName,jdbcType=VARCHAR}, 
      #{createTime,jdbcType=TIMESTAMP}, #{modifyUserId,jdbcType=INTEGER}, #{modifyUserName,jdbcType=VARCHAR}, 
      #{modifyTime,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER}, #{paypalId,jdbcType=INTEGER}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBasePaypalAccount">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_base_paypal_account
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="seller != null">
        seller,
      </if>
      <if test="sellerPassword != null">
        seller_password,
      </if>
      <if test="sellerUser != null">
        seller_user,
      </if>
      <if test="abbreviation != null">
        abbreviation,
      </if>
      <if test="phoneNumber != null">
        phone_number,
      </if>
      <if test="phoneNumberUser != null">
        phone_number_user,
      </if>
      <if test="merchant != null">
        merchant,
      </if>
      <if test="creditCard != null">
        credit_card,
      </if>
      <if test="creditCardUser != null">
        credit_card_user,
      </if>
      <if test="creditCardExpirationDate != null">
        credit_card_expiration_date,
      </if>
      <if test="withdrawBank != null">
        withdraw_bank,
      </if>
      <if test="apiUserName != null">
        api_user_name,
      </if>
      <if test="apiPassword != null">
        api_password,
      </if>
      <if test="apiSignature != null">
        api_signature,
      </if>
      <if test="authJson != null">
        auth_json,
      </if>
      <if test="authTime != null">
        auth_time,
      </if>
      <if test="authTokenExpireTime != null">
        auth_token_expire_time,
      </if>
      <if test="createUserId != null">
        create_user_id,
      </if>
      <if test="createUserName != null">
        create_user_name,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="modifyUserId != null">
        modify_user_id,
      </if>
      <if test="modifyUserName != null">
        modify_user_name,
      </if>
      <if test="modifyTime != null">
        modify_time,
      </if>
      <if test="companyId != null">
        company_id,
      </if>
      <if test="paypalId != null">
        paypal_id,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="seller != null">
        #{seller,jdbcType=VARCHAR},
      </if>
      <if test="sellerPassword != null">
        #{sellerPassword,jdbcType=VARCHAR},
      </if>
      <if test="sellerUser != null">
        #{sellerUser,jdbcType=VARCHAR},
      </if>
      <if test="abbreviation != null">
        #{abbreviation,jdbcType=VARCHAR},
      </if>
      <if test="phoneNumber != null">
        #{phoneNumber,jdbcType=VARCHAR},
      </if>
      <if test="phoneNumberUser != null">
        #{phoneNumberUser,jdbcType=VARCHAR},
      </if>
      <if test="merchant != null">
        #{merchant,jdbcType=VARCHAR},
      </if>
      <if test="creditCard != null">
        #{creditCard,jdbcType=VARCHAR},
      </if>
      <if test="creditCardUser != null">
        #{creditCardUser,jdbcType=VARCHAR},
      </if>
      <if test="creditCardExpirationDate != null">
        #{creditCardExpirationDate,jdbcType=TIMESTAMP},
      </if>
      <if test="withdrawBank != null">
        #{withdrawBank,jdbcType=VARCHAR},
      </if>
      <if test="apiUserName != null">
        #{apiUserName,jdbcType=VARCHAR},
      </if>
      <if test="apiPassword != null">
        #{apiPassword,jdbcType=VARCHAR},
      </if>
      <if test="apiSignature != null">
        #{apiSignature,jdbcType=VARCHAR},
      </if>
      <if test="authJson != null">
        #{authJson,jdbcType=VARCHAR},
      </if>
      <if test="authTime != null">
        #{authTime,jdbcType=TIMESTAMP},
      </if>
      <if test="authTokenExpireTime != null">
        #{authTokenExpireTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUserId != null">
        #{createUserId,jdbcType=INTEGER},
      </if>
      <if test="createUserName != null">
        #{createUserName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyUserId != null">
        #{modifyUserId,jdbcType=INTEGER},
      </if>
      <if test="modifyUserName != null">
        #{modifyUserName,jdbcType=VARCHAR},
      </if>
      <if test="modifyTime != null">
        #{modifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="companyId != null">
        #{companyId,jdbcType=INTEGER},
      </if>
      <if test="paypalId != null">
        #{paypalId,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBasePaypalAccountExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from dc_base_paypal_account
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_paypal_account
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.seller != null">
        seller = #{record.seller,jdbcType=VARCHAR},
      </if>
      <if test="record.sellerPassword != null">
        seller_password = #{record.sellerPassword,jdbcType=VARCHAR},
      </if>
      <if test="record.sellerUser != null">
        seller_user = #{record.sellerUser,jdbcType=VARCHAR},
      </if>
      <if test="record.abbreviation != null">
        abbreviation = #{record.abbreviation,jdbcType=VARCHAR},
      </if>
      <if test="record.phoneNumber != null">
        phone_number = #{record.phoneNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.phoneNumberUser != null">
        phone_number_user = #{record.phoneNumberUser,jdbcType=VARCHAR},
      </if>
      <if test="record.merchant != null">
        merchant = #{record.merchant,jdbcType=VARCHAR},
      </if>
      <if test="record.creditCard != null">
        credit_card = #{record.creditCard,jdbcType=VARCHAR},
      </if>
      <if test="record.creditCardUser != null">
        credit_card_user = #{record.creditCardUser,jdbcType=VARCHAR},
      </if>
      <if test="record.creditCardExpirationDate != null">
        credit_card_expiration_date = #{record.creditCardExpirationDate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.withdrawBank != null">
        withdraw_bank = #{record.withdrawBank,jdbcType=VARCHAR},
      </if>
      <if test="record.apiUserName != null">
        api_user_name = #{record.apiUserName,jdbcType=VARCHAR},
      </if>
      <if test="record.apiPassword != null">
        api_password = #{record.apiPassword,jdbcType=VARCHAR},
      </if>
      <if test="record.apiSignature != null">
        api_signature = #{record.apiSignature,jdbcType=VARCHAR},
      </if>
      <if test="record.authJson != null">
        auth_json = #{record.authJson,jdbcType=VARCHAR},
      </if>
      <if test="record.authTime != null">
        auth_time = #{record.authTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.authTokenExpireTime != null">
        auth_token_expire_time = #{record.authTokenExpireTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createUserId != null">
        create_user_id = #{record.createUserId,jdbcType=INTEGER},
      </if>
      <if test="record.createUserName != null">
        create_user_name = #{record.createUserName,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.modifyUserId != null">
        modify_user_id = #{record.modifyUserId,jdbcType=INTEGER},
      </if>
      <if test="record.modifyUserName != null">
        modify_user_name = #{record.modifyUserName,jdbcType=VARCHAR},
      </if>
      <if test="record.modifyTime != null">
        modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.companyId != null">
        company_id = #{record.companyId,jdbcType=INTEGER},
      </if>
      <if test="record.paypalId != null">
        paypal_id = #{record.paypalId,jdbcType=INTEGER},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_paypal_account
    set id = #{record.id,jdbcType=INTEGER},
      seller = #{record.seller,jdbcType=VARCHAR},
      seller_password = #{record.sellerPassword,jdbcType=VARCHAR},
      seller_user = #{record.sellerUser,jdbcType=VARCHAR},
      abbreviation = #{record.abbreviation,jdbcType=VARCHAR},
      phone_number = #{record.phoneNumber,jdbcType=VARCHAR},
      phone_number_user = #{record.phoneNumberUser,jdbcType=VARCHAR},
      merchant = #{record.merchant,jdbcType=VARCHAR},
      credit_card = #{record.creditCard,jdbcType=VARCHAR},
      credit_card_user = #{record.creditCardUser,jdbcType=VARCHAR},
      credit_card_expiration_date = #{record.creditCardExpirationDate,jdbcType=TIMESTAMP},
      withdraw_bank = #{record.withdrawBank,jdbcType=VARCHAR},
      api_user_name = #{record.apiUserName,jdbcType=VARCHAR},
      api_password = #{record.apiPassword,jdbcType=VARCHAR},
      api_signature = #{record.apiSignature,jdbcType=VARCHAR},
      auth_json = #{record.authJson,jdbcType=VARCHAR},
      auth_time = #{record.authTime,jdbcType=TIMESTAMP},
      auth_token_expire_time = #{record.authTokenExpireTime,jdbcType=TIMESTAMP},
      create_user_id = #{record.createUserId,jdbcType=INTEGER},
      create_user_name = #{record.createUserName,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      modify_user_id = #{record.modifyUserId,jdbcType=INTEGER},
      modify_user_name = #{record.modifyUserName,jdbcType=VARCHAR},
      modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
      company_id = #{record.companyId,jdbcType=INTEGER},
      paypal_id = #{record.paypalId,jdbcType=INTEGER}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcBasePaypalAccount">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_paypal_account
    <set>
      <if test="seller != null">
        seller = #{seller,jdbcType=VARCHAR},
      </if>
      <if test="sellerPassword != null">
        seller_password = #{sellerPassword,jdbcType=VARCHAR},
      </if>
      <if test="sellerUser != null">
        seller_user = #{sellerUser,jdbcType=VARCHAR},
      </if>
      <if test="abbreviation != null">
        abbreviation = #{abbreviation,jdbcType=VARCHAR},
      </if>
      <if test="phoneNumber != null">
        phone_number = #{phoneNumber,jdbcType=VARCHAR},
      </if>
      <if test="phoneNumberUser != null">
        phone_number_user = #{phoneNumberUser,jdbcType=VARCHAR},
      </if>
      <if test="merchant != null">
        merchant = #{merchant,jdbcType=VARCHAR},
      </if>
      <if test="creditCard != null">
        credit_card = #{creditCard,jdbcType=VARCHAR},
      </if>
      <if test="creditCardUser != null">
        credit_card_user = #{creditCardUser,jdbcType=VARCHAR},
      </if>
      <if test="creditCardExpirationDate != null">
        credit_card_expiration_date = #{creditCardExpirationDate,jdbcType=TIMESTAMP},
      </if>
      <if test="withdrawBank != null">
        withdraw_bank = #{withdrawBank,jdbcType=VARCHAR},
      </if>
      <if test="apiUserName != null">
        api_user_name = #{apiUserName,jdbcType=VARCHAR},
      </if>
      <if test="apiPassword != null">
        api_password = #{apiPassword,jdbcType=VARCHAR},
      </if>
      <if test="apiSignature != null">
        api_signature = #{apiSignature,jdbcType=VARCHAR},
      </if>
      <if test="authJson != null">
        auth_json = #{authJson,jdbcType=VARCHAR},
      </if>
      <if test="authTime != null">
        auth_time = #{authTime,jdbcType=TIMESTAMP},
      </if>
      <if test="authTokenExpireTime != null">
        auth_token_expire_time = #{authTokenExpireTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUserId != null">
        create_user_id = #{createUserId,jdbcType=INTEGER},
      </if>
      <if test="createUserName != null">
        create_user_name = #{createUserName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyUserId != null">
        modify_user_id = #{modifyUserId,jdbcType=INTEGER},
      </if>
      <if test="modifyUserName != null">
        modify_user_name = #{modifyUserName,jdbcType=VARCHAR},
      </if>
      <if test="modifyTime != null">
        modify_time = #{modifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="companyId != null">
        company_id = #{companyId,jdbcType=INTEGER},
      </if>
      <if test="paypalId != null">
        paypal_id = #{paypalId,jdbcType=INTEGER},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.bailuntec.domain.entity.DcBasePaypalAccount">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_base_paypal_account
    set seller = #{seller,jdbcType=VARCHAR},
      seller_password = #{sellerPassword,jdbcType=VARCHAR},
      seller_user = #{sellerUser,jdbcType=VARCHAR},
      abbreviation = #{abbreviation,jdbcType=VARCHAR},
      phone_number = #{phoneNumber,jdbcType=VARCHAR},
      phone_number_user = #{phoneNumberUser,jdbcType=VARCHAR},
      merchant = #{merchant,jdbcType=VARCHAR},
      credit_card = #{creditCard,jdbcType=VARCHAR},
      credit_card_user = #{creditCardUser,jdbcType=VARCHAR},
      credit_card_expiration_date = #{creditCardExpirationDate,jdbcType=TIMESTAMP},
      withdraw_bank = #{withdrawBank,jdbcType=VARCHAR},
      api_user_name = #{apiUserName,jdbcType=VARCHAR},
      api_password = #{apiPassword,jdbcType=VARCHAR},
      api_signature = #{apiSignature,jdbcType=VARCHAR},
      auth_json = #{authJson,jdbcType=VARCHAR},
      auth_time = #{authTime,jdbcType=TIMESTAMP},
      auth_token_expire_time = #{authTokenExpireTime,jdbcType=TIMESTAMP},
      create_user_id = #{createUserId,jdbcType=INTEGER},
      create_user_name = #{createUserName,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      modify_user_id = #{modifyUserId,jdbcType=INTEGER},
      modify_user_name = #{modifyUserName,jdbcType=VARCHAR},
      modify_time = #{modifyTime,jdbcType=TIMESTAMP},
      company_id = #{companyId,jdbcType=INTEGER},
      paypal_id = #{paypalId,jdbcType=INTEGER}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBasePaypalAccount">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    insert into dc_base_paypal_account
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="seller != null">
        seller,
      </if>
      <if test="sellerPassword != null">
        seller_password,
      </if>
      <if test="sellerUser != null">
        seller_user,
      </if>
      <if test="abbreviation != null">
        abbreviation,
      </if>
      <if test="phoneNumber != null">
        phone_number,
      </if>
      <if test="phoneNumberUser != null">
        phone_number_user,
      </if>
      <if test="merchant != null">
        merchant,
      </if>
      <if test="creditCard != null">
        credit_card,
      </if>
      <if test="creditCardUser != null">
        credit_card_user,
      </if>
      <if test="creditCardExpirationDate != null">
        credit_card_expiration_date,
      </if>
      <if test="withdrawBank != null">
        withdraw_bank,
      </if>
      <if test="apiUserName != null">
        api_user_name,
      </if>
      <if test="apiPassword != null">
        api_password,
      </if>
      <if test="apiSignature != null">
        api_signature,
      </if>
      <if test="authJson != null">
        auth_json,
      </if>
      <if test="authTime != null">
        auth_time,
      </if>
      <if test="authTokenExpireTime != null">
        auth_token_expire_time,
      </if>
      <if test="createUserId != null">
        create_user_id,
      </if>
      <if test="createUserName != null">
        create_user_name,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="modifyUserId != null">
        modify_user_id,
      </if>
      <if test="modifyUserName != null">
        modify_user_name,
      </if>
      <if test="modifyTime != null">
        modify_time,
      </if>
      <if test="companyId != null">
        company_id,
      </if>
      <if test="paypalId != null">
        paypal_id,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="seller != null">
        #{seller,jdbcType=VARCHAR},
      </if>
      <if test="sellerPassword != null">
        #{sellerPassword,jdbcType=VARCHAR},
      </if>
      <if test="sellerUser != null">
        #{sellerUser,jdbcType=VARCHAR},
      </if>
      <if test="abbreviation != null">
        #{abbreviation,jdbcType=VARCHAR},
      </if>
      <if test="phoneNumber != null">
        #{phoneNumber,jdbcType=VARCHAR},
      </if>
      <if test="phoneNumberUser != null">
        #{phoneNumberUser,jdbcType=VARCHAR},
      </if>
      <if test="merchant != null">
        #{merchant,jdbcType=VARCHAR},
      </if>
      <if test="creditCard != null">
        #{creditCard,jdbcType=VARCHAR},
      </if>
      <if test="creditCardUser != null">
        #{creditCardUser,jdbcType=VARCHAR},
      </if>
      <if test="creditCardExpirationDate != null">
        #{creditCardExpirationDate,jdbcType=TIMESTAMP},
      </if>
      <if test="withdrawBank != null">
        #{withdrawBank,jdbcType=VARCHAR},
      </if>
      <if test="apiUserName != null">
        #{apiUserName,jdbcType=VARCHAR},
      </if>
      <if test="apiPassword != null">
        #{apiPassword,jdbcType=VARCHAR},
      </if>
      <if test="apiSignature != null">
        #{apiSignature,jdbcType=VARCHAR},
      </if>
      <if test="authJson != null">
        #{authJson,jdbcType=VARCHAR},
      </if>
      <if test="authTime != null">
        #{authTime,jdbcType=TIMESTAMP},
      </if>
      <if test="authTokenExpireTime != null">
        #{authTokenExpireTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUserId != null">
        #{createUserId,jdbcType=INTEGER},
      </if>
      <if test="createUserName != null">
        #{createUserName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyUserId != null">
        #{modifyUserId,jdbcType=INTEGER},
      </if>
      <if test="modifyUserName != null">
        #{modifyUserName,jdbcType=VARCHAR},
      </if>
      <if test="modifyTime != null">
        #{modifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="companyId != null">
        #{companyId,jdbcType=INTEGER},
      </if>
      <if test="paypalId != null">
        #{paypalId,jdbcType=INTEGER},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
        id = #{id,jdbcType=INTEGER},
      </if>
      <if test="seller != null">
        seller = #{seller,jdbcType=VARCHAR},
      </if>
      <if test="sellerPassword != null">
        seller_password = #{sellerPassword,jdbcType=VARCHAR},
      </if>
      <if test="sellerUser != null">
        seller_user = #{sellerUser,jdbcType=VARCHAR},
      </if>
      <if test="abbreviation != null">
        abbreviation = #{abbreviation,jdbcType=VARCHAR},
      </if>
      <if test="phoneNumber != null">
        phone_number = #{phoneNumber,jdbcType=VARCHAR},
      </if>
      <if test="phoneNumberUser != null">
        phone_number_user = #{phoneNumberUser,jdbcType=VARCHAR},
      </if>
      <if test="merchant != null">
        merchant = #{merchant,jdbcType=VARCHAR},
      </if>
      <if test="creditCard != null">
        credit_card = #{creditCard,jdbcType=VARCHAR},
      </if>
      <if test="creditCardUser != null">
        credit_card_user = #{creditCardUser,jdbcType=VARCHAR},
      </if>
      <if test="creditCardExpirationDate != null">
        credit_card_expiration_date = #{creditCardExpirationDate,jdbcType=TIMESTAMP},
      </if>
      <if test="withdrawBank != null">
        withdraw_bank = #{withdrawBank,jdbcType=VARCHAR},
      </if>
      <if test="apiUserName != null">
        api_user_name = #{apiUserName,jdbcType=VARCHAR},
      </if>
      <if test="apiPassword != null">
        api_password = #{apiPassword,jdbcType=VARCHAR},
      </if>
      <if test="apiSignature != null">
        api_signature = #{apiSignature,jdbcType=VARCHAR},
      </if>
      <if test="authJson != null">
        auth_json = #{authJson,jdbcType=VARCHAR},
      </if>
      <if test="authTime != null">
        auth_time = #{authTime,jdbcType=TIMESTAMP},
      </if>
      <if test="authTokenExpireTime != null">
        auth_token_expire_time = #{authTokenExpireTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUserId != null">
        create_user_id = #{createUserId,jdbcType=INTEGER},
      </if>
      <if test="createUserName != null">
        create_user_name = #{createUserName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyUserId != null">
        modify_user_id = #{modifyUserId,jdbcType=INTEGER},
      </if>
      <if test="modifyUserName != null">
        modify_user_name = #{modifyUserName,jdbcType=VARCHAR},
      </if>
      <if test="modifyTime != null">
        modify_time = #{modifyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="companyId != null">
        company_id = #{companyId,jdbcType=INTEGER},
      </if>
      <if test="paypalId != null">
        paypal_id = #{paypalId,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBasePaypalAccount">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    insert into dc_base_paypal_account
    (id, seller, seller_password, seller_user, abbreviation, phone_number, phone_number_user, 
      merchant, credit_card, credit_card_user, credit_card_expiration_date, withdraw_bank, 
      api_user_name, api_password, api_signature, auth_json, auth_time, auth_token_expire_time, 
      create_user_id, create_user_name, create_time, modify_user_id, modify_user_name, 
      modify_time, company_id, paypal_id)
    values
    (#{id,jdbcType=INTEGER}, #{seller,jdbcType=VARCHAR}, #{sellerPassword,jdbcType=VARCHAR}, 
      #{sellerUser,jdbcType=VARCHAR}, #{abbreviation,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR}, 
      #{phoneNumberUser,jdbcType=VARCHAR}, #{merchant,jdbcType=VARCHAR}, #{creditCard,jdbcType=VARCHAR}, 
      #{creditCardUser,jdbcType=VARCHAR}, #{creditCardExpirationDate,jdbcType=TIMESTAMP}, 
      #{withdrawBank,jdbcType=VARCHAR}, #{apiUserName,jdbcType=VARCHAR}, #{apiPassword,jdbcType=VARCHAR}, 
      #{apiSignature,jdbcType=VARCHAR}, #{authJson,jdbcType=VARCHAR}, #{authTime,jdbcType=TIMESTAMP}, 
      #{authTokenExpireTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=INTEGER}, #{createUserName,jdbcType=VARCHAR}, 
      #{createTime,jdbcType=TIMESTAMP}, #{modifyUserId,jdbcType=INTEGER}, #{modifyUserName,jdbcType=VARCHAR}, 
      #{modifyTime,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER}, #{paypalId,jdbcType=INTEGER}
      )
    on duplicate key update 
    id = #{id,jdbcType=INTEGER}, 
    seller = #{seller,jdbcType=VARCHAR}, 
    seller_password = #{sellerPassword,jdbcType=VARCHAR}, 
    seller_user = #{sellerUser,jdbcType=VARCHAR}, 
    abbreviation = #{abbreviation,jdbcType=VARCHAR}, 
    phone_number = #{phoneNumber,jdbcType=VARCHAR}, 
    phone_number_user = #{phoneNumberUser,jdbcType=VARCHAR}, 
    merchant = #{merchant,jdbcType=VARCHAR}, 
    credit_card = #{creditCard,jdbcType=VARCHAR}, 
    credit_card_user = #{creditCardUser,jdbcType=VARCHAR}, 
    credit_card_expiration_date = #{creditCardExpirationDate,jdbcType=TIMESTAMP}, 
    withdraw_bank = #{withdrawBank,jdbcType=VARCHAR}, 
    api_user_name = #{apiUserName,jdbcType=VARCHAR}, 
    api_password = #{apiPassword,jdbcType=VARCHAR}, 
    api_signature = #{apiSignature,jdbcType=VARCHAR}, 
    auth_json = #{authJson,jdbcType=VARCHAR}, 
    auth_time = #{authTime,jdbcType=TIMESTAMP}, 
    auth_token_expire_time = #{authTokenExpireTime,jdbcType=TIMESTAMP}, 
    create_user_id = #{createUserId,jdbcType=INTEGER}, 
    create_user_name = #{createUserName,jdbcType=VARCHAR}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    modify_user_id = #{modifyUserId,jdbcType=INTEGER}, 
    modify_user_name = #{modifyUserName,jdbcType=VARCHAR}, 
    modify_time = #{modifyTime,jdbcType=TIMESTAMP}, 
    company_id = #{companyId,jdbcType=INTEGER}, 
    paypal_id = #{paypalId,jdbcType=INTEGER}
  </insert>
  <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBasePaypalAccountExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    select
    <include refid="Base_Column_List" />
    from dc_base_paypal_account
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
</mapper>