|
@@ -1,7 +1,7 @@
|
|
|
package cn.reghao.tnb.search.app.soa.controller;
|
|
package cn.reghao.tnb.search.app.soa.controller;
|
|
|
|
|
|
|
|
import cn.reghao.jutil.web.WebResult;
|
|
import cn.reghao.jutil.web.WebResult;
|
|
|
-import cn.reghao.tnb.search.app.soa.model.vo.SelectOption;
|
|
|
|
|
|
|
+import cn.reghao.tnb.common.db.SelectOption;
|
|
|
import cn.reghao.tnb.search.app.soa.service.LoggingService;
|
|
import cn.reghao.tnb.search.app.soa.service.LoggingService;
|
|
|
import cn.reghao.tnb.search.app.soa.service.RuntimeLogService;
|
|
import cn.reghao.tnb.search.app.soa.service.RuntimeLogService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
@@ -65,14 +65,14 @@ public class TnbLogController {
|
|
|
.map(appName -> new SelectOption(appName, appName))
|
|
.map(appName -> new SelectOption(appName, appName))
|
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
|
if (app == null) {
|
|
if (app == null) {
|
|
|
- app = appList.get(0).getKey();
|
|
|
|
|
|
|
+ app = appList.get(0).getValue();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
hostList = map.get(app).stream()
|
|
hostList = map.get(app).stream()
|
|
|
.map(host1 -> new SelectOption(host1, host1))
|
|
.map(host1 -> new SelectOption(host1, host1))
|
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
|
if (host == null) {
|
|
if (host == null) {
|
|
|
- host = hostList.get(0).getKey();
|
|
|
|
|
|
|
+ host = hostList.get(0).getValue();
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
appList = Collections.emptyList();
|
|
appList = Collections.emptyList();
|