30 lines
789 B
Plaintext
30 lines
789 B
Plaintext
async def HpcSaveBill(ns={}):
|
|
"""
|
|
保存济南超算产品
|
|
:param ns:
|
|
:return:
|
|
"""
|
|
nss = {
|
|
'id': uuid(),
|
|
'customerid': ns.get('customerid'),
|
|
'productid': ns.get('productid'),
|
|
'orderid': ns.get('orderid'),
|
|
'quantity': ns.get('quantity'),
|
|
'status': 0
|
|
}
|
|
db = DBPools()
|
|
async with db.sqlorContext('kboss') as sor:
|
|
try:
|
|
await sor.C('jncs_syncinfo', nss)
|
|
return {
|
|
'status': True,
|
|
'msg': '济南超算保存用户购买核时成功',
|
|
}
|
|
except Exception as e:
|
|
raise e
|
|
return {
|
|
'status': False,
|
|
'msg': '济南超算保存用户购买核时失败'
|
|
}
|
|
ret = await HpcSaveBill(params_kw)
|
|
return ret |