|
|
@@ -5,10 +5,12 @@
|
|
|
<id column="id" property="id" jdbcType="VARCHAR" />
|
|
|
<result column="uid" property="uid" jdbcType="VARCHAR" />
|
|
|
<result column="contacts" property="contacts" jdbcType="VARCHAR" />
|
|
|
+ <result column="contact_mobile" property="contactMobile" jdbcType="VARCHAR" />
|
|
|
<result column="fixed_tel" property="fixedTel" jdbcType="VARCHAR" />
|
|
|
<result column="qq" property="qq" jdbcType="VARCHAR" />
|
|
|
<result column="postal_address" property="postalAddress" jdbcType="VARCHAR" />
|
|
|
<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="licence_number" property="licenceNumber" jdbcType="VARCHAR" />
|
|
|
@@ -20,19 +22,28 @@
|
|
|
<result column="org_code_url" property="orgCodeUrl" jdbcType="VARCHAR" />
|
|
|
<result column="bank_account" property="bankAccount" jdbcType="VARCHAR" />
|
|
|
<result column="banks" property="banks" jdbcType="VARCHAR" />
|
|
|
- <result column="validation_amount" property="validationAmount" jdbcType="INTEGER" />
|
|
|
+ <result column="bank_branch" property="bankBranch" jdbcType="VARCHAR" />
|
|
|
+ <result column="bank_card_number" property="bankCardNumber" jdbcType="VARCHAR" />
|
|
|
+ <result column="validation_amount" property="validationAmount" jdbcType="DECIMAL" />
|
|
|
<result column="identity_type" property="identityType" jdbcType="INTEGER" />
|
|
|
<result column="location_province" property="locationProvince" jdbcType="VARCHAR" />
|
|
|
<result column="location_city" property="locationCity" jdbcType="VARCHAR" />
|
|
|
<result column="location_area" property="locationArea" jdbcType="VARCHAR" />
|
|
|
- <result column="audit_status" property="auditStatus" jdbcType="INTEGER" />
|
|
|
+ <result column="legal_person" property="legalPerson" jdbcType="VARCHAR" />
|
|
|
+ <result column="legal_person_id_card" property="legalPersonIdCard" jdbcType="VARCHAR" />
|
|
|
<result column="last_year_tax_report_url" property="lastYearTaxReportUrl" jdbcType="VARCHAR" />
|
|
|
+ <result column="audit_status" property="auditStatus" jdbcType="INTEGER" />
|
|
|
+ <result column="process" property="process" jdbcType="INTEGER" />
|
|
|
+ <result column="wrong_count" property="wrongCount" jdbcType="INTEGER" />
|
|
|
+ <result column="payment_date" property="paymentDate" jdbcType="TIMESTAMP" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
- id, uid, contacts, 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, validation_amount, identity_type, location_province,
|
|
|
- location_city, location_area, audit_status, last_year_tax_report_url
|
|
|
+ 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
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
@@ -46,23 +57,27 @@
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.OrganizationIdentity" >
|
|
|
insert into organization_identity (id, uid, contacts,
|
|
|
- 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,
|
|
|
- validation_amount, identity_type, location_province,
|
|
|
- location_city, location_area, audit_status,
|
|
|
- last_year_tax_report_url)
|
|
|
+ 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)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
|
|
|
- #{fixedTel,jdbcType=VARCHAR}, #{qq,jdbcType=VARCHAR}, #{postalAddress,jdbcType=VARCHAR},
|
|
|
- #{postcode,jdbcType=VARCHAR}, #{unitName,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=INTEGER},
|
|
|
- #{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},
|
|
|
- #{validationAmount,jdbcType=INTEGER}, #{identityType,jdbcType=INTEGER}, #{locationProvince,jdbcType=VARCHAR},
|
|
|
- #{locationCity,jdbcType=VARCHAR}, #{locationArea,jdbcType=VARCHAR}, #{auditStatus,jdbcType=INTEGER},
|
|
|
- #{lastYearTaxReportUrl,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},
|
|
|
+ #{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})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
|
|
|
insert into organization_identity
|
|
|
@@ -76,6 +91,9 @@
|
|
|
<if test="contacts != null" >
|
|
|
contacts,
|
|
|
</if>
|
|
|
+ <if test="contactMobile != null" >
|
|
|
+ contact_mobile,
|
|
|
+ </if>
|
|
|
<if test="fixedTel != null" >
|
|
|
fixed_tel,
|
|
|
</if>
|
|
|
@@ -88,6 +106,9 @@
|
|
|
<if test="postcode != null" >
|
|
|
postcode,
|
|
|
</if>
|
|
|
+ <if test="aftUsername != null" >
|
|
|
+ aft_username,
|
|
|
+ </if>
|
|
|
<if test="unitName != null" >
|
|
|
unit_name,
|
|
|
</if>
|
|
|
@@ -121,6 +142,12 @@
|
|
|
<if test="banks != null" >
|
|
|
banks,
|
|
|
</if>
|
|
|
+ <if test="bankBranch != null" >
|
|
|
+ bank_branch,
|
|
|
+ </if>
|
|
|
+ <if test="bankCardNumber != null" >
|
|
|
+ bank_card_number,
|
|
|
+ </if>
|
|
|
<if test="validationAmount != null" >
|
|
|
validation_amount,
|
|
|
</if>
|
|
|
@@ -136,12 +163,27 @@
|
|
|
<if test="locationArea != null" >
|
|
|
location_area,
|
|
|
</if>
|
|
|
- <if test="auditStatus != null" >
|
|
|
- audit_status,
|
|
|
+ <if test="legalPerson != null" >
|
|
|
+ legal_person,
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonIdCard != null" >
|
|
|
+ legal_person_id_card,
|
|
|
</if>
|
|
|
<if test="lastYearTaxReportUrl != null" >
|
|
|
last_year_tax_report_url,
|
|
|
</if>
|
|
|
+ <if test="auditStatus != null" >
|
|
|
+ audit_status,
|
|
|
+ </if>
|
|
|
+ <if test="process != null" >
|
|
|
+ process,
|
|
|
+ </if>
|
|
|
+ <if test="wrongCount != null" >
|
|
|
+ wrong_count,
|
|
|
+ </if>
|
|
|
+ <if test="paymentDate != null" >
|
|
|
+ payment_date,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
@@ -153,6 +195,9 @@
|
|
|
<if test="contacts != null" >
|
|
|
#{contacts,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="contactMobile != null" >
|
|
|
+ #{contactMobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="fixedTel != null" >
|
|
|
#{fixedTel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -165,6 +210,9 @@
|
|
|
<if test="postcode != null" >
|
|
|
#{postcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="aftUsername != null" >
|
|
|
+ #{aftUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="unitName != null" >
|
|
|
#{unitName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -198,8 +246,14 @@
|
|
|
<if test="banks != null" >
|
|
|
#{banks,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="bankBranch != null" >
|
|
|
+ #{bankBranch,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankCardNumber != null" >
|
|
|
+ #{bankCardNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="validationAmount != null" >
|
|
|
- #{validationAmount,jdbcType=INTEGER},
|
|
|
+ #{validationAmount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="identityType != null" >
|
|
|
#{identityType,jdbcType=INTEGER},
|
|
|
@@ -213,12 +267,27 @@
|
|
|
<if test="locationArea != null" >
|
|
|
#{locationArea,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="auditStatus != null" >
|
|
|
- #{auditStatus,jdbcType=INTEGER},
|
|
|
+ <if test="legalPerson != null" >
|
|
|
+ #{legalPerson,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonIdCard != null" >
|
|
|
+ #{legalPersonIdCard,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="lastYearTaxReportUrl != null" >
|
|
|
#{lastYearTaxReportUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="auditStatus != null" >
|
|
|
+ #{auditStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="process != null" >
|
|
|
+ #{process,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="wrongCount != null" >
|
|
|
+ #{wrongCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="paymentDate != null" >
|
|
|
+ #{paymentDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
|
|
|
@@ -230,6 +299,9 @@
|
|
|
<if test="contacts != null" >
|
|
|
contacts = #{contacts,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="contactMobile != null" >
|
|
|
+ contact_mobile = #{contactMobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="fixedTel != null" >
|
|
|
fixed_tel = #{fixedTel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -242,6 +314,9 @@
|
|
|
<if test="postcode != null" >
|
|
|
postcode = #{postcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="aftUsername != null" >
|
|
|
+ aft_username = #{aftUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="unitName != null" >
|
|
|
unit_name = #{unitName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -275,8 +350,14 @@
|
|
|
<if test="banks != null" >
|
|
|
banks = #{banks,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="bankBranch != null" >
|
|
|
+ bank_branch = #{bankBranch,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankCardNumber != null" >
|
|
|
+ bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="validationAmount != null" >
|
|
|
- validation_amount = #{validationAmount,jdbcType=INTEGER},
|
|
|
+ validation_amount = #{validationAmount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="identityType != null" >
|
|
|
identity_type = #{identityType,jdbcType=INTEGER},
|
|
|
@@ -290,12 +371,27 @@
|
|
|
<if test="locationArea != null" >
|
|
|
location_area = #{locationArea,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="auditStatus != null" >
|
|
|
- audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
+ <if test="legalPerson != null" >
|
|
|
+ legal_person = #{legalPerson,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="legalPersonIdCard != null" >
|
|
|
+ legal_person_id_card = #{legalPersonIdCard,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="lastYearTaxReportUrl != null" >
|
|
|
last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="auditStatus != null" >
|
|
|
+ audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="process != null" >
|
|
|
+ process = #{process,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="wrongCount != null" >
|
|
|
+ wrong_count = #{wrongCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="paymentDate != null" >
|
|
|
+ payment_date = #{paymentDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -303,10 +399,12 @@
|
|
|
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},
|
|
|
+ aft_username = #{aftUsername,jdbcType=VARCHAR},
|
|
|
unit_name = #{unitName,jdbcType=VARCHAR},
|
|
|
registered_capital = #{registeredCapital,jdbcType=INTEGER},
|
|
|
licence_number = #{licenceNumber,jdbcType=VARCHAR},
|
|
|
@@ -318,13 +416,20 @@
|
|
|
org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
|
|
|
bank_account = #{bankAccount,jdbcType=VARCHAR},
|
|
|
banks = #{banks,jdbcType=VARCHAR},
|
|
|
- validation_amount = #{validationAmount,jdbcType=INTEGER},
|
|
|
+ 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},
|
|
|
- last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR}
|
|
|
+ process = #{process,jdbcType=INTEGER},
|
|
|
+ wrong_count = #{wrongCount,jdbcType=INTEGER},
|
|
|
+ payment_date = #{paymentDate,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -348,6 +453,5 @@
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from organization_identity
|
|
|
-
|
|
|
</select>
|
|
|
</mapper>
|