|
@@ -102,6 +102,7 @@ public class ArchiveAutoPdfServiceImpl implements IArchiveAutoPdfService {
|
|
|
Long projectId = 1578599210897772545L;
|
|
|
|
|
|
ArchivesAuto archivesAuto = new ArchivesAuto();
|
|
|
+ archivesAuto.setId(SnowFlakeUtil.getId());
|
|
|
archivesAuto.setProjectId(projectId);
|
|
|
archivesAuto.setName("案卷提名");
|
|
|
archivesAuto.setFileNumber("档号");
|
|
@@ -374,7 +375,7 @@ public class ArchiveAutoPdfServiceImpl implements IArchiveAutoPdfService {
|
|
|
if (localUrls.size() > 1) {
|
|
|
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
|
|
FileUtils.PdfCopyPublicMethods(bos, localUrls);
|
|
|
- BladeFile bladeFile = newIOSSClient.updateFile(bos.toByteArray(),fileName);
|
|
|
+ BladeFile bladeFile = newIOSSClient.updateFile(bos.toByteArray(),fileName + ".pdf");
|
|
|
if (bladeFile!= null ) {
|
|
|
urls.add(bladeFile.getLink());
|
|
|
}
|
|
@@ -589,10 +590,12 @@ public class ArchiveAutoPdfServiceImpl implements IArchiveAutoPdfService {
|
|
|
|
|
|
// 将日期赋值给startDate和endDate
|
|
|
if (!minDate.isEmpty()) {
|
|
|
- archive.setStartDate(LocalDateTime.parse(minDate, formatter));
|
|
|
+ LocalDateTime localDateTime = FormulaUtil.parseStringToLocalDateTime(minDate,"yyyyMMdd");
|
|
|
+ archive.setStartDate(localDateTime);
|
|
|
}
|
|
|
if (!maxDate.isEmpty()) {
|
|
|
- archive.setEndDate(LocalDateTime.parse(maxDate, formatter));
|
|
|
+ LocalDateTime localDateTime = FormulaUtil.parseStringToLocalDateTime(maxDate,"yyyyMMdd");
|
|
|
+ archive.setEndDate(localDateTime);
|
|
|
}
|
|
|
|
|
|
Map<String, Object> archivesAutoMap = new ObjectMapper().convertValue(archive, Map.class);
|