From 15a496dd84323595bc0bef6cc479a8d3dfad00e5 Mon Sep 17 00:00:00 2001 From: lvzk <897706680@qq.com> Date: Fri, 20 Jun 2025 18:53:46 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E7=94=A8=E7=8E=AF=E5=A2=83=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E6=8E=A7=E5=88=B6runner=E7=BB=84=E8=8C=83=E5=9B=B4=20#[1437065?= =?UTF-8?q?558851584]=E8=87=AA=E5=8A=A8=E5=8C=96=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E7=94=A8=E7=8E=AF=E5=A2=83=E5=85=A5=E5=8F=A3=E6=8E=A7=E5=88=B6?= =?UTF-8?q?runner=E7=BB=84=E8=8C=83=E5=9B=B4=20http://192.168.0.96:8090/de?= =?UTF-8?q?mo/rdm.html#/story-detail/939050947543040/939050947543042/14370?= =?UTF-8?q?65558851584?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/common/config/Config.java | 7 ++ .../dao/mapper/runner/RunnerMapper.java | 2 + .../dao/mapper/runner/RunnerMapper.xml | 21 +++- .../framework/dto/runner/RunnerGroupVo.java | 10 ++ .../runner/RunnerGroupNotFoundException.java | 6 +- .../AuthenticationInfoServiceImpl.java | 17 ++- .../framework/util/AviatorEvaluatorUtil.java | 102 +++++++++++------- 7 files changed, 112 insertions(+), 53 deletions(-) diff --git a/src/main/java/neatlogic/framework/common/config/Config.java b/src/main/java/neatlogic/framework/common/config/Config.java index 03aa5e93b..72d5d2123 100644 --- a/src/main/java/neatlogic/framework/common/config/Config.java +++ b/src/main/java/neatlogic/framework/common/config/Config.java @@ -136,6 +136,8 @@ public class Config { private static String CHANGELOG_JDBC_SOCKETTIME;//changelog jdbc 读取数据时间耗时限制 + private static String HEADER_RULE_PREFIX; //请求头规则,目前用于角色和执行器组规则 + static { NEATLOGIC_HOME = System.getenv("NEATLOGIC_HOME"); if (StringUtils.isBlank(NEATLOGIC_HOME)) { @@ -476,6 +478,10 @@ public class Config { return CHANGELOG_JDBC_SOCKETTIME; } + public static String HEADER_RULE_PREFIX() { + return HEADER_RULE_PREFIX; + } + public static Properties properties = new Properties(); private void initConfigFile() { @@ -656,6 +662,7 @@ public class Config { LICENSE_WILL_EXPIRED_NOTIFY_DAY = Integer.parseInt(prop.getProperty("license.will.expired.notify.day", "30")); JWT_SECRET = prop.getProperty("jwt.secret"); + HEADER_RULE_PREFIX = prop.getProperty("header.rule.prefix", "neatlogic-rule-"); if (StringUtils.isBlank(JWT_SECRET)) { System.out.println(I18nUtils.getStaticMessage("nfcc.config.loadnacosproperties.jwtsecret")); logger.error(I18nUtils.getStaticMessage("nfcc.config.loadnacosproperties.jwtsecret")); diff --git a/src/main/java/neatlogic/framework/dao/mapper/runner/RunnerMapper.java b/src/main/java/neatlogic/framework/dao/mapper/runner/RunnerMapper.java index d4a9fdbfe..865707f03 100644 --- a/src/main/java/neatlogic/framework/dao/mapper/runner/RunnerMapper.java +++ b/src/main/java/neatlogic/framework/dao/mapper/runner/RunnerMapper.java @@ -64,6 +64,8 @@ public interface RunnerMapper { List getRunnerGroupByIdList(List idlist); + List getAllRunnerGroupList(); + RunnerGroupVo getRunnerGroupByName(String string); List getRunnerGroupByTagIdOrNameList(List tagList); diff --git a/src/main/java/neatlogic/framework/dao/mapper/runner/RunnerMapper.xml b/src/main/java/neatlogic/framework/dao/mapper/runner/RunnerMapper.xml index b1cf7f26c..2351c57ce 100644 --- a/src/main/java/neatlogic/framework/dao/mapper/runner/RunnerMapper.xml +++ b/src/main/java/neatlogic/framework/dao/mapper/runner/RunnerMapper.xml @@ -40,6 +40,7 @@ along with this program. If not, see .--> + @@ -57,6 +58,7 @@ along with this program. If not, see .--> + @@ -116,6 +118,7 @@ along with this program. If not, see .--> + +