|
|
@@ -469,7 +469,8 @@
|
|
|
from (select relation_id,
|
|
|
min(ct.created_time) as created_time
|
|
|
from `corp_user_tag` ct
|
|
|
- where tag_id = #{tagIdStr}) s
|
|
|
+ where tag_id = #{tagIdStr}
|
|
|
+ group by ct.relation_id) s
|
|
|
left join corp_user_follow_relation cufr on cufr.id = s.relation_id
|
|
|
left join corp_user_auth ca on ca.external_userid = cufr.corp_user_id
|
|
|
left join corp_user cu on cu.id = ca.corp_user_id where cu.user_id != 0)s
|