<?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="pwc.taxtech.atms.dao.OrganizationExtraMapper">
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.OrganizationExtra">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="organization_id" jdbcType="VARCHAR" property="organizationId" />
    <result column="unified_social_credit_code" jdbcType="VARCHAR" property="unifiedSocialCreditCode" />
    <result column="reg_financial_accounting_type" jdbcType="BIT" property="regFinancialAccountingType" />
    <result column="tax_reg_status" jdbcType="VARCHAR" property="taxRegStatus" />
    <result column="tax_credit_rating" jdbcType="VARCHAR" property="taxCreditRating" />
    <result column="applicable_accounting_rule" jdbcType="VARCHAR" property="applicableAccountingRule" />
    <result column="low_value_consumables_amortization_method" jdbcType="VARCHAR" property="lowValueConsumablesAmortizationMethod" />
    <result column="depreciation_method" jdbcType="VARCHAR" property="depreciationMethod" />
    <result column="accounting_software" jdbcType="VARCHAR" property="accountingSoftware" />
    <result column="complete_record_total_institutions" jdbcType="BIT" property="completeRecordTotalInstitutions" />
    <result column="tax_client_person_name" jdbcType="VARCHAR" property="taxClientPersonName" />
    <result column="tax_client_person_phone_num" jdbcType="VARCHAR" property="taxClientPersonPhoneNum" />
    <result column="tax_client_person_id_num" jdbcType="VARCHAR" property="taxClientPersonIdNum" />
    <result column="ticket_holder_name" jdbcType="VARCHAR" property="ticketHolderName" />
    <result column="ticket_holder_phone_num" jdbcType="VARCHAR" property="ticketHolderPhoneNum" />
    <result column="national_tax_hall_address" jdbcType="VARCHAR" property="nationalTaxHallAddress" />
    <result column="national_tax_administrator_name" jdbcType="VARCHAR" property="nationalTaxAdministratorName" />
    <result column="national_tax_administrator_phone_num" jdbcType="VARCHAR" property="nationalTaxAdministratorPhoneNum" />
    <result column="local_tax_hall_address" jdbcType="VARCHAR" property="localTaxHallAddress" />
    <result column="local_tax_administrator_name" jdbcType="VARCHAR" property="localTaxAdministratorName" />
    <result column="local_tax_administrator_phone_num" jdbcType="VARCHAR" property="localTaxAdministratorPhoneNum" />
    <result column="eta_website" jdbcType="VARCHAR" property="etaWebsite" />
    <result column="sign_tripartite_agreement" jdbcType="BIT" property="signTripartiteAgreement" />
    <result column="reporting_currency" jdbcType="VARCHAR" property="reportingCurrency" />
    <result column="consolidation_time" jdbcType="TIMESTAMP" property="consolidationTime" />
    <result column="fiscal_year_deadline" jdbcType="TIMESTAMP" property="fiscalYearDeadline" />
    <result column="tax_agent" jdbcType="VARCHAR" property="taxAgent" />
    <result column="tax_agent_contact" jdbcType="VARCHAR" property="taxAgentContact" />
    <result column="other_facts" jdbcType="VARCHAR" property="otherFacts" />
    <result column="tax_return_business_type" jdbcType="TINYINT" property="taxReturnBusinessType" />
    <result column="small_meager_profit" jdbcType="BIT" property="smallMeagerProfit" />
    <result column="listed_company" jdbcType="BIT" property="listedCompany" />
    <result column="applicable_accounting_standards_or_accounting_systems" jdbcType="INTEGER" property="applicableAccountingStandardsOrAccountingSystems" />
    <result column="tax_payer_number_vat" jdbcType="VARCHAR" property="taxPayerNumberVat" />
    <result column="tax_payer_number_cit" jdbcType="VARCHAR" property="taxPayerNumberCit" />
    <result column="tax_client_person_email_address" jdbcType="VARCHAR" property="taxClientPersonEmailAddress" />
    <result column="bank_account_name" jdbcType="VARCHAR" property="bankAccountName" />
    <result column="bank_account_number" jdbcType="VARCHAR" property="bankAccountNumber" />
    <result column="legal_person_name" jdbcType="VARCHAR" property="legalPersonName" />
    <result column="legal_person_phone_number" jdbcType="VARCHAR" property="legalPersonPhoneNumber" />
    <result column="legal_person_landline_num" jdbcType="VARCHAR" property="legalPersonLandlineNum" />
    <result column="legal_person_email_address" jdbcType="VARCHAR" property="legalPersonEmailAddress" />
    <result column="reg_financial_officer_name" jdbcType="VARCHAR" property="regFinancialOfficerName" />
    <result column="reg_financial_officer_phone_num" jdbcType="VARCHAR" property="regFinancialOfficerPhoneNum" />
    <result column="reg_financial_officer_landline_num" jdbcType="VARCHAR" property="regFinancialOfficerLandlineNum" />
    <result column="reg_financial_officer_email_address" jdbcType="VARCHAR" property="regFinancialOfficerEmailAddress" />
    <result column="secondary_approval_amount" jdbcType="BIGINT" property="secondaryApprovalAmount" />
    <result column="business_registration_number" jdbcType="VARCHAR" property="businessRegistrationNumber" />
    <result column="par_value" jdbcType="REAL" property="parValue" />
    <result column="issued_shares" jdbcType="BIGINT" property="issuedShares" />
    <result column="directors" jdbcType="VARCHAR" property="directors" />
    <result column="actual_business_address" jdbcType="VARCHAR" property="actualBusinessAddress" />
    <result column="tax_rule_introduction" jdbcType="VARCHAR" property="taxRuleIntroduction" />
    <result column="audit_requirements" jdbcType="VARCHAR" property="auditRequirements" />
    <result column="architecture_type" jdbcType="VARCHAR" property="architectureType" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  </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, organization_id, unified_social_credit_code, reg_financial_accounting_type, tax_reg_status, 
    tax_credit_rating, applicable_accounting_rule, low_value_consumables_amortization_method, 
    depreciation_method, accounting_software, complete_record_total_institutions, tax_client_person_name, 
    tax_client_person_phone_num, tax_client_person_id_num, ticket_holder_name, ticket_holder_phone_num, 
    national_tax_hall_address, national_tax_administrator_name, national_tax_administrator_phone_num, 
    local_tax_hall_address, local_tax_administrator_name, local_tax_administrator_phone_num, 
    eta_website, sign_tripartite_agreement, reporting_currency, consolidation_time, fiscal_year_deadline, 
    tax_agent, tax_agent_contact, other_facts, tax_return_business_type, small_meager_profit, 
    listed_company, applicable_accounting_standards_or_accounting_systems, tax_payer_number_vat, 
    tax_payer_number_cit, tax_client_person_email_address, bank_account_name, bank_account_number, 
    legal_person_name, legal_person_phone_number, legal_person_landline_num, legal_person_email_address, 
    reg_financial_officer_name, reg_financial_officer_phone_num, reg_financial_officer_landline_num, 
    reg_financial_officer_email_address, secondary_approval_amount, business_registration_number, 
    par_value, issued_shares, directors, actual_business_address, tax_rule_introduction, 
    audit_requirements, architecture_type, create_time, update_time
  </sql>
  <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.OrganizationExtraExample" 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 organization_extra
    <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">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from organization_extra
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from organization_extra
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.OrganizationExtraExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from organization_extra
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="pwc.taxtech.atms.entity.OrganizationExtra">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into organization_extra (id, organization_id, unified_social_credit_code, 
      reg_financial_accounting_type, tax_reg_status, tax_credit_rating, 
      applicable_accounting_rule, low_value_consumables_amortization_method, 
      depreciation_method, accounting_software, 
      complete_record_total_institutions, tax_client_person_name, 
      tax_client_person_phone_num, tax_client_person_id_num, 
      ticket_holder_name, ticket_holder_phone_num, 
      national_tax_hall_address, national_tax_administrator_name, 
      national_tax_administrator_phone_num, local_tax_hall_address, 
      local_tax_administrator_name, local_tax_administrator_phone_num, 
      eta_website, sign_tripartite_agreement, reporting_currency, 
      consolidation_time, fiscal_year_deadline, 
      tax_agent, tax_agent_contact, other_facts, 
      tax_return_business_type, small_meager_profit, listed_company, 
      applicable_accounting_standards_or_accounting_systems, tax_payer_number_vat, 
      tax_payer_number_cit, tax_client_person_email_address, 
      bank_account_name, bank_account_number, legal_person_name, 
      legal_person_phone_number, legal_person_landline_num, 
      legal_person_email_address, reg_financial_officer_name, 
      reg_financial_officer_phone_num, reg_financial_officer_landline_num, 
      reg_financial_officer_email_address, secondary_approval_amount, 
      business_registration_number, par_value, issued_shares, 
      directors, actual_business_address, tax_rule_introduction, 
      audit_requirements, architecture_type, create_time, 
      update_time)
    values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{unifiedSocialCreditCode,jdbcType=VARCHAR}, 
      #{regFinancialAccountingType,jdbcType=BIT}, #{taxRegStatus,jdbcType=VARCHAR}, #{taxCreditRating,jdbcType=VARCHAR}, 
      #{applicableAccountingRule,jdbcType=VARCHAR}, #{lowValueConsumablesAmortizationMethod,jdbcType=VARCHAR}, 
      #{depreciationMethod,jdbcType=VARCHAR}, #{accountingSoftware,jdbcType=VARCHAR}, 
      #{completeRecordTotalInstitutions,jdbcType=BIT}, #{taxClientPersonName,jdbcType=VARCHAR}, 
      #{taxClientPersonPhoneNum,jdbcType=VARCHAR}, #{taxClientPersonIdNum,jdbcType=VARCHAR}, 
      #{ticketHolderName,jdbcType=VARCHAR}, #{ticketHolderPhoneNum,jdbcType=VARCHAR}, 
      #{nationalTaxHallAddress,jdbcType=VARCHAR}, #{nationalTaxAdministratorName,jdbcType=VARCHAR}, 
      #{nationalTaxAdministratorPhoneNum,jdbcType=VARCHAR}, #{localTaxHallAddress,jdbcType=VARCHAR}, 
      #{localTaxAdministratorName,jdbcType=VARCHAR}, #{localTaxAdministratorPhoneNum,jdbcType=VARCHAR}, 
      #{etaWebsite,jdbcType=VARCHAR}, #{signTripartiteAgreement,jdbcType=BIT}, #{reportingCurrency,jdbcType=VARCHAR}, 
      #{consolidationTime,jdbcType=TIMESTAMP}, #{fiscalYearDeadline,jdbcType=TIMESTAMP}, 
      #{taxAgent,jdbcType=VARCHAR}, #{taxAgentContact,jdbcType=VARCHAR}, #{otherFacts,jdbcType=VARCHAR}, 
      #{taxReturnBusinessType,jdbcType=TINYINT}, #{smallMeagerProfit,jdbcType=BIT}, #{listedCompany,jdbcType=BIT}, 
      #{applicableAccountingStandardsOrAccountingSystems,jdbcType=INTEGER}, #{taxPayerNumberVat,jdbcType=VARCHAR}, 
      #{taxPayerNumberCit,jdbcType=VARCHAR}, #{taxClientPersonEmailAddress,jdbcType=VARCHAR}, 
      #{bankAccountName,jdbcType=VARCHAR}, #{bankAccountNumber,jdbcType=VARCHAR}, #{legalPersonName,jdbcType=VARCHAR}, 
      #{legalPersonPhoneNumber,jdbcType=VARCHAR}, #{legalPersonLandlineNum,jdbcType=VARCHAR}, 
      #{legalPersonEmailAddress,jdbcType=VARCHAR}, #{regFinancialOfficerName,jdbcType=VARCHAR}, 
      #{regFinancialOfficerPhoneNum,jdbcType=VARCHAR}, #{regFinancialOfficerLandlineNum,jdbcType=VARCHAR}, 
      #{regFinancialOfficerEmailAddress,jdbcType=VARCHAR}, #{secondaryApprovalAmount,jdbcType=BIGINT}, 
      #{businessRegistrationNumber,jdbcType=VARCHAR}, #{parValue,jdbcType=REAL}, #{issuedShares,jdbcType=BIGINT}, 
      #{directors,jdbcType=VARCHAR}, #{actualBusinessAddress,jdbcType=VARCHAR}, #{taxRuleIntroduction,jdbcType=VARCHAR}, 
      #{auditRequirements,jdbcType=VARCHAR}, #{architectureType,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{updateTime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.OrganizationExtra">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into organization_extra
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="organizationId != null">
        organization_id,
      </if>
      <if test="unifiedSocialCreditCode != null">
        unified_social_credit_code,
      </if>
      <if test="regFinancialAccountingType != null">
        reg_financial_accounting_type,
      </if>
      <if test="taxRegStatus != null">
        tax_reg_status,
      </if>
      <if test="taxCreditRating != null">
        tax_credit_rating,
      </if>
      <if test="applicableAccountingRule != null">
        applicable_accounting_rule,
      </if>
      <if test="lowValueConsumablesAmortizationMethod != null">
        low_value_consumables_amortization_method,
      </if>
      <if test="depreciationMethod != null">
        depreciation_method,
      </if>
      <if test="accountingSoftware != null">
        accounting_software,
      </if>
      <if test="completeRecordTotalInstitutions != null">
        complete_record_total_institutions,
      </if>
      <if test="taxClientPersonName != null">
        tax_client_person_name,
      </if>
      <if test="taxClientPersonPhoneNum != null">
        tax_client_person_phone_num,
      </if>
      <if test="taxClientPersonIdNum != null">
        tax_client_person_id_num,
      </if>
      <if test="ticketHolderName != null">
        ticket_holder_name,
      </if>
      <if test="ticketHolderPhoneNum != null">
        ticket_holder_phone_num,
      </if>
      <if test="nationalTaxHallAddress != null">
        national_tax_hall_address,
      </if>
      <if test="nationalTaxAdministratorName != null">
        national_tax_administrator_name,
      </if>
      <if test="nationalTaxAdministratorPhoneNum != null">
        national_tax_administrator_phone_num,
      </if>
      <if test="localTaxHallAddress != null">
        local_tax_hall_address,
      </if>
      <if test="localTaxAdministratorName != null">
        local_tax_administrator_name,
      </if>
      <if test="localTaxAdministratorPhoneNum != null">
        local_tax_administrator_phone_num,
      </if>
      <if test="etaWebsite != null">
        eta_website,
      </if>
      <if test="signTripartiteAgreement != null">
        sign_tripartite_agreement,
      </if>
      <if test="reportingCurrency != null">
        reporting_currency,
      </if>
      <if test="consolidationTime != null">
        consolidation_time,
      </if>
      <if test="fiscalYearDeadline != null">
        fiscal_year_deadline,
      </if>
      <if test="taxAgent != null">
        tax_agent,
      </if>
      <if test="taxAgentContact != null">
        tax_agent_contact,
      </if>
      <if test="otherFacts != null">
        other_facts,
      </if>
      <if test="taxReturnBusinessType != null">
        tax_return_business_type,
      </if>
      <if test="smallMeagerProfit != null">
        small_meager_profit,
      </if>
      <if test="listedCompany != null">
        listed_company,
      </if>
      <if test="applicableAccountingStandardsOrAccountingSystems != null">
        applicable_accounting_standards_or_accounting_systems,
      </if>
      <if test="taxPayerNumberVat != null">
        tax_payer_number_vat,
      </if>
      <if test="taxPayerNumberCit != null">
        tax_payer_number_cit,
      </if>
      <if test="taxClientPersonEmailAddress != null">
        tax_client_person_email_address,
      </if>
      <if test="bankAccountName != null">
        bank_account_name,
      </if>
      <if test="bankAccountNumber != null">
        bank_account_number,
      </if>
      <if test="legalPersonName != null">
        legal_person_name,
      </if>
      <if test="legalPersonPhoneNumber != null">
        legal_person_phone_number,
      </if>
      <if test="legalPersonLandlineNum != null">
        legal_person_landline_num,
      </if>
      <if test="legalPersonEmailAddress != null">
        legal_person_email_address,
      </if>
      <if test="regFinancialOfficerName != null">
        reg_financial_officer_name,
      </if>
      <if test="regFinancialOfficerPhoneNum != null">
        reg_financial_officer_phone_num,
      </if>
      <if test="regFinancialOfficerLandlineNum != null">
        reg_financial_officer_landline_num,
      </if>
      <if test="regFinancialOfficerEmailAddress != null">
        reg_financial_officer_email_address,
      </if>
      <if test="secondaryApprovalAmount != null">
        secondary_approval_amount,
      </if>
      <if test="businessRegistrationNumber != null">
        business_registration_number,
      </if>
      <if test="parValue != null">
        par_value,
      </if>
      <if test="issuedShares != null">
        issued_shares,
      </if>
      <if test="directors != null">
        directors,
      </if>
      <if test="actualBusinessAddress != null">
        actual_business_address,
      </if>
      <if test="taxRuleIntroduction != null">
        tax_rule_introduction,
      </if>
      <if test="auditRequirements != null">
        audit_requirements,
      </if>
      <if test="architectureType != null">
        architecture_type,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="organizationId != null">
        #{organizationId,jdbcType=VARCHAR},
      </if>
      <if test="unifiedSocialCreditCode != null">
        #{unifiedSocialCreditCode,jdbcType=VARCHAR},
      </if>
      <if test="regFinancialAccountingType != null">
        #{regFinancialAccountingType,jdbcType=BIT},
      </if>
      <if test="taxRegStatus != null">
        #{taxRegStatus,jdbcType=VARCHAR},
      </if>
      <if test="taxCreditRating != null">
        #{taxCreditRating,jdbcType=VARCHAR},
      </if>
      <if test="applicableAccountingRule != null">
        #{applicableAccountingRule,jdbcType=VARCHAR},
      </if>
      <if test="lowValueConsumablesAmortizationMethod != null">
        #{lowValueConsumablesAmortizationMethod,jdbcType=VARCHAR},
      </if>
      <if test="depreciationMethod != null">
        #{depreciationMethod,jdbcType=VARCHAR},
      </if>
      <if test="accountingSoftware != null">
        #{accountingSoftware,jdbcType=VARCHAR},
      </if>
      <if test="completeRecordTotalInstitutions != null">
        #{completeRecordTotalInstitutions,jdbcType=BIT},
      </if>
      <if test="taxClientPersonName != null">
        #{taxClientPersonName,jdbcType=VARCHAR},
      </if>
      <if test="taxClientPersonPhoneNum != null">
        #{taxClientPersonPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="taxClientPersonIdNum != null">
        #{taxClientPersonIdNum,jdbcType=VARCHAR},
      </if>
      <if test="ticketHolderName != null">
        #{ticketHolderName,jdbcType=VARCHAR},
      </if>
      <if test="ticketHolderPhoneNum != null">
        #{ticketHolderPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="nationalTaxHallAddress != null">
        #{nationalTaxHallAddress,jdbcType=VARCHAR},
      </if>
      <if test="nationalTaxAdministratorName != null">
        #{nationalTaxAdministratorName,jdbcType=VARCHAR},
      </if>
      <if test="nationalTaxAdministratorPhoneNum != null">
        #{nationalTaxAdministratorPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="localTaxHallAddress != null">
        #{localTaxHallAddress,jdbcType=VARCHAR},
      </if>
      <if test="localTaxAdministratorName != null">
        #{localTaxAdministratorName,jdbcType=VARCHAR},
      </if>
      <if test="localTaxAdministratorPhoneNum != null">
        #{localTaxAdministratorPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="etaWebsite != null">
        #{etaWebsite,jdbcType=VARCHAR},
      </if>
      <if test="signTripartiteAgreement != null">
        #{signTripartiteAgreement,jdbcType=BIT},
      </if>
      <if test="reportingCurrency != null">
        #{reportingCurrency,jdbcType=VARCHAR},
      </if>
      <if test="consolidationTime != null">
        #{consolidationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="fiscalYearDeadline != null">
        #{fiscalYearDeadline,jdbcType=TIMESTAMP},
      </if>
      <if test="taxAgent != null">
        #{taxAgent,jdbcType=VARCHAR},
      </if>
      <if test="taxAgentContact != null">
        #{taxAgentContact,jdbcType=VARCHAR},
      </if>
      <if test="otherFacts != null">
        #{otherFacts,jdbcType=VARCHAR},
      </if>
      <if test="taxReturnBusinessType != null">
        #{taxReturnBusinessType,jdbcType=TINYINT},
      </if>
      <if test="smallMeagerProfit != null">
        #{smallMeagerProfit,jdbcType=BIT},
      </if>
      <if test="listedCompany != null">
        #{listedCompany,jdbcType=BIT},
      </if>
      <if test="applicableAccountingStandardsOrAccountingSystems != null">
        #{applicableAccountingStandardsOrAccountingSystems,jdbcType=INTEGER},
      </if>
      <if test="taxPayerNumberVat != null">
        #{taxPayerNumberVat,jdbcType=VARCHAR},
      </if>
      <if test="taxPayerNumberCit != null">
        #{taxPayerNumberCit,jdbcType=VARCHAR},
      </if>
      <if test="taxClientPersonEmailAddress != null">
        #{taxClientPersonEmailAddress,jdbcType=VARCHAR},
      </if>
      <if test="bankAccountName != null">
        #{bankAccountName,jdbcType=VARCHAR},
      </if>
      <if test="bankAccountNumber != null">
        #{bankAccountNumber,jdbcType=VARCHAR},
      </if>
      <if test="legalPersonName != null">
        #{legalPersonName,jdbcType=VARCHAR},
      </if>
      <if test="legalPersonPhoneNumber != null">
        #{legalPersonPhoneNumber,jdbcType=VARCHAR},
      </if>
      <if test="legalPersonLandlineNum != null">
        #{legalPersonLandlineNum,jdbcType=VARCHAR},
      </if>
      <if test="legalPersonEmailAddress != null">
        #{legalPersonEmailAddress,jdbcType=VARCHAR},
      </if>
      <if test="regFinancialOfficerName != null">
        #{regFinancialOfficerName,jdbcType=VARCHAR},
      </if>
      <if test="regFinancialOfficerPhoneNum != null">
        #{regFinancialOfficerPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="regFinancialOfficerLandlineNum != null">
        #{regFinancialOfficerLandlineNum,jdbcType=VARCHAR},
      </if>
      <if test="regFinancialOfficerEmailAddress != null">
        #{regFinancialOfficerEmailAddress,jdbcType=VARCHAR},
      </if>
      <if test="secondaryApprovalAmount != null">
        #{secondaryApprovalAmount,jdbcType=BIGINT},
      </if>
      <if test="businessRegistrationNumber != null">
        #{businessRegistrationNumber,jdbcType=VARCHAR},
      </if>
      <if test="parValue != null">
        #{parValue,jdbcType=REAL},
      </if>
      <if test="issuedShares != null">
        #{issuedShares,jdbcType=BIGINT},
      </if>
      <if test="directors != null">
        #{directors,jdbcType=VARCHAR},
      </if>
      <if test="actualBusinessAddress != null">
        #{actualBusinessAddress,jdbcType=VARCHAR},
      </if>
      <if test="taxRuleIntroduction != null">
        #{taxRuleIntroduction,jdbcType=VARCHAR},
      </if>
      <if test="auditRequirements != null">
        #{auditRequirements,jdbcType=VARCHAR},
      </if>
      <if test="architectureType != null">
        #{architectureType,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="pwc.taxtech.atms.entity.OrganizationExtraExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from organization_extra
    <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 organization_extra
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.organizationId != null">
        organization_id = #{record.organizationId,jdbcType=VARCHAR},
      </if>
      <if test="record.unifiedSocialCreditCode != null">
        unified_social_credit_code = #{record.unifiedSocialCreditCode,jdbcType=VARCHAR},
      </if>
      <if test="record.regFinancialAccountingType != null">
        reg_financial_accounting_type = #{record.regFinancialAccountingType,jdbcType=BIT},
      </if>
      <if test="record.taxRegStatus != null">
        tax_reg_status = #{record.taxRegStatus,jdbcType=VARCHAR},
      </if>
      <if test="record.taxCreditRating != null">
        tax_credit_rating = #{record.taxCreditRating,jdbcType=VARCHAR},
      </if>
      <if test="record.applicableAccountingRule != null">
        applicable_accounting_rule = #{record.applicableAccountingRule,jdbcType=VARCHAR},
      </if>
      <if test="record.lowValueConsumablesAmortizationMethod != null">
        low_value_consumables_amortization_method = #{record.lowValueConsumablesAmortizationMethod,jdbcType=VARCHAR},
      </if>
      <if test="record.depreciationMethod != null">
        depreciation_method = #{record.depreciationMethod,jdbcType=VARCHAR},
      </if>
      <if test="record.accountingSoftware != null">
        accounting_software = #{record.accountingSoftware,jdbcType=VARCHAR},
      </if>
      <if test="record.completeRecordTotalInstitutions != null">
        complete_record_total_institutions = #{record.completeRecordTotalInstitutions,jdbcType=BIT},
      </if>
      <if test="record.taxClientPersonName != null">
        tax_client_person_name = #{record.taxClientPersonName,jdbcType=VARCHAR},
      </if>
      <if test="record.taxClientPersonPhoneNum != null">
        tax_client_person_phone_num = #{record.taxClientPersonPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="record.taxClientPersonIdNum != null">
        tax_client_person_id_num = #{record.taxClientPersonIdNum,jdbcType=VARCHAR},
      </if>
      <if test="record.ticketHolderName != null">
        ticket_holder_name = #{record.ticketHolderName,jdbcType=VARCHAR},
      </if>
      <if test="record.ticketHolderPhoneNum != null">
        ticket_holder_phone_num = #{record.ticketHolderPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="record.nationalTaxHallAddress != null">
        national_tax_hall_address = #{record.nationalTaxHallAddress,jdbcType=VARCHAR},
      </if>
      <if test="record.nationalTaxAdministratorName != null">
        national_tax_administrator_name = #{record.nationalTaxAdministratorName,jdbcType=VARCHAR},
      </if>
      <if test="record.nationalTaxAdministratorPhoneNum != null">
        national_tax_administrator_phone_num = #{record.nationalTaxAdministratorPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="record.localTaxHallAddress != null">
        local_tax_hall_address = #{record.localTaxHallAddress,jdbcType=VARCHAR},
      </if>
      <if test="record.localTaxAdministratorName != null">
        local_tax_administrator_name = #{record.localTaxAdministratorName,jdbcType=VARCHAR},
      </if>
      <if test="record.localTaxAdministratorPhoneNum != null">
        local_tax_administrator_phone_num = #{record.localTaxAdministratorPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="record.etaWebsite != null">
        eta_website = #{record.etaWebsite,jdbcType=VARCHAR},
      </if>
      <if test="record.signTripartiteAgreement != null">
        sign_tripartite_agreement = #{record.signTripartiteAgreement,jdbcType=BIT},
      </if>
      <if test="record.reportingCurrency != null">
        reporting_currency = #{record.reportingCurrency,jdbcType=VARCHAR},
      </if>
      <if test="record.consolidationTime != null">
        consolidation_time = #{record.consolidationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.fiscalYearDeadline != null">
        fiscal_year_deadline = #{record.fiscalYearDeadline,jdbcType=TIMESTAMP},
      </if>
      <if test="record.taxAgent != null">
        tax_agent = #{record.taxAgent,jdbcType=VARCHAR},
      </if>
      <if test="record.taxAgentContact != null">
        tax_agent_contact = #{record.taxAgentContact,jdbcType=VARCHAR},
      </if>
      <if test="record.otherFacts != null">
        other_facts = #{record.otherFacts,jdbcType=VARCHAR},
      </if>
      <if test="record.taxReturnBusinessType != null">
        tax_return_business_type = #{record.taxReturnBusinessType,jdbcType=TINYINT},
      </if>
      <if test="record.smallMeagerProfit != null">
        small_meager_profit = #{record.smallMeagerProfit,jdbcType=BIT},
      </if>
      <if test="record.listedCompany != null">
        listed_company = #{record.listedCompany,jdbcType=BIT},
      </if>
      <if test="record.applicableAccountingStandardsOrAccountingSystems != null">
        applicable_accounting_standards_or_accounting_systems = #{record.applicableAccountingStandardsOrAccountingSystems,jdbcType=INTEGER},
      </if>
      <if test="record.taxPayerNumberVat != null">
        tax_payer_number_vat = #{record.taxPayerNumberVat,jdbcType=VARCHAR},
      </if>
      <if test="record.taxPayerNumberCit != null">
        tax_payer_number_cit = #{record.taxPayerNumberCit,jdbcType=VARCHAR},
      </if>
      <if test="record.taxClientPersonEmailAddress != null">
        tax_client_person_email_address = #{record.taxClientPersonEmailAddress,jdbcType=VARCHAR},
      </if>
      <if test="record.bankAccountName != null">
        bank_account_name = #{record.bankAccountName,jdbcType=VARCHAR},
      </if>
      <if test="record.bankAccountNumber != null">
        bank_account_number = #{record.bankAccountNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.legalPersonName != null">
        legal_person_name = #{record.legalPersonName,jdbcType=VARCHAR},
      </if>
      <if test="record.legalPersonPhoneNumber != null">
        legal_person_phone_number = #{record.legalPersonPhoneNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.legalPersonLandlineNum != null">
        legal_person_landline_num = #{record.legalPersonLandlineNum,jdbcType=VARCHAR},
      </if>
      <if test="record.legalPersonEmailAddress != null">
        legal_person_email_address = #{record.legalPersonEmailAddress,jdbcType=VARCHAR},
      </if>
      <if test="record.regFinancialOfficerName != null">
        reg_financial_officer_name = #{record.regFinancialOfficerName,jdbcType=VARCHAR},
      </if>
      <if test="record.regFinancialOfficerPhoneNum != null">
        reg_financial_officer_phone_num = #{record.regFinancialOfficerPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="record.regFinancialOfficerLandlineNum != null">
        reg_financial_officer_landline_num = #{record.regFinancialOfficerLandlineNum,jdbcType=VARCHAR},
      </if>
      <if test="record.regFinancialOfficerEmailAddress != null">
        reg_financial_officer_email_address = #{record.regFinancialOfficerEmailAddress,jdbcType=VARCHAR},
      </if>
      <if test="record.secondaryApprovalAmount != null">
        secondary_approval_amount = #{record.secondaryApprovalAmount,jdbcType=BIGINT},
      </if>
      <if test="record.businessRegistrationNumber != null">
        business_registration_number = #{record.businessRegistrationNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.parValue != null">
        par_value = #{record.parValue,jdbcType=REAL},
      </if>
      <if test="record.issuedShares != null">
        issued_shares = #{record.issuedShares,jdbcType=BIGINT},
      </if>
      <if test="record.directors != null">
        directors = #{record.directors,jdbcType=VARCHAR},
      </if>
      <if test="record.actualBusinessAddress != null">
        actual_business_address = #{record.actualBusinessAddress,jdbcType=VARCHAR},
      </if>
      <if test="record.taxRuleIntroduction != null">
        tax_rule_introduction = #{record.taxRuleIntroduction,jdbcType=VARCHAR},
      </if>
      <if test="record.auditRequirements != null">
        audit_requirements = #{record.auditRequirements,jdbcType=VARCHAR},
      </if>
      <if test="record.architectureType != null">
        architecture_type = #{record.architectureType,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </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 organization_extra
    set id = #{record.id,jdbcType=BIGINT},
      organization_id = #{record.organizationId,jdbcType=VARCHAR},
      unified_social_credit_code = #{record.unifiedSocialCreditCode,jdbcType=VARCHAR},
      reg_financial_accounting_type = #{record.regFinancialAccountingType,jdbcType=BIT},
      tax_reg_status = #{record.taxRegStatus,jdbcType=VARCHAR},
      tax_credit_rating = #{record.taxCreditRating,jdbcType=VARCHAR},
      applicable_accounting_rule = #{record.applicableAccountingRule,jdbcType=VARCHAR},
      low_value_consumables_amortization_method = #{record.lowValueConsumablesAmortizationMethod,jdbcType=VARCHAR},
      depreciation_method = #{record.depreciationMethod,jdbcType=VARCHAR},
      accounting_software = #{record.accountingSoftware,jdbcType=VARCHAR},
      complete_record_total_institutions = #{record.completeRecordTotalInstitutions,jdbcType=BIT},
      tax_client_person_name = #{record.taxClientPersonName,jdbcType=VARCHAR},
      tax_client_person_phone_num = #{record.taxClientPersonPhoneNum,jdbcType=VARCHAR},
      tax_client_person_id_num = #{record.taxClientPersonIdNum,jdbcType=VARCHAR},
      ticket_holder_name = #{record.ticketHolderName,jdbcType=VARCHAR},
      ticket_holder_phone_num = #{record.ticketHolderPhoneNum,jdbcType=VARCHAR},
      national_tax_hall_address = #{record.nationalTaxHallAddress,jdbcType=VARCHAR},
      national_tax_administrator_name = #{record.nationalTaxAdministratorName,jdbcType=VARCHAR},
      national_tax_administrator_phone_num = #{record.nationalTaxAdministratorPhoneNum,jdbcType=VARCHAR},
      local_tax_hall_address = #{record.localTaxHallAddress,jdbcType=VARCHAR},
      local_tax_administrator_name = #{record.localTaxAdministratorName,jdbcType=VARCHAR},
      local_tax_administrator_phone_num = #{record.localTaxAdministratorPhoneNum,jdbcType=VARCHAR},
      eta_website = #{record.etaWebsite,jdbcType=VARCHAR},
      sign_tripartite_agreement = #{record.signTripartiteAgreement,jdbcType=BIT},
      reporting_currency = #{record.reportingCurrency,jdbcType=VARCHAR},
      consolidation_time = #{record.consolidationTime,jdbcType=TIMESTAMP},
      fiscal_year_deadline = #{record.fiscalYearDeadline,jdbcType=TIMESTAMP},
      tax_agent = #{record.taxAgent,jdbcType=VARCHAR},
      tax_agent_contact = #{record.taxAgentContact,jdbcType=VARCHAR},
      other_facts = #{record.otherFacts,jdbcType=VARCHAR},
      tax_return_business_type = #{record.taxReturnBusinessType,jdbcType=TINYINT},
      small_meager_profit = #{record.smallMeagerProfit,jdbcType=BIT},
      listed_company = #{record.listedCompany,jdbcType=BIT},
      applicable_accounting_standards_or_accounting_systems = #{record.applicableAccountingStandardsOrAccountingSystems,jdbcType=INTEGER},
      tax_payer_number_vat = #{record.taxPayerNumberVat,jdbcType=VARCHAR},
      tax_payer_number_cit = #{record.taxPayerNumberCit,jdbcType=VARCHAR},
      tax_client_person_email_address = #{record.taxClientPersonEmailAddress,jdbcType=VARCHAR},
      bank_account_name = #{record.bankAccountName,jdbcType=VARCHAR},
      bank_account_number = #{record.bankAccountNumber,jdbcType=VARCHAR},
      legal_person_name = #{record.legalPersonName,jdbcType=VARCHAR},
      legal_person_phone_number = #{record.legalPersonPhoneNumber,jdbcType=VARCHAR},
      legal_person_landline_num = #{record.legalPersonLandlineNum,jdbcType=VARCHAR},
      legal_person_email_address = #{record.legalPersonEmailAddress,jdbcType=VARCHAR},
      reg_financial_officer_name = #{record.regFinancialOfficerName,jdbcType=VARCHAR},
      reg_financial_officer_phone_num = #{record.regFinancialOfficerPhoneNum,jdbcType=VARCHAR},
      reg_financial_officer_landline_num = #{record.regFinancialOfficerLandlineNum,jdbcType=VARCHAR},
      reg_financial_officer_email_address = #{record.regFinancialOfficerEmailAddress,jdbcType=VARCHAR},
      secondary_approval_amount = #{record.secondaryApprovalAmount,jdbcType=BIGINT},
      business_registration_number = #{record.businessRegistrationNumber,jdbcType=VARCHAR},
      par_value = #{record.parValue,jdbcType=REAL},
      issued_shares = #{record.issuedShares,jdbcType=BIGINT},
      directors = #{record.directors,jdbcType=VARCHAR},
      actual_business_address = #{record.actualBusinessAddress,jdbcType=VARCHAR},
      tax_rule_introduction = #{record.taxRuleIntroduction,jdbcType=VARCHAR},
      audit_requirements = #{record.auditRequirements,jdbcType=VARCHAR},
      architecture_type = #{record.architectureType,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.OrganizationExtra">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update organization_extra
    <set>
      <if test="organizationId != null">
        organization_id = #{organizationId,jdbcType=VARCHAR},
      </if>
      <if test="unifiedSocialCreditCode != null">
        unified_social_credit_code = #{unifiedSocialCreditCode,jdbcType=VARCHAR},
      </if>
      <if test="regFinancialAccountingType != null">
        reg_financial_accounting_type = #{regFinancialAccountingType,jdbcType=BIT},
      </if>
      <if test="taxRegStatus != null">
        tax_reg_status = #{taxRegStatus,jdbcType=VARCHAR},
      </if>
      <if test="taxCreditRating != null">
        tax_credit_rating = #{taxCreditRating,jdbcType=VARCHAR},
      </if>
      <if test="applicableAccountingRule != null">
        applicable_accounting_rule = #{applicableAccountingRule,jdbcType=VARCHAR},
      </if>
      <if test="lowValueConsumablesAmortizationMethod != null">
        low_value_consumables_amortization_method = #{lowValueConsumablesAmortizationMethod,jdbcType=VARCHAR},
      </if>
      <if test="depreciationMethod != null">
        depreciation_method = #{depreciationMethod,jdbcType=VARCHAR},
      </if>
      <if test="accountingSoftware != null">
        accounting_software = #{accountingSoftware,jdbcType=VARCHAR},
      </if>
      <if test="completeRecordTotalInstitutions != null">
        complete_record_total_institutions = #{completeRecordTotalInstitutions,jdbcType=BIT},
      </if>
      <if test="taxClientPersonName != null">
        tax_client_person_name = #{taxClientPersonName,jdbcType=VARCHAR},
      </if>
      <if test="taxClientPersonPhoneNum != null">
        tax_client_person_phone_num = #{taxClientPersonPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="taxClientPersonIdNum != null">
        tax_client_person_id_num = #{taxClientPersonIdNum,jdbcType=VARCHAR},
      </if>
      <if test="ticketHolderName != null">
        ticket_holder_name = #{ticketHolderName,jdbcType=VARCHAR},
      </if>
      <if test="ticketHolderPhoneNum != null">
        ticket_holder_phone_num = #{ticketHolderPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="nationalTaxHallAddress != null">
        national_tax_hall_address = #{nationalTaxHallAddress,jdbcType=VARCHAR},
      </if>
      <if test="nationalTaxAdministratorName != null">
        national_tax_administrator_name = #{nationalTaxAdministratorName,jdbcType=VARCHAR},
      </if>
      <if test="nationalTaxAdministratorPhoneNum != null">
        national_tax_administrator_phone_num = #{nationalTaxAdministratorPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="localTaxHallAddress != null">
        local_tax_hall_address = #{localTaxHallAddress,jdbcType=VARCHAR},
      </if>
      <if test="localTaxAdministratorName != null">
        local_tax_administrator_name = #{localTaxAdministratorName,jdbcType=VARCHAR},
      </if>
      <if test="localTaxAdministratorPhoneNum != null">
        local_tax_administrator_phone_num = #{localTaxAdministratorPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="etaWebsite != null">
        eta_website = #{etaWebsite,jdbcType=VARCHAR},
      </if>
      <if test="signTripartiteAgreement != null">
        sign_tripartite_agreement = #{signTripartiteAgreement,jdbcType=BIT},
      </if>
      <if test="reportingCurrency != null">
        reporting_currency = #{reportingCurrency,jdbcType=VARCHAR},
      </if>
      <if test="consolidationTime != null">
        consolidation_time = #{consolidationTime,jdbcType=TIMESTAMP},
      </if>
      <if test="fiscalYearDeadline != null">
        fiscal_year_deadline = #{fiscalYearDeadline,jdbcType=TIMESTAMP},
      </if>
      <if test="taxAgent != null">
        tax_agent = #{taxAgent,jdbcType=VARCHAR},
      </if>
      <if test="taxAgentContact != null">
        tax_agent_contact = #{taxAgentContact,jdbcType=VARCHAR},
      </if>
      <if test="otherFacts != null">
        other_facts = #{otherFacts,jdbcType=VARCHAR},
      </if>
      <if test="taxReturnBusinessType != null">
        tax_return_business_type = #{taxReturnBusinessType,jdbcType=TINYINT},
      </if>
      <if test="smallMeagerProfit != null">
        small_meager_profit = #{smallMeagerProfit,jdbcType=BIT},
      </if>
      <if test="listedCompany != null">
        listed_company = #{listedCompany,jdbcType=BIT},
      </if>
      <if test="applicableAccountingStandardsOrAccountingSystems != null">
        applicable_accounting_standards_or_accounting_systems = #{applicableAccountingStandardsOrAccountingSystems,jdbcType=INTEGER},
      </if>
      <if test="taxPayerNumberVat != null">
        tax_payer_number_vat = #{taxPayerNumberVat,jdbcType=VARCHAR},
      </if>
      <if test="taxPayerNumberCit != null">
        tax_payer_number_cit = #{taxPayerNumberCit,jdbcType=VARCHAR},
      </if>
      <if test="taxClientPersonEmailAddress != null">
        tax_client_person_email_address = #{taxClientPersonEmailAddress,jdbcType=VARCHAR},
      </if>
      <if test="bankAccountName != null">
        bank_account_name = #{bankAccountName,jdbcType=VARCHAR},
      </if>
      <if test="bankAccountNumber != null">
        bank_account_number = #{bankAccountNumber,jdbcType=VARCHAR},
      </if>
      <if test="legalPersonName != null">
        legal_person_name = #{legalPersonName,jdbcType=VARCHAR},
      </if>
      <if test="legalPersonPhoneNumber != null">
        legal_person_phone_number = #{legalPersonPhoneNumber,jdbcType=VARCHAR},
      </if>
      <if test="legalPersonLandlineNum != null">
        legal_person_landline_num = #{legalPersonLandlineNum,jdbcType=VARCHAR},
      </if>
      <if test="legalPersonEmailAddress != null">
        legal_person_email_address = #{legalPersonEmailAddress,jdbcType=VARCHAR},
      </if>
      <if test="regFinancialOfficerName != null">
        reg_financial_officer_name = #{regFinancialOfficerName,jdbcType=VARCHAR},
      </if>
      <if test="regFinancialOfficerPhoneNum != null">
        reg_financial_officer_phone_num = #{regFinancialOfficerPhoneNum,jdbcType=VARCHAR},
      </if>
      <if test="regFinancialOfficerLandlineNum != null">
        reg_financial_officer_landline_num = #{regFinancialOfficerLandlineNum,jdbcType=VARCHAR},
      </if>
      <if test="regFinancialOfficerEmailAddress != null">
        reg_financial_officer_email_address = #{regFinancialOfficerEmailAddress,jdbcType=VARCHAR},
      </if>
      <if test="secondaryApprovalAmount != null">
        secondary_approval_amount = #{secondaryApprovalAmount,jdbcType=BIGINT},
      </if>
      <if test="businessRegistrationNumber != null">
        business_registration_number = #{businessRegistrationNumber,jdbcType=VARCHAR},
      </if>
      <if test="parValue != null">
        par_value = #{parValue,jdbcType=REAL},
      </if>
      <if test="issuedShares != null">
        issued_shares = #{issuedShares,jdbcType=BIGINT},
      </if>
      <if test="directors != null">
        directors = #{directors,jdbcType=VARCHAR},
      </if>
      <if test="actualBusinessAddress != null">
        actual_business_address = #{actualBusinessAddress,jdbcType=VARCHAR},
      </if>
      <if test="taxRuleIntroduction != null">
        tax_rule_introduction = #{taxRuleIntroduction,jdbcType=VARCHAR},
      </if>
      <if test="auditRequirements != null">
        audit_requirements = #{auditRequirements,jdbcType=VARCHAR},
      </if>
      <if test="architectureType != null">
        architecture_type = #{architectureType,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.OrganizationExtra">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update organization_extra
    set organization_id = #{organizationId,jdbcType=VARCHAR},
      unified_social_credit_code = #{unifiedSocialCreditCode,jdbcType=VARCHAR},
      reg_financial_accounting_type = #{regFinancialAccountingType,jdbcType=BIT},
      tax_reg_status = #{taxRegStatus,jdbcType=VARCHAR},
      tax_credit_rating = #{taxCreditRating,jdbcType=VARCHAR},
      applicable_accounting_rule = #{applicableAccountingRule,jdbcType=VARCHAR},
      low_value_consumables_amortization_method = #{lowValueConsumablesAmortizationMethod,jdbcType=VARCHAR},
      depreciation_method = #{depreciationMethod,jdbcType=VARCHAR},
      accounting_software = #{accountingSoftware,jdbcType=VARCHAR},
      complete_record_total_institutions = #{completeRecordTotalInstitutions,jdbcType=BIT},
      tax_client_person_name = #{taxClientPersonName,jdbcType=VARCHAR},
      tax_client_person_phone_num = #{taxClientPersonPhoneNum,jdbcType=VARCHAR},
      tax_client_person_id_num = #{taxClientPersonIdNum,jdbcType=VARCHAR},
      ticket_holder_name = #{ticketHolderName,jdbcType=VARCHAR},
      ticket_holder_phone_num = #{ticketHolderPhoneNum,jdbcType=VARCHAR},
      national_tax_hall_address = #{nationalTaxHallAddress,jdbcType=VARCHAR},
      national_tax_administrator_name = #{nationalTaxAdministratorName,jdbcType=VARCHAR},
      national_tax_administrator_phone_num = #{nationalTaxAdministratorPhoneNum,jdbcType=VARCHAR},
      local_tax_hall_address = #{localTaxHallAddress,jdbcType=VARCHAR},
      local_tax_administrator_name = #{localTaxAdministratorName,jdbcType=VARCHAR},
      local_tax_administrator_phone_num = #{localTaxAdministratorPhoneNum,jdbcType=VARCHAR},
      eta_website = #{etaWebsite,jdbcType=VARCHAR},
      sign_tripartite_agreement = #{signTripartiteAgreement,jdbcType=BIT},
      reporting_currency = #{reportingCurrency,jdbcType=VARCHAR},
      consolidation_time = #{consolidationTime,jdbcType=TIMESTAMP},
      fiscal_year_deadline = #{fiscalYearDeadline,jdbcType=TIMESTAMP},
      tax_agent = #{taxAgent,jdbcType=VARCHAR},
      tax_agent_contact = #{taxAgentContact,jdbcType=VARCHAR},
      other_facts = #{otherFacts,jdbcType=VARCHAR},
      tax_return_business_type = #{taxReturnBusinessType,jdbcType=TINYINT},
      small_meager_profit = #{smallMeagerProfit,jdbcType=BIT},
      listed_company = #{listedCompany,jdbcType=BIT},
      applicable_accounting_standards_or_accounting_systems = #{applicableAccountingStandardsOrAccountingSystems,jdbcType=INTEGER},
      tax_payer_number_vat = #{taxPayerNumberVat,jdbcType=VARCHAR},
      tax_payer_number_cit = #{taxPayerNumberCit,jdbcType=VARCHAR},
      tax_client_person_email_address = #{taxClientPersonEmailAddress,jdbcType=VARCHAR},
      bank_account_name = #{bankAccountName,jdbcType=VARCHAR},
      bank_account_number = #{bankAccountNumber,jdbcType=VARCHAR},
      legal_person_name = #{legalPersonName,jdbcType=VARCHAR},
      legal_person_phone_number = #{legalPersonPhoneNumber,jdbcType=VARCHAR},
      legal_person_landline_num = #{legalPersonLandlineNum,jdbcType=VARCHAR},
      legal_person_email_address = #{legalPersonEmailAddress,jdbcType=VARCHAR},
      reg_financial_officer_name = #{regFinancialOfficerName,jdbcType=VARCHAR},
      reg_financial_officer_phone_num = #{regFinancialOfficerPhoneNum,jdbcType=VARCHAR},
      reg_financial_officer_landline_num = #{regFinancialOfficerLandlineNum,jdbcType=VARCHAR},
      reg_financial_officer_email_address = #{regFinancialOfficerEmailAddress,jdbcType=VARCHAR},
      secondary_approval_amount = #{secondaryApprovalAmount,jdbcType=BIGINT},
      business_registration_number = #{businessRegistrationNumber,jdbcType=VARCHAR},
      par_value = #{parValue,jdbcType=REAL},
      issued_shares = #{issuedShares,jdbcType=BIGINT},
      directors = #{directors,jdbcType=VARCHAR},
      actual_business_address = #{actualBusinessAddress,jdbcType=VARCHAR},
      tax_rule_introduction = #{taxRuleIntroduction,jdbcType=VARCHAR},
      audit_requirements = #{auditRequirements,jdbcType=VARCHAR},
      architecture_type = #{architectureType,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=BIGINT}
  </update>
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.OrganizationExtraExample" 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 organization_extra
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
</mapper>