salescrm/b/customer/delcustomer.dspy
2025-10-27 15:50:44 +08:00

12 lines
366 B
Plaintext

async def dlecustomer(ns):
"""删除客户"""
db = DBPools()
async with db.sqlorContext('kboss') as sor:
if ns:
ns['del_flg'] = '1'
await sor.U('organization', ns)
return {'status': True, 'msg': '删除成功'}
return {'status': False, 'msg': '删除失败'}
ret = await dlecustomer(params_kw)
return ret