Commit b58cd813 by huangfusuper

解决参数不替换的BUG

parent 697b4c08
...@@ -100,7 +100,8 @@ public class ScriptExecutorJobTask implements TimerTask { ...@@ -100,7 +100,8 @@ public class ScriptExecutorJobTask implements TimerTask {
//获取到私有参数 //获取到私有参数
String privateParam = runParamWrapped.getPrivateParam(); String privateParam = runParamWrapped.getPrivateParam();
//替换运行参数中的时间参数 //替换运行参数中的时间参数
if (ScheduleTypeEnum.NORMAL.getCode().equals(mythJobTaskSchedule.getScheduleType())) { if (ScheduleTypeEnum.NORMAL.getCode().equals(mythJobTaskSchedule.getScheduleType())
|| ScheduleTypeEnum.REAL.getCode().equals(mythJobTaskSchedule.getScheduleType())) {
privateParam = PlaceholderUtils.formatBizDateParam(privateParam, PlaceholderEnum.DATE_PLACEHOLDER.getName(), 1); privateParam = PlaceholderUtils.formatBizDateParam(privateParam, PlaceholderEnum.DATE_PLACEHOLDER.getName(), 1);
privateParam = PlaceholderUtils.formatBizDateParam(privateParam, PlaceholderEnum.NOW_DATE_PLACEHOLDER.getName(), 0); privateParam = PlaceholderUtils.formatBizDateParam(privateParam, PlaceholderEnum.NOW_DATE_PLACEHOLDER.getName(), 0);
runParamWrapped.setPrivateParam(privateParam); runParamWrapped.setPrivateParam(privateParam);
......
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