JPQL是这样的:
SELECT o.shqr,count(o.id) as wtshl, sum(o.chll) as chllhj,
sum(o.xyshch),max(o.xyshch),min(o.xyshch),
sum(o.chlshch),max(o.chlshch),min(o.chlshch)
FROM mygzjlbook o
group by o.shqr order by wtshl desc,chllhj desc
查询的JPQL是这样的:
SELECT o.fzhfl,count(o.id) as wtsh,sum(o.chll) chllhj,
sum(o.xyshch), max(o.xyshch),min(o.xyshch),
sum(o.chlshch), max(o.chlshch),min(o.chlshch)
FROM mygzjlbook o group by o.fzhfl order by wtsh desc,chllhj desc