From a967dd43f4805f6a718e278bf7300121b67487db Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Mon, 8 Apr 2024 11:08:28 +0800 Subject: [PATCH] fix cms User order by joinTime desc --- .../src/main/java/com/luoo/user/service/UserInfoService.java | 1 + 1 file changed, 1 insertion(+) 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)); }; }