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

pull/108/MERGE
RuoYi 3 years ago
parent 7a09412ecb
commit 82535c82d3

@ -296,7 +296,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);
}

Loading…
Cancel
Save