From 3e46a30e12537bf8e1b00c728e2ad4391ff043f9 Mon Sep 17 00:00:00 2001 From: lgcareer <18610854716@163.com> Date: Tue, 15 Oct 2019 14:49:42 +0800 Subject: [PATCH] resole verify udf name error and delete udf error (#1024) * rename from DatasourceUserMapper to DataSourceUserMapper * add unit test in UserMapper and WorkerGroupMapper * change cn.escheduler to org.apache.dolphinscheduler * add unit test in UdfFuncMapperTest * add unit test in UdfFuncMapperTest * remove DatabaseConfiguration * add ConnectionFactoryTest * cal duration in processInstancesList * change desc to description * change table name in mysql ddl * change table name in mysql ddl * change escheduler to dolphinscheduler * change escheduler to dolphinscheduler * change escheduler to dolphinscheduler * remove log4j-1.2-api and modify AlertMapperTest * remove log4j-1.2-api * Add alertDao to spring management * Add alertDao to spring management * get SqlSessionFactory from MybatisSqlSessionFactoryBean * get processDao by DaoFactory * read druid properties in ConneciontFactory * read druid properties in ConneciontFactory * change get alertDao by spring to DaoFactory * add log4j to resolve #967 * resole verify udf name error and delete udf error --- .../org/apache/dolphinscheduler/api/service/UdfFuncService.java | 2 +- .../org/apache/dolphinscheduler/dao/mapper/UdfFuncMapper.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UdfFuncService.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UdfFuncService.java index 7f68c7f4f3..46e0b13a08 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UdfFuncService.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UdfFuncService.java @@ -297,7 +297,7 @@ public class UdfFuncService extends BaseService{ * * @param id */ - @Transactional(value = "TransactionManager", rollbackFor = Exception.class) + @Transactional(value = "transactionManager",rollbackFor = Exception.class) public Result delete(int id) { Result result = new Result(); diff --git a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/UdfFuncMapper.xml b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/UdfFuncMapper.xml index db63fe98f0..80e7c87d73 100644 --- a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/UdfFuncMapper.xml +++ b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/UdfFuncMapper.xml @@ -12,7 +12,7 @@ - and func_name = #{funcName} + and func_name = #{funcNames} order by id asc