|
|
@@ -9,21 +9,30 @@
|
|
|
<result column="qq" property="qq" jdbcType="VARCHAR" />
|
|
|
<result column="postal_address" property="postalAddress" jdbcType="VARCHAR" />
|
|
|
<result column="postcode" property="postcode" 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" />
|
|
|
+ <result column="licence_province" property="licenceProvince" jdbcType="VARCHAR" />
|
|
|
+ <result column="licence_city" property="licenceCity" jdbcType="VARCHAR" />
|
|
|
+ <result column="licence_area" property="licenceArea" jdbcType="VARCHAR" />
|
|
|
+ <result column="licence_scanning_url" property="licenceScanningUrl" jdbcType="VARCHAR" />
|
|
|
+ <result column="org_code" property="orgCode" jdbcType="VARCHAR" />
|
|
|
+ <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="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="last_year_tax_report_url" property="lastYearTaxReportUrl" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
-
|
|
|
- <resultMap type="com.goafanti.user.bo.OrgIdentityBo" id="OrgIdentityBoMap">
|
|
|
- <id column="id" property="id" jdbcType="VARCHAR" />
|
|
|
- <result column="uid" property="uid" jdbcType="VARCHAR" />
|
|
|
- <result column="contacts" property="contacts" 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="email" property="email" jdbcType="VARCHAR" />
|
|
|
- </resultMap>
|
|
|
-
|
|
|
<sql id="Base_Column_List" >
|
|
|
- id, uid, contacts, fixed_tel, qq, postal_address, postcode
|
|
|
+ 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
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
@@ -38,10 +47,22 @@
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.OrganizationIdentity" >
|
|
|
insert into organization_identity (id, uid, contacts,
|
|
|
fixed_tel, qq, postal_address,
|
|
|
- postcode)
|
|
|
+ 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)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
|
|
|
#{fixedTel,jdbcType=VARCHAR}, #{qq,jdbcType=VARCHAR}, #{postalAddress,jdbcType=VARCHAR},
|
|
|
- #{postcode,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})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
|
|
|
insert into organization_identity
|
|
|
@@ -67,6 +88,60 @@
|
|
|
<if test="postcode != null" >
|
|
|
postcode,
|
|
|
</if>
|
|
|
+ <if test="unitName != null" >
|
|
|
+ unit_name,
|
|
|
+ </if>
|
|
|
+ <if test="registeredCapital != null" >
|
|
|
+ registered_capital,
|
|
|
+ </if>
|
|
|
+ <if test="licenceNumber != null" >
|
|
|
+ licence_number,
|
|
|
+ </if>
|
|
|
+ <if test="licenceProvince != null" >
|
|
|
+ licence_province,
|
|
|
+ </if>
|
|
|
+ <if test="licenceCity != null" >
|
|
|
+ licence_city,
|
|
|
+ </if>
|
|
|
+ <if test="licenceArea != null" >
|
|
|
+ licence_area,
|
|
|
+ </if>
|
|
|
+ <if test="licenceScanningUrl != null" >
|
|
|
+ licence_scanning_url,
|
|
|
+ </if>
|
|
|
+ <if test="orgCode != null" >
|
|
|
+ org_code,
|
|
|
+ </if>
|
|
|
+ <if test="orgCodeUrl != null" >
|
|
|
+ org_code_url,
|
|
|
+ </if>
|
|
|
+ <if test="bankAccount != null" >
|
|
|
+ bank_account,
|
|
|
+ </if>
|
|
|
+ <if test="banks != null" >
|
|
|
+ banks,
|
|
|
+ </if>
|
|
|
+ <if test="validationAmount != null" >
|
|
|
+ validation_amount,
|
|
|
+ </if>
|
|
|
+ <if test="identityType != null" >
|
|
|
+ identity_type,
|
|
|
+ </if>
|
|
|
+ <if test="locationProvince != null" >
|
|
|
+ location_province,
|
|
|
+ </if>
|
|
|
+ <if test="locationCity != null" >
|
|
|
+ location_city,
|
|
|
+ </if>
|
|
|
+ <if test="locationArea != null" >
|
|
|
+ location_area,
|
|
|
+ </if>
|
|
|
+ <if test="auditStatus != null" >
|
|
|
+ audit_status,
|
|
|
+ </if>
|
|
|
+ <if test="lastYearTaxReportUrl != null" >
|
|
|
+ last_year_tax_report_url,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
@@ -90,6 +165,60 @@
|
|
|
<if test="postcode != null" >
|
|
|
#{postcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="unitName != null" >
|
|
|
+ #{unitName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="registeredCapital != null" >
|
|
|
+ #{registeredCapital,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="licenceNumber != null" >
|
|
|
+ #{licenceNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="licenceProvince != null" >
|
|
|
+ #{licenceProvince,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="licenceCity != null" >
|
|
|
+ #{licenceCity,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="licenceArea != null" >
|
|
|
+ #{licenceArea,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="licenceScanningUrl != null" >
|
|
|
+ #{licenceScanningUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orgCode != null" >
|
|
|
+ #{orgCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orgCodeUrl != null" >
|
|
|
+ #{orgCodeUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankAccount != null" >
|
|
|
+ #{bankAccount,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="banks != null" >
|
|
|
+ #{banks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="validationAmount != null" >
|
|
|
+ #{validationAmount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="identityType != null" >
|
|
|
+ #{identityType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="locationProvince != null" >
|
|
|
+ #{locationProvince,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="locationCity != null" >
|
|
|
+ #{locationCity,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="locationArea != null" >
|
|
|
+ #{locationArea,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="auditStatus != null" >
|
|
|
+ #{auditStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="lastYearTaxReportUrl != null" >
|
|
|
+ #{lastYearTaxReportUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
|
|
|
@@ -113,6 +242,60 @@
|
|
|
<if test="postcode != null" >
|
|
|
postcode = #{postcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="unitName != null" >
|
|
|
+ unit_name = #{unitName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="registeredCapital != null" >
|
|
|
+ registered_capital = #{registeredCapital,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="licenceNumber != null" >
|
|
|
+ licence_number = #{licenceNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="licenceProvince != null" >
|
|
|
+ licence_province = #{licenceProvince,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="licenceCity != null" >
|
|
|
+ licence_city = #{licenceCity,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="licenceArea != null" >
|
|
|
+ licence_area = #{licenceArea,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="licenceScanningUrl != null" >
|
|
|
+ licence_scanning_url = #{licenceScanningUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orgCode != null" >
|
|
|
+ org_code = #{orgCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orgCodeUrl != null" >
|
|
|
+ org_code_url = #{orgCodeUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bankAccount != null" >
|
|
|
+ bank_account = #{bankAccount,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="banks != null" >
|
|
|
+ banks = #{banks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="validationAmount != null" >
|
|
|
+ validation_amount = #{validationAmount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="identityType != null" >
|
|
|
+ identity_type = #{identityType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="locationProvince != null" >
|
|
|
+ location_province = #{locationProvince,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="locationCity != null" >
|
|
|
+ location_city = #{locationCity,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="locationArea != null" >
|
|
|
+ location_area = #{locationArea,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="auditStatus != null" >
|
|
|
+ audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="lastYearTaxReportUrl != null" >
|
|
|
+ last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -123,7 +306,25 @@
|
|
|
fixed_tel = #{fixedTel,jdbcType=VARCHAR},
|
|
|
qq = #{qq,jdbcType=VARCHAR},
|
|
|
postal_address = #{postalAddress,jdbcType=VARCHAR},
|
|
|
- postcode = #{postcode,jdbcType=VARCHAR}
|
|
|
+ postcode = #{postcode,jdbcType=VARCHAR},
|
|
|
+ unit_name = #{unitName,jdbcType=VARCHAR},
|
|
|
+ registered_capital = #{registeredCapital,jdbcType=INTEGER},
|
|
|
+ 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},
|
|
|
+ validation_amount = #{validationAmount,jdbcType=INTEGER},
|
|
|
+ identity_type = #{identityType,jdbcType=INTEGER},
|
|
|
+ location_province = #{locationProvince,jdbcType=VARCHAR},
|
|
|
+ location_city = #{locationCity,jdbcType=VARCHAR},
|
|
|
+ location_area = #{locationArea,jdbcType=VARCHAR},
|
|
|
+ audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
+ last_year_tax_report_url = #{lastYearTaxReportUrl,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -135,10 +336,16 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="selectOrgIdentityBoByUserId" parameterType="java.lang.String" resultMap="OrgIdentityBoMap">
|
|
|
+ <select id="selectOrgIdentityBoByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgIdentityBo">
|
|
|
select t.id,t.uid,t.contacts,t.fixed_tel,t.qq,t.postal_address,t.postcode,
|
|
|
u.email from user u LEFT JOIN organization_identity t
|
|
|
on t.uid = u.id where t.uid=#{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectAllOrgIndentity" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from organization_identity
|
|
|
+
|
|
|
+ </select>
|
|
|
</mapper>
|