OrganizationExtraMapper.xml 52.2 KB
Newer Older
gary's avatar
gary committed
1 2 3 4 5 6 7 8
<?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.
    -->
gary's avatar
gary committed
9
    <id column="id" jdbcType="BIGINT" property="id" />
gary's avatar
gary committed
10 11
    <result column="organization_id" jdbcType="VARCHAR" property="organizationId" />
    <result column="unified_social_credit_code" jdbcType="VARCHAR" property="unifiedSocialCreditCode" />
gary's avatar
gary committed
12 13
    <result column="reg_financial_accounting_type" jdbcType="BIT" property="regFinancialAccountingType" />
    <result column="tax_reg_status" jdbcType="VARCHAR" property="taxRegStatus" />
gary's avatar
gary committed
14
    <result column="tax_credit_rating" jdbcType="VARCHAR" property="taxCreditRating" />
gary's avatar
gary committed
15
    <result column="applicable_accounting_rule" jdbcType="VARCHAR" property="applicableAccountingRule" />
gary's avatar
gary committed
16 17 18
    <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" />
gary's avatar
gary committed
19
    <result column="complete_record_total_institutions" jdbcType="BIT" property="completeRecordTotalInstitutions" />
gary's avatar
gary committed
20 21 22 23 24 25 26 27 28 29 30 31
    <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" />
gary's avatar
gary committed
32
    <result column="sign_tripartite_agreement" jdbcType="BIT" property="signTripartiteAgreement" />
gary's avatar
gary committed
33 34 35 36 37 38
    <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" />
gary's avatar
gary committed
39
    <result column="tax_return_business_type" jdbcType="INTEGER" property="taxReturnBusinessType" />
gary's avatar
gary committed
40 41
    <result column="small_meager_profit" jdbcType="BIT" property="smallMeagerProfit" />
    <result column="listed_company" jdbcType="BIT" property="listedCompany" />
gary's avatar
gary committed
42
    <result column="applicable_accounting_standards_or_accounting_systems" jdbcType="INTEGER" property="applicableAccountingStandardsOrAccountingSystems" />
gary's avatar
gary committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
    <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" />
gary's avatar
gary committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
  </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.
    -->
gary's avatar
gary committed
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
    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
gary's avatar
gary committed
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
  </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>
gary's avatar
gary committed
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
  <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>
gary's avatar
gary committed
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
  <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, 
gary's avatar
gary committed
204 205 206 207
      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, 
gary's avatar
gary committed
208 209
      tax_client_person_phone_num, tax_client_person_id_num, 
      ticket_holder_name, ticket_holder_phone_num, 
gary's avatar
gary committed
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
      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)
gary's avatar
gary committed
227
    values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{unifiedSocialCreditCode,jdbcType=VARCHAR}, 
gary's avatar
gary committed
228 229 230 231
      #{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}, 
gary's avatar
gary committed
232 233
      #{taxClientPersonPhoneNum,jdbcType=VARCHAR}, #{taxClientPersonIdNum,jdbcType=VARCHAR}, 
      #{ticketHolderName,jdbcType=VARCHAR}, #{ticketHolderPhoneNum,jdbcType=VARCHAR}, 
gary's avatar
gary committed
234 235 236 237 238 239
      #{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}, 
gary's avatar
gary committed
240
      #{taxReturnBusinessType,jdbcType=INTEGER}, #{smallMeagerProfit,jdbcType=BIT}, #{listedCompany,jdbcType=BIT},
gary's avatar
gary committed
241 242 243 244 245 246 247 248 249 250
      #{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})
gary's avatar
gary committed
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270
  </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>
gary's avatar
gary committed
271 272
      <if test="taxRegStatus != null">
        tax_reg_status,
gary's avatar
gary committed
273 274 275 276
      </if>
      <if test="taxCreditRating != null">
        tax_credit_rating,
      </if>
gary's avatar
gary committed
277 278
      <if test="applicableAccountingRule != null">
        applicable_accounting_rule,
gary's avatar
gary committed
279 280 281 282 283 284 285 286 287 288
      </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>
gary's avatar
gary committed
289 290
      <if test="completeRecordTotalInstitutions != null">
        complete_record_total_institutions,
gary's avatar
gary committed
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327
      </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>
gary's avatar
gary committed
328 329
      <if test="signTripartiteAgreement != null">
        sign_tripartite_agreement,
gary's avatar
gary committed
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
      </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>
gary's avatar
gary committed
352 353 354 355 356 357 358 359
      <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,
gary's avatar
gary committed
360
      </if>
gary's avatar
gary committed
361 362
      <if test="taxPayerNumberVat != null">
        tax_payer_number_vat,
