|
@@ -87,6 +87,21 @@ public class ZhcxItpTemplateServiceImpl extends ServiceImpl<ZhcxItpTemplateDao,
|
|
|
if(pids != null && pids.size()>0){
|
|
|
List<ZhcxItpTemplateNodesDo> pidNodesDos = zhcxItpTemplateNodesService.list(
|
|
|
new LambdaQueryWrapper<ZhcxItpTemplateNodesDo>().in(ZhcxItpTemplateNodesDo::getId,pids));
|
|
|
+ // 补充获取没选中漏掉的大构件 jnp add
|
|
|
+ List<String> bigpids = new ArrayList<>();
|
|
|
+ for (ZhcxItpTemplateNodesDo pidNodesDo : pidNodesDos) {
|
|
|
+ if (StringUtils.isNotBlank(pidNodesDo.getPnodeid())) {
|
|
|
+ bigpids.add(pidNodesDo.getPnodeid());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(bigpids != null && bigpids.size()>0) {
|
|
|
+ List<ZhcxItpTemplateNodesDo> bigpidNodesDos = zhcxItpTemplateNodesService.list(
|
|
|
+ new LambdaQueryWrapper<ZhcxItpTemplateNodesDo>().in(ZhcxItpTemplateNodesDo::getId,bigpids));
|
|
|
+ if(bigpidNodesDos != null){
|
|
|
+ allCopyNodes.addAll(bigpidNodesDos);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //补充获取没选中的大构件end jnp add
|
|
|
if(pidNodesDos != null){
|
|
|
allCopyNodes.addAll(pidNodesDos);
|
|
|
}
|