标准拆分拆分已入库文本查询标准结构树修改
This commit is contained in:
+13
-4
@@ -1480,10 +1480,19 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
if (StringUtils.isNotBlank(splitFileInfo.getStandardSystem())){
|
||||
List<String> list = Arrays.asList(splitFileInfo.getStandardSystem().split(","));
|
||||
List<LawsTreeNode> lawsTreeNodeList = lawsTreeNodeService.listByIds(list);
|
||||
List<LawsNodeRelation> lawsNodeRelationList = lawsNodeRelationService.list(new LambdaQueryWrapper<LawsNodeRelation>()
|
||||
.in(LawsNodeRelation::getNodeId, lawsTreeNodeList.stream().map(LawsTreeNode::getId)
|
||||
.collect(Collectors.toList())));
|
||||
if (lawsNodeRelationList.isEmpty()){
|
||||
if(CollectionUtils.isEmpty(lawsTreeNodeList)){
|
||||
return new Page<>();
|
||||
}
|
||||
List<String> nodeCode = lawsTreeNodeList.stream().map(LawsTreeNode::getNodeCode).collect(Collectors.toList());
|
||||
LambdaQueryWrapper<LawsNodeRelation> query = new LambdaQueryWrapper<>();
|
||||
for (int i = 0; i < nodeCode.size(); i++) {
|
||||
query.likeRight(LawsNodeRelation::getNodeCode, nodeCode.get(i));
|
||||
if(i != nodeCode.size() - 1){
|
||||
query.or();
|
||||
}
|
||||
}
|
||||
List<LawsNodeRelation> lawsNodeRelationList = lawsNodeRelationService.list(query);
|
||||
if (CollectionUtils.isEmpty(lawsNodeRelationList)){
|
||||
return new Page<>();
|
||||
}
|
||||
List<String> idList = lawsNodeRelationList.stream().map(LawsNodeRelation::getUniqueRelationFlag).collect(Collectors.toList());
|
||||
|
||||
Reference in New Issue
Block a user