|
@@ -513,6 +513,14 @@ public class ArchiveAutoPdfServiceImpl implements IArchiveAutoPdfService {
|
|
|
if ("null~null".equals(object)) {
|
|
|
object = "";
|
|
|
}
|
|
|
+ if (object!= null ) {
|
|
|
+ String strObject = object.toString();
|
|
|
+ if (strObject.contains("null")) {
|
|
|
+ strObject = strObject.replace("null", "");
|
|
|
+ object = strObject;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
dataInfo.put(key, object);
|
|
|
}
|
|
@@ -702,7 +710,7 @@ public class ArchiveAutoPdfServiceImpl implements IArchiveAutoPdfService {
|
|
|
|
|
|
for (ArchiveFile file : datas) {
|
|
|
String fileTime = file.getFileTime();
|
|
|
- if (StringUtils.isNotEmpty(fileTime)) {
|
|
|
+ if (StringUtils.isNotEmpty(fileTime) && !fileTime.equals("null")) {
|
|
|
if (minDate.isEmpty() || fileTime.compareTo(minDate) <= 0) {
|
|
|
minDate = fileTime;
|
|
|
}
|
|
@@ -723,7 +731,7 @@ public class ArchiveAutoPdfServiceImpl implements IArchiveAutoPdfService {
|
|
|
if (!maxDate.isEmpty() && !maxDate.equals("null") ) {
|
|
|
LocalDateTime localDateTime = FormulaUtil.parseStringToLocalDateTime(maxDate, "yyyyMMdd");
|
|
|
if (localDateTime != null) {
|
|
|
- archive.setStartDate(localDateTime);
|
|
|
+ archive.setEndDate(localDateTime);
|
|
|
}
|
|
|
}
|
|
|
|