|
|
@@ -126,7 +126,8 @@
|
|
|
opposite_id_url, province, city, area, contact_mobile, bank_name, bank_account, bank_card_number,
|
|
|
amount_money, audit_status, process, wrong_count, payment_date, expert, celebrity,
|
|
|
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
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.UserIdentityExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -1011,14 +1012,15 @@
|
|
|
limit 0,6
|
|
|
</select>
|
|
|
<select id="selectUserIdentityByUid" resultType="com.goafanti.user.bo.UserIdentityBo">
|
|
|
- select t.id ,t.uid,u.nickname as username,t.work_unit as workUnit,t.province,t.area,t.professional_title as professionalTitle,
|
|
|
+ select t.id ,t.uid,u.nickname as username,t.work_unit as workUnit,t.province,t.area,t.professional_title as professionalTitle,
|
|
|
t.industry,t.city,u.introduction,u.head_portrait_url as headPortraitUrl,ifnull(o.x,0) as reservationCount,j.easemob_name as easemobName
|
|
|
from user_identity t left JOIN user u on t.uid = u.id
|
|
|
left join jpush_easemob_account j on t.uid=j.uid
|
|
|
left join (select count(0) as x,seller_id from t_order
|
|
|
where order_status != 4
|
|
|
group by seller_id ) o on t.uid=o.seller_id
|
|
|
- where t.uid=#{uid,jdbcType=VARCHAR}
|
|
|
+ where t.expert=1
|
|
|
+ and t.uid=#{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<select id="findUserIdentityListByPage" parameterType="String" resultType="com.goafanti.user.bo.UserIdentityBo">
|
|
|
@@ -1059,14 +1061,14 @@
|
|
|
|
|
|
<select id="findConsultantListByPage" resultType="com.goafanti.app.bo.consultantListBo">
|
|
|
select t.uid as id,t.username as username ,u.head_portrait_url as headPortraitUrl,u.introduction ,
|
|
|
- t.consultant,ifnull(x.n,0) as reservationCount
|
|
|
+ t.expert as consultant,t.celebrity,ifnull(x.n,0) as reservationCount
|
|
|
from user_identity t
|
|
|
left join `user` u on t.uid=u.id
|
|
|
left join ( select y.x as n, y.seller_id
|
|
|
from (select count( 0 ) as x,seller_id from t_order
|
|
|
where order_status != 4
|
|
|
group by seller_id)y)x on t.uid=x.seller_id
|
|
|
- where t.celebrity=1
|
|
|
+ where t.expert=2
|
|
|
<if test="page_sql!=null">
|
|
|
${page_sql}
|
|
|
</if>
|
|
|
@@ -1076,7 +1078,7 @@
|
|
|
select count(0)
|
|
|
from user_identity t
|
|
|
left join `user` u on t.uid=u.id
|
|
|
- where t.consultant=1
|
|
|
+ where t.expert=2
|
|
|
</select>
|
|
|
|
|
|
|
|
|
@@ -1090,7 +1092,7 @@
|
|
|
left join (select count(0) as x,seller_id from t_order
|
|
|
where order_status != 4
|
|
|
group by seller_id ) o on t.uid=o.seller_id
|
|
|
- where t.celebrity = 1
|
|
|
+ where t.expert=2
|
|
|
and t.uid = #{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
</mapper>
|