update
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user