From 6aa2f76c1e01e6ba67784013089d11da6b2ceb03 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 21 Jul 2026 10:52:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20list=5Fllms=E6=8C=89catelogid=E6=8E=92?= =?UTF-8?q?=E5=BA=8F-=E6=94=B9SQL=20ORDER=20BY=E6=9B=BF=E4=BB=A3sort?= =?UTF-8?q?=E5=8F=82=E6=95=B0,=E4=BF=AE=E5=A4=8D=E5=90=8Ccatelog=E8=A2=AB?= =?UTF-8?q?=E6=8B=86=E5=88=86=E6=88=90=E5=A4=9A=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- llmage/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llmage/utils.py b/llmage/utils.py index c3c87f7..0b9d026 100644 --- a/llmage/utils.py +++ b/llmage/utils.py @@ -362,10 +362,12 @@ m.ppid and m.ppid is not null and a.expired_date > ${today}$ """ - params = {'today': today, 'sort': ['catelog_id', 'providerid', 'name'] } + params = {'today': today} if catelogid: sql += " and m.llmcatelogid = ${catelogid}$" params['catelogid'] = catelogid + + sql += " order by m.llmcatelogid, a.providerid, a.name" debug(f'{sql=}') recs = await sor.sqlExe(sql, params.copy())