|
|
|
|
@ -160,17 +160,9 @@ public class SysPrintTemplateNodeServiceImpl implements ISysPrintTemplateNodeSer
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<String> idList = bos.stream()
|
|
|
|
|
.map(bo -> {
|
|
|
|
|
String id = bo.getId();
|
|
|
|
|
if (StringUtils.isEmpty(id)) {
|
|
|
|
|
throw new ServiceException("节点ID不可为空!");
|
|
|
|
|
}
|
|
|
|
|
return id;
|
|
|
|
|
})
|
|
|
|
|
.distinct()
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
List<SysPrintTemplateNodeVo> existingNodes = this.queryListByIds(idList);
|
|
|
|
|
SysPrintTemplateNodeBo nodeBo = new SysPrintTemplateNodeBo();
|
|
|
|
|
nodeBo.setTemplateInfoId(bos.get(0).getTemplateInfoId());
|
|
|
|
|
List<SysPrintTemplateNodeVo> existingNodes = this.queryList(nodeBo);
|
|
|
|
|
Set<Long> templateNodeIds = existingNodes.stream()
|
|
|
|
|
.map(SysPrintTemplateNodeVo::getTemplateNodeId)
|
|
|
|
|
.collect(Collectors.toSet());
|
|
|
|
|
|