mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-09-04 03:37:06 +00:00
修复Excels导入时无法获取到readConverterExp内容转表达式问题
This commit is contained in:
@@ -261,7 +261,7 @@ public class ExcelUtil<T>
|
||||
* @param is 输入流
|
||||
* @return 转换后集合
|
||||
*/
|
||||
public List<T> importExcel(InputStream is) throws Exception
|
||||
public List<T> importExcel(InputStream is)
|
||||
{
|
||||
List<T> list = null;
|
||||
try
|
||||
@@ -428,7 +428,7 @@ public class ExcelUtil<T>
|
||||
{
|
||||
propertyName = field.getName() + "." + attr.targetAttr();
|
||||
}
|
||||
else if (StringUtils.isNotEmpty(attr.readConverterExp()))
|
||||
if (StringUtils.isNotEmpty(attr.readConverterExp()))
|
||||
{
|
||||
val = reverseByExp(Convert.toStr(val), attr.readConverterExp(), attr.separator());
|
||||
}
|
||||
|
Reference in New Issue
Block a user