refactor: 字典根据类型查出所有value
This commit is contained in:
@@ -69,6 +69,13 @@ public class DictFrameworkUtils {
|
|||||||
return convertList(dictDatas, DictDataRespDTO::getLabel);
|
return convertList(dictDatas, DictDataRespDTO::getLabel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SneakyThrows
|
||||||
|
public static List<String> getDictDataValueList(String dictType) {
|
||||||
|
List<DictDataRespDTO> dictDatas = GET_DICT_DATA_CACHE.get(dictType);
|
||||||
|
return convertList(dictDatas, DictDataRespDTO::getValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
public static String parseDictDataValue(String dictType, String label) {
|
public static String parseDictDataValue(String dictType, String label) {
|
||||||
List<DictDataRespDTO> dictDatas = GET_DICT_DATA_CACHE.get(dictType);
|
List<DictDataRespDTO> dictDatas = GET_DICT_DATA_CACHE.get(dictType);
|
||||||
|
|||||||
Reference in New Issue
Block a user