fix: move llmcatelogid filter into subquery (m alias not visible in outer scope)

This commit is contained in:
yumoqing 2026-06-11 18:55:00 +08:00
parent 0f2d84bd00
commit 3423d5752f

View File

@ -19,10 +19,10 @@ join llmcatelog b on m.llmcatelogid = b.id
join upapp c on a.upappid = c.id
join uapi e on c.id = e.upappid and m.apiname = e.name
where a.status = 'published'
and m.llmcatelogid = ${llmcatelogid}$
) x left join historyformat y on x.hfid = y.id
left join uapiio z on x.ioid = z.id
where m.llmcatelogid = ${llmcatelogid}$
and x.id != ${llmid}$
where x.id != ${llmid}$
"""
ns = params_kw.copy()
ns.page = page