Commit 54bfa627 authored by RuoYi's avatar RuoYi

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

parent 36c05818
...@@ -340,9 +340,12 @@ public class ExcelUtil<T> ...@@ -340,9 +340,12 @@ public class ExcelUtil<T>
{ {
val = ""; val = "";
} }
else
{
byte[] data = image.getData(); byte[] data = image.getData();
val = FileUtils.writeImportBytes(data); val = FileUtils.writeImportBytes(data);
} }
}
ReflectUtils.invokeSetter(entity, propertyName, val); ReflectUtils.invokeSetter(entity, propertyName, val);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment