fix: ExcelUtils字典翻译空指针
This commit is contained in:
@@ -176,6 +176,9 @@ public class ExcelUtils {
|
||||
public String translateDictValue(String code, String text, List<SysDictItemCore> listDict) {
|
||||
StringBuilder textValue = new StringBuilder();
|
||||
String tmpValue = null;
|
||||
if (StrUtil.isBlank(text)) {
|
||||
return null;
|
||||
}
|
||||
List<SysDictItemCore> listNew = listDict.stream()
|
||||
.filter(o -> Objects.equals(o.getDictCode(), code) && Objects.equals(o.getItemText(), text.trim())).collect(Collectors.toList());
|
||||
if (!CollectionUtils.isEmpty(listNew)) {
|
||||
|
||||
Reference in New Issue
Block a user