Quellcode durchsuchen

fix: custom/listUser接口用户列表按ID倒序排列

skyline vor 1 Tag
Ursprung
Commit
b81dcfdbc6

+ 1 - 0
car-wash-service/src/main/java/com/kym/service/impl/UserServiceImpl.java

@@ -280,6 +280,7 @@ public class UserServiceImpl extends MPJBaseServiceImpl<UserMapper, User> implem
                 .eq(CommUtil.isNotEmptyAndNull(params.getMobilePhone()), User::getMobilePhone, params.getMobilePhone())
                 .eq(CommUtil.isNotEmptyAndNull(params.getStationId()), User::getStationId, params.getStationId())
                 .eq(CommUtil.isNotEmptyAndNull(params.getStatus()), User::getStatus, params.getStatus())
+                .orderByDesc(User::getId)
                 .list().stream().map(User::getId)
                 .toList();
         if (CommUtil.isEmptyOrNull(userIds)) {