diff --git a/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java b/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java index 1697518..fbdc8ef 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java @@ -391,6 +391,7 @@ public class UserInfoService { queryReq.getCreateDateEnd())); } Predicate[] predicates = new Predicate[predicateList.size()]; + criteriaQuery.orderBy(criteriaBuilder.desc(root.get("joinTime").as(Date.class))); return criteriaBuilder.and(predicateList.toArray(predicates)); }; }