From 0d51905ab63ce37cffe575173e157f9cad6f6356 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 15 Jul 2024 10:06:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E8=A7=84=E5=88=92=E6=A0=B9=E8=8A=82=E7=82=B9=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=A8=A1=E5=BC=8F=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1015333 --user=宋昌昌 【测试计划】完成剩余功能 https://www.tapd.cn/55049933/s/1547478 --- .../plan/service/TestPlanCollectionMinderService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java index 2705c6caaf..c7a5ac0376 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java @@ -260,7 +260,7 @@ public class TestPlanCollectionMinderService { private void dealEditList(TestPlanCollectionMinderEditRequest request, String userId, Map> associateMap) { if (CollectionUtils.isNotEmpty(request.getEditList())) { - // 根节点直接过滤后存在直接处理串并行参数 + // 根节点直接过滤后存在直接处理串/并行参数, 后续不一起处理 request.getEditList().stream() .filter(minderNode -> StringUtils.equals(minderNode.getId(), ModuleConstants.DEFAULT_NODE_ID)) .findFirst() @@ -271,6 +271,7 @@ public class TestPlanCollectionMinderService { config.setCaseRunMode(executeMethod); testPlanConfigMapper.updateByPrimaryKeySelective(config); }); + request.getEditList().removeIf(minderNode -> StringUtils.equals(minderNode.getId(), ModuleConstants.DEFAULT_NODE_ID)); Map> parentMap = getParentMap(request); SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH); TestPlanCollectionMapper collectionMapper = sqlSession.getMapper(TestPlanCollectionMapper.class);