async def resellerRebateUpdate(ns={}): """ update reseller rebate `id` VARCHAR(32) comment 'id', `resellerid` VARCHAR(32) comment '分销商id', `productid` VARCHAR(32) comment '产品id', `level` int comment '级别', `sale_amount` double(18,2) comment '最低销售额', `rebate_rate` double(18,2) comment '返佣率', `start_date` date comment '起效日期', `end_date` date comment '失效日期', :param ns: :return: """ db = DBPools() async with db.sqlorContext('kboss') as sor: try: await sor.U('rp_rebate', ns) return { "status": True, "msg": "reseller rebate update success" } except Exception as e: return { "status": False, "msg": "reseller rebate update failed", } ret = await resellerRebateUpdate(params_kw) return ret