|
|
@@ -69,7 +69,8 @@
|
|
|
jdbcType="VARCHAR" />
|
|
|
<result column="issuing_date" property="issuingDate" jdbcType="TIMESTAMP" />
|
|
|
<result column="cog_contacts" property="cogContacts" jdbcType="INTEGER" />
|
|
|
- <result column="tech_principal" property="techPrincipal" jdbcType="VARCHAR" />
|
|
|
+ <result column="tech_principal" property="techPrincipal"
|
|
|
+ jdbcType="VARCHAR" />
|
|
|
<result column="contacts_fixed_tel" property="contactsFixedTel"
|
|
|
jdbcType="VARCHAR" />
|
|
|
<result column="contacts_fax" property="contactsFax" jdbcType="VARCHAR" />
|
|
|
@@ -102,27 +103,42 @@
|
|
|
jdbcType="VARCHAR" />
|
|
|
<result column="high_tech_name" property="highTechName"
|
|
|
jdbcType="VARCHAR" />
|
|
|
+
|
|
|
+ <result column="patent_prory_statement_url" property="patentProryStatementUrl"
|
|
|
+ jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, uid, contacts, contact_mobile, fixed_tel, qq, postal_address,
|
|
|
+ id, uid, contacts, contact_mobile, fixed_tel, qq,
|
|
|
+ postal_address,
|
|
|
postcode, aft_username,
|
|
|
- unit_name, registered_capital, licence_number, licence_province, licence_city,
|
|
|
+ unit_name, registered_capital,
|
|
|
+ licence_number, licence_province, licence_city,
|
|
|
licence_area,
|
|
|
- licence_scanning_url, org_code, org_code_url, bank_account, banks, bank_branch,
|
|
|
+ licence_scanning_url, org_code, org_code_url, bank_account, banks,
|
|
|
+ bank_branch,
|
|
|
bank_card_number,
|
|
|
- validation_amount, identity_type, location_province, location_city, location_area,
|
|
|
- legal_person, legal_person_id_card, last_year_tax_report_url,
|
|
|
+ validation_amount, identity_type,
|
|
|
+ location_province, location_city, location_area,
|
|
|
+ legal_person,
|
|
|
+ legal_person_id_card, last_year_tax_report_url,
|
|
|
audit_status, process,
|
|
|
- wrong_count, payment_date, first_contacts, first_mobile, second_contacts,
|
|
|
+ wrong_count, payment_date, first_contacts, first_mobile,
|
|
|
+ second_contacts,
|
|
|
second_mobile,
|
|
|
- third_contacts, third_mobile, listed, listed_date, listed_type, stock_code,
|
|
|
+ third_contacts, third_mobile, listed,
|
|
|
+ listed_date, listed_type, stock_code,
|
|
|
certificate_number,
|
|
|
- issuing_date, cog_contacts, tech_principal, contacts_fixed_tel, contacts_fax,
|
|
|
+ issuing_date,
|
|
|
+ cog_contacts, tech_principal, contacts_fixed_tel, contacts_fax,
|
|
|
legal_person_tel,
|
|
|
- legal_person_fax, legal_person_email, registration_time, ratepay_code, industry,
|
|
|
- enterprise_scale, register_type, foreign_investment, field,
|
|
|
- tax_authority, ratepay_method,
|
|
|
- high_tech_zone, risk_investment, business_scope, high_tech_name
|
|
|
+ legal_person_fax, legal_person_email,
|
|
|
+ registration_time, ratepay_code, industry,
|
|
|
+ enterprise_scale,
|
|
|
+ register_type, foreign_investment, field,
|
|
|
+ tax_authority,
|
|
|
+ ratepay_method,
|
|
|
+ high_tech_zone, risk_investment, business_scope,
|
|
|
+ high_tech_name, patent_prory_statement_url
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
|
|
parameterType="java.lang.String">
|
|
|
@@ -132,36 +148,51 @@
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
- delete from organization_identity
|
|
|
+ delete from
|
|
|
+ organization_identity
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.OrganizationIdentity">
|
|
|
- insert into organization_identity (id, uid, contacts,
|
|
|
- contact_mobile, fixed_tel, qq,
|
|
|
+ insert into
|
|
|
+ organization_identity (id, uid, contacts,
|
|
|
+ contact_mobile, fixed_tel,
|
|
|
+ qq,
|
|
|
postal_address, postcode, aft_username,
|
|
|
- unit_name, registered_capital, licence_number,
|
|
|
- licence_province, licence_city, licence_area,
|
|
|
+ unit_name,
|
|
|
+ registered_capital, licence_number,
|
|
|
+ licence_province, licence_city,
|
|
|
+ licence_area,
|
|
|
licence_scanning_url, org_code, org_code_url,
|
|
|
bank_account, banks, bank_branch,
|
|
|
- bank_card_number, validation_amount, identity_type,
|
|
|
+ bank_card_number, validation_amount,
|
|
|
+ identity_type,
|
|
|
location_province, location_city, location_area,
|
|
|
legal_person, legal_person_id_card, last_year_tax_report_url,
|
|
|
audit_status, process, wrong_count,
|
|
|
- payment_date, first_contacts, first_mobile,
|
|
|
+ payment_date, first_contacts,
|
|
|
+ first_mobile,
|
|
|
second_contacts, second_mobile, third_contacts,
|
|
|
third_mobile, listed, listed_date,
|
|
|
- listed_type, stock_code, certificate_number,
|
|
|
+ listed_type, stock_code,
|
|
|
+ certificate_number,
|
|
|
issuing_date, cog_contacts, tech_principal,
|
|
|
contacts_fixed_tel, contacts_fax, legal_person_tel,
|
|
|
- legal_person_fax, legal_person_email, registration_time,
|
|
|
- ratepay_code, industry, enterprise_scale,
|
|
|
+ legal_person_fax,
|
|
|
+ legal_person_email, registration_time,
|
|
|
+ ratepay_code, industry,
|
|
|
+ enterprise_scale,
|
|
|
register_type, foreign_investment, field,
|
|
|
tax_authority, ratepay_method, high_tech_zone,
|
|
|
- risk_investment, business_scope, high_tech_name)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR},
|
|
|
+ risk_investment,
|
|
|
+ business_scope, high_tech_name, patent_prory_statement_url
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=VARCHAR},
|
|
|
+ #{uid,jdbcType=VARCHAR},
|
|
|
#{contacts,jdbcType=VARCHAR},
|
|
|
- #{contactMobile,jdbcType=VARCHAR}, #{fixedTel,jdbcType=VARCHAR}, #{qq,jdbcType=VARCHAR},
|
|
|
- #{postalAddress,jdbcType=VARCHAR}, #{postcode,jdbcType=VARCHAR},
|
|
|
+ #{contactMobile,jdbcType=VARCHAR}, #{fixedTel,jdbcType=VARCHAR},
|
|
|
+ #{qq,jdbcType=VARCHAR},
|
|
|
+ #{postalAddress,jdbcType=VARCHAR},
|
|
|
+ #{postcode,jdbcType=VARCHAR},
|
|
|
#{aftUsername,jdbcType=VARCHAR},
|
|
|
#{unitName,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=DECIMAL},
|
|
|
#{licenceNumber,jdbcType=VARCHAR},
|
|
|
@@ -169,7 +200,8 @@
|
|
|
#{licenceArea,jdbcType=VARCHAR},
|
|
|
#{licenceScanningUrl,jdbcType=VARCHAR}, #{orgCode,jdbcType=VARCHAR},
|
|
|
#{orgCodeUrl,jdbcType=VARCHAR},
|
|
|
- #{bankAccount,jdbcType=VARCHAR}, #{banks,jdbcType=VARCHAR}, #{bankBranch,jdbcType=VARCHAR},
|
|
|
+ #{bankAccount,jdbcType=VARCHAR},
|
|
|
+ #{banks,jdbcType=VARCHAR}, #{bankBranch,jdbcType=VARCHAR},
|
|
|
#{bankCardNumber,jdbcType=VARCHAR},
|
|
|
#{validationAmount,jdbcType=DECIMAL},
|
|
|
#{identityType,jdbcType=INTEGER},
|
|
|
@@ -180,24 +212,31 @@
|
|
|
#{lastYearTaxReportUrl,jdbcType=VARCHAR},
|
|
|
#{auditStatus,jdbcType=INTEGER}, #{process,jdbcType=INTEGER},
|
|
|
#{wrongCount,jdbcType=INTEGER},
|
|
|
- #{paymentDate,jdbcType=TIMESTAMP}, #{firstContacts,jdbcType=VARCHAR}, #{firstMobile,jdbcType=VARCHAR},
|
|
|
+ #{paymentDate,jdbcType=TIMESTAMP},
|
|
|
+ #{firstContacts,jdbcType=VARCHAR}, #{firstMobile,jdbcType=VARCHAR},
|
|
|
#{secondContacts,jdbcType=VARCHAR}, #{secondMobile,jdbcType=VARCHAR},
|
|
|
#{thirdContacts,jdbcType=VARCHAR},
|
|
|
- #{thirdMobile,jdbcType=VARCHAR}, #{listed,jdbcType=INTEGER}, #{listedDate,jdbcType=TIMESTAMP},
|
|
|
+ #{thirdMobile,jdbcType=VARCHAR},
|
|
|
+ #{listed,jdbcType=INTEGER}, #{listedDate,jdbcType=TIMESTAMP},
|
|
|
#{listedType,jdbcType=INTEGER}, #{stockCode,jdbcType=VARCHAR},
|
|
|
#{certificateNumber,jdbcType=VARCHAR},
|
|
|
#{issuingDate,jdbcType=TIMESTAMP}, #{cogContacts,jdbcType=INTEGER},
|
|
|
#{techPrincipal,jdbcType=VARCHAR},
|
|
|
- #{contactsFixedTel,jdbcType=VARCHAR}, #{contactsFax,jdbcType=VARCHAR}, #{legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ #{contactsFixedTel,jdbcType=VARCHAR}, #{contactsFax,jdbcType=VARCHAR},
|
|
|
+ #{legalPersonTel,jdbcType=VARCHAR},
|
|
|
#{legalPersonFax,jdbcType=VARCHAR},
|
|
|
#{legalPersonEmail,jdbcType=VARCHAR},
|
|
|
#{registrationTime,jdbcType=TIMESTAMP},
|
|
|
#{ratepayCode,jdbcType=VARCHAR}, #{industry,jdbcType=INTEGER},
|
|
|
#{enterpriseScale,jdbcType=INTEGER},
|
|
|
- #{registerType,jdbcType=VARCHAR}, #{foreignInvestment,jdbcType=VARCHAR}, #{field,jdbcType=VARCHAR},
|
|
|
+ #{registerType,jdbcType=VARCHAR},
|
|
|
+ #{foreignInvestment,jdbcType=VARCHAR}, #{field,jdbcType=VARCHAR},
|
|
|
#{taxAuthority,jdbcType=INTEGER}, #{ratepayMethod,jdbcType=INTEGER},
|
|
|
#{highTechZone,jdbcType=INTEGER},
|
|
|
- #{riskInvestment,jdbcType=INTEGER}, #{businessScope,jdbcType=VARCHAR}, #{highTechName,jdbcType=VARCHAR})
|
|
|
+ #{riskInvestment,jdbcType=INTEGER},
|
|
|
+ #{businessScope,jdbcType=VARCHAR}, #{highTechName,jdbcType=VARCHAR},
|
|
|
+ #{patentProryStatementUrl,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationIdentity">
|
|
|
insert into organization_identity
|
|
|
@@ -400,6 +439,10 @@
|
|
|
<if test="highTechName != null">
|
|
|
high_tech_name,
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="patentProryStatementUrl != null">
|
|
|
+ patent_prory_statement_url,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -600,6 +643,10 @@
|
|
|
<if test="highTechName != null">
|
|
|
#{highTechName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="patentProryStatementUrl != null">
|
|
|
+ #{patentProryStatementUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationIdentity">
|
|
|
@@ -633,7 +680,8 @@
|
|
|
unit_name = #{unitName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="registeredCapital != null">
|
|
|
- registered_capital = #{registeredCapital,jdbcType=DECIMAL},
|
|
|
+ registered_capital =
|
|
|
+ #{registeredCapital,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="licenceNumber != null">
|
|
|
licence_number = #{licenceNumber,jdbcType=VARCHAR},
|
|
|
@@ -648,7 +696,8 @@
|
|
|
licence_area = #{licenceArea,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="licenceScanningUrl != null">
|
|
|
- licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
|
|
|
+ licence_scanning_url =
|
|
|
+ #{licenceScanningUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="orgCode != null">
|
|
|
org_code = #{orgCode,jdbcType=VARCHAR},
|
|
|
@@ -687,10 +736,12 @@
|
|
|
legal_person = #{legalPerson,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="legalPersonIdCard != null">
|
|
|
- legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
|
|
|
+ legal_person_id_card =
|
|
|
+ #{legalPersonIdCard,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="lastYearTaxReportUrl != null">
|
|
|
- last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
|
|
|
+ last_year_tax_report_url =
|
|
|
+ #{lastYearTaxReportUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="auditStatus != null">
|
|
|
audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
@@ -735,7 +786,8 @@
|
|
|
stock_code = #{stockCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="certificateNumber != null">
|
|
|
- certificate_number = #{certificateNumber,jdbcType=VARCHAR},
|
|
|
+ certificate_number =
|
|
|
+ #{certificateNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="issuingDate != null">
|
|
|
issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
|
|
|
@@ -747,7 +799,8 @@
|
|
|
tech_principal = #{techPrincipal,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="contactsFixedTel != null">
|
|
|
- contacts_fixed_tel = #{contactsFixedTel,jdbcType=VARCHAR},
|
|
|
+ contacts_fixed_tel =
|
|
|
+ #{contactsFixedTel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="contactsFax != null">
|
|
|
contacts_fax = #{contactsFax,jdbcType=VARCHAR},
|
|
|
@@ -759,10 +812,12 @@
|
|
|
legal_person_fax = #{legalPersonFax,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="legalPersonEmail != null">
|
|
|
- legal_person_email = #{legalPersonEmail,jdbcType=VARCHAR},
|
|
|
+ legal_person_email =
|
|
|
+ #{legalPersonEmail,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="registrationTime != null">
|
|
|
- registration_time = #{registrationTime,jdbcType=TIMESTAMP},
|
|
|
+ registration_time =
|
|
|
+ #{registrationTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="ratepayCode != null">
|
|
|
ratepay_code = #{ratepayCode,jdbcType=VARCHAR},
|
|
|
@@ -777,7 +832,8 @@
|
|
|
register_type = #{registerType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="foreignInvestment != null">
|
|
|
- foreign_investment = #{foreignInvestment,jdbcType=VARCHAR},
|
|
|
+ foreign_investment =
|
|
|
+ #{foreignInvestment,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="field != null">
|
|
|
field = #{field,jdbcType=VARCHAR},
|
|
|
@@ -800,76 +856,139 @@
|
|
|
<if test="highTechName != null">
|
|
|
high_tech_name = #{highTechName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="patentProryStatementUrl != null">
|
|
|
+ patent_prory_statement_url = #{patentProryStatementUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrganizationIdentity">
|
|
|
- update organization_identity
|
|
|
+ update
|
|
|
+ organization_identity
|
|
|
set uid = #{uid,jdbcType=VARCHAR},
|
|
|
- contacts = #{contacts,jdbcType=VARCHAR},
|
|
|
- contact_mobile = #{contactMobile,jdbcType=VARCHAR},
|
|
|
- fixed_tel = #{fixedTel,jdbcType=VARCHAR},
|
|
|
+ contacts =
|
|
|
+ #{contacts,jdbcType=VARCHAR},
|
|
|
+ contact_mobile =
|
|
|
+ #{contactMobile,jdbcType=VARCHAR},
|
|
|
+ fixed_tel =
|
|
|
+ #{fixedTel,jdbcType=VARCHAR},
|
|
|
qq = #{qq,jdbcType=VARCHAR},
|
|
|
postal_address = #{postalAddress,jdbcType=VARCHAR},
|
|
|
- postcode = #{postcode,jdbcType=VARCHAR},
|
|
|
- aft_username = #{aftUsername,jdbcType=VARCHAR},
|
|
|
- unit_name = #{unitName,jdbcType=VARCHAR},
|
|
|
- registered_capital = #{registeredCapital,jdbcType=DECIMAL},
|
|
|
- licence_number = #{licenceNumber,jdbcType=VARCHAR},
|
|
|
- licence_province = #{licenceProvince,jdbcType=VARCHAR},
|
|
|
- licence_city = #{licenceCity,jdbcType=VARCHAR},
|
|
|
- licence_area = #{licenceArea,jdbcType=VARCHAR},
|
|
|
- licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
|
|
|
- org_code = #{orgCode,jdbcType=VARCHAR},
|
|
|
- org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
|
|
|
- bank_account = #{bankAccount,jdbcType=VARCHAR},
|
|
|
+ postcode =
|
|
|
+ #{postcode,jdbcType=VARCHAR},
|
|
|
+ aft_username =
|
|
|
+ #{aftUsername,jdbcType=VARCHAR},
|
|
|
+ unit_name =
|
|
|
+ #{unitName,jdbcType=VARCHAR},
|
|
|
+ registered_capital =
|
|
|
+ #{registeredCapital,jdbcType=DECIMAL},
|
|
|
+ licence_number =
|
|
|
+ #{licenceNumber,jdbcType=VARCHAR},
|
|
|
+ licence_province =
|
|
|
+ #{licenceProvince,jdbcType=VARCHAR},
|
|
|
+ licence_city =
|
|
|
+ #{licenceCity,jdbcType=VARCHAR},
|
|
|
+ licence_area =
|
|
|
+ #{licenceArea,jdbcType=VARCHAR},
|
|
|
+ licence_scanning_url =
|
|
|
+ #{licenceScanningUrl,jdbcType=VARCHAR},
|
|
|
+ org_code =
|
|
|
+ #{orgCode,jdbcType=VARCHAR},
|
|
|
+ org_code_url =
|
|
|
+ #{orgCodeUrl,jdbcType=VARCHAR},
|
|
|
+ bank_account =
|
|
|
+ #{bankAccount,jdbcType=VARCHAR},
|
|
|
banks = #{banks,jdbcType=VARCHAR},
|
|
|
bank_branch = #{bankBranch,jdbcType=VARCHAR},
|
|
|
- bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
|
|
|
- validation_amount = #{validationAmount,jdbcType=DECIMAL},
|
|
|
- identity_type = #{identityType,jdbcType=INTEGER},
|
|
|
- location_province = #{locationProvince,jdbcType=VARCHAR},
|
|
|
- location_city = #{locationCity,jdbcType=VARCHAR},
|
|
|
- location_area = #{locationArea,jdbcType=VARCHAR},
|
|
|
- legal_person = #{legalPerson,jdbcType=VARCHAR},
|
|
|
- legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
|
|
|
- last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
|
|
|
- audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
+ bank_card_number =
|
|
|
+ #{bankCardNumber,jdbcType=VARCHAR},
|
|
|
+ validation_amount =
|
|
|
+ #{validationAmount,jdbcType=DECIMAL},
|
|
|
+ identity_type =
|
|
|
+ #{identityType,jdbcType=INTEGER},
|
|
|
+ location_province =
|
|
|
+ #{locationProvince,jdbcType=VARCHAR},
|
|
|
+ location_city =
|
|
|
+ #{locationCity,jdbcType=VARCHAR},
|
|
|
+ location_area =
|
|
|
+ #{locationArea,jdbcType=VARCHAR},
|
|
|
+ legal_person =
|
|
|
+ #{legalPerson,jdbcType=VARCHAR},
|
|
|
+ legal_person_id_card =
|
|
|
+ #{legalPersonIdCard,jdbcType=VARCHAR},
|
|
|
+ last_year_tax_report_url =
|
|
|
+ #{lastYearTaxReportUrl,jdbcType=VARCHAR},
|
|
|
+ audit_status =
|
|
|
+ #{auditStatus,jdbcType=INTEGER},
|
|
|
process = #{process,jdbcType=INTEGER},
|
|
|
wrong_count = #{wrongCount,jdbcType=INTEGER},
|
|
|
- payment_date = #{paymentDate,jdbcType=TIMESTAMP},
|
|
|
- first_contacts = #{firstContacts,jdbcType=VARCHAR},
|
|
|
- first_mobile = #{firstMobile,jdbcType=VARCHAR},
|
|
|
- second_contacts = #{secondContacts,jdbcType=VARCHAR},
|
|
|
- second_mobile = #{secondMobile,jdbcType=VARCHAR},
|
|
|
- third_contacts = #{thirdContacts,jdbcType=VARCHAR},
|
|
|
- third_mobile = #{thirdMobile,jdbcType=VARCHAR},
|
|
|
+ payment_date =
|
|
|
+ #{paymentDate,jdbcType=TIMESTAMP},
|
|
|
+ first_contacts =
|
|
|
+ #{firstContacts,jdbcType=VARCHAR},
|
|
|
+ first_mobile =
|
|
|
+ #{firstMobile,jdbcType=VARCHAR},
|
|
|
+ second_contacts =
|
|
|
+ #{secondContacts,jdbcType=VARCHAR},
|
|
|
+ second_mobile =
|
|
|
+ #{secondMobile,jdbcType=VARCHAR},
|
|
|
+ third_contacts =
|
|
|
+ #{thirdContacts,jdbcType=VARCHAR},
|
|
|
+ third_mobile =
|
|
|
+ #{thirdMobile,jdbcType=VARCHAR},
|
|
|
listed = #{listed,jdbcType=INTEGER},
|
|
|
listed_date = #{listedDate,jdbcType=TIMESTAMP},
|
|
|
- listed_type = #{listedType,jdbcType=INTEGER},
|
|
|
- stock_code = #{stockCode,jdbcType=VARCHAR},
|
|
|
- certificate_number = #{certificateNumber,jdbcType=VARCHAR},
|
|
|
- issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
|
|
|
- cog_contacts = #{cogContacts,jdbcType=INTEGER},
|
|
|
- techPrincipal = #{techPrincipal,jdbcType=VARCHAR},
|
|
|
- contacts_fixed_tel = #{contactsFixedTel,jdbcType=VARCHAR},
|
|
|
- contacts_fax = #{contactsFax,jdbcType=VARCHAR},
|
|
|
- legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
|
|
|
- legal_person_fax = #{legalPersonFax,jdbcType=VARCHAR},
|
|
|
- legal_person_email = #{legalPersonEmail,jdbcType=VARCHAR},
|
|
|
- registration_time = #{registrationTime,jdbcType=TIMESTAMP},
|
|
|
- ratepay_code = #{ratepayCode,jdbcType=VARCHAR},
|
|
|
- industry = #{industry,jdbcType=INTEGER},
|
|
|
- enterprise_scale = #{enterpriseScale,jdbcType=INTEGER},
|
|
|
- register_type = #{registerType,jdbcType=VARCHAR},
|
|
|
- foreign_investment = #{foreignInvestment,jdbcType=VARCHAR},
|
|
|
- field = #{field,jdbcType=VARCHAR},
|
|
|
- tax_authority = #{taxAuthority,jdbcType=INTEGER},
|
|
|
- ratepay_method = #{ratepayMethod,jdbcType=INTEGER},
|
|
|
- high_tech_zone = #{highTechZone,jdbcType=INTEGER},
|
|
|
- risk_investment = #{riskInvestment,jdbcType=INTEGER},
|
|
|
- business_scope = #{businessScope,jdbcType=VARCHAR},
|
|
|
- high_tech_name = #{highTechName,jdbcType=VARCHAR}
|
|
|
+ listed_type =
|
|
|
+ #{listedType,jdbcType=INTEGER},
|
|
|
+ stock_code =
|
|
|
+ #{stockCode,jdbcType=VARCHAR},
|
|
|
+ certificate_number =
|
|
|
+ #{certificateNumber,jdbcType=VARCHAR},
|
|
|
+ issuing_date =
|
|
|
+ #{issuingDate,jdbcType=TIMESTAMP},
|
|
|
+ cog_contacts =
|
|
|
+ #{cogContacts,jdbcType=INTEGER},
|
|
|
+ techPrincipal =
|
|
|
+ #{techPrincipal,jdbcType=VARCHAR},
|
|
|
+ contacts_fixed_tel =
|
|
|
+ #{contactsFixedTel,jdbcType=VARCHAR},
|
|
|
+ contacts_fax =
|
|
|
+ #{contactsFax,jdbcType=VARCHAR},
|
|
|
+ legal_person_tel =
|
|
|
+ #{legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ legal_person_fax =
|
|
|
+ #{legalPersonFax,jdbcType=VARCHAR},
|
|
|
+ legal_person_email =
|
|
|
+ #{legalPersonEmail,jdbcType=VARCHAR},
|
|
|
+ registration_time =
|
|
|
+ #{registrationTime,jdbcType=TIMESTAMP},
|
|
|
+ ratepay_code =
|
|
|
+ #{ratepayCode,jdbcType=VARCHAR},
|
|
|
+ industry =
|
|
|
+ #{industry,jdbcType=INTEGER},
|
|
|
+ enterprise_scale =
|
|
|
+ #{enterpriseScale,jdbcType=INTEGER},
|
|
|
+ register_type =
|
|
|
+ #{registerType,jdbcType=VARCHAR},
|
|
|
+ foreign_investment =
|
|
|
+ #{foreignInvestment,jdbcType=VARCHAR},
|
|
|
+ field =
|
|
|
+ #{field,jdbcType=VARCHAR},
|
|
|
+ tax_authority =
|
|
|
+ #{taxAuthority,jdbcType=INTEGER},
|
|
|
+ ratepay_method =
|
|
|
+ #{ratepayMethod,jdbcType=INTEGER},
|
|
|
+ high_tech_zone =
|
|
|
+ #{highTechZone,jdbcType=INTEGER},
|
|
|
+ risk_investment =
|
|
|
+ #{riskInvestment,jdbcType=INTEGER},
|
|
|
+ business_scope =
|
|
|
+ #{businessScope,jdbcType=VARCHAR},
|
|
|
+ high_tech_name =
|
|
|
+ #{highTechName,jdbcType=VARCHAR},
|
|
|
+ patent_prory_statement_url =
|
|
|
+ #{patentProryStatementUrl,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -884,21 +1003,30 @@
|
|
|
|
|
|
<select id="selectOrgIdentityBoByUserId" parameterType="java.lang.String"
|
|
|
resultType="com.goafanti.user.bo.OrgIdentityBo">
|
|
|
- select t.id,t.uid,t.contacts,t.fixed_tel as fixedTel ,t.qq,t.postal_address
|
|
|
+ select t.id,t.uid,t.contacts,t.fixed_tel as fixedTel
|
|
|
+ ,t.qq,t.postal_address
|
|
|
as postalAddress ,t.postcode,
|
|
|
- t.first_contacts as firstContacts, t.first_mobile as firstMobile,
|
|
|
- t.second_contacts as secondContacts, t.second_mobile as secondMobile,
|
|
|
- t.third_contacts as thirdContacts, t.third_mobile as thirdMobile,
|
|
|
- u.email ,t.legal_person as legalPerson
|
|
|
+ t.first_contacts as
|
|
|
+ firstContacts, t.first_mobile as firstMobile,
|
|
|
+ t.second_contacts as
|
|
|
+ secondContacts, t.second_mobile as secondMobile,
|
|
|
+ t.third_contacts as
|
|
|
+ thirdContacts, t.third_mobile as thirdMobile,
|
|
|
+ u.email ,t.legal_person
|
|
|
+ as legalPerson
|
|
|
from user u LEFT JOIN organization_identity t
|
|
|
- on t.uid = u.id
|
|
|
+ on t.uid =
|
|
|
+ u.id
|
|
|
where t.uid=#{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectAllOrgIndentity" resultType="com.goafanti.user.bo.OrgUnitNames" parameterType="java.lang.String">
|
|
|
+ <select id="selectAllOrgIndentity" resultType="com.goafanti.user.bo.OrgUnitNames"
|
|
|
+ parameterType="java.lang.String">
|
|
|
select u.id as uid, i.unit_name as unitName
|
|
|
- from user u INNER JOIN organization_identity i on u.id = i.uid and u.lvl = 1
|
|
|
- and i.audit_status = 5
|
|
|
+ from user u INNER JOIN
|
|
|
+ organization_identity i on u.id = i.uid and u.lvl = 1
|
|
|
+ and
|
|
|
+ i.audit_status = 5
|
|
|
where 1 = 1
|
|
|
<if test="_parameter != null">
|
|
|
and u.aid = #{aid,jdbcType=VARCHAR}
|
|
|
@@ -907,30 +1035,80 @@
|
|
|
|
|
|
<select id="selectBasicInfo" resultType="com.goafanti.user.bo.OrgBasicInfoBo">
|
|
|
select oi.id,
|
|
|
- oi.uid as uid, oi.unit_name as unitName, oi.licence_province as province,
|
|
|
+ oi.uid as
|
|
|
+ uid, oi.unit_name as unitName, oi.licence_province as province,
|
|
|
oi.licence_city as city, oi.licence_area as area, oi.postal_address as
|
|
|
postalAddress,
|
|
|
- oi.postcode, oi.first_contacts as firstContacts, oi.first_mobile as firstMobile,
|
|
|
- oi.contacts_fixed_tel as contactsFixedTel, oi.contacts_fax as
|
|
|
- contactsFax,oi.legal_person_tel as legalPersonTel,
|
|
|
- oi.legal_person_fax as legalPersonFax, oi.legal_person_email as legalPersonEmail,
|
|
|
- oi.registered_capital as registeredCapital,
|
|
|
- oi.registration_time as registrationTime, oi.legal_person as legalPerson,
|
|
|
- oi.legal_person_id_card as legalPersonIdCard, oi.org_code as orgCode,
|
|
|
- oi.ratepay_code as ratepayCode, oi.industry, oi.enterprise_scale as
|
|
|
- enterpriseScale, oi.register_type as registerType,
|
|
|
- oi.foreign_investment as foreignInvestment, oi.field, oi.tax_authority
|
|
|
- as taxAuthority, oi.listed_date as listedDate,
|
|
|
- oi.ratepay_method as ratepayMethod, oi.listed, oi.high_tech_zone as highTechZone,
|
|
|
- oi.risk_investment as riskInvestment, oi.stock_code as stockCode,
|
|
|
- oi.business_scope as businessScope, oi.high_tech_name as highTechName,
|
|
|
- oi.listed_type as listedType,
|
|
|
- ohr.id as hid, ohr.firm_total as firmTotal, ohr.tech_total as techTotal
|
|
|
+ oi.postcode, oi.first_contacts as firstContacts,
|
|
|
+ oi.first_mobile as firstMobile,
|
|
|
+ oi.contacts_fixed_tel as
|
|
|
+ contactsFixedTel, oi.contacts_fax as
|
|
|
+ contactsFax,oi.legal_person_tel as
|
|
|
+ legalPersonTel,
|
|
|
+ oi.legal_person_fax as legalPersonFax,
|
|
|
+ oi.legal_person_email as legalPersonEmail,
|
|
|
+ oi.registered_capital as
|
|
|
+ registeredCapital,
|
|
|
+ oi.registration_time as registrationTime,
|
|
|
+ oi.legal_person as legalPerson,
|
|
|
+ oi.legal_person_id_card as
|
|
|
+ legalPersonIdCard, oi.org_code as orgCode,
|
|
|
+ oi.ratepay_code as
|
|
|
+ ratepayCode, oi.industry, oi.enterprise_scale as
|
|
|
+ enterpriseScale,
|
|
|
+ oi.register_type as registerType,
|
|
|
+ oi.foreign_investment as
|
|
|
+ foreignInvestment, oi.field, oi.tax_authority
|
|
|
+ as taxAuthority,
|
|
|
+ oi.listed_date as listedDate,
|
|
|
+ oi.ratepay_method as ratepayMethod,
|
|
|
+ oi.listed, oi.high_tech_zone as highTechZone,
|
|
|
+ oi.risk_investment as
|
|
|
+ riskInvestment, oi.stock_code as stockCode,
|
|
|
+ oi.business_scope as
|
|
|
+ businessScope, oi.high_tech_name as highTechName,
|
|
|
+ oi.listed_type as
|
|
|
+ listedType,
|
|
|
+ ohr.id as hid, ohr.firm_total as firmTotal, ohr.tech_total
|
|
|
+ as techTotal
|
|
|
from organization_identity oi
|
|
|
- LEFT JOIN org_human_resource ohr
|
|
|
+ LEFT JOIN org_human_resource
|
|
|
+ ohr
|
|
|
on oi.uid = ohr.uid and ohr.year = #{1}
|
|
|
where oi.uid = #{0}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectOrgIdentityDetailByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgIdentityDetailBo">
|
|
|
+ select
|
|
|
+ id, uid, aft_username as aftUsername, unit_name as unitName, identity_type as identityType,
|
|
|
+ first_contacts as firstContacts, first_mobile as firstMobile, second_contacts as secondContacts,
|
|
|
+ second_mobile as secondMobile, third_contacts as thirdContacts, third_mobile as thirdMobile,
|
|
|
+ legal_person as legalPerson, legal_person_id_card as legalPersonIdCard, registration_time as registrationTime,
|
|
|
+ licence_number as licenceNumber, licence_province as licenceProvince, licence_city as licenceCity,
|
|
|
+ licence_area as licenceArea, licence_scanning_url as licenceScanningUrl, org_code as orgCode,
|
|
|
+ org_code_url as orgCodeUrl, banks, bank_branch as bankBranch, bank_card_number as bankCardNumber,
|
|
|
+ location_province as locationProvince, location_city as locationCity, location_area as locationArea,
|
|
|
+ validation_amount as validationAmount, payment_date as paymentDate, audit_status as auditStatus
|
|
|
+ from organization_identity
|
|
|
+ where uid = #{uid,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectAuditorOrgIdentityDetailByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.AuditorOrgIdentityDetailBo">
|
|
|
+ select u.aid, u.mid,
|
|
|
+ oi.id, oi.uid, oi.aft_username as aftUsername, oi.unit_name as unitName, oi.identity_type as identityType,
|
|
|
+ oi.first_contacts as firstContacts, oi.first_mobile as firstMobile, oi.second_contacts as secondContacts,
|
|
|
+ oi.second_mobile as secondMobile, oi.third_contacts as thirdContacts, oi.third_mobile as thirdMobile,
|
|
|
+ oi.legal_person as legalPerson, oi.legal_person_id_card as legalPersonIdCard, oi.registration_time as registrationTime,
|
|
|
+ oi.licence_number as licenceNumber, oi.licence_province as licenceProvince, oi.licence_city as licenceCity,
|
|
|
+ oi.licence_area as licenceArea, oi.licence_scanning_url as licenceScanningUrl, oi.org_code as orgCode,
|
|
|
+ oi.org_code_url as orgCodeUrl, oi.banks, bank_branch as bankBranch, oi.bank_card_number as bankCardNumber,
|
|
|
+ oi.location_province as locationProvince, oi.location_city as locationCity, oi.location_area as locationArea,
|
|
|
+ oi.validation_amount as validationAmount, oi.payment_date as paymentDate, oi.audit_status as auditStatus
|
|
|
+ from user u
|
|
|
+ LEFT JOIN organization_identity oi on oi.uid = u.id
|
|
|
+ where uid = #{uid,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
</mapper>
|