修复导入Excel时字典字段类型为Long转义为空问题

pull/360/MERGE
RuoYi 2022-03-05 08:39:01 +08:00
parent 9a60c27785
commit 6e06a6a9e8
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ public class ExcelUtil<T>
{
val = Convert.toInt(val);
}
else if (Long.TYPE == fieldType || Long.class == fieldType)
else if ((Long.TYPE == fieldType || Long.class == fieldType) && StringUtils.isNumeric(Convert.toStr(val)))
{
val = Convert.toLong(val);
}