From 058af17fd774b918be67b14abb14a515005185f2 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Thu, 18 May 2023 18:27:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(web):=20=E4=BC=98=E5=8C=96=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=88=97=E8=A1=A8=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lanyuanxiaoyao/service/web/controller/CloudController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service-web/src/main/java/com/lanyuanxiaoyao/service/web/controller/CloudController.java b/service-web/src/main/java/com/lanyuanxiaoyao/service/web/controller/CloudController.java index ad1d6e6..a000ddd 100644 --- a/service-web/src/main/java/com/lanyuanxiaoyao/service/web/controller/CloudController.java +++ b/service-web/src/main/java/com/lanyuanxiaoyao/service/web/controller/CloudController.java @@ -64,7 +64,7 @@ public class CloudController extends BaseController { }) .groupBy(groupByField) .toMap() - .collectValues((serviceId, services) -> new CloudServiceVO(serviceId, services.toList().toImmutable())) + .collectValues((serviceId, services) -> new CloudServiceVO(serviceId, services.toSortedListBy(CloudServiceVO.Service::getServiceUpTime).toImmutable())) .valuesView() .toSortedListBy(CloudServiceVO::getName) .toImmutable();