通过下面这个方法便可以获取到字典的标签
DictUtils.getDictLabel(dictType, dictValue, defaultValue);
其中
dictType:为字典的名字
dictValue:字典的值(你想要转化的当前字典的值)
defaultValue:若dictValue在dictType中没有匹配到任何一个值的话 则显示defaultValue
通过下面这个方法便可以获取到字典的标签
DictUtils.getDictLabel(dictType, dictValue, defaultValue);
其中
dictType:为字典的名字
dictValue:字典的值(你想要转化的当前字典的值)
defaultValue:若dictValue在dictType中没有匹配到任何一个值的话 则显示defaultValue