越南语调整

main
judy 1 year ago
parent 0585b069b2
commit c57019ab90
  1. 2
      shkj-common/src/main/java/com/shkj/common/utils/MessageUtils.java
  2. 3
      shkj-system/src/main/java/com/shkj/system/service/impl/SysDictTypeServiceImpl.java

@ -31,7 +31,7 @@ public class MessageUtils {
return messageSource.getMessage(code, args, LocaleContextHolder.getLocale());
} catch (Exception e) {
// e.printStackTrace();
log.error("国际化出错了 = {}", e.getMessage());
// log.error("国际化出错了 = {}", e.getMessage());
}
return code;
}

@ -78,10 +78,11 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService {
public List<SysDictData> selectDictDataByType(String dictType) {
List<SysDictData> dictDatas = DictUtils.getDictCache(dictType);
if (StringUtils.isNotEmpty(dictDatas)) {
for (SysDictData dictData : dictDatas) {
dictData.setDictLabel(MessageUtils.message(dictData.getDictLabel()));
}
if (StringUtils.isNotEmpty(dictDatas)) {
return dictDatas;
}
dictDatas = dictDataMapper.selectDictDataByType(dictType, SecurityUtils.getCurrentBranchId());

Loading…
Cancel
Save