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