ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 组件源码 ``` /** * <b>方法描述:</b> 容器清空 <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2018-05-11 11:54:12 <br/> * * @param map * 入参|容器| {@link com.ylink.ide.trade.runtime.context.Map} * @return 0 失败<br/> * 1 成功<br/> */ @Component(label = "容器清空", style = "判断型", type = "同步组件", comment = "将容器中存储的变量全部清空", version = "1.0.0", deprecated = false, author = "admin", date = "2018-05-11 11:54:12") @InParams( param = {@Param(name = "map", comment = "容器", type = Map.class)}) @Returns(returns = {@Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功")}) public static ResultBase P_flushContainer(Map map) { if (map != null) { map.clear(); return ResultBase.newSuccessResult(); } return ResultBase.newFailureResult("TPTC2010", "容器为空(Null)"); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/51/88/5188d64548ec645513feeb60bb4995af_1868x891.png) # 参数说明及示例 ## 入口参数 容器:一个 Map 对象,示例: `__INNER__`