You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/08/01 16:11:45 UTC

[GitHub] [dolphinscheduler] allen1128 commented on a change in pull request #5931: [Improvement][Dao] SQL optimization - check exist #5930

allen1128 commented on a change in pull request #5931:
URL: https://github.com/apache/dolphinscheduler/pull/5931#discussion_r680532526



##########
File path: dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
##########
@@ -1110,9 +1111,9 @@ private void importSubProcess(User loginUser, Project targetProject, ArrayNode j
 
             String subProcessJson = JSONUtils.toJsonString(processService.genProcessData(subProcess));
             //check current project has sub process
-            ProcessDefinition currentProjectSubProcess = processDefinitionMapper.queryByDefineName(targetProject.getCode(), subProcess.getName());
+            Boolean ifExist = processDefinitionMapper.existDefByProjectCodeAndDefineName(targetProject.getCode(), subProcess.getName());

Review comment:
       thanks. fixed.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org