fix: context API 迭代查询支持名称回落(UUID/名称双匹配)
This commit is contained in:
parent
4e374117e9
commit
9a3ed5fa7a
@ -25,7 +25,8 @@ async with DBPools().sqlorContext(dbname) as sor:
|
||||
ws_dir = getattr(precs[0], 'workspace_dir', '') or ''
|
||||
if iid:
|
||||
irecs = await sor.sqlExe(
|
||||
"SELECT iteration_name FROM sd_iterations WHERE id=${iid}$", {"iid": iid})
|
||||
"SELECT iteration_name FROM sd_iterations WHERE id=${iid}$ OR iteration_name=${iid}$ AND project_id=${pid}$",
|
||||
{"iid": iid, "pid": pid})
|
||||
if irecs and len(irecs) > 0:
|
||||
iname = getattr(irecs[0], 'iteration_name', '') or ''
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user