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

14 lines
387 B
Plaintext

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