fix:报告细节

This commit is contained in:
FCL
2025-11-19 18:09:02 +08:00
parent a26327d4e7
commit 9037a27cb8

View File

@@ -87,6 +87,8 @@ public class ReportDocumentDataServiceImpl implements ReportDocumentDataService
for(ReportDocumentDataDO dataDO : dataList){
String documentContent = dataDO.getDocumentContent();
JSONObject dataJson = JSONObject.parseObject(documentContent);
if(dataJson == null)
continue;
if(dataJson.containsKey(field)){
if(!hasFields.contains( fieldName)){
fieldList.add(fieldDO);
@@ -404,6 +406,7 @@ public class ReportDocumentDataServiceImpl implements ReportDocumentDataService
String sampleName = dataDO.getSampleName();
String sampleCode = dataDO.getSampleCode();
String sampleNameCode = sampleName + " " + sampleCode;
t.put("id", dataDO.getId());
t.put("sampleNameCode", sampleNameCode);
t.put("sampleName", sampleName);
t.put("sampleCode", sampleCode);