excel导入报错
jeecg 3.7.6 列表导出的数据(数据库可为空的int double型字段数据为空)直接再导入数据库可为空的int double型字段报以下错误望升级解决此bug !!!
empty String
java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1842)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at java.lang.Double.valueOf(Double.java:502)
at org.jeecgframework.poi.excel.imports.CellValueServer.getValueByType(CellValueServer.java:188)
at org.jeecgframework.poi.excel.imports.CellValueServer.getValue(CellValueServer.java:131)
at org.jeecgframework.poi.excel.imports.ExcelImportServer.saveFieldValue(ExcelImportServer.java:384)
at org.jeecgframework.poi.excel.imports.ExcelImportServer.importExcel(ExcelImportServer.java:215)
at org.jeecgframework.poi.excel.imports.ExcelImportServer.importExcelByIs(ExcelImportServer.java:361)
at org.jeecgframework.poi.excel.ExcelImportUtil.importExcel(ExcelImportUtil.java:85)
试试
放在项目里 admin 发表于 2018-7-10 12:35 static/image/common/back.gif
试试
放在项目里
放进去就好了 何不打到jar包里供大家直接maven更新 !
另excel导入时 excel里中文导入时没有自动翻译成字典表中的code或id,有解决方案么?
/**所属行政区域*/
@Excel(name="所属行政区域",width=15,dictTable ="tb_xzqy",dicCode ="id",dicText ="xzqy")
private java.lang.String xzqyId; 给你的临时方案,下个版本升级 字典翻译,升级到最新版就可以
页:
[1]