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

pull/329/head
RuoYi 2021-09-19 08:50:31 +08:00
parent 4315c0983d
commit d3899a8d9e
1 changed files with 5 additions and 2 deletions

View File

@ -340,8 +340,11 @@ public class ExcelUtil<T>
{
val = "";
}
byte[] data = image.getData();
val = FileUtils.writeImportBytes(data);
else
{
byte[] data = image.getData();
val = FileUtils.writeImportBytes(data);
}
}
ReflectUtils.invokeSetter(entity, propertyName, val);
}