From d680308aea68e6f72768f8de101bcb77e2e332d2 Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Mon, 24 Feb 2025 14:17:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E5=A4=87=E6=95=B0=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/wfc/user/service/impl/UAccountServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());