Commit cf9123a9 by huangfusuper

参数包装

parent 4f7e9481
......@@ -1421,10 +1421,23 @@ public class ApiFlowServiceImpl implements ApiFlowService {
if(placeholder == null){
placeholder = new HashMap<>(8);
}
String nowDateFormatPlaceholder = placeholder.get(PlaceholderEnum.NOW_DATE_PLACEHOLDER.getName());
if(StringUtils.isBlank(nowDateFormatPlaceholder)) {
nowDateFormatPlaceholder = "yyyyMMdd";
}
String nowDateFormatParam = param.get(PlaceholderEnum.NOW_DATE_PLACEHOLDER.getName());
if(StringUtils.isBlank(nowDateFormatPlaceholder)) {
nowDateFormatPlaceholder = "yyyyMMdd";
}
param.put(PlaceholderEnum.DATE_PLACEHOLDER.getName(), repairTime);
param.put(PlaceholderEnum.NOW_DATE_PLACEHOLDER.getName(), repairTime);
param.put(PlaceholderEnum.NOW_DATE_PLACEHOLDER.getName(), DateUtil.format(new Date(),nowDateFormatParam));
placeholder.put(PlaceholderEnum.DATE_PLACEHOLDER.getName(), repairTime);
placeholder.put(PlaceholderEnum.NOW_DATE_PLACEHOLDER.getName(), repairTime);
placeholder.put(PlaceholderEnum.NOW_DATE_PLACEHOLDER.getName(), DateUtil.format(new Date(),nowDateFormatPlaceholder));
scriptParamAndPlaceholderDto.setParam(param);
scriptParamAndPlaceholderDto.setPlaceholder(placeholder);
......
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