update 删除节点同时删除关联
This commit is contained in:
+2
-1
@@ -155,7 +155,8 @@ public class LawsNodeRelationServiceImpl extends ServiceImpl<LawsNodeRelationMap
|
||||
nodeRelation.setNodeName(nodeList.get(0).getNodeName());
|
||||
}
|
||||
});
|
||||
return nodeRelationList;
|
||||
return nodeRelationList.stream().filter(nodeRelation ->
|
||||
StringUtils.isNotBlank(nodeRelation.getNodeName())).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -152,7 +152,7 @@ public class LawsTreeNodeServiceImpl extends ServiceImpl<LawsTreeNodeMapper, Law
|
||||
this.checkChildrenExists(id, idList);
|
||||
boolean ok = this.removeByIds(idList);
|
||||
// 根据节点code删除标准关联
|
||||
lawsNodeRelationMapper.delete(new LambdaQueryWrapper<LawsNodeRelation>().in(LawsNodeRelation::getNodeId, codeList));
|
||||
lawsNodeRelationMapper.delete(new LambdaQueryWrapper<LawsNodeRelation>().in(LawsNodeRelation::getNodeId, idList));
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user