|
@@ -127,7 +127,7 @@
|
|
|
amount_money, audit_status, process, wrong_count, payment_date, expert,
|
|
amount_money, audit_status, process, wrong_count, payment_date, expert,
|
|
|
international, fixed_tel, qq, postal_address, postcode, review_instructions, industry,
|
|
international, fixed_tel, qq, postal_address, postcode, review_instructions, industry,
|
|
|
contacts, email, professional_title, work_unit, education, major_category, qualification,
|
|
contacts, email, professional_title, work_unit, education, major_category, qualification,
|
|
|
- graduate_school, consultation_price , expert_audit
|
|
|
|
|
|
|
+ graduate_school, consultation_price
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.UserIdentityExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.UserIdentityExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
<!--
|
|
@@ -761,7 +761,7 @@
|
|
|
consultation_price = #{consultationPrice,jdbcType=DECIMAL},
|
|
consultation_price = #{consultationPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="expertAudit != null">
|
|
<if test="expertAudit != null">
|
|
|
- expert_audit = #{expertAudit,jdbcType=DECIMAL},
|
|
|
|
|
|
|
+ audit_status = #{expertAudit,jdbcType=DECIMAL},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="releaseStatus != null">
|
|
<if test="releaseStatus != null">
|
|
|
release_status = #{releaseStatus,jdbcType=DECIMAL},
|
|
release_status = #{releaseStatus,jdbcType=DECIMAL},
|
|
@@ -852,7 +852,7 @@
|
|
|
b.major_category as majorCategory,
|
|
b.major_category as majorCategory,
|
|
|
b.qualification,
|
|
b.qualification,
|
|
|
b.professional_title as professionalTitle,
|
|
b.professional_title as professionalTitle,
|
|
|
- b.expert_audit as expertAudit,
|
|
|
|
|
|
|
+ b.audit_status as expertAudit,
|
|
|
b.expert as expert,
|
|
b.expert as expert,
|
|
|
b.work_unit as workUnit
|
|
b.work_unit as workUnit
|
|
|
from
|
|
from
|
|
@@ -1059,7 +1059,7 @@
|
|
|
group by seller_id ) o on t.uid=o.seller_id
|
|
group by seller_id ) o on t.uid=o.seller_id
|
|
|
where expert=1
|
|
where expert=1
|
|
|
and u.status !=1
|
|
and u.status !=1
|
|
|
- and t.expert_audit =2
|
|
|
|
|
|
|
+ and t.audit_status =2
|
|
|
and u.source=0
|
|
and u.source=0
|
|
|
order by u.update_time desc
|
|
order by u.update_time desc
|
|
|
limit #{0}
|
|
limit #{0}
|
|
@@ -1073,7 +1073,7 @@
|
|
|
group by seller_id ) o on t.uid=o.seller_id
|
|
group by seller_id ) o on t.uid=o.seller_id
|
|
|
where expert=1
|
|
where expert=1
|
|
|
and u.status !=1
|
|
and u.status !=1
|
|
|
- and t.expert_audit =2
|
|
|
|
|
|
|
+ and t.audit_status =2
|
|
|
<if test="industry != null">
|
|
<if test="industry != null">
|
|
|
and t.industry = #{industry,jdbcType=VARCHAR}
|
|
and t.industry = #{industry,jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|
|
@@ -1209,4 +1209,66 @@ order by
|
|
|
left join user_interest ui on ui.to_uid=u.id
|
|
left join user_interest ui on ui.to_uid=u.id
|
|
|
where t.expert=1 and ui.from_uid=#{uid,jdbcType=VARCHAR}
|
|
where t.expert=1 and ui.from_uid=#{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+<!-- 获得专家顾问审核列表数据 -->
|
|
|
|
|
+<select id="getExpertAuditList" resultMap="BaseResultMap">
|
|
|
|
|
+ select
|
|
|
|
|
+ i.id, i.uid, i.username, id_number, positive_id_url, i.audit_status, expert, i.audit_status as expert_audit, fixed_tel, industry,
|
|
|
|
|
+ u.mobile as contact_mobile, c.name as contacts
|
|
|
|
|
+ from user_identity i
|
|
|
|
|
+ inner join user u on i.uid = u.id
|
|
|
|
|
+ inner join industry_category c on c.id = i.industry
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="expertAudit != null ">
|
|
|
|
|
+ and i.audit_status = #{expertAudit,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="industry != null ">
|
|
|
|
|
+ and industry = #{industry,jdbcType=INTEGER}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="expert != null ">
|
|
|
|
|
+ and expert = #{expert,jdbcType=INTEGER}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="expert == null ">
|
|
|
|
|
+ and expert > 0
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="username != null">
|
|
|
|
|
+ <bind name="un" value="'%' + username + '%'"/>
|
|
|
|
|
+ and (i.username like #{un,jdbcType=VARCHAR} or u.identify_name like #{un,jdbcType=VARCHAR} or u.nickname like #{un,jdbcType=VARCHAR} or u.username like #{un,jdbcType=VARCHAR})
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="page_sql!=null">
|
|
|
|
|
+ ${page_sql}
|
|
|
|
|
+ </if>
|
|
|
|
|
+</select>
|
|
|
|
|
+<select id="getExpertAuditListCount" resultType="java.lang.Integer">
|
|
|
|
|
+ select
|
|
|
|
|
+ count(0)
|
|
|
|
|
+ from user_identity i
|
|
|
|
|
+ inner join user u on i.uid = u.id
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="expertAudit != null ">
|
|
|
|
|
+ and i.audit_status = #{expertAudit,jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="industry != null ">
|
|
|
|
|
+ and industry = #{industry,jdbcType=INTEGER}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="expert != null ">
|
|
|
|
|
+ and expert = #{expert,jdbcType=INTEGER}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="expert == null ">
|
|
|
|
|
+ and expert > 0
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="username != null">
|
|
|
|
|
+ <bind name="un" value="'%' + username + '%'"/>
|
|
|
|
|
+ and (i.username like #{un,jdbcType=VARCHAR} or u.identify_name like #{un,jdbcType=VARCHAR} or u.nickname like #{un,jdbcType=VARCHAR} or u.username like #{un,jdbcType=VARCHAR})
|
|
|
|
|
+ </if>
|
|
|
|
|
+</select>
|
|
|
|
|
+
|
|
|
|
|
+<!-- 获得用户认证信息数据 -->
|
|
|
|
|
+<select id="getUserIdentityByUid" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
+ select *
|
|
|
|
|
+ from `user` u
|
|
|
|
|
+ inner join user_identity i on u.id = i.uid
|
|
|
|
|
+ where u.id = #{uid,jdbcType=VARCHAR}
|
|
|
|
|
+</select>
|
|
|
|
|
+
|
|
|
</mapper>
|
|
</mapper>
|