public class DictUtil extends Object
| 构造器和说明 |
|---|
DictUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static DictEntity |
get(String dictLabel,
String dictType)
获取字典实体
|
static DictEntity |
get(String dictType,
String dictLabel,
String dictValue)
获取字典实体
|
static String |
getDictLabel(String dictType,
String dictValue)
根据字典类型与字典值获取标签名
|
static String |
getDictLabel(String dictType,
String dictValue,
String defaultValue)
根据字典类型与字典值获取标签名
|
static String |
getDictLabels(String dictType,
String dictValues)
根据字典类型与逗号分隔的字典值获取逗号分隔的字典名
|
static String |
getDictLabels(String dictType,
String dictValues,
String defaultValue)
根据字典类型与逗号分隔的字典值获取逗号分隔的字典名
|
static String |
getDictValue(String dictType,
String dictLabel)
根据字典类型与标签名获取字典值
|
static String |
getDictValue(String dictType,
String dictLabel,
String defaultValue)
根据字典类型与标签名获取字典值
|
static String |
getDictValues(String dictType,
String dictLabels)
根据字典类型与逗号分隔的字典名获取逗号分隔的字典值
|
static String |
getDictValues(String dictType,
String dictLabels,
String defaultValue)
根据字典类型与逗号分隔的字典名获取逗号分隔的字典值
|
static String |
getJsonByLabels(String dictType,
String dictLabels)
根据字典类型与逗号分隔的字典值获取字典集合
|
static String |
getJsonByValues(String dictType,
String dictValues)
根据字典类型与逗号分隔的字典值获取字典集合
|
static String |
getToJson(String dictType,
String dictLabel,
String dictValue)
获取字典实体Json数据
|
static List<DictEntity> |
list(String dictType)
根据字典类型获取列表
|
static String |
listJson(String dictType)
根据字典类型获取列表json数据
|
public static DictEntity get(String dictLabel, String dictType)
dictLabel - 标签名dictType - 类型public static DictEntity get(String dictType, String dictLabel, String dictValue)
dictLabel - 标签名dictType - 类型public static String getToJson(String dictType, String dictLabel, String dictValue)
dictLabel - 标签名dictType - 类型public static List<DictEntity> list(String dictType)
dictType - 字典类型public static String listJson(String dictType)
dictType - 字典类型public static String getDictValue(String dictType, String dictLabel, String defaultValue)
dictType - dictLabel - defaultValue - public static String getDictValue(String dictType, String dictLabel)
dictType - dictLabel - public static String getDictLabel(String dictType, String dictValue, String defaultValue)
dictType - dictValue - defaultValue - public static String getDictLabel(String dictType, String dictValue)
dictType - dictValue - public static String getDictLabels(String dictType, String dictValues, String defaultValue)
dictType - dictValues - defaultValue - public static String getJsonByValues(String dictType, String dictValues)
dictType - dictValues - public static String getDictLabels(String dictType, String dictValues)
dictType - dictValues - public static String getJsonByLabels(String dictType, String dictLabels)
dictType - public static String getDictValues(String dictType, String dictLabels, String defaultValue)
dictType - dictLabels - defaultValue - Copyright © 2019. All rights reserved.