fix:报告数据组装
This commit is contained in:
@@ -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)){
|
||||||
|
|||||||
Reference in New Issue
Block a user