diff --git a/escheduler-server/src/main/java/cn/escheduler/server/worker/task/sql/SqlTask.java b/escheduler-server/src/main/java/cn/escheduler/server/worker/task/sql/SqlTask.java index 89822e710c948814ac7ff7de1895e84860d2c312..3e85b55b918f1132b604109b408e3d622a87e13e 100644 --- a/escheduler-server/src/main/java/cn/escheduler/server/worker/task/sql/SqlTask.java +++ b/escheduler-server/src/main/java/cn/escheduler/server/worker/task/sql/SqlTask.java @@ -189,6 +189,12 @@ public class SqlTask extends AbstractTask { return new SqlBinds(sqlBuilder.toString(), sqlParamsMap); } + if (StringUtils.isNotEmpty(sqlParameters.getTitle())){ + String title = ParameterUtils.convertParameterPlaceholders(sqlParameters.getTitle(), ParamUtils.convert(paramsMap)); + logger.info(title); + sqlParameters.setTitle(title); + } + // special characters need to be escaped, ${} needs to be escaped String rgex = "'?\\$\\{(.*?)\\}'?"; setSqlParamsMap(sql,rgex,sqlParamsMap,paramsMap); diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue index 0ba0231f709e06cbf281b9a535a2945f1db539bf..cb8ad40a10c7a4c4f595212a74c9aff23af6f4fa 100644 --- a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue +++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue @@ -15,7 +15,7 @@