未验证 提交 19d3f642 编写于 作者: 权妖's avatar 权妖 提交者: GitHub

[FIX-#6007]Wrong complement date (#6068)

上级 10a30978
......@@ -182,18 +182,14 @@ public class SqlTask extends AbstractTask {
sqlParameters.getLocalParametersMap(),
CommandType.of(taskExecutionContext.getCmdTypeIfComplement()),
taskExecutionContext.getScheduleTime());
if(MapUtils.isEmpty(paramsMap)){
paramsMap=new HashMap<>();
if (paramsMap == null) {
sqlBuilder.append(sql);
return new SqlBinds(sqlBuilder.toString(), sqlParamsMap);
}
if (MapUtils.isNotEmpty(taskExecutionContext.getParamsMap())){
paramsMap.putAll(taskExecutionContext.getParamsMap());
}
// spell SQL according to the final user-defined variable
if(paramsMap.isEmpty()){
sqlBuilder.append(sql);
return new SqlBinds(sqlBuilder.toString(), sqlParamsMap);
}
if (StringUtils.isNotEmpty(sqlParameters.getTitle())){
String title = ParameterUtils.convertParameterPlaceholders(sqlParameters.getTitle(),
ParamUtils.convert(paramsMap));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册