fix: load_product_category_product SQL移除不存在的sort_order字段

This commit is contained in:
Hermes Agent 2026-06-23 18:01:56 +08:00
parent 64f10e177b
commit 9d2f8edc51

View File

@ -83,7 +83,7 @@ from llm a
join llm_api_map m on a.id = m.llmid join llm_api_map m on a.id = m.llmid
join llmcatelog lc on m.llmcatelogid = lc.id join llmcatelog lc on m.llmcatelogid = lc.id
where m.isdefaultcatelog = '1' and a.status = 'published' where m.isdefaultcatelog = '1' and a.status = 'published'
order by lc.sort_order, lc.name, a.name""" order by lc.name, a.name"""
llms = await sor.sqlExe(llm_sql, {}) llms = await sor.sqlExe(llm_sql, {})
# Build standardized categories # Build standardized categories
@ -95,7 +95,7 @@ order by lc.sort_order, lc.name, a.name"""
'description': getattr(c, 'description', '') or '', 'description': getattr(c, 'description', '') or '',
'product_type': 'llm_model', 'product_type': 'llm_model',
'product_type_title': '大模型按量', 'product_type_title': '大模型按量',
'sort_order': int(getattr(c, 'sort_order', 0) or 0), 'sort_order': 0,
}) })
# Build standardized products # Build standardized products