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

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