gary's avatar
gary committed
363
      </if>
gary's avatar
gary committed
364 365
      <if test="taxPayerNumberCit != null">
        tax_payer_number_cit,
gary's avatar
gary committed
366
      </if>
gary's avatar
gary committed
367 368
      <if test="taxClientPersonEmailAddress != null">
        tax_client_person_email_address,
gary's avatar
gary committed
369
      </if>
gary's avatar
gary committed
370 371
      <if test="bankAccountName != null">
        bank_account_name,
gary's avatar
gary committed
372
      </if>
gary's avatar
gary committed
373 374
      <if test="bankAccountNumber != null">
        bank_account_number,
gary's avatar
gary committed
375
      </if>
gary's avatar
gary committed
376 377
      <if test="legalPersonName != null">
        legal_person_name,
gary's avatar
gary committed
378
      </if>
gary's avatar
gary committed
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422
      <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,
gary's avatar
gary committed
423 424 425 426 427 428 429 430 431 432 433 434 435
      </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">
gary's avatar
gary committed
436
        #{regFinancialAccountingType,jdbcType=BIT},
gary's avatar
gary committed
437
      </if>
gary's avatar
gary committed
438 439
      <if test="taxRegStatus != null">
        #{taxRegStatus,jdbcType=VARCHAR},
gary's avatar
gary committed
440 441 442 443
      </if>
      <if test="taxCreditRating != null">
        #{taxCreditRating,jdbcType=VARCHAR},
      </if>
gary's avatar
gary committed
444 445
      <if test="applicableAccountingRule != null">
        #{applicableAccountingRule,jdbcType=VARCHAR},
gary's avatar
gary committed
446 447 448 449 450 451 452 453 454 455
      </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>
gary's avatar
gary committed
456 457
      <if test="completeRecordTotalInstitutions != null">
        #{completeRecordTotalInstitutions,jdbcType=BIT},
gary's avatar
gary committed
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494
      </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>
gary's avatar
gary committed
495 496
      <if test="signTripartiteAgreement != null">
        #{signTripartiteAgreement,jdbcType=BIT},
gary's avatar
gary committed
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516
      </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">
gary's avatar
gary committed
517
        #{taxReturnBusinessType,jdbcType=INTEGER},
gary's avatar
gary committed
518
      </if>
gary's avatar
gary committed
519 520
      <if test="smallMeagerProfit != null">
        #{smallMeagerProfit,jdbcType=BIT},
gary's avatar
gary committed
521
      </if>
gary's avatar
gary committed
522 523
      <if test="listedCompany != null">
        #{listedCompany,jdbcType=BIT},
gary's avatar
gary committed
524
      </if>
gary's avatar
gary committed
525 526
      <if test="applicableAccountingStandardsOrAccountingSystems != null">
        #{applicableAccountingStandardsOrAccountingSystems,jdbcType=INTEGER},
gary's avatar
gary committed
527
      </if>
gary's avatar
gary committed
528 529
      <if test="taxPayerNumberVat != null">
        #{taxPayerNumberVat,jdbcType=VARCHAR},
gary's avatar
gary committed
530
      </if>
gary's avatar
gary committed
531 532
      <if test="taxPayerNumberCit != null">
        #{taxPayerNumberCit,jdbcType=VARCHAR},
gary's avatar
gary committed
533
      </if>
gary's avatar
gary committed
534 535
      <if test="taxClientPersonEmailAddress != null">
        #{taxClientPersonEmailAddress,jdbcType=VARCHAR},
gary's avatar
gary committed
536
      </if>
gary's avatar
gary committed
537 538
      <if test="bankAccountName != null">
        #{bankAccountName,jdbcType=VARCHAR},
gary's avatar
gary committed
539
      </if>
gary's avatar
gary committed
540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589
      <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},
gary's avatar
gary committed
590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619
      </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">
gary's avatar
gary committed
620
        reg_financial_accounting_type = #{record.regFinancialAccountingType,jdbcType=BIT},
gary's avatar
gary committed
621
      </if>
gary's avatar
gary committed
622 623
      <if test="record.taxRegStatus != null">
        tax_reg_status = #{record.taxRegStatus,jdbcType=VARCHAR},
gary's avatar
gary committed
624 625 626 627
      </if>
      <if test="record.taxCreditRating != null">
        tax_credit_rating = #{record.taxCreditRating,jdbcType=VARCHAR},
      </if>
gary's avatar
gary committed
628 629
      <if test="record.applicableAccountingRule != null">
        applicable_accounting_rule = #{record.applicableAccountingRule,jdbcType=VARCHAR},
