|
@@ -89,7 +89,7 @@ public class ExcelUtils {
|
|
|
cellValue = new SimpleDateFormat("yyyy-MM-dd").format(cell.getDateCellValue());
|
|
|
}else if("@".equals(cell.getCellStyle().getDataFormatString())){
|
|
|
cellValue = cell.getNumericCellValue() + "";
|
|
|
- }else if(cell.getCellStyle().getDataFormatString().indexOf("0.0") > -1){
|
|
|
+ }else if(cell.getCellStyle().getDataFormatString().indexOf("0_") > -1){
|
|
|
//数字非日期
|
|
|
System.out.println("Excel值:"+ cell.getNumericCellValue());
|
|
|
cellValue = cell.getNumericCellValue() + "";
|