|
|
@@ -36,6 +36,13 @@
|
|
|
<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" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, uid, contacts, contact_mobile, fixed_tel, qq, postal_address, postcode, aft_username,
|
|
|
@@ -43,7 +50,7 @@
|
|
|
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
|
|
|
+ payment_date, first_contacts, first_mobile, second_contacts, second_mobile, third_contacts ,third_mobile
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
@@ -66,7 +73,10 @@
|
|
|
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)
|
|
|
+ audit_status, process, wrong_count, payment_date,
|
|
|
+ first_contacts, first_mobile, second_contacts,
|
|
|
+ second_mobile, third_contacts ,third_mobile
|
|
|
+ )
|
|
|
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},
|
|
|
@@ -77,7 +87,10 @@
|
|
|
#{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})
|
|
|
+ #{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}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
|
|
|
insert into organization_identity
|
|
|
@@ -184,6 +197,25 @@
|
|
|
<if test="paymentDate != null" >
|
|
|
payment_date,
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="firstContacts!= null">
|
|
|
+ first_contacts,
|
|
|
+ </if>
|
|
|
+ <if test="firstMobile != null">
|
|
|
+ first_mobile,
|
|
|
+ </if>
|
|
|
+ <if test="secondContacts != null">
|
|
|
+ second_contacts,
|
|
|
+ </if>
|
|
|
+ <if test="secondMobile != null">
|
|
|
+ second_mobile,
|
|
|
+ </if>
|
|
|
+ <if test="thirdContacts != null">
|
|
|
+ third_contacts,
|
|
|
+ </if>
|
|
|
+ <if test="thirdMobile != null">
|
|
|
+ third_mobile,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
@@ -288,6 +320,25 @@
|
|
|
<if test="paymentDate != null" >
|
|
|
#{paymentDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="firstContacts!= null">
|
|
|
+ #{firstContacts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="firstMobile != null">
|
|
|
+ #{firstMobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="secondContacts != null">
|
|
|
+ #{secondContacts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="secondMobile != null">
|
|
|
+ #{secondMobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="thirdContacts != null">
|
|
|
+ #{thirdContacts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="thirdMobile != null">
|
|
|
+ #{thirdMobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationIdentity" >
|
|
|
@@ -392,6 +443,25 @@
|
|
|
<if test="paymentDate != null" >
|
|
|
payment_date = #{paymentDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="firstContacts!= null">
|
|
|
+ first_contacts = #{firstContacts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="firstMobile != null">
|
|
|
+ first_mobile = #{firstMobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="secondContacts != null">
|
|
|
+ second_contacts = #{secondContacts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="secondMobile != null">
|
|
|
+ second_mobile = #{secondMobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="thirdContacts != null">
|
|
|
+ third_contacts = #{thirdContacts,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="thirdMobile != null">
|
|
|
+ third_mobile = #{thirdMobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -429,7 +499,14 @@
|
|
|
audit_status = #{auditStatus,jdbcType=INTEGER},
|
|
|
process = #{process,jdbcType=INTEGER},
|
|
|
wrong_count = #{wrongCount,jdbcType=INTEGER},
|
|
|
- payment_date = #{paymentDate,jdbcType=TIMESTAMP}
|
|
|
+ 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}
|
|
|
+ }
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -443,7 +520,11 @@
|
|
|
|
|
|
<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 as postalAddress ,t.postcode,
|
|
|
- u.email ,t.legal_person as legalPerson from user u LEFT JOIN organization_identity t
|
|
|
+ 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
|
|
|
where t.uid=#{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
@@ -453,4 +534,64 @@
|
|
|
<include refid="Base_Column_List" />
|
|
|
from organization_identity
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="findOrgListByPage" parameterType="String" resultType="com.goafanti.user.bo.OrgListBo">
|
|
|
+ select u.id ,u.mobile, u.email, u.create_time as createTime,
|
|
|
+ u.number , o.audit_status as auditStatus
|
|
|
+ from user u LEFT JOIN organization_identity o
|
|
|
+ ON u.id = o.uid
|
|
|
+ WHERE u.type = 1
|
|
|
+ <if test = "mobile != null">
|
|
|
+ and u.mobile = #{mobile,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test = "email != null">
|
|
|
+ and u.email = #{email,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test = "pStart != null" >
|
|
|
+ and u.create_time <![CDATA[ > ]]> #{pStart,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test = "pEnd != null">
|
|
|
+ and u.create_time <![CDATA[ < ]]> #{pEnd,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test=" number != null">
|
|
|
+ and u.number = #{number,jdbcType=Integer}
|
|
|
+ </if>
|
|
|
+ <if test="auditStatus != null">
|
|
|
+ and o.audit_status= #{auditStatus,jdbcType=Integer}
|
|
|
+ </if>
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findOrgCount" resultType="java.lang.Integer" parameterType="String">
|
|
|
+ select count(1) from (
|
|
|
+ select u.id ,u.mobile, u.email, u.create_time as createTime,
|
|
|
+ u.number , o.audit_status as auditStatus
|
|
|
+ from user u LEFT JOIN organization_identity o
|
|
|
+ ON u.id = o.uid
|
|
|
+ WHERE u.type = 1
|
|
|
+ <if test = "mobile != null">
|
|
|
+ and u.mobile = #{mobile,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test = "email != null">
|
|
|
+ and u.email = #{email,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test = "pStart != null" >
|
|
|
+ and u.create_time <![CDATA[ > ]]> #{pStart,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test = "pEnd != null">
|
|
|
+ and u.create_time <![CDATA[ < ]]> #{pEnd,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test=" number != null">
|
|
|
+ and u.number = #{number,jdbcType=Integer}
|
|
|
+ </if>
|
|
|
+ <if test="auditStatus != null">
|
|
|
+ and o.audit_status= #{auditStatus,jdbcType=Integer}
|
|
|
+ </if>
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
+ ) as total
|
|
|
+ </select>
|
|
|
</mapper>
|