gary's avatar
gary committed
630 631 632 633 634 635 636 637 638 639
      </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>
gary's avatar
gary committed
640 641
      <if test="record.completeRecordTotalInstitutions != null">
        complete_record_total_institutions = #{record.completeRecordTotalInstitutions,jdbcType=BIT},
gary's avatar
gary committed
642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678
      </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>
gary's avatar
gary committed
679 680
      <if test="record.signTripartiteAgreement != null">
        sign_tripartite_agreement = #{record.signTripartiteAgreement,jdbcType=BIT},
gary's avatar
gary committed
681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700
      </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">
gary's avatar
gary committed
701
        tax_return_business_type = #{record.taxReturnBusinessType,jdbcType=INTEGER},
gary's avatar
gary committed
702
      </if>
gary's avatar
gary committed
703 704 705 706 707
      <if test="record.smallMeagerProfit != null">
        small_meager_profit = #{record.smallMeagerProfit,jdbcType=BIT},
      </if>
      <if test="record.listedCompany != null">
        listed_company = #{record.listedCompany,jdbcType=BIT},
gary's avatar
gary committed
708
      </if>
gary's avatar
gary committed
709 710
      <if test="record.applicableAccountingStandardsOrAccountingSystems != null">
        applicable_accounting_standards_or_accounting_systems = #{record.applicableAccountingStandardsOrAccountingSystems,jdbcType=INTEGER},
gary's avatar
gary committed
711
      </if>
gary's avatar
gary committed
712 713
      <if test="record.taxPayerNumberVat != null">
        tax_payer_number_vat = #{record.taxPayerNumberVat,jdbcType=VARCHAR},
gary's avatar
gary committed
714
      </if>
gary's avatar
gary committed
715 716
      <if test="record.taxPayerNumberCit != null">
        tax_payer_number_cit = #{record.taxPayerNumberCit,jdbcType=VARCHAR},
gary's avatar
gary committed
717
      </if>
gary's avatar
gary committed
718 719
      <if test="record.taxClientPersonEmailAddress != null">
        tax_client_person_email_address = #{record.taxClientPersonEmailAddress,jdbcType=VARCHAR},
gary's avatar
gary committed
720
      </if>
gary's avatar
gary committed
721 722
      <if test="record.bankAccountName != null">
        bank_account_name = #{record.bankAccountName,jdbcType=VARCHAR},
gary's avatar
gary committed
723
      </if>
gary's avatar
gary committed
724 725
      <if test="record.bankAccountNumber != null">
        bank_account_number = #{record.bankAccountNumber,jdbcType=VARCHAR},
gary's avatar
gary committed
726
      </if>
gary's avatar
gary committed
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773
      <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},
gary's avatar
gary committed
774 775 776 777 778 779 780 781 782 783 784 785 786 787 788
      </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},
gary's avatar
gary committed
789 790
      reg_financial_accounting_type = #{record.regFinancialAccountingType,jdbcType=BIT},
      tax_reg_status = #{record.taxRegStatus,jdbcType=VARCHAR},
gary's avatar
gary committed
791
      tax_credit_rating = #{record.taxCreditRating,jdbcType=VARCHAR},
gary's avatar
gary committed
792
      applicable_accounting_rule = #{record.applicableAccountingRule,jdbcType=VARCHAR},
gary's avatar
gary committed
793 794 795
      low_value_consumables_amortization_method = #{record.lowValueConsumablesAmortizationMethod,jdbcType=VARCHAR},
      depreciation_method = #{record.depreciationMethod,jdbcType=VARCHAR},
      accounting_software = #{record.accountingSoftware,jdbcType=VARCHAR},
gary's avatar
gary committed
796
      complete_record_total_institutions = #{record.completeRecordTotalInstitutions,jdbcType=BIT},
gary's avatar
gary committed
797 798 799 800 801 802 803 804 805 806 807 808
      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},
gary's avatar
gary committed
809
      sign_tripartite_agreement = #{record.signTripartiteAgreement,jdbcType=BIT},
gary's avatar
gary committed
810 811 812 813 814 815
      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},
gary's avatar
gary committed
816
      tax_return_business_type = #{record.taxReturnBusinessType,jdbcType=INTEGER},
gary's avatar
gary committed
817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840
      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}
gary's avatar
gary committed
841 842 843 844
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
gary's avatar
gary committed
845 846 847 848 849 850 851 852 853 854 855 856 857 858
  <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">
gary's avatar
gary committed
859
        reg_financial_accounting_type = #{regFinancialAccountingType,jdbcType=BIT},
gary's avatar
gary committed
860
      </if>
gary's avatar
gary committed
861 862
      <if test="taxRegStatus != null">
        tax_reg_status = #{taxRegStatus,jdbcType=VARCHAR},
