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

master
RuoYi 3 years ago
parent cb8f5de5af
commit 22f7ccc11d
  1. 2
      ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java

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

Loading…
Cancel
Save