From 7dd8a7a631875d68d6409f5086041d474d9226a8 Mon Sep 17 00:00:00 2001 From: whycxzp <perryhsu@163.com> Date: 星期三, 07 九月 2022 11:06:45 +0800 Subject: [PATCH] 软件excel解析 --- src/main/java/com/whyc/service/SoftwareService.java | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/whyc/service/SoftwareService.java b/src/main/java/com/whyc/service/SoftwareService.java index e7cbb1c..12488cb 100644 --- a/src/main/java/com/whyc/service/SoftwareService.java +++ b/src/main/java/com/whyc/service/SoftwareService.java @@ -5,7 +5,6 @@ import com.whyc.dto.Response; import com.whyc.mapper.SoftwareMapper; import com.whyc.pojo.Software; -import com.whyc.util.DateUtil; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; @@ -54,8 +53,7 @@ common.setBasedVersion(sheet.getRow(4).getCell(4).getStringCellValue()); common.setOwner(sheet.getRow(5).getCell(2).getStringCellValue()); - String filingDateStr = sheet.getRow(5).getCell(4).getStringCellValue(); - Date filingDate = DateUtil.YYYY_MM_DD.parse(filingDateStr); + Date filingDate = sheet.getRow(5).getCell(4).getDateCellValue(); common.setFilingDate(filingDate); //鏈�鍚庝竴琛�,鍙栧彂甯冭鏄� common.setReleaseNotes(sheet.getRow(lastRowNum).getCell(2).getStringCellValue()); -- Gitblit v1.9.1