gary's avatar
gary committed
863 864 865 866
      </if>
      <if test="taxCreditRating != null">
        tax_credit_rating = #{taxCreditRating,jdbcType=VARCHAR},
      </if>
gary's avatar
gary committed
867 868
      <if test="applicableAccountingRule != null">
        applicable_accounting_rule = #{applicableAccountingRule,jdbcType=VARCHAR},
gary's avatar
gary committed
869 870 871 872 873 874 875 876 877 878
      </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>
gary's avatar
gary committed
879 880
      <if test="completeRecordTotalInstitutions != null">
        complete_record_total_institutions = #{completeRecordTotalInstitutions,jdbcType=BIT},
gary's avatar
gary committed
881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917
      </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>
gary's avatar
gary committed
918 919
      <if test="signTripartiteAgreement != null">
        sign_tripartite_agreement = #{signTripartiteAgreement,jdbcType=BIT},
gary's avatar
gary committed
920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939
      </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">
gary's avatar
gary committed
940
        tax_return_business_type = #{taxReturnBusinessType,jdbcType=INTEGER},
gary's avatar
gary committed
941
      </if>
gary's avatar
gary committed
942 943 944 945 946
      <if test="smallMeagerProfit != null">
        small_meager_profit = #{smallMeagerProfit,jdbcType=BIT},
      </if>
      <if test="listedCompany != null">
        listed_company = #{listedCompany,jdbcType=BIT},
gary's avatar
gary committed
947
      </if>
gary's avatar
gary committed
948 949
      <if test="applicableAccountingStandardsOrAccountingSystems != null">
        applicable_accounting_standards_or_accounting_systems = #{applicableAccountingStandardsOrAccountingSystems,jdbcType=INTEGER},
gary's avatar
gary committed
950
      </if>
gary's avatar
gary committed
951 952
      <if test="taxPayerNumberVat != null">
        tax_payer_number_vat = #{taxPayerNumberVat,jdbcType=VARCHAR},
gary's avatar
gary committed
953
      </if>
gary's avatar
gary committed
954 955
      <if test="taxPayerNumberCit != null">
        tax_payer_number_cit = #{taxPayerNumberCit,jdbcType=VARCHAR},
gary's avatar
gary committed
956
      </if>
gary's avatar
gary committed
957 958
      <if test="taxClientPersonEmailAddress != null">
        tax_client_person_email_address = #{taxClientPersonEmailAddress,jdbcType=VARCHAR},
gary's avatar
gary committed
959
      </if>
gary's avatar
gary committed
960 961
      <if test="bankAccountName != null">
        bank_account_name = #{bankAccountName,jdbcType=VARCHAR},
gary's avatar
gary committed
962
      </if>
gary's avatar
gary committed
963 964
      <if test="bankAccountNumber != null">
        bank_account_number = #{bankAccountNumber,jdbcType=VARCHAR},
gary's avatar
gary committed
965
      </if>
gary's avatar
gary committed
966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012
      <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},
gary's avatar
gary committed
1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024
      </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},
gary's avatar
gary committed
1025 1026
      reg_financial_accounting_type = #{regFinancialAccountingType,jdbcType=BIT},
      tax_reg_status = #{taxRegStatus,jdbcType=VARCHAR},
gary's avatar
gary committed
1027
      tax_credit_rating = #{taxCreditRating,jdbcType=VARCHAR},
gary's avatar
gary committed
1028
      applicable_accounting_rule = #{applicableAccountingRule,jdbcType=VARCHAR},
gary's avatar
gary committed
1029 1030 1031
      low_value_consumables_amortization_method = #{lowValueConsumablesAmortizationMethod,jdbcType=VARCHAR},
      depreciation_method = #{depreciationMethod,jdbcType=VARCHAR},
      accounting_software = #{accountingSoftware,jdbcType=VARCHAR},
gary's avatar
gary committed
1032
      complete_record_total_institutions = #{completeRecordTotalInstitutions,jdbcType=BIT},
gary's avatar
gary committed
1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044
      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},
gary's avatar
gary committed
1045
      sign_tripartite_agreement = #{signTripartiteAgreement,jdbcType=BIT},
gary's avatar
gary committed
1046 1047 1048 1049 1050 1051
      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},
gary's avatar
gary committed
1052
      tax_return_business_type = #{taxReturnBusinessType,jdbcType=INTEGER},
gary's avatar
gary committed
1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076
      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}
gary's avatar
gary committed
1077 1078
    where id = #{id,jdbcType=BIGINT}
  </update>
gary's avatar
gary committed
1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097
  <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>