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

27 lines
912 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

async def resellerConfigUpdate(ns={}):
"""
update reseller
`settle_mode` VARCHAR(1) DEFAULT '0' comment '结算方式', 0:日结1:周结2:月结3:季结;年结
`settle_flow` VARCHAR(1) DEFAULT '0' comment '结算流程', 0:无需审批1:需要审批
`settle_datep` VARCHAR(100) comment '结算日期模版',
`salemanid` VARCHAR(32) comment '上级机构销售id',
:param ns:
:return:
"""
db = DBPools()
async with db.sqlorContext('kboss') as sor:
try:
await sor.U('reseller', ns)
return {
"status": True,
"msg": "reseller config update success"
}
except Exception as e:
return {
"status": False,
"msg": "reseller config update failed",
}
ret = await resellerConfigUpdate(params_kw)
return ret