|
|
@@ -5441,7 +5441,7 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
}
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
-
|
|
|
+ e.printStackTrace();
|
|
|
}finally {
|
|
|
FileUtils.removeFile(filePath);
|
|
|
String updateSql="update u_archives_auto set colour_status=1 where id="+auto.getId();
|
|
|
@@ -5453,17 +5453,22 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
}
|
|
|
|
|
|
public static LocalDateTime[] convertDateRange(String dateRange,String split) {
|
|
|
- String[] dates = dateRange.split(split);
|
|
|
+ try {
|
|
|
+ String[] dates = dateRange.split(split);
|
|
|
|
|
|
- DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
|
|
|
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
|
|
|
|
|
|
- LocalDate startLocalDate = LocalDate.parse(dates[0], formatter);
|
|
|
- LocalDate endLocalDate = LocalDate.parse(dates[1], formatter);
|
|
|
+ LocalDate startLocalDate = LocalDate.parse(dates[0], formatter);
|
|
|
+ LocalDate endLocalDate = LocalDate.parse(dates[1], formatter);
|
|
|
|
|
|
- LocalDateTime startDateTime = startLocalDate.atStartOfDay(); // 00:00:00
|
|
|
- LocalDateTime endDateTime = endLocalDate.atStartOfDay();; // 00:00:00
|
|
|
+ LocalDateTime startDateTime = startLocalDate.atStartOfDay(); // 00:00:00
|
|
|
+ LocalDateTime endDateTime = endLocalDate.atStartOfDay();; // 00:00:00
|
|
|
|
|
|
- return new LocalDateTime[]{startDateTime, endDateTime};
|
|
|
+ return new LocalDateTime[]{startDateTime, endDateTime};
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return new LocalDateTime[]{null, null};
|
|
|
}
|
|
|
|
|
|
public List<String> extractTextFromPDF(String pdfFilePath) throws IOException, InterruptedException {
|