[fix][dml] Also query workflow without tenant by given name (#13075)

before this, once remove user tenant, all users workflow
can not be found anymore, this patch fix this problem, make
this entrypoint can query workflow without tenant to its
users

(cherry picked from commit 6627c38be5)
This commit is contained in:
Jay Chung 2022-12-28 14:14:29 +08:00
parent f409749cb9
commit e028e640af
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@
from t_ds_process_definition pd
JOIN t_ds_user u ON pd.user_id = u.id
JOIN t_ds_project p ON pd.project_code = p.code
JOIN t_ds_tenant t ON t.id = u.tenant_id
JOIN t_ds_queue q ON t.queue_id = q.id
LEFT JOIN t_ds_tenant t ON t.id = u.tenant_id
LEFT JOIN t_ds_queue q ON t.queue_id = q.id
WHERE p.code = #{projectCode}
and pd.name = #{processDefinitionName}
</select>