mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 20:28:03 +08:00
Reduce queries after successful project creation. (#4901)
This commit is contained in:
parent
a388b6853d
commit
139211f3dd
@ -97,8 +97,7 @@ public class ProjectServiceImpl extends BaseServiceImpl implements ProjectServic
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
if (projectMapper.insert(project) > 0) {
|
if (projectMapper.insert(project) > 0) {
|
||||||
Project insertedProject = projectMapper.queryByName(name);
|
result.put(Constants.DATA_LIST, project);
|
||||||
result.put(Constants.DATA_LIST, insertedProject);
|
|
||||||
putMsg(result, Status.SUCCESS);
|
putMsg(result, Status.SUCCESS);
|
||||||
} else {
|
} else {
|
||||||
putMsg(result, Status.CREATE_PROJECT_ERROR);
|
putMsg(result, Status.CREATE_PROJECT_ERROR);
|
||||||
|
Loading…
Reference in New Issue
Block a user