mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 19:27:38 +08:00
fix date_convert null
This commit is contained in:
parent
d7b3936205
commit
9d6ad4d883
@ -66,11 +66,13 @@ public class ParameterUtils {
|
||||
}
|
||||
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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user