|
|
@@ -2,11 +2,6 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.goafanti.common.dao.OrganizationIdentityMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.goafanti.common.model.OrganizationIdentity">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 04 17:27:08 CST 2021.
|
|
|
- -->
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="uid" jdbcType="VARCHAR" property="uid" />
|
|
|
<result column="contacts" jdbcType="VARCHAR" property="contacts" />
|
|
|
@@ -75,22 +70,11 @@
|
|
|
<result column="assets" jdbcType="DECIMAL" property="assets" />
|
|
|
<result column="qualification" jdbcType="VARCHAR" property="qualification" />
|
|
|
<result column="cooperation_situation" jdbcType="VARCHAR" property="cooperationSituation" />
|
|
|
+ <result column="honor_picture" jdbcType="VARCHAR" property="honorPicture" />
|
|
|
<result column="sales_target" jdbcType="VARCHAR" property="salesTarget" />
|
|
|
- </resultMap>
|
|
|
- <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.goafanti.common.model.OrganizationIdentity">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 04 17:27:08 CST 2021.
|
|
|
- -->
|
|
|
- <result column="honor_picture" jdbcType="LONGVARCHAR" property="honorPicture" />
|
|
|
+ <result column="intended_project" jdbcType="VARCHAR" property="intendedProject" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 04 17:27:08 CST 2021.
|
|
|
- -->
|
|
|
id, `uid`, contacts, contact_mobile, fixed_tel, qq, postal_address, postcode, 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,
|
|
|
@@ -102,105 +86,75 @@
|
|
|
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,
|
|
|
international, review_instructions, investment, year_sales_amount, last_year_research_amount,
|
|
|
- assets, qualification, cooperation_situation, sales_target
|
|
|
- </sql>
|
|
|
- <sql id="Blob_Column_List">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 04 17:27:08 CST 2021.
|
|
|
- -->
|
|
|
- honor_picture
|
|
|
+ assets, qualification, cooperation_situation, honor_picture, sales_target, intended_project
|
|
|
</sql>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 04 17:27:08 CST 2021.
|
|
|
- -->
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
- ,
|
|
|
- <include refid="Blob_Column_List" />
|
|
|
from organization_identity
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 04 17:27:08 CST 2021.
|
|
|
- -->
|
|
|
delete from organization_identity
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="com.goafanti.common.model.OrganizationIdentity">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 04 17:27:08 CST 2021.
|
|
|
- -->
|
|
|
- insert into organization_identity (id, `uid`, contacts,
|
|
|
- contact_mobile, fixed_tel, qq,
|
|
|
- postal_address, postcode, 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, listed, listed_date,
|
|
|
- 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,
|
|
|
- register_type, foreign_investment, field,
|
|
|
- tax_authority, ratepay_method, high_tech_zone,
|
|
|
- risk_investment, business_scope, high_tech_name,
|
|
|
- patent_prory_statement_url, international,
|
|
|
- review_instructions, investment, year_sales_amount,
|
|
|
- last_year_research_amount, assets, qualification,
|
|
|
- cooperation_situation, sales_target, honor_picture
|
|
|
+ <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.OrganizationIdentity" useGeneratedKeys="true">
|
|
|
+ insert into organization_identity (id,`uid`, contacts, contact_mobile,
|
|
|
+ fixed_tel, qq, postal_address,
|
|
|
+ postcode, 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, listed,
|
|
|
+ listed_date, 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, register_type, foreign_investment,
|
|
|
+ field, tax_authority, ratepay_method,
|
|
|
+ high_tech_zone, risk_investment, business_scope,
|
|
|
+ high_tech_name, patent_prory_statement_url,
|
|
|
+ international, review_instructions, investment,
|
|
|
+ year_sales_amount, last_year_research_amount,
|
|
|
+ assets, qualification, cooperation_situation,
|
|
|
+ honor_picture, sales_target, intended_project
|
|
|
)
|
|
|
- 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}, #{unitName,jdbcType=VARCHAR},
|
|
|
- #{registeredCapital,jdbcType=DECIMAL}, #{licenceNumber,jdbcType=VARCHAR}, #{licenceProvince,jdbcType=INTEGER},
|
|
|
- #{licenceCity,jdbcType=INTEGER}, #{licenceArea,jdbcType=INTEGER}, #{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=INTEGER},
|
|
|
- #{locationCity,jdbcType=INTEGER}, #{locationArea,jdbcType=INTEGER}, #{legalPerson,jdbcType=VARCHAR},
|
|
|
- #{legalPersonIdCard,jdbcType=VARCHAR}, #{lastYearTaxReportUrl,jdbcType=VARCHAR},
|
|
|
- #{auditStatus,jdbcType=INTEGER}, #{process,jdbcType=INTEGER}, #{wrongCount,jdbcType=INTEGER},
|
|
|
- #{paymentDate,jdbcType=TIMESTAMP}, #{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},
|
|
|
- #{legalPersonFax,jdbcType=VARCHAR}, #{legalPersonEmail,jdbcType=VARCHAR}, #{registrationTime,jdbcType=TIMESTAMP},
|
|
|
- #{ratepayCode,jdbcType=VARCHAR}, #{industry,jdbcType=INTEGER}, #{enterpriseScale,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},
|
|
|
- #{patentProryStatementUrl,jdbcType=VARCHAR}, #{international,jdbcType=INTEGER},
|
|
|
- #{reviewInstructions,jdbcType=VARCHAR}, #{investment,jdbcType=INTEGER}, #{yearSalesAmount,jdbcType=DECIMAL},
|
|
|
- #{lastYearResearchAmount,jdbcType=DECIMAL}, #{assets,jdbcType=DECIMAL}, #{qualification,jdbcType=VARCHAR},
|
|
|
- #{cooperationSituation,jdbcType=VARCHAR}, #{salesTarget,jdbcType=VARCHAR}, #{honorPicture,jdbcType=LONGVARCHAR}
|
|
|
+ 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}, #{unitName,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=DECIMAL},
|
|
|
+ #{licenceNumber,jdbcType=VARCHAR}, #{licenceProvince,jdbcType=INTEGER}, #{licenceCity,jdbcType=INTEGER},
|
|
|
+ #{licenceArea,jdbcType=INTEGER}, #{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=INTEGER}, #{locationCity,jdbcType=INTEGER},
|
|
|
+ #{locationArea,jdbcType=INTEGER}, #{legalPerson,jdbcType=VARCHAR}, #{legalPersonIdCard,jdbcType=VARCHAR},
|
|
|
+ #{lastYearTaxReportUrl,jdbcType=VARCHAR}, #{auditStatus,jdbcType=INTEGER}, #{process,jdbcType=INTEGER},
|
|
|
+ #{wrongCount,jdbcType=INTEGER}, #{paymentDate,jdbcType=TIMESTAMP}, #{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}, #{legalPersonFax,jdbcType=VARCHAR}, #{legalPersonEmail,jdbcType=VARCHAR},
|
|
|
+ #{registrationTime,jdbcType=TIMESTAMP}, #{ratepayCode,jdbcType=VARCHAR}, #{industry,jdbcType=INTEGER},
|
|
|
+ #{enterpriseScale,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}, #{patentProryStatementUrl,jdbcType=VARCHAR},
|
|
|
+ #{international,jdbcType=INTEGER}, #{reviewInstructions,jdbcType=VARCHAR}, #{investment,jdbcType=INTEGER},
|
|
|
+ #{yearSalesAmount,jdbcType=DECIMAL}, #{lastYearResearchAmount,jdbcType=DECIMAL},
|
|
|
+ #{assets,jdbcType=DECIMAL}, #{qualification,jdbcType=VARCHAR}, #{cooperationSituation,jdbcType=VARCHAR},
|
|
|
+ #{honorPicture,jdbcType=VARCHAR}, #{salesTarget,jdbcType=VARCHAR}, #{intendedProject,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationIdentity">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 04 17:27:08 CST 2021.
|
|
|
- -->
|
|
|
+ <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.OrganizationIdentity" useGeneratedKeys="true">
|
|
|
insert into organization_identity
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
- id,
|
|
|
+ `id`,
|
|
|
</if>
|
|
|
<if test="uid != null">
|
|
|
`uid`,
|
|
|
@@ -403,11 +357,14 @@
|
|
|
<if test="cooperationSituation != null">
|
|
|
cooperation_situation,
|
|
|
</if>
|
|
|
+ <if test="honorPicture != null">
|
|
|
+ honor_picture,
|
|
|
+ </if>
|
|
|
<if test="salesTarget != null">
|
|
|
sales_target,
|
|
|
</if>
|
|
|
- <if test="honorPicture != null">
|
|
|
- honor_picture,
|
|
|
+ <if test="intendedProject != null">
|
|
|
+ intended_project,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
@@ -615,20 +572,18 @@
|
|
|
<if test="cooperationSituation != null">
|
|
|
#{cooperationSituation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="honorPicture != null">
|
|
|
+ #{honorPicture,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="salesTarget != null">
|
|
|
#{salesTarget,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="honorPicture != null">
|
|
|
- #{honorPicture,jdbcType=LONGVARCHAR},
|
|
|
+ <if test="intendedProject != null">
|
|
|
+ #{intendedProject,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationIdentity">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 04 17:27:08 CST 2021.
|
|
|
- -->
|
|
|
update organization_identity
|
|
|
<set>
|
|
|
<if test="uid != null">
|
|
|
@@ -832,99 +787,19 @@
|
|
|
<if test="cooperationSituation != null">
|
|
|
cooperation_situation = #{cooperationSituation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="honorPicture != null">
|
|
|
+ honor_picture = #{honorPicture,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="salesTarget != null">
|
|
|
sales_target = #{salesTarget,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="honorPicture != null">
|
|
|
- honor_picture = #{honorPicture,jdbcType=LONGVARCHAR},
|
|
|
+ <if test="intendedProject != null">
|
|
|
+ intended_project = #{intendedProject,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.goafanti.common.model.OrganizationIdentity">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 04 17:27:08 CST 2021.
|
|
|
- -->
|
|
|
- update organization_identity
|
|
|
- set `uid` = #{uid,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},
|
|
|
- unit_name = #{unitName,jdbcType=VARCHAR},
|
|
|
- registered_capital = #{registeredCapital,jdbcType=DECIMAL},
|
|
|
- licence_number = #{licenceNumber,jdbcType=VARCHAR},
|
|
|
- licence_province = #{licenceProvince,jdbcType=INTEGER},
|
|
|
- licence_city = #{licenceCity,jdbcType=INTEGER},
|
|
|
- licence_area = #{licenceArea,jdbcType=INTEGER},
|
|
|
- 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=INTEGER},
|
|
|
- location_city = #{locationCity,jdbcType=INTEGER},
|
|
|
- location_area = #{locationArea,jdbcType=INTEGER},
|
|
|
- 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},
|
|
|
- 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},
|
|
|
- tech_principal = #{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=VARCHAR},
|
|
|
- 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},
|
|
|
- international = #{international,jdbcType=INTEGER},
|
|
|
- review_instructions = #{reviewInstructions,jdbcType=VARCHAR},
|
|
|
- investment = #{investment,jdbcType=INTEGER},
|
|
|
- year_sales_amount = #{yearSalesAmount,jdbcType=DECIMAL},
|
|
|
- last_year_research_amount = #{lastYearResearchAmount,jdbcType=DECIMAL},
|
|
|
- assets = #{assets,jdbcType=DECIMAL},
|
|
|
- qualification = #{qualification,jdbcType=VARCHAR},
|
|
|
- cooperation_situation = #{cooperationSituation,jdbcType=VARCHAR},
|
|
|
- sales_target = #{salesTarget,jdbcType=VARCHAR},
|
|
|
- honor_picture = #{honorPicture,jdbcType=LONGVARCHAR}
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrganizationIdentity">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 04 17:27:08 CST 2021.
|
|
|
- -->
|
|
|
update organization_identity
|
|
|
set `uid` = #{uid,jdbcType=VARCHAR},
|
|
|
contacts = #{contacts,jdbcType=VARCHAR},
|
|
|
@@ -993,7 +868,9 @@
|
|
|
assets = #{assets,jdbcType=DECIMAL},
|
|
|
qualification = #{qualification,jdbcType=VARCHAR},
|
|
|
cooperation_situation = #{cooperationSituation,jdbcType=VARCHAR},
|
|
|
- sales_target = #{salesTarget,jdbcType=VARCHAR}
|
|
|
+ honor_picture = #{honorPicture,jdbcType=VARCHAR},
|
|
|
+ sales_target = #{salesTarget,jdbcType=VARCHAR},
|
|
|
+ intended_project = #{intendedProject,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<select id="selectOrgIdentityByUserId" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
@@ -1005,7 +882,7 @@
|
|
|
|
|
|
|
|
|
<select id="selectOrgIdentityBoByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgIdentityBo">
|
|
|
- select
|
|
|
+ select
|
|
|
t.id,t.uid,t.contacts,t.fixed_tel as fixedTel,
|
|
|
t.qq,t.postal_address
|
|
|
as postalAddress ,t.postcode,
|
|
|
@@ -1020,7 +897,7 @@
|
|
|
<select id="selectAllOrgIndentity" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgUnitNames">
|
|
|
select u.id as uid, i.unit_name as unitName
|
|
|
from user u INNER JOIN
|
|
|
- organization_identity i on u.id = i.uid
|
|
|
+ organization_identity i on u.id = i.uid
|
|
|
where
|
|
|
i.audit_status = 5
|
|
|
and u.lvl > 0
|
|
|
@@ -1071,24 +948,24 @@
|
|
|
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
|
|
|
+ select
|
|
|
id, uid, unit_name as unitName, identity_type as identityType,
|
|
|
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,
|
|
|
+ validation_amount as validationAmount, payment_date as paymentDate, audit_status as auditStatus,
|
|
|
last_year_tax_report_url as lastYearTaxReportUrl
|
|
|
- from organization_identity
|
|
|
+ from organization_identity
|
|
|
where uid = #{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<select id="selectAuditorOrgIdentityDetailByUserId" resultType="com.goafanti.user.bo.AuditorOrgIdentityDetailBo">
|
|
|
- select
|
|
|
+ select
|
|
|
u.aid, u.mid, u.lvl,
|
|
|
oi.id, oi.uid, oi.unit_name as unitName, oi.identity_type as identityType,
|
|
|
oi.legal_person as legalPerson, oi.legal_person_id_card as legalPersonIdCard, oi.registration_time as registrationTime,
|
|
|
@@ -1099,49 +976,49 @@
|
|
|
oi.validation_amount as validationAmount, oi.payment_date as paymentDate, oi.audit_status as auditStatus,
|
|
|
oi.last_year_tax_report_url as lastYearTaxReportUrl, oi.field, oi.registered_capital as registeredCapital,
|
|
|
ratepay.id as ratepayId
|
|
|
- from user u
|
|
|
+ from user u
|
|
|
LEFT JOIN organization_identity oi on oi.uid = u.id
|
|
|
LEFT JOIN org_ratepay ratepay on ratepay.uid = u.id and ratepay.year = #{year,jdbcType=INTEGER} and deleted_sign = 0
|
|
|
where u.id = #{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectManagerUnitNames" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgUnitNames">
|
|
|
select u.id as uid, i.unit_name as unitName
|
|
|
from user u INNER JOIN
|
|
|
- organization_identity i on u.id = i.uid
|
|
|
+ organization_identity i on u.id = i.uid
|
|
|
where u.lvl = 1
|
|
|
<if test="_parameter != null">
|
|
|
and u.mid = #{aid,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectManagerAchievementOrgOwner" resultType="com.goafanti.user.bo.OrgUnitNames">
|
|
|
select u.id as uid, i.unit_name as unitName
|
|
|
from user u INNER JOIN
|
|
|
- organization_identity i on u.id = i.uid
|
|
|
+ organization_identity i on u.id = i.uid
|
|
|
where u.lvl = 1 and i.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
|
|
|
<if test="aid != null">
|
|
|
and u.mid = #{aid,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectAchievementOrgOwner" resultType="com.goafanti.user.bo.OrgUnitNames">
|
|
|
select u.id as uid, i.unit_name as unitName
|
|
|
from user u INNER JOIN
|
|
|
- organization_identity i on u.id = i.uid
|
|
|
+ organization_identity i on u.id = i.uid
|
|
|
where u.lvl = 1 and i.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
|
|
|
<if test="aid != null">
|
|
|
and u.aid = #{aid,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<select id="findSearchSubscriberListByPage" parameterType="String" resultType="com.goafanti.portal.bo.OrgSubscriberListBo">
|
|
|
SELECT
|
|
|
- u.id as uid,
|
|
|
- oi.unit_name as unitName,
|
|
|
+ u.id as uid,
|
|
|
+ oi.unit_name as unitName,
|
|
|
u.number,
|
|
|
- oi.id as identityId,
|
|
|
+ oi.id as identityId,
|
|
|
info.logo_url as logoUrl,
|
|
|
oi.licence_province as province,
|
|
|
adc.achievement_count as achievementNum,
|
|
|
@@ -1155,7 +1032,7 @@
|
|
|
WHERE
|
|
|
u.type = 1
|
|
|
<if test="null != level and level==1 ">
|
|
|
- AND u.lvl <![CDATA[ >= ]]> 1
|
|
|
+ AND u.lvl <![CDATA[ >= ]]> 1
|
|
|
</if>
|
|
|
<if test="null !=level and level==0">
|
|
|
AND u.lvl = 0
|
|
|
@@ -1175,14 +1052,14 @@
|
|
|
<if test="name != null">
|
|
|
AND oi.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
|
|
|
</if>
|
|
|
- ORDER BY u.number
|
|
|
+ ORDER BY u.number
|
|
|
<if test="page_sql!=null">
|
|
|
${page_sql}
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="findSearchSubscriberCount" parameterType="String" resultType="java.lang.Integer">
|
|
|
- SELECT
|
|
|
+ SELECT
|
|
|
count(1)
|
|
|
FROM
|
|
|
<![CDATA[ user ]]> u
|
|
|
@@ -1192,7 +1069,7 @@
|
|
|
WHERE
|
|
|
u.type = 1
|
|
|
<if test="null != level and level==1 ">
|
|
|
- AND u.lvl <![CDATA[ >= ]]> 1
|
|
|
+ AND u.lvl <![CDATA[ >= ]]> 1
|
|
|
</if>
|
|
|
<if test="null !=level and level==0">
|
|
|
AND u.lvl = 0
|
|
|
@@ -1213,9 +1090,9 @@
|
|
|
AND oi.unit_name like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<update id="updateServiceByUid" parameterType="com.goafanti.common.model.OrganizationIdentity">
|
|
|
-
|
|
|
+
|
|
|
update organization_identity
|
|
|
<set>
|
|
|
<if test="contacts != null">
|
|
|
@@ -1303,7 +1180,7 @@
|
|
|
audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="process != null">
|
|
|
- process = #{process,jdbcType=INTEGER},
|
|
|
+ `process` = #{process,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="wrongCount != null">
|
|
|
wrong_count = #{wrongCount,jdbcType=INTEGER},
|
|
|
@@ -1416,15 +1293,24 @@
|
|
|
<if test="cooperationSituation != null">
|
|
|
cooperation_situation = #{cooperationSituation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="honorPicture != null">
|
|
|
+ honor_picture = #{honorPicture,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="salesTarget != null">
|
|
|
+ sales_target = #{salesTarget,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="intendedProject != null">
|
|
|
+ intended_project = #{intendedProject,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where uid = #{uid,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertBatch" parameterType="com.goafanti.user.bo.InputUserChannel">
|
|
|
INSERT INTO organization_identity
|
|
|
(id, uid, contacts, contact_mobile,location_province,location_city)VALUES
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
- (UUID(), #{item.uid,jdbcType=VARCHAR}, #{item.contacts,jdbcType=VARCHAR},
|
|
|
+ (UUID(), #{item.uid,jdbcType=VARCHAR}, #{item.contacts,jdbcType=VARCHAR},
|
|
|
#{item.contactMobile,jdbcType=VARCHAR}, #{item.province,jdbcType=TIMESTAMP}, #{item.city,jdbcType=TIMESTAMP})
|
|
|
</foreach>
|
|
|
</insert>
|