报告编制,配料方法不拼接到报告上

This commit is contained in:
2026-02-24 17:29:43 +08:00
parent b8c89d5f78
commit 25adac246c

View File

@@ -247,6 +247,9 @@ public class ReportDocumentMainServiceImpl implements ReportDocumentMainService,
JSONObject json = JSONObject.parseObject(content); JSONObject json = JSONObject.parseObject(content);
for(String key : json.keySet()){ for(String key : json.keySet()){
JSONObject obj = json.getJSONObject(key); JSONObject obj = json.getJSONObject(key);
if ("ingredient".equals(obj.get("usage"))) {//如果是配料的,则不拼接
continue;
}
String methodName = obj.getString("methodName"); String methodName = obj.getString("methodName");
if(ObjectUtils.isEmpty(methodName)) if(ObjectUtils.isEmpty(methodName))
continue; continue;