From b32fa76625e74e750ba1a856b829bb32b1967e30 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 23 Jul 2024 18:46:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=AF=E4=BB=A5=E9=87=8D=E5=A4=8D=E5=85=B3?= =?UTF-8?q?=E8=81=94=E9=9C=80=E6=B1=82=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1044284 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044284 --- .../functional/service/FunctionalCaseDemandService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseDemandService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseDemandService.java index dc1d9455d9..0e89ced7d2 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseDemandService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseDemandService.java @@ -273,11 +273,7 @@ public class FunctionalCaseDemandService { //校验重复 List functionalCaseDemands = existMap.get(demandDTO.getDemandId()); if (CollectionUtils.isNotEmpty(functionalCaseDemands)) { - List list = functionalCaseDemands.stream().filter(t -> StringUtils.equalsIgnoreCase(t.getDemandId(), functionalCaseDemand.getDemandId()) && StringUtils.equalsIgnoreCase(t.getParent(), functionalCaseDemand.getParent()) - && StringUtils.equalsIgnoreCase(t.getDemandName(), functionalCaseDemand.getDemandName()) && StringUtils.equalsIgnoreCase(t.getDemandUrl(), functionalCaseDemand.getDemandUrl())).toList(); - if (CollectionUtils.isNotEmpty(list)) { - continue; - } + continue; } //校验当前关联的需求在系统或传入的数据结构中是否带有父节点,如果有置为true,用来做查询的root节点 List functionalCaseDemandParents = existMap.get(demandDTO.getParent());