From 0b6c294c28888fa889882dcc8e1f60648c72fe98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Wed, 25 Oct 2023 18:37:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=8E=92=E5=BA=8F=E8=A7=84=E5=88=99?= =?UTF-8?q?=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kwan/springbootkwan/controller/CsdnUserController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java b/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java index 8d20888..64a68ba 100644 --- a/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java +++ b/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java @@ -67,8 +67,7 @@ public class CsdnUserController { if (StringUtils.isNotEmpty(nickName)) { wrapper.like("nick_name", nickName); } - wrapper.orderByDesc("user_weight"); - wrapper.orderByDesc("update_time"); + wrapper.orderByDesc("user_weight").orderByDesc("update_time"); return Result.ok(CsdnUserInfoDTO.Converter.INSTANCE.from(this.csdnUserInfoService.page(pageParm, wrapper))); } -- GitLab