You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ke...@apache.org on 2022/03/15 09:26:46 UTC

[dolphinscheduler] branch dev updated: [Bug-8760]Resource file deletion conditions (#8765)

This is an automated email from the ASF dual-hosted git repository.

kerwin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 242b5dd  [Bug-8760]Resource file deletion conditions (#8765)
242b5dd is described below

commit 242b5dd5b61a86c8a2baeb291d4def4d9fb07b26
Author: hjli <15...@qq.com>
AuthorDate: Tue Mar 15 17:26:41 2022 +0800

    [Bug-8760]Resource file deletion conditions (#8765)
---
 .../apache/dolphinscheduler/dao/mapper/ProcessDefinitionMapper.xml    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessDefinitionMapper.xml b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessDefinitionMapper.xml
index 891c6e3..d5117aa 100644
--- a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessDefinitionMapper.xml
+++ b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessDefinitionMapper.xml
@@ -145,7 +145,7 @@
                 and ptr.project_code=pd.project_code and  pd.release_state = 1
         join t_ds_task_definition td
             on (ptr.pre_task_code=td.code and ptr.pre_task_version=td.version)
-                or  (ptr.pre_task_code=td.code and ptr.pre_task_version=td.version)
+                or  (ptr.post_task_code=td.code and ptr.post_task_version=td.version)
         WHERE  td.resource_ids is not null and td.resource_ids != ''
     </select>
 
@@ -157,7 +157,7 @@
                 and ptr.project_code=pd.project_code and  pd.release_state = 1
         join t_ds_task_definition td
             on (ptr.pre_task_code=td.code and ptr.pre_task_version=td.version)
-                or  (ptr.pre_task_code=td.code and ptr.pre_task_version=td.version)
+                or  (ptr.post_task_code=td.code and ptr.post_task_version=td.version)
         WHERE  td.resource_ids is not null and td.resource_ids != '' and  td.user_id = #{userId}
     </select>