diff --git a/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java b/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java index 68bbd15892703dc62066ddd1f0cd549063edda41..3ffba55d32d90fdc79b74bfe76ddaed45ccf0170 100644 --- a/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java +++ b/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java @@ -62,7 +62,7 @@ public interface IScriptParamType { * 根据参数值获取对应的text * @return text */ - Object getTextByValue(Object value); + Object getTextByValue(Object value, JSONObject config); /** * 根据参数值获取对应给autoexec执行的参数 diff --git a/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java b/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java index e250b043dfa01d821d895326975eb8c1628d6ae8..c17e5661376027eed4f8321c3eaf6e02d6dc7e68 100755 --- a/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java +++ b/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java @@ -16,6 +16,8 @@ limitations under the License. package neatlogic.framework.autoexec.script.paramtype; +import com.alibaba.fastjson.JSONObject; + /** * @author lvzk * @since 2021/11/18 12:22 @@ -41,11 +43,11 @@ public abstract class ScriptParamTypeBase implements IScriptParamType{ * @return text */ @Override - public Object getTextByValue(Object value) { - return getMyTextByValue(value); + public Object getTextByValue(Object value, JSONObject config) { + return getMyTextByValue(value, config); } - protected Object getMyTextByValue(Object value){ + protected Object getMyTextByValue(Object value, JSONObject config){ return value; }