修改:Excel表格小数 精度丢失的 bug

This commit is contained in:
lxyer 2019-11-20 16:44:13 +08:00
parent bf9860f3bd
commit b083db50ac

View File

@ -304,7 +304,7 @@ public class ExcelKit {
}
if (cell.getCellType() == CellType.NUMERIC) {
map.put(fields[j], (long) cell.getNumericCellValue() + "");
map.put(fields[j], cell.getNumericCellValue() + "");
} else {
map.put(fields[j], cell.getStringCellValue());
}
@ -346,7 +346,7 @@ public class ExcelKit {
}
if (cell.getCellType() == CellType.NUMERIC) {
map.put(field, (long) cell.getNumericCellValue() + "");
map.put(field, cell.getNumericCellValue() + "");
} else {
map.put(field, cell.getStringCellValue());
}