fix:报告数据组装

This commit is contained in:
FCL
2025-12-26 10:24:26 +08:00
parent 58f9c9a350
commit 778b5f751d

View File

@@ -121,17 +121,18 @@ public class ReportDocumentDataServiceImpl implements ReportDocumentDataService
JSONObject dataJson = JSONObject.parseObject(documentContent); JSONObject dataJson = JSONObject.parseObject(documentContent);
if(dataJson == null) if(dataJson == null)
continue; continue;
String usage = dataJson.getString("usage"); if(!dataJson.containsKey(field))
continue;
if(!hasFields.contains( fieldName)){
JSONObject valueJson = dataJson.getJSONObject(field);
String usage = valueJson.getString("usage");
if(!"report".equals( usage) && ! "ingredient_report".equals(usage)) if(!"report".equals( usage) && ! "ingredient_report".equals(usage))
continue; continue;
if(dataJson.containsKey(field)){
if(!hasFields.contains( fieldName)){
fieldList.add(fieldDO); fieldList.add(fieldDO);
hasFields.add(fieldName); hasFields.add(fieldName);
} }
} }
} }
}
assembleStep1(rowList, fieldList, dataListByKey, customConfig, i); //处理后的组数对象 assembleStep1(rowList, fieldList, dataListByKey, customConfig, i); //处理后的组数对象
} }
if(!"1".equals(verticalFlag)){ if(!"1".equals(verticalFlag)){