This commit is contained in:
ls
2025-01-23 00:35:34 +08:00
parent b15f358360
commit 97e257c176
2 changed files with 7 additions and 3 deletions

View File

@@ -60,7 +60,9 @@ public class NasaDataRecordController extends JeecgController<NasaDataRecord, IN
pageList.getRecords().forEach(nr -> {
String fileList = nr.getFileList();
if (StringUtils.isNotBlank(fileList)) {
Map<String, String> files = JSON.parseObject(fileList, Map.class);
List<Map<String, String>> list = JSON.parseObject(fileList, new TypeReference<>() {});
Map<String, String> files = new HashMap<>();
list.forEach(files::putAll);
nr.setFileMap(files);
}
});
@@ -164,7 +166,9 @@ public class NasaDataRecordController extends JeecgController<NasaDataRecord, IN
}
String fileList = nasaDataRecord.getFileList();
if (StringUtils.isNotBlank(fileList)) {
Map<String, String> files = JSON.parseObject(fileList, Map.class);
List<Map<String, String>> list = JSON.parseObject(fileList, new TypeReference<>() {});
Map<String, String> files = new HashMap<>();
list.forEach(files::putAll);
nasaDataRecord.setFileMap(files);
}
return Result.OK(nasaDataRecord);