|
|
@@ -689,6 +689,8 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
List<DictBiz> sheetSourceList = this.iDictBizClient.getList("security_level", "notRoot").getData();
|
|
|
List<DictBiz> sheetSourceList1 = this.iDictBizClient.getList("storage_period", "notRoot").getData();
|
|
|
|
|
|
+ // 定义目标格式的 DateTimeFormatter
|
|
|
+ DateTimeFormatter outputFormatter = DateTimeFormatter.ofPattern("yyyyMMdd");
|
|
|
pageVoList.forEach(vos -> {
|
|
|
if (StringUtils.isNotEmpty(vos.getSecretLevel())) {
|
|
|
sheetSourceList.forEach(source -> {
|
|
|
@@ -704,6 +706,19 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ if (vos.getStartDate() != null) {
|
|
|
+ // 使用 formatter 将 LocalDateTime 转换为 String
|
|
|
+ vos.setStartDateValue(vos.getStartDate().format(outputFormatter));
|
|
|
+ } else {
|
|
|
+ vos.setStartDateValue(""); // 或者设置为 null,取决于前端需求
|
|
|
+ }
|
|
|
+
|
|
|
+ if (vos.getEndDate() != null) {
|
|
|
+ // 使用 formatter 将 LocalDateTime 转换为 String
|
|
|
+ vos.setEndDateValue(vos.getEndDate().format(outputFormatter));
|
|
|
+ } else {
|
|
|
+ vos.setEndDateValue(""); // 或者设置为 null,取决于前端需求
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
//删除不存在文件的档案
|