diff --git a/build.gradle b/build.gradle index e2ef51c..b928e07 100644 --- a/build.gradle +++ b/build.gradle @@ -59,7 +59,7 @@ uploadArchives { authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) } pom.project { - version '1.1.101' + version '1.1.102' artifactId ARTIFACT_Id groupId GROUP_ID packaging TYPE diff --git a/src/main/java/com/taover/util/UtilExcel.java b/src/main/java/com/taover/util/UtilExcel.java index 75e163f..6677a98 100644 --- a/src/main/java/com/taover/util/UtilExcel.java +++ b/src/main/java/com/taover/util/UtilExcel.java @@ -451,7 +451,7 @@ public class UtilExcel { short format = cell.getCellStyle().getDataFormat(); if (cell.getCellStyle().getDataFormat()==28 || cell.getCellStyle().getDataFormat()==22||cell.getCellStyle().getDataFormat()==31 || cell.getCellStyle().getDataFormat() == 58 || cell.getCellStyle().getDataFormat()==14 - || cell.getCellStyle().getDataFormat()==57 || cell.getCellStyle().getDataFormat()==32 || cell.getCellStyle().getDataFormat()==20) { + || cell.getCellStyle().getDataFormat()==57 || cell.getCellStyle().getDataFormat()==32 || cell.getCellStyle().getDataFormat()==20 || cell.getCellStyle().getDataFormat()==176) { // 如果是date类型则 ,获取该cell的date值 //return new SimpleDateFormat("yyyy-MM-dd").format(DateUtil.getJavaDate(cell.getNumericCellValue())); @@ -515,7 +515,7 @@ public class UtilExcel { System.out.println(df.format(3.3300)); - String filepath = "C:\\Users\\EDZ\\Desktop\\testjson1.xlsx"; + String filepath = "C:\\Users\\EDZ\\Desktop\\ttt.xlsx"; List> data = null; try { -- libgit2 0.21.2