refactor(web): 优化服务列表展示

This commit is contained in:
2023-05-18 18:27:57 +08:00
parent 6d843f1c86
commit 058af17fd7

View File

@@ -64,7 +64,7 @@ public class CloudController extends BaseController {
}) })
.groupBy(groupByField) .groupBy(groupByField)
.toMap() .toMap()
.collectValues((serviceId, services) -> new CloudServiceVO(serviceId, services.toList().toImmutable())) .collectValues((serviceId, services) -> new CloudServiceVO(serviceId, services.toSortedListBy(CloudServiceVO.Service::getServiceUpTime).toImmutable()))
.valuesView() .valuesView()
.toSortedListBy(CloudServiceVO::getName) .toSortedListBy(CloudServiceVO::getName)
.toImmutable(); .toImmutable();