fix: 产品类别创建使用fields过滤确保列数匹配
This commit is contained in:
parent
84f1453856
commit
339fccf6d2
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user