fix(sync): load_product_category_product SQL缺少providerid字段 — 产品同步providerid永远为空

This commit is contained in:
yumoqing 2026-08-05 13:42:30 +08:00
parent 31c8fde336
commit aad779b14e

View File

@ -88,7 +88,7 @@ async def load_product_category_product(parent_category_id):
if not catelogs:
return {'success': False, 'error': 'llmage中没有产品类别数据'}
llm_sql = """select a.id, a.name, a.model, a.description, a.status,
llm_sql = """select a.id, a.name, a.model, a.description, a.status, a.providerid,
m.llmcatelogid, lc.name as catelogname
from llm a
join llm_api_map m on a.id = m.llmid