|
@@ -455,7 +455,7 @@
|
|
|
count(distinct iuf.friend_id_) friendNums
|
|
|
from teacher te
|
|
|
left join sys_user su on te.user_id_ = su.id_
|
|
|
- left join im_user_friend iuf on te.user_id_ = iuf.user_id_
|
|
|
+ left join im_user_friend iuf on te.user_id_ = iuf.user_id_ and iuf.client_type_ = 'TEACHER'
|
|
|
where te.lock_flag_ = 0
|
|
|
and te.customer_service_ = 1
|
|
|
and su.del_flag_ = 0
|