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

10 lines
386 B
Plaintext

async def getcustomer(ns):
"""查询客户"""
db = DBPools()
async with db.sqlorContext('kboss') as sor:
sql = """select * from organization where org_type in(2,3) adn del_flg = 0"""
reacs = await sor.sqlPaging(sql,{'sort':'create_at', 'order':'desc', 'page':1})
return {'status': True, 'data': reacs}
ret = await getcustomer(params_kw)
return ret