From 210570c0056c46c35bdd349a2fac558441f86f3b Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 30 三月 2023 17:36:09 +0800 Subject: [PATCH] update 优化 !pr317 代码结构 --- ruoyi-extend/ruoyi-xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/ExecutorRouteStrategyEnum.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi-extend/ruoyi-xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/ExecutorRouteStrategyEnum.java b/ruoyi-extend/ruoyi-xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/ExecutorRouteStrategyEnum.java index 7fff93a..1903b93 100644 --- a/ruoyi-extend/ruoyi-xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/ExecutorRouteStrategyEnum.java +++ b/ruoyi-extend/ruoyi-xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/ExecutorRouteStrategyEnum.java @@ -30,13 +30,14 @@ public String getTitle() { return title; } + public ExecutorRouter getRouter() { return router; } - public static ExecutorRouteStrategyEnum match(String name, ExecutorRouteStrategyEnum defaultItem){ + public static ExecutorRouteStrategyEnum match(String name, ExecutorRouteStrategyEnum defaultItem) { if (name != null) { - for (ExecutorRouteStrategyEnum item: ExecutorRouteStrategyEnum.values()) { + for (ExecutorRouteStrategyEnum item : ExecutorRouteStrategyEnum.values()) { if (item.name().equals(name)) { return item; } -- Gitblit v1.9.3