Skip to content

Commit

Permalink
cherry pick apache#4288 to 1.3.4-prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs committed Dec 16, 2020
1 parent e6118b8 commit c159017
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ public static String convertParameterPlaceholders(String parameterString, Map<St
}
Date cronTime;
if (parameterMap != null && !parameterMap.isEmpty()) {
// replace variable ${} form,refers to the replacement of system variables and custom variables
parameterString = PlaceholderUtils.replacePlaceholders(parameterString, parameterMap, true);
}
if (parameterMap != null && null != parameterMap.get(Constants.PARAMETER_DATETIME)) {
//Get current time, schedule execute time
String cronTimeStr = parameterMap.get(Constants.PARAMETER_DATETIME);
cronTime = DateUtils.parse(cronTimeStr, Constants.PARAMETER_FORMAT_TIME);
// replace variable ${} form,refers to the replacement of system variables and custom variables
parameterString = PlaceholderUtils.replacePlaceholders(parameterString, parameterMap, true);
} else {
cronTime = new Date();
}
Expand Down

0 comments on commit c159017

Please sign in to comment.