async def floorPriceUpdate(ns={}): """ `id` VARCHAR(32) comment 'id', `offer_orgid` VARCHAR(32) comment '售方机构id', `bid_orgid` VARCHAR(32) comment '买方机构id', `productid` double(18,2) comment '产品id', `price` double(18,2) comment '价格', `begin_date` date comment '起效日期', `end_date` date comment '失效日期', :param ns: :return: """ if not ns.get('id'): return { 'status': False, 'msg': 'id is null' } db = DBPools() async with db.sqlorContext('kboss') as sor: try: await sor.U('floorprice', ns) return { "status": True, "msg": "floorpriceupdate success" } except Exception as e: raise e return { "status": False, "msg": "floorprice update failed", } ret = await floorPriceUpdate(params_kw) return ret