String hql="from Provinces p where p.id in (select DISTINCT(a.pid) from Admin a where a.confirm=1)";
转载于:https://my.oschina.net/wrs/blog/220071
String hql="from Provinces p where p.id in (select DISTINCT(a.pid) from Admin a where a.confirm=1)";
转载于:https://my.oschina.net/wrs/blog/220071