Commit 7bc34204 by huangfusuper

。。

parent f1fed922
......@@ -60,10 +60,13 @@ public class CommandAndScriptProcessingMachine implements ProcessingMachine {
log.debug("-----执行命令初始化完成,命令为:[{}]------------",command);
scriptDto.setCommand(command);
}
if (paramAndPlaceholderDto != null) {
//执行命令参数的替换
command = PlaceholderUtils.commandReplace(command,paramAndPlaceholderDto.getParam());
log.debug("-----命令参数替换完成,命令为:[{}]------------",command);
scriptDto.setCommand(command);
}
//将脚本的携带的参数 拼接在命令后方 python test.py -sex 男 -name 张三 -age 14
log.info("---------命令及脚本参数处理完成,此节点处理数据为:[{}]-----------",scriptDto);
......
......@@ -24,8 +24,7 @@ import java.util.Date;
* 命令式方式执行的执行机
* @author huangfu
*/
@Component
@RpcService
@Slf4j
public class ImperativeExecutionImpl implements ScriptExecutorService {
private final CommandAndScriptProcessingMachine commandAndScriptProcessingMachine;
......
......@@ -19,6 +19,7 @@ import com.byit.utils.ServiceInfoUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import java.io.*;
......@@ -31,6 +32,8 @@ import java.util.*;
* 脚本执行的实现
* @author huangfu
*/
@Component
@RpcService
@Slf4j
public class ScriptExecutorServiceImpl implements ScriptExecutorService {
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment