This commit is contained in:
yumoqing 2026-03-15 21:10:04 +08:00
parent 568466961b
commit 4687856af5

View File

@ -513,10 +513,10 @@ async def list_org_instances(request, flow_def_id=None):
sql = """select b.name, a.*
from flow_instance a, flow_definition b
where a.flow_def_id = b.id
and status='running'
and org_id=${orgid}$"""
and a.status='running'
and a.org_id=${orgid}$"""
if flow_def_id:
sql += ' and flow_def_id = ${flow_def_id}$'
sql += ' and a.flow_def_id = ${flow_def_id}$'
recs = await sor.sqlExe(sql, {
'orgid': orgid,
'flow_def_id': flow_def_id