kboss/b/product/price_guanli_gai.dspy
2025-07-16 14:27:17 +08:00

22 lines
560 B
Plaintext

async def price_guanli_gai(ns={}):
"""
修改售价管理
:return:
"""
db = DBPools()
async with db.sqlorContext('kboss') as sor:
try:
await sor.U('product_salemode', {'id': ns.get('gai_jia_id'), 'price': ns.get('price')})
return {
'status': True,
'msg': '修改售价成功'
}
except Exception as e:
raise e
return {
'status': False,
'msg': '修改售价失败'
}
ret = await price_guanli_gai(params_kw)
return ret