企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 组件源码 ``` /** * <b>方法描述:</b> 容器删除(按value) <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2018-05-11 11:54:06 <br/> * * @param map * 入参|容器| {@link com.ylink.ide.trade.runtime.context.Map} * @param values * 入参|值列表|{@link com.ylink.ide.trade.runtime.context.JavaList} * @return 0 失败<br/> * 1 成功<br/> */ @Component(label = "容器删除(按value)", style = "判断型", type = "同步组件", comment = "根据传入的value删除容器变量。", version = "1.0.0", deprecated = false, author = "admin", date = "2018-05-11 11:54:06") @InParams(param = {@Param(name = "map", comment = "容器", type = Map.class), @Param(name = "values", comment = "值列表", type = List.class)}) @Returns(returns = {@Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功")}) public static ResultBase P_delByValues(Map map, List values) { if (map == null) return ResultBase.newFailureResult("TPTC2009", "容器不能为空(Null)"); if (values != null && !values.isEmpty()) { Iterator it = map.keySet().iterator(); while (it.hasNext()) { if (values.contains(map.get(it.next()))) it.remove(); } } return ResultBase.newSuccessResult(); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/03/07/0307000f4d6c4add32288117f9986f5f_1870x893.png) # 参数说明及示例 ## 入口参数 容器:一个 Map 对象,示例: `__INNER__` 值列表:容器中的值,示例: `["你好"]`