|
|
@@ -1231,7 +1231,7 @@ from
|
|
|
a.order_no = b.order_no group by b.seller_id
|
|
|
) x on u.id = x.uid
|
|
|
left join( select count(*) as count, to_uid from user_interest group by to_uid) a
|
|
|
- on u.id = a.to_uid left join( select to_uid from user_interest where from_uid =#{uid,jdbcType=VARCHAR} ) b
|
|
|
+ on u.id = a.to_uid left join( select to_uid from user_interest where from_uid =#{uid,jdbcType=VARCHAR} GROUP by to_uid) b
|
|
|
on u.id = b.to_uid
|
|
|
where u.status = 0 and u.source = 1
|
|
|
and ui.expert = 1 and ui.audit_status = 2
|
|
|
@@ -1276,7 +1276,7 @@ select a.id as uid,a.nickname as username,a.head_portrait_url as personPortraitU
|
|
|
left join jt_consult_order b on a.order_no=b.order_no
|
|
|
group by b.seller_id)x on a.id=x.uid
|
|
|
left join (select count(*) as count,to_uid from user_interest group by to_uid)c on a.id=c.to_uid
|
|
|
-left join (select to_uid from user_interest where from_uid='1')d on a.id=d.to_uid
|
|
|
+left join (select to_uid from user_interest where from_uid= #{uid,jdbcType=VARCHAR} group by to_uid)d on a.id=d.to_uid
|
|
|
where a.id=#{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<select id="appConsultantList" resultType="com.goafanti.app.bo.ExpertsListBo">
|