💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 组件源码 /** * <b>方法描述:</b> 平台字典 <br/> * <b>创建者:</b> Anonymous <br/> * <b>创建时间:</b> 2018-06-07 21:53:51 <br/> * * @param dict 入参|字典名称|{@link java.lang.String} * @param key 入参|字典key|{@link java.lang.String} * @param value 出参|字典值|{@link java.lang.String} * @return 0 失败<br/> * 1 成功<br/> */ @Component(label = "平台字典", style = "判断型", type = "同步组件", comment = "获取平台级别的字典", version = "1.0.0", deprecated = false, author = "Anonymous", date = "2018-06-07 09:53:51") @InParams(param = { @Param(name = "dict", comment = "字典名称", type = java.lang.String.class), @Param(name = "key", comment = "字典key", type = java.lang.String.class) }) @OutParams(param = { @Param(name = "value", comment = "字典值", type = java.lang.String.class) }) @Returns(returns = { @Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功") }) public static ResultBase P_getPlatDict(String dict, String key) { String value = DictManager.getPlatDictValue(dict, key); if (StringUtil.isEmpty(value)) return ResultBase.newFailureResult("TPTK0015", "获取平台字典错误空值,key=" + key); return ResultBase.newSuccessResult(value); } # 交易中组件使用方式 ![](https://img.kancloud.cn/2d/8e/2d8e8d91e5ce56807c5b4130101a5d1b_950x750.jpg) # 参数说明及示例 ## 入口参数 字典名称:IDE中平台级数据字典名称,示例: `"test"` 字典key:IDE中平台级数据字典key(英文名称),示例: `"pla"` ## 出口参数 字典值:返回对应的IDE中平台级数据字典值,示例: `__INNER__["result"]` > 获取平台级别的字典