select count(*) from (select t.* , count(tt.table1_id) count
from table1 t left join table2 tt on t.id=tt.table1_id group by t.id) b;换成hibernate 的 hql
from table1 t left join table2 tt on t.id=tt.table1_id group by t.id) b;换成hibernate 的 hql
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货