fix:报告数据组装
This commit is contained in:
@@ -121,14 +121,15 @@ 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))
|
||||
if(!dataJson.containsKey(field))
|
||||
continue;
|
||||
if(dataJson.containsKey(field)){
|
||||
if(!hasFields.contains( fieldName)){
|
||||
fieldList.add(fieldDO);
|
||||
hasFields.add(fieldName);
|
||||
}
|
||||
if(!hasFields.contains( fieldName)){
|
||||
JSONObject valueJson = dataJson.getJSONObject(field);
|
||||
String usage = valueJson.getString("usage");
|
||||
if(!"report".equals( usage) && ! "ingredient_report".equals(usage))
|
||||
continue;
|
||||
fieldList.add(fieldDO);
|
||||
hasFields.add(fieldName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user