多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 组件源码 ``` /** * <b>方法描述:</b> 容器变量删除(删除多个key) <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2020-12-17 16:14:16 <br/> * * @param dict * 入参|变量容器|{@link java.util.Map} * @param keys * 入参|变量名称|{@link java.util.List} * @return 0 失败<br/> * 1 成功<br/> */ @Component(label = "容器变量删除(删除多个key)", style = "判断型", type = "同步组件", comment = "删除容器中指定变量", version = "1.0.0", deprecated = false, author = "admin", date = "2020-12-17 04:14:16") @InParams(param = {@Param(name = "dict", comment = "变量容器", type = java.util.Map.class), @Param(name = "keys", comment = "变量名称", type = java.util.List.class)}) @Returns(returns = {@Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功")}) @Order(value = 2) public static ResultBase P_delKeys(Map dict, List keys) { if (dict == null) return ResultBase.newFailureResult("TPTC2002", "变量容器空(Null)"); if (keys == null) return ResultBase.newFailureResult("TPTC2002", "变量名称为空(Null)"); for (Object obj : keys) { dict.remove(obj); } return ResultBase.newSuccessResult(); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/83/87/8387dab8bdf5bdde304b40c9b4c243ed_1869x892.png) # 参数说明及示例 ## 入口参数 变量容器:一个 Map 对象,示例: `__INNER__` 变量名称:需要删除容器中的变量名称列表,示例: `["x","y"]`