JPA 两个字段排序时间:2022-02-22 03:02:19List<Order> orders=new ArrayList<>(); orders.add(builder.asc(root.join("provider").<String> get("providerCode"))); orders.add(builder.asc(root.<String> get("country"))); query.orderBy(orders);