提交 54bfa627 编写于 作者: R RuoYi

防止Excel导入图片可能出现的异常

上级 36c05818
...@@ -340,8 +340,11 @@ public class ExcelUtil<T> ...@@ -340,8 +340,11 @@ public class ExcelUtil<T>
{ {
val = ""; val = "";
} }
byte[] data = image.getData(); else
val = FileUtils.writeImportBytes(data); {
byte[] data = image.getData();
val = FileUtils.writeImportBytes(data);
}
} }
ReflectUtils.invokeSetter(entity, propertyName, val); ReflectUtils.invokeSetter(entity, propertyName, val);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册