diff --git a/conf/server/EventPointConfig.txt b/conf/server/EventPointConfig.txt index eba4b04f5..32d0ae9d3 100644 --- a/conf/server/EventPointConfig.txt +++ b/conf/server/EventPointConfig.txt @@ -252,8 +252,8 @@ int mut,int#int,1 101218 101307 101219 101308 101220 101309#101310 -101221 101311 -101222 101312#101313#101319 +101221 101311#101318 +101222 101312#101313 101223 101314 101224 101315 101225 101316 diff --git a/test/src/main/java/ExcelUtils.java b/test/src/main/java/ExcelUtils.java index a5ab619d6..cb137b3fc 100644 --- a/test/src/main/java/ExcelUtils.java +++ b/test/src/main/java/ExcelUtils.java @@ -1,5 +1,6 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss.usermodel.*; +import org.apache.poi.xssf.usermodel.XSSFCell; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import java.io.*; @@ -374,22 +375,23 @@ public class ExcelUtils { } case Cell.CELL_TYPE_FORMULA: { //判断cell是否为日期格式 - if (DateUtil.isCellDateFormatted(cell)) { - //转换为日期格式YYYY-mm-dd - cellValue = cell.getDateCellValue(); - } else { - //数字 - cellValue = String.valueOf(cell.getNumericCellValue()); - if (cellType != null && cellType.toString().equals("float")){ - - }else{ - if (cellType.toString().equals("string")){ - cellValue = ""; - }else{ - cellValue = (int) cell.getNumericCellValue(); - } - } - } + cellValue = ((XSSFCell) cell).getRawValue(); +// if (DateUtil.isCellDateFormatted(cell)) { +// //转换为日期格式YYYY-mm-dd +// cellValue = cell.getDateCellValue(); +// } else { +// //数字 +// cellValue = String.valueOf(cell.getNumericCellValue()); +// if (cellType != null && cellType.toString().equals("float")){ +// +// }else{ +// if (cellType.toString().equals("string")){ +// cellValue = ""; +// }else{ +// cellValue = (int) cell.getNumericCellValue(); +// } +// } +// } break; } case Cell.CELL_TYPE_BOOLEAN:{