[Bug-8760]Resource file deletion conditions (#8765)

This commit is contained in:
hjli 2022-03-15 17:26:41 +08:00 committed by GitHub
parent 563c5b3527
commit 242b5dd5b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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>