Procházet zdrojové kódy

模板生成二级ITP地图漏掉的大构件补充

经乃鹏 před 1 rokem
rodič
revize
8f298f8e7b

+ 15 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxItpTemplateServiceImpl.java

@@ -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);
                         }