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)
.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();