This commit is contained in:
yumoqing 2026-02-26 17:49:07 +08:00
parent 8a18d3acf9
commit fe15c6de23

View File

@ -23,48 +23,48 @@ where a.id=${llmid}$
return msgs return msgs
sql = """select a.* from llm a, upapp b, uapiset c sql = """select a.* from llm a, upapp b, uapiset c
where a.id=${llmid}$ where a.id=${llmid}$
and a.upappid = b.id and a.upappid = b.id
and b.apisetid = c.id and b.apisetid = c.id
and a.enabled_date <= ${today}$ and a.enabled_date <= ${today}$
and a.expired_date > ${today}$""" and a.expired_date > ${today}$"""
recs = await sor.sqlExe(sql, ns.copy()) recs = await sor.sqlExe(sql, ns.copy())
if recs: if recs:
msgs.append('llm join upapp read ok') msgs.append('llm join upapp read ok')
else: else:
msgs.append('llm join upapp not found: {llmid=}, {today=}') msgs.append('llm join upapp not found: {llmid=}, {today=}')
return msgs return msgs
sql = """select a.*, e.ioid, e.stream sql = """select a.*, e.ioid, e.stream
from llm a, upapp c, uapiset d, uapi e from llm a, upapp c, uapiset d, uapi e
where a.upappid = c.id where a.upappid = c.id
and c.apisetid = d.id and c.apisetid = d.id
and e.apisetid = d.id and e.apisetid = d.id
and a.apiname = e.name and a.apiname = e.name
and a.id=${llmid}$ and a.id=${llmid}$
and a.expired_date > ${today}$ and a.expired_date > ${today}$
and a.enabled_date <= ${today}$""" and a.enabled_date <= ${today}$"""
recs = await sor.sqlExe(sql, ns.copy()) recs = await sor.sqlExe(sql, ns.copy())
if recs: if recs:
msgs.append('llm join upapp join uapi read ok') msgs.append('llm join upapp join uapi read ok')
else: else:
msgs.append('llm join upapp join uapi not found: {llmid=}, {today=}') msgs.append('llm join upapp join uapi not found: {llmid=}, {today=}')
return msgs return msgs
sql = """select a.*, e.ioid, e.stream sql = """select a.*, e.ioid, e.stream
from llm a, upapp c, uapiset d, uapi e, uapiio b from llm a, upapp c, uapiset d, uapi e, uapiio b
where a.upappid = c.id where a.upappid = c.id
and c.apisetid = d.id and c.apisetid = d.id
and e.apisetid = d.id and e.apisetid = d.id
and a.apiname = e.name and a.apiname = e.name
and e.ioid = b.id and e.ioid = b.id
and a.id=${llmid}$ and a.id=${llmid}$
and a.expired_date > ${today}$ and a.expired_date > ${today}$
and a.enabled_date <= ${today}$""" and a.enabled_date <= ${today}$"""
recs = await sor.sqlExe(sql, ns.copy()) recs = await sor.sqlExe(sql, ns.copy())
if recs: if recs:
msgs.append('llm join upapp join uapi join uapiio read ok') msgs.append('llm join upapp join uapi join uapiio read ok')
else: else:
msgs.append('llm join upapp join uapi join uapiio not found: {llmid=}, {today=}') msgs.append('llm join upapp join uapi join uapiio not found: {llmid=}, {today=}')
return msgs return msgs
return msgs return msgs
return msgs return msgs