diff --git a/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java b/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java index 8d20888f5067adf708d26b1fafaacd0e03581804..64a68bae4ae6e02acda3a08959557cbdcb7da4e4 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))); }