|
|
@@ -47,8 +47,12 @@
|
|
|
<result column="consultant" jdbcType="INTEGER" property="consultant" />
|
|
|
<result column="consultation_price" jdbcType="DECIMAL" property="consultationPrice" />
|
|
|
<result column="expert_audit" jdbcType="INTEGER" property="expertAudit" />
|
|
|
- <result column="identify_name" jdbcType="INTEGER" property="identifyName" />
|
|
|
+ <result column="identify_name" jdbcType="VARCHAR" property="identifyName" />
|
|
|
<result column="consultant_type" jdbcType="INTEGER" property="consultantType" />
|
|
|
+ <result column="audit_info" jdbcType="VARCHAR" property="auditInfo" />
|
|
|
+ <result column="society_tag" jdbcType="VARCHAR" property="societyTag" />
|
|
|
+ <result column="introduction" jdbcType="VARCHAR" property="introduction" />
|
|
|
+ <result column="head_portrait_url" jdbcType="VARCHAR" property="headPortraitUrl" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
@@ -765,9 +769,6 @@
|
|
|
<if test="consultantType != null">
|
|
|
consultant_type = #{consultantType,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
- <if test="auditStatus != null">
|
|
|
- audit_status = #{auditStatus,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
<if test="releaseStatus != null">
|
|
|
release_status = #{releaseStatus,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
@@ -860,7 +861,8 @@
|
|
|
b.audit_status as auditStatus,
|
|
|
b.expert as expert,
|
|
|
b.work_unit as workUnit,
|
|
|
- b.consultant_type as consultantType
|
|
|
+ b.consultant_type as consultantType,
|
|
|
+ b.audit_info as auditInfo
|
|
|
from
|
|
|
user a left join user_identity b on
|
|
|
a.id = b.uid
|
|
|
@@ -1354,7 +1356,7 @@ from
|
|
|
u.mobile as contact_mobile, c.name as contacts, identify_name
|
|
|
from user_identity i
|
|
|
inner join user u on i.uid = u.id
|
|
|
- inner join industry_category c on c.id = i.industry
|
|
|
+ left join industry_category c on c.id = i.industry
|
|
|
where 1 = 1
|
|
|
<if test="auditStatus != null ">
|
|
|
and i.audit_status = #{auditStatus,jdbcType=VARCHAR}
|
|
|
@@ -1368,7 +1370,7 @@ from
|
|
|
<if test="expert == null ">
|
|
|
and expert > 0
|
|
|
</if>
|
|
|
- <if test="username != null">
|
|
|
+ <if test='username != null and username != ""'>
|
|
|
<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>
|
|
|
@@ -1402,9 +1404,28 @@ from
|
|
|
|
|
|
<!-- 获得用户认证信息数据 -->
|
|
|
<select id="getUserIdentityByUid" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- select *
|
|
|
+ select
|
|
|
+ u.identify_name as identify_name, i.industry as industry,
|
|
|
+ u.society_tag as society_tag,
|
|
|
+ i.sex, i.date_of_birth_year, i.date_of_birth_month,
|
|
|
+ i.id_number, i.province, i.city, i.area, i.postal_address, i.fixed_tel, i.email, i.qq,
|
|
|
+ u.mobile as contact_mobile,
|
|
|
+ u.introduction, u.audit_opinion,
|
|
|
+ i.expert, i.audit_status, i.positive_id_url, i.opposite_id_url, u.head_portrait_url,
|
|
|
+ i.education, i.major_category, i.consultant_type, i.graduate_school, i.work_unit,
|
|
|
+ i.qualification, i.professional_title, i.process, i.id, i.uid, i.audit_info
|
|
|
from `user` u
|
|
|
inner join user_identity i on u.id = i.uid
|
|
|
where u.id = #{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
+
|
|
|
+<!-- 更改用户认证(专家/顾问审核状态) -->
|
|
|
+<update id="updateauditing" parameterType="com.goafanti.common.model.UserIdentity">
|
|
|
+ update user_identity
|
|
|
+ set audit_status = #{auditStatus,jdbcType=VARCHAR}
|
|
|
+ <if test="auditInfo != null">
|
|
|
+ , audit_info = #{auditInfo,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+</update>
|
|
|
</mapper>
|