feature(web): 增加未跨天未接收详情查看
This commit is contained in:
@@ -4,6 +4,7 @@ import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.lanyuanxiaoyao.service.configuration.ExecutorProvider;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.AmisResponse;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.info.JobIdAndAlias;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.yarn.YarnApplication;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.yarn.YarnRootQueue;
|
||||
import com.lanyuanxiaoyao.service.forest.service.InfoService;
|
||||
@@ -134,4 +135,21 @@ public class OverviewController extends BaseController {
|
||||
.withData("unReceive", Maps.immutable.of("normal", unReceiveNormalTableCount.get(), "focus", unReceiveFocusCount.get()))
|
||||
.withData("unSchedule", Maps.immutable.of("normal", unScheduledNormalTableCount.get(), "focus", unScheduledFocusTableCount.get()));
|
||||
}
|
||||
|
||||
@GetMapping("version_detail")
|
||||
public AmisResponse versionDetail(String target, String version) throws Exception {
|
||||
ImmutableList<JobIdAndAlias> jobIdAndAliases;
|
||||
if (StrUtil.equals("unReceive_focus", target)) {
|
||||
jobIdAndAliases = infoService.unReceiveVersionFocusTable(version);
|
||||
} else if (StrUtil.equals("unScheduled_focus", target)) {
|
||||
jobIdAndAliases = infoService.unScheduledFocusTable(version);
|
||||
} else if (StrUtil.equals("unReceive_normal", target)) {
|
||||
jobIdAndAliases = infoService.unReceiveVersionNormalTable(version);
|
||||
} else if (StrUtil.equals("unScheduled_normal", target)) {
|
||||
jobIdAndAliases = infoService.unScheduledNormalTable(version);
|
||||
} else {
|
||||
throw new Exception("Target not found " + target);
|
||||
}
|
||||
return responseCrudData(jobIdAndAliases);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user