14 lines
485 B
Plaintext
14 lines
485 B
Plaintext
async def get_cpcc_widget(ns={}):
|
|
db = DBPools()
|
|
async with db.sqlorContext('kboss') as sor:
|
|
widget_find_sql = """SELECT id, model FROM cpcwidget WHERE cpcid = '%s' AND type = '%s';""" % (ns.get('cpcid'), ns.get('type'))
|
|
widget_res_li = await sor.sqlExe(widget_find_sql, {})
|
|
return {
|
|
'status': True,
|
|
'msg': 'get widget success',
|
|
'data': widget_res_li
|
|
}
|
|
|
|
|
|
ret = await get_cpcc_widget(params_kw)
|
|
return ret |