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

37 lines
1.2 KiB
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 resellerConfigAdd(ns={}):
"""
`id` VARCHAR(32) ,
`orgid` VARCHAR(32) comment '分销商id',
`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',
`del_flg` VARCHAR(1) DEFAULT '0' comment '删除标志',
`create_at` TIMESTAMP comment '创建时间戳'
:param ns:
:return:
"""
ns['id'] = ns.get('orgid')
if not ns:
return {
"status": False,
"message": "get no params..."
}
db = DBPools()
async with db.sqlorContext('kboss') as sor:
try:
await sor.C('reseller', ns)
return {
"status": True,
"msg": "resellerConfigAdd add success"
}
except Exception as e:
return {
"status": False,
"message": "resellerConfigAdd add failed"
}
ret = await resellerConfigAdd(params_kw)
return ret