Commit ce9c93aa by qiuchaofei

过滤节点时传入多个模型

parent 3cc8b781
......@@ -185,12 +185,14 @@ public class MetadataRelationServiceImpl implements IMetadataRelationService {
for(ReturnNode oldNode:oldNodeList){
String metadataId = oldNode.getId();
if(metadataId.startsWith(retainModel)){
String[] models = metadataId.split("=");
String modelName = models[0];
if(retainModel.contains(modelName)){
//需要保留的,先存起来
remianNodeIdList .add(metadataId);
newReslult.getNodes().add(oldNode);
}
else if(metadataId.startsWith(filterModel)){
else if(filterModel.contains(filterModel)){
filterNodeIdList.add(metadataId);
//需要过滤的,注意两边的关系要连起来
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment