|
@@ -145,7 +145,7 @@ public class AnnualPlanLibManage { |
|
|
try (InputStream inputStream = file.getInputStream()) { |
|
|
try (InputStream inputStream = file.getInputStream()) { |
|
|
EasyExcel.read(inputStream, new AnalysisEventListener<AnnualLibImportDTO>() { |
|
|
EasyExcel.read(inputStream, new AnalysisEventListener<AnnualLibImportDTO>() { |
|
|
|
|
|
|
|
|
private List<Project> records = new ArrayList<>(); |
|
|
|
|
|
|
|
|
private final List<Project> records = new ArrayList<>(); |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void onException(Exception exception, AnalysisContext context) throws Exception { |
|
|
public void onException(Exception exception, AnalysisContext context) throws Exception { |
|
@@ -179,7 +179,7 @@ public class AnnualPlanLibManage { |
|
|
project.setBeginTime(dataArr[0].trim()); |
|
|
project.setBeginTime(dataArr[0].trim()); |
|
|
project.setEndTime(dataArr[1].trim()); |
|
|
project.setEndTime(dataArr[1].trim()); |
|
|
project.setProjectIntroduction(data.getProjectIntroduction()); |
|
|
project.setProjectIntroduction(data.getProjectIntroduction()); |
|
|
project.setIsFirst(data.getIsFirst().equals("新建") ? 1 : 0); |
|
|
|
|
|
|
|
|
project.setIsFirst("新建".equals(data.getIsFirst()) ? 1 : 0); |
|
|
records.add(project); |
|
|
records.add(project); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|