From 62f54eed7f25ee207bee1b4731b08263ab68aadc Mon Sep 17 00:00:00 2001 From: lilin Date: Fri, 27 Dec 2019 18:21:21 +0800 Subject: [PATCH] =?UTF-8?q?1=20Modify=20judgment=20order(=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E9=A1=BA=E5=BA=8F=EF=BC=8C=E5=85=88=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8)=202=20before=20delete=20c?= =?UTF-8?q?heck=20entity=20exist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/apache/dolphinscheduler/api/service/UdfFuncService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7b4ce63e24..df439ce38f 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 @@ -306,7 +306,7 @@ public class UdfFuncService extends BaseService{ //check exist UdfFunc udfFunc = udfFuncMapper.selectById(id); if (udfFunc == null) { - putMsg(result, Status.RESOURCE_NOT_EXIST); + putMsg(result, Status.UDF_FUNCTION_NOT_EXIST); return result; } udfFuncMapper.deleteById(id);