|
|
@@ -1203,8 +1203,15 @@ order by
|
|
|
from user_identity t left JOIN `user` u on t.uid = u.id
|
|
|
left join user_interest ui on ui.to_uid=u.id
|
|
|
left join (select to_uid,count(*) as count from user_interest
|
|
|
- order by to_uid) a on ui.to_uid=u.id
|
|
|
- where t.expert=1 and ui.from_uid=#{uid,jdbcType=VARCHAR}
|
|
|
+ GROUP by to_uid) a on ui.to_uid=u.id
|
|
|
+ where 1=1
|
|
|
+ <if test="type==0">
|
|
|
+ and t.expert=1
|
|
|
+ </if>
|
|
|
+ <if test="type==1">
|
|
|
+ and t.expert=2
|
|
|
+ </if>
|
|
|
+ and ui.from_uid=#{uid,jdbcType=VARCHAR}
|
|
|
<if test="page_sql!=null">
|
|
|
${page_sql}
|
|
|
</if>
|
|
|
@@ -1213,7 +1220,14 @@ order by
|
|
|
select count(0)
|
|
|
from user_identity t left JOIN user u on t.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 1=1
|
|
|
+ <if test="type==0">
|
|
|
+ and t.expert=1
|
|
|
+ </if>
|
|
|
+ <if test="type==1">
|
|
|
+ and t.expert=2
|
|
|
+ </if>
|
|
|
+ and ui.from_uid=#{uid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<select id="selectCustomerAuditList" resultType="com.goafanti.app.bo.ExpertsListBo">
|
|
|
select u.id as uid, u.nickname as username, u.head_portrait_url as personPortraitUrl,
|