fix:报告数据组装

This commit is contained in:
FCL
2025-12-25 14:50:37 +08:00
parent f9f87648af
commit b78c9ed179

View File

@@ -121,6 +121,9 @@ public class ReportDocumentDataServiceImpl implements ReportDocumentDataService
JSONObject dataJson = JSONObject.parseObject(documentContent);
if(dataJson == null)
continue;
String usage = dataJson.getString("usage");
if(!"report".equals( usage) && ! "ingredient_report".equals(usage))
continue;
if(dataJson.containsKey(field)){
if(!hasFields.contains( fieldName)){
fieldList.add(fieldDO);