fix: 产品类别创建使用fields过滤确保列数匹配

This commit is contained in:
yumoqing 2026-06-25 15:35:35 +08:00
parent 84f1453856
commit 339fccf6d2

View File

@ -44,7 +44,7 @@ try:
fields[k] = ''
async with DBPools().sqlorContext(dbname) as sor:
await sor.C('product_category', data)
await sor.C('product_category', fields)
_new_rows = await sor.sqlExe("SELECT * FROM product_category WHERE id = ${id}$", {'id': data['id']})
_user_data = _new_rows[0] if _new_rows else data