Merge branch 'test' of https://git.will-way.cn/zgty/zt-qms into test

This commit is contained in:
2025-12-25 15:12:26 +08:00

View File

@@ -121,6 +121,9 @@ 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(!"report".equals( usage) && ! "ingredient_report".equals(usage))
continue;
if(dataJson.containsKey(field)){ if(dataJson.containsKey(field)){
if(!hasFields.contains( fieldName)){ if(!hasFields.contains( fieldName)){
fieldList.add(fieldDO); fieldList.add(fieldDO);