MySql分组查询语句:
from Share as s left join fetch s.ruid Where s.ruid.ruid in(select f.friendRuid from Friends as f Where f.ruid.ruid=?) or s.ruid.ruid=? group by s.typeId,s.itemId order by count(s.content) desc
MySql分组查询语句:
from Share as s left join fetch s.ruid Where s.ruid.ruid in(select f.friendRuid from Friends as f Where f.ruid.ruid=?) or s.ruid.ruid=? group by s.typeId,s.itemId order by count(s.content) desc