|
|
@@ -12,7 +12,7 @@
|
|
|
<result column="postcode" property="postcode" jdbcType="VARCHAR" />
|
|
|
<result column="aft_username" property="aftUsername" jdbcType="VARCHAR" />
|
|
|
<result column="unit_name" property="unitName" jdbcType="VARCHAR" />
|
|
|
- <result column="registered_capital" property="registeredCapital" jdbcType="INTEGER" />
|
|
|
+ <result column="registered_capital" property="registeredCapital" jdbcType="DECIMAL" />
|
|
|
<result column="licence_number" property="licenceNumber" jdbcType="VARCHAR" />
|
|
|
<result column="licence_province" property="licenceProvince" jdbcType="VARCHAR" />
|
|
|
<result column="licence_city" property="licenceCity" jdbcType="VARCHAR" />
|
|
|
@@ -36,33 +36,51 @@
|
|
|
<result column="process" property="process" jdbcType="INTEGER" />
|
|
|
<result column="wrong_count" property="wrongCount" jdbcType="INTEGER" />
|
|
|
<result column="payment_date" property="paymentDate" jdbcType="TIMESTAMP" />
|
|
|
-
|
|
|
<result column="first_contacts" property="firstContacts" jdbcType="VARCHAR" />
|
|
|
<result column="first_mobile" property="firstMobile" jdbcType="VARCHAR" />
|
|
|
<result column="second_contacts" property="secondContacts" jdbcType="VARCHAR" />
|
|
|
<result column="second_mobile" property="secondMobile" jdbcType="VARCHAR" />
|
|
|
<result column="third_contacts" property="thirdContacts" jdbcType="VARCHAR" />
|
|
|
<result column="third_mobile" property="thirdMobile" jdbcType="VARCHAR" />
|
|
|
-
|
|
|
<result column="listed" property="listed" jdbcType="INTEGER" />
|
|
|
<result column="listed_date" property="listedDate" jdbcType="TIMESTAMP" />
|
|
|
<result column="listed_type" property="listedType" jdbcType="INTEGER" />
|
|
|
<result column="stock_code" property="stockCode" jdbcType="VARCHAR" />
|
|
|
-
|
|
|
<result column="certificate_number" property="certificateNumber" jdbcType="VARCHAR" />
|
|
|
<result column="issuing_date" property="issuingDate" jdbcType="TIMESTAMP" />
|
|
|
-
|
|
|
<result column="cog_contacts" property="cogContacts" jdbcType="INTEGER" />
|
|
|
<result column="consultant" property="consultant" jdbcType="VARCHAR" />
|
|
|
+ <result column="contacts_fixed_tel" property="contactsFixedTel" jdbcType="VARCHAR" />
|
|
|
+ <result column="contacts_fax" property="contactsFax" jdbcType="VARCHAR" />
|
|
|
+ <result column="legal_person_tel" property="legalPersonTel" jdbcType="VARCHAR" />
|
|
|
+ <result column="legal_person_fax" property="legalPersonFax" jdbcType="VARCHAR" />
|
|
|
+ <result column="legal_person_email" property="legalPersonEmail" jdbcType="VARCHAR" />
|
|
|
+ <result column="registration_time" property="registrationTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="ratepay_code" property="ratepayCode" jdbcType="VARCHAR" />
|
|
|
+ <result column="industry" property="industry" jdbcType="INTEGER" />
|
|
|
+ <result column="enterprise_scale" property="enterpriseScale" jdbcType="INTEGER" />
|
|
|
+ <result column="register_type" property="registerType" jdbcType="VARCHAR" />
|
|
|
+ <result column="foreign_investment" property="foreignInvestment" jdbcType="VARCHAR" />
|
|
|
+ <result column="field" property="field" jdbcType="VARCHAR" />
|
|
|
+ <result column="tax_authority" property="taxAuthority" jdbcType="INTEGER" />
|
|
|
+ <result column="ratepay_method" property="ratepayMethod" jdbcType="INTEGER" />
|
|
|
+ <result column="high_tech_zone" property="highTechZone" jdbcType="INTEGER" />
|
|
|
+ <result column="risk_investment" property="riskInvestment" jdbcType="INTEGER" />
|
|
|
+ <result column="business_scope" property="businessScope" jdbcType="VARCHAR" />
|
|
|
+ <result column="high_tech_name" property="highTechName" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
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,
|
|
|
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, audit_status, process, wrong_count,
|
|
|
- payment_date, first_contacts, first_mobile, second_contacts, second_mobile, third_contacts ,third_mobile,
|
|
|
- listed, listed_date, listed_type, stock_code, certificate_number, issuing_date, cog_contacts, consultant
|
|
|
+ legal_person, legal_person_id_card, last_year_tax_report_url, audit_status, process,
|
|
|
+ wrong_count, payment_date, first_contacts, first_mobile, second_contacts, second_mobile,
|
|
|
+ third_contacts, third_mobile, listed, listed_date, listed_type, stock_code, certificate_number,
|
|
|
+ issuing_date, cog_contacts, consultant, 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
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
@@ -85,29 +103,40 @@
|
|
|
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, second_contacts,
|
|
|
- second_mobile, third_contacts , third_mobile,
|
|
|
- listed, listed_date, listed_type, stock_code,
|
|
|
- certificate_number, issuing_date, cog_contacts, consultant
|
|
|
- )
|
|
|
+ audit_status, process, wrong_count,
|
|
|
+ payment_date, first_contacts, first_mobile,
|
|
|
+ second_contacts, second_mobile, third_contacts,
|
|
|
+ third_mobile, listed, listed_date,
|
|
|
+ listed_type, stock_code, certificate_number,
|
|
|
+ issuing_date, cog_contacts, consultant,
|
|
|
+ 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)
|
|
|
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}, #{aftUsername,jdbcType=VARCHAR},
|
|
|
- #{unitName,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=INTEGER}, #{licenceNumber,jdbcType=VARCHAR},
|
|
|
+ #{unitName,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=DECIMAL}, #{licenceNumber,jdbcType=VARCHAR},
|
|
|
#{licenceProvince,jdbcType=VARCHAR}, #{licenceCity,jdbcType=VARCHAR}, #{licenceArea,jdbcType=VARCHAR},
|
|
|
#{licenceScanningUrl,jdbcType=VARCHAR}, #{orgCode,jdbcType=VARCHAR}, #{orgCodeUrl,jdbcType=VARCHAR},
|
|
|
#{bankAccount,jdbcType=VARCHAR}, #{banks,jdbcType=VARCHAR}, #{bankBranch,jdbcType=VARCHAR},
|
|
|
#{bankCardNumber,jdbcType=VARCHAR}, #{validationAmount,jdbcType=DECIMAL}, #{identityType,jdbcType=INTEGER},
|
|
|
#{locationProvince,jdbcType=VARCHAR}, #{locationCity,jdbcType=VARCHAR}, #{locationArea,jdbcType=VARCHAR},
|
|
|
#{legalPerson,jdbcType=VARCHAR}, #{legalPersonIdCard,jdbcType=VARCHAR}, #{lastYearTaxReportUrl,jdbcType=VARCHAR},
|
|
|
- #{auditStatus,jdbcType=INTEGER}, #{process,jdbcType=INTEGER}, #{wrongCount,jdbcType=INTEGER}, #{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}, #{listedType,jdbcType=INTEGER}, #{stockCode,jdbcType=VARCHAR},
|
|
|
- #{certificateNumber,jdbcType=VARCHAR}, #{issuingDate,jdbcType=TIMESTAMP},
|
|
|
- #{cogContacts,jdbcType=INTEGER}, #{consultant,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
+ #{auditStatus,jdbcType=INTEGER}, #{process,jdbcType=INTEGER}, #{wrongCount,jdbcType=INTEGER},
|
|
|
+ #{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},
|
|
|
+ #{listedType,jdbcType=INTEGER}, #{stockCode,jdbcType=VARCHAR}, #{certificateNumber,jdbcType=VARCHAR},
|
|
|
+ #{issuingDate,jdbcType=TIMESTAMP}, #{cogContacts,jdbcType=INTEGER}, #{consultant,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},
|
|
|
+ #{taxAuthority,jdbcType=INTEGER}, #{ratepayMethod,jdbcType=INTEGER}, #{highTechZone,jdbcType=INTEGER},
|
|
|
+ #{riskInvestment,jdbcType=INTEGER}, #{businessScope,jdbcType=VARCHAR}, #{highTechName,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
|
|
|
insert into organization_identity
|
|
|
@@ -214,51 +243,101 @@
|
|
|
<if test="paymentDate != null" >
|
|
|
payment_date,
|
|
|
</if>
|
|
|
-
|
|
|
- <if test="firstContacts!= null">
|
|
|
- first_contacts,
|
|
|
+ <if test="firstContacts != null" >
|
|
|
+ first_contacts,
|
|
|
</if>
|
|
|
- <if test="firstMobile != null">
|
|
|
- first_mobile,
|
|
|
+ <if test="firstMobile != null" >
|
|
|
+ first_mobile,
|
|
|
</if>
|
|
|
- <if test="secondContacts != null">
|
|
|
- second_contacts,
|
|
|
+ <if test="secondContacts != null" >
|
|
|
+ second_contacts,
|
|
|
</if>
|
|
|
- <if test="secondMobile != null">
|
|
|
- second_mobile,
|
|
|
+ <if test="secondMobile != null" >
|
|
|
+ second_mobile,
|
|
|
</if>
|
|
|
- <if test="thirdContacts != null">
|
|
|
- third_contacts,
|
|
|
+ <if test="thirdContacts != null" >
|
|
|
+ third_contacts,
|
|
|
</if>
|
|
|
- <if test="thirdMobile != null">
|
|
|
- third_mobile,
|
|
|
+ <if test="thirdMobile != null" >
|
|
|
+ third_mobile,
|
|
|
</if>
|
|
|
-
|
|
|
- <if test="listed != null">
|
|
|
- listed,
|
|
|
+ <if test="listed != null" >
|
|
|
+ listed,
|
|
|
+ </if>
|
|
|
+ <if test="listedDate != null" >
|
|
|
+ listed_date,
|
|
|
+ </if>
|
|
|
+ <if test="listedType != null" >
|
|
|
+ listed_type,
|
|
|
+ </if>
|
|
|
+ <if test="stockCode != null" >
|
|
|
+ stock_code,
|
|
|
+ </if>
|
|
|
+ <if test="certificateNumber != null" >
|
|
|
+ certificate_number,
|
|
|
+ </if>
|
|
|
+ <if test="issuingDate != null" >
|
|
|
+ issuing_date,
|
|
|
+ </if>
|
|
|
+ <if test="cogContacts != null" >
|
|
|
+ cog_contacts,
|
|
|
+ </if>
|
|
|
+ <if test="consultant != null" >
|
|
|
+ consultant,
|
|
|
+ </if>
|
|
|
+ <if test="contactsFixedTel != null" >
|
|
|
+ contacts_fixed_tel,
|
|
|
+ </if>
|
|
|
+ <if test="contactsFax != null" >
|
|
|
+ contacts_fax,
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonTel != null" >
|
|
|
+ legal_person_tel,
|
|
|
</if>
|
|
|
- <if test="listedDate != null">
|
|
|
- listed_date,
|
|
|
+ <if test="legalPersonFax != null" >
|
|
|
+ legal_person_fax,
|
|
|
</if>
|
|
|
- <if test="listedType != null">
|
|
|
- listed_type,
|
|
|
+ <if test="legalPersonEmail != null" >
|
|
|
+ legal_person_email,
|
|
|
</if>
|
|
|
- <if test="stockCode != null">
|
|
|
- stock_code,
|
|
|
+ <if test="registrationTime != null" >
|
|
|
+ registration_time,
|
|
|
</if>
|
|
|
-
|
|
|
- <if test="certificateNumber != null">
|
|
|
- certificate_number,
|
|
|
+ <if test="ratepayCode != null" >
|
|
|
+ ratepay_code,
|
|
|
</if>
|
|
|
- <if test="issuingDate != null">
|
|
|
- issuing_date,
|
|
|
+ <if test="industry != null" >
|
|
|
+ industry,
|
|
|
</if>
|
|
|
-
|
|
|
- <if test="cogContacts != null">
|
|
|
- cog_contacts,
|
|
|
+ <if test="enterpriseScale != null" >
|
|
|
+ enterprise_scale,
|
|
|
</if>
|
|
|
- <if test="consultant != null">
|
|
|
- consultant,
|
|
|
+ <if test="registerType != null" >
|
|
|
+ register_type,
|
|
|
+ </if>
|
|
|
+ <if test="foreignInvestment != null" >
|
|
|
+ foreign_investment,
|
|
|
+ </if>
|
|
|
+ <if test="field != null" >
|
|
|
+ field,
|
|
|
+ </if>
|
|
|
+ <if test="taxAuthority != null" >
|
|
|
+ tax_authority,
|
|
|
+ </if>
|
|
|
+ <if test="ratepayMethod != null" >
|
|
|
+ ratepay_method,
|
|
|
+ </if>
|
|
|
+ <if test="highTechZone != null" >
|
|
|
+ high_tech_zone,
|
|
|
+ </if>
|
|
|
+ <if test="riskInvestment != null" >
|
|
|
+ risk_investment,
|
|
|
+ </if>
|
|
|
+ <if test="businessScope != null" >
|
|
|
+ business_scope,
|
|
|
+ </if>
|
|
|
+ <if test="highTechName != null" >
|
|
|
+ high_tech_name,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
@@ -293,7 +372,7 @@
|
|
|
#{unitName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="registeredCapital != null" >
|
|
|
- #{registeredCapital,jdbcType=INTEGER},
|
|
|
+ #{registeredCapital,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="licenceNumber != null" >
|
|
|
#{licenceNumber,jdbcType=VARCHAR},
|
|
|
@@ -361,29 +440,27 @@
|
|
|
<if test="wrongCount != null" >
|
|
|
#{wrongCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="paymentDate != null" >
|
|
|
+ <if test="paymentDate != null" >
|
|
|
#{paymentDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
-
|
|
|
- <if test="firstContacts!= null">
|
|
|
- #{firstContacts,jdbcType=VARCHAR},
|
|
|
+ <if test="firstContacts != null" >
|
|
|
+ #{firstContacts,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="firstMobile != null">
|
|
|
- #{firstMobile,jdbcType=VARCHAR},
|
|
|
+ <if test="firstMobile != null" >
|
|
|
+ #{firstMobile,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="secondContacts != null">
|
|
|
- #{secondContacts,jdbcType=VARCHAR},
|
|
|
+ <if test="secondContacts != null" >
|
|
|
+ #{secondContacts,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="secondMobile != null">
|
|
|
- #{secondMobile,jdbcType=VARCHAR},
|
|
|
+ <if test="secondMobile != null" >
|
|
|
+ #{secondMobile,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="thirdContacts != null">
|
|
|
- #{thirdContacts,jdbcType=VARCHAR},
|
|
|
+ <if test="thirdContacts != null" >
|
|
|
+ #{thirdContacts,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="thirdMobile != null">
|
|
|
- #{thirdMobile,jdbcType=VARCHAR},
|
|
|
+ <if test="thirdMobile != null" >
|
|
|
+ #{thirdMobile,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
-
|
|
|
<if test="listed != null" >
|
|
|
#{listed,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -396,24 +473,76 @@
|
|
|
<if test="stockCode != null" >
|
|
|
#{stockCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
-
|
|
|
- <if test="certificateNumber != null" >
|
|
|
+ <if test="certificateNumber != null" >
|
|
|
#{certificateNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="issuingDate != null" >
|
|
|
#{issuingDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
-
|
|
|
- <if test="cogContacts != null" >
|
|
|
+ <if test="cogContacts != null" >
|
|
|
#{cogContacts,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="consultant != null" >
|
|
|
#{consultant,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="contactsFixedTel != null" >
|
|
|
+ #{contactsFixedTel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contactsFax != null" >
|
|
|
+ #{contactsFax,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonTel != null" >
|
|
|
+ #{legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonFax != null" >
|
|
|
+ #{legalPersonFax,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonEmail != null" >
|
|
|
+ #{legalPersonEmail,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="registrationTime != null" >
|
|
|
+ #{registrationTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="ratepayCode != null" >
|
|
|
+ #{ratepayCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="industry != null" >
|
|
|
+ #{industry,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="enterpriseScale != null" >
|
|
|
+ #{enterpriseScale,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="registerType != null" >
|
|
|
+ #{registerType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="foreignInvestment != null" >
|
|
|
+ #{foreignInvestment,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="field != null" >
|
|
|
+ #{field,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="taxAuthority != null" >
|
|
|
+ #{taxAuthority,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ratepayMethod != null" >
|
|
|
+ #{ratepayMethod,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="highTechZone != null" >
|
|
|
+ #{highTechZone,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="riskInvestment != null" >
|
|
|
+ #{riskInvestment,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="businessScope != null" >
|
|
|
+ #{businessScope,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="highTechName != null" >
|
|
|
+ #{highTechName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
|
|
|
- update organization_identity
|
|
|
+ update organization_identity
|
|
|
<set >
|
|
|
<if test="uid != null" >
|
|
|
uid = #{uid,jdbcType=VARCHAR},
|
|
|
@@ -443,7 +572,7 @@
|
|
|
unit_name = #{unitName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="registeredCapital != null" >
|
|
|
- registered_capital = #{registeredCapital,jdbcType=INTEGER},
|
|
|
+ registered_capital = #{registeredCapital,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="licenceNumber != null" >
|
|
|
licence_number = #{licenceNumber,jdbcType=VARCHAR},
|
|
|
@@ -514,26 +643,24 @@
|
|
|
<if test="paymentDate != null" >
|
|
|
payment_date = #{paymentDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
-
|
|
|
- <if test="firstContacts!= null">
|
|
|
- first_contacts = #{firstContacts,jdbcType=VARCHAR},
|
|
|
+ <if test="firstContacts != null" >
|
|
|
+ first_contacts = #{firstContacts,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="firstMobile != null">
|
|
|
- first_mobile = #{firstMobile,jdbcType=VARCHAR},
|
|
|
+ <if test="firstMobile != null" >
|
|
|
+ first_mobile = #{firstMobile,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="secondContacts != null">
|
|
|
- second_contacts = #{secondContacts,jdbcType=VARCHAR},
|
|
|
+ <if test="secondContacts != null" >
|
|
|
+ second_contacts = #{secondContacts,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="secondMobile != null">
|
|
|
- second_mobile = #{secondMobile,jdbcType=VARCHAR},
|
|
|
+ <if test="secondMobile != null" >
|
|
|
+ second_mobile = #{secondMobile,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="thirdContacts != null">
|
|
|
- third_contacts = #{thirdContacts,jdbcType=VARCHAR},
|
|
|
+ <if test="thirdContacts != null" >
|
|
|
+ third_contacts = #{thirdContacts,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="thirdMobile != null">
|
|
|
- third_mobile = #{thirdMobile,jdbcType=VARCHAR},
|
|
|
+ <if test="thirdMobile != null" >
|
|
|
+ third_mobile = #{thirdMobile,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
-
|
|
|
<if test="listed != null" >
|
|
|
listed = #{listed,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -546,20 +673,72 @@
|
|
|
<if test="stockCode != null" >
|
|
|
stock_code = #{stockCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
-
|
|
|
- <if test="certificateNumber != null" >
|
|
|
+ <if test="certificateNumber != null" >
|
|
|
certificate_number = #{certificateNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="issuingDate != null" >
|
|
|
issuing_date = #{issuingDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
-
|
|
|
- <if test="cogContacts != null" >
|
|
|
+ <if test="cogContacts != null" >
|
|
|
cog_contacts = #{cogContacts,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="consultant != null" >
|
|
|
consultant = #{consultant,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="contactsFixedTel != null" >
|
|
|
+ contacts_fixed_tel = #{contactsFixedTel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contactsFax != null" >
|
|
|
+ contacts_fax = #{contactsFax,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonTel != null" >
|
|
|
+ legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonFax != null" >
|
|
|
+ legal_person_fax = #{legalPersonFax,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonEmail != null" >
|
|
|
+ legal_person_email = #{legalPersonEmail,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="registrationTime != null" >
|
|
|
+ registration_time = #{registrationTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="ratepayCode != null" >
|
|
|
+ ratepay_code = #{ratepayCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="industry != null" >
|
|
|
+ industry = #{industry,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="enterpriseScale != null" >
|
|
|
+ enterprise_scale = #{enterpriseScale,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="registerType != null" >
|
|
|
+ register_type = #{registerType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="foreignInvestment != null" >
|
|
|
+ foreign_investment = #{foreignInvestment,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="field != null" >
|
|
|
+ field = #{field,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="taxAuthority != null" >
|
|
|
+ tax_authority = #{taxAuthority,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ratepayMethod != null" >
|
|
|
+ ratepay_method = #{ratepayMethod,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="highTechZone != null" >
|
|
|
+ high_tech_zone = #{highTechZone,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="riskInvestment != null" >
|
|
|
+ risk_investment = #{riskInvestment,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="businessScope != null" >
|
|
|
+ business_scope = #{businessScope,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="highTechName != null" >
|
|
|
+ high_tech_name = #{highTechName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -574,7 +753,7 @@
|
|
|
postcode = #{postcode,jdbcType=VARCHAR},
|
|
|
aft_username = #{aftUsername,jdbcType=VARCHAR},
|
|
|
unit_name = #{unitName,jdbcType=VARCHAR},
|
|
|
- registered_capital = #{registeredCapital,jdbcType=INTEGER},
|
|
|
+ registered_capital = #{registeredCapital,jdbcType=DECIMAL},
|
|
|
licence_number = #{licenceNumber,jdbcType=VARCHAR},
|
|
|
licence_province = #{licenceProvince,jdbcType=VARCHAR},
|
|
|
licence_city = #{licenceCity,jdbcType=VARCHAR},
|
|
|
@@ -604,18 +783,32 @@
|
|
|
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},
|
|
|
- consultant = #{consultant,jdbcType=VARCHAR}
|
|
|
- }
|
|
|
+ consultant = #{consultant,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}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -644,5 +837,24 @@
|
|
|
from organization_identity where audit_status = 5
|
|
|
</select>
|
|
|
|
|
|
+ <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.licence_city as city, oi.licence_area as area, oi.postal_address as postalAddress,
|
|
|
+ oi.postcode, oi.contacts, oi.contact_mobile as contactMobile,
|
|
|
+ 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.ratepay_method as ratepayMethod, oi.listed, oi.high_tech_zone as highTechZone, oi.risk_investment as riskInvestment,
|
|
|
+ oi.business_scope as businessScope, oi.high_tech_name as highTechName,
|
|
|
+ ohr.id as hid, ohr.firm_total as firmTotal, ohr.tech_total as techTotal
|
|
|
+ from organization_identity oi
|
|
|
+ LEFT JOIN org_human_resource ohr
|
|
|
+ on oi.uid = ohr.uid and ohr.year = #{1}
|
|
|
+ where oi.uid = #{0}
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
</mapper>
|