HQL: group by 后面的参数一定要和select非聚集函数一致 where 1 要改成 where 1 = 1 转载于:https://www.cnblogs.com/zhaojinxin/p/7717508.html