diff --git a/wfc-modules/wfc-user/src/main/java/org/wfc/user/service/impl/UAccountServiceImpl.java b/wfc-modules/wfc-user/src/main/java/org/wfc/user/service/impl/UAccountServiceImpl.java index b56302f..e025a7b 100644 --- a/wfc-modules/wfc-user/src/main/java/org/wfc/user/service/impl/UAccountServiceImpl.java +++ b/wfc-modules/wfc-user/src/main/java/org/wfc/user/service/impl/UAccountServiceImpl.java @@ -284,7 +284,7 @@ public class UAccountServiceImpl extends ServiceImpl i continue; } int limitNum = currentClients.size() - account.getClientNum(); - List cancelClients = currentClients.stream().sorted(Comparator.comparing(UClientCurrentVo::getUpTime)) + List cancelClients = currentClients.stream().sorted(Comparator.comparing(UClientCurrentVo::getUpTime).reversed()) .limit(limitNum).collect(Collectors.toList()); for (UClientCurrentVo cancelClient : cancelClients) { wifiApi.cancelAuthClient(cancelClient.getSiteId(), cancelClient.getClientMac());