28 lines
746 B
Plaintext
28 lines
746 B
Plaintext
async def specification_template_search(ns={}):
|
|
"""
|
|
规格模板查
|
|
:param ns:
|
|
:return:
|
|
"""
|
|
nss = {
|
|
'orgid': ns.get('orgid') or ns.get('providerid')
|
|
}
|
|
db = DBPools()
|
|
async with db.sqlorContext('kboss') as sor:
|
|
try:
|
|
nss['del_flg'] = '0'
|
|
template = await sor.R('specification',nss)
|
|
return {
|
|
"status": True,
|
|
"msg": "search specification template success",
|
|
"data": template
|
|
}
|
|
except Exception as e:
|
|
raise e
|
|
return {
|
|
"status": False,
|
|
"msg": "search specification template failed"
|
|
}
|
|
|
|
ret = await specification_template_search(params_kw)
|
|
return ret |