ly 2 years ago
parent
commit
73408c6861

+ 1 - 1
master/src/main/java/com/ruoyi/common/utils/file/ExcelUtils.java

@@ -84,7 +84,7 @@ public class ExcelUtils {
             case "NUMERIC":
                 System.out.println("Excel数据样式:"+ cell.getCellStyle().getDataFormatString());
                 if("General".equals(cell.getCellStyle().getDataFormatString())){
-                    cellValue = new BigDecimal(Double.toString(cell.getNumericCellValue())).toPlainString();
+                    cellValue = new BigDecimal(cell.getNumericCellValue()).toPlainString();
                 }else if("m/d/yyyy;@".equals(cell.getCellStyle().getDataFormatString())){
                     cellValue =  new SimpleDateFormat("yyyy-MM-dd").format(cell.getDateCellValue());
                 }else if("@".equals(cell.getCellStyle().getDataFormatString())){

BIN
master/src/main/resources/static/template/sems/bak/specDzsb.xlsx


BIN
master/src/main/resources/static/template/sems/specDzsb.xlsx