|
|
@@ -57,10 +57,21 @@ public class DictBizCache {
|
|
|
* 获取字典值
|
|
|
*
|
|
|
* @param code 字典编号
|
|
|
- * @param dictKey 字典键
|
|
|
+ * @param dictKey Integer型字典键
|
|
|
* @return
|
|
|
*/
|
|
|
public static String getValue(String code, Integer dictKey) {
|
|
|
+ return CacheUtil.get(DICT_CACHE, DICT_VALUE + code + StringPool.COLON, String.valueOf(dictKey), () -> dictService.getValue(code, String.valueOf(dictKey)));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取字典值
|
|
|
+ *
|
|
|
+ * @param code 字典编号
|
|
|
+ * @param dictKey String型字典键
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static String getValue(String code, String dictKey) {
|
|
|
return CacheUtil.get(DICT_CACHE, DICT_VALUE + code + StringPool.COLON, dictKey, () -> dictService.getValue(code, dictKey));
|
|
|
}
|
|
|
|