From c1e941ef641f97c09d6b59646c8f4821bd121fe5 Mon Sep 17 00:00:00 2001 From: Kirs Date: Thu, 4 Mar 2021 10:46:36 +0800 Subject: [PATCH] [1.3.6-prepare][Improvement][API] create project success return project id #4927 (#4932) --- .../org/apache/dolphinscheduler/api/service/ProjectService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ProjectService.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ProjectService.java index 8f9a62000a..c982efb423 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ProjectService.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ProjectService.java @@ -88,6 +88,7 @@ public class ProjectService extends BaseService{ project.setUpdateTime(now); if (projectMapper.insert(project) > 0) { + result.put(Constants.DATA_LIST, project.getId()); putMsg(result, Status.SUCCESS); } else { putMsg(result, Status.CREATE_PROJECT_ERROR);