ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 组件源码 /** * <b>方法描述:</b> 应用字典 <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2021-01-28 14:57:10 <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 = "admin", date = "2021-01-28 02:57:10") @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_getAppDict(String dict, String key) { String value = DictManager.getAppDictValue(dict, key); if (StringUtil.isEmpty(value)) return ResultBase.newFailureResult("TPTK0017", "获取应用字典错误空值,key=" + key); return ResultBase.newSuccessResult(value); } # 交易中组件使用方式 ![](https://img.kancloud.cn/12/6e/126effe54af2bb8f8e6d5a7e2e4b5707_950x750.jpg) # 参数说明及示例 ## 入口参数 字典名称:IDE中应用级数据字典名称,示例: `"bank"` 字典key:IDE中应用级数据字典key(英文名称),示例: `"bank"` ## 出口参数 字典值:返回对应的IDE中应用级数据字典值,示例: `__INNER__["result"]` > 获取应用级别的字典