JPA分组查询统计
JPA分组查询统计countList professionUserList = jpaQueryFactory.select(Projections.bean(DtoProfessionUser.class, QYjUser.yjUser.profId, QYjUser.yjUser.count().as(“count”))).from(QYjUser.yjUser).groupBy(QYjUser.yjUser.profId).fetch();
原创
2022-02-17 09:56:54 ·
2617 阅读 ·
0 评论