From 08e2748eae5cbcded0f9af17de50eb6c8fe80f71 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 4 Jul 2024 10:09:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E8=AF=84=E5=AE=A1=E8=84=91=E5=9B=BE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=94=A8=E4=BE=8BID=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../functional/dto/FunctionalMinderTreeNodeDTO.java | 3 +++ .../functional/service/FunctionalCaseMinderService.java | 1 + 2 files changed, 4 insertions(+) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalMinderTreeNodeDTO.java b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalMinderTreeNodeDTO.java index 2d9b93ec97..5ea1586333 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalMinderTreeNodeDTO.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalMinderTreeNodeDTO.java @@ -13,6 +13,9 @@ public class FunctionalMinderTreeNodeDTO { @Schema(description = "节点ID") private String id; + @Schema(description = "用例ID") + private String caseId; + @Schema(description = "节点顺序") private Long pos; diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java index 95886f5203..ea2c1330ba 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java @@ -160,6 +160,7 @@ public class FunctionalCaseMinderService { rootData.setId(functionalCaseMindDTO.getId()); rootData.setPos(functionalCaseMindDTO.getPos()); rootData.setText(functionalCaseMindDTO.getName()); + rootData.setCaseId(functionalCaseMindDTO.getCaseId()); rootData.setPriority(StringUtils.isNotBlank(priorityMap.get(functionalCaseMindDTO.getCaseId())) ? Integer.parseInt(priorityMap.get(functionalCaseMindDTO.getCaseId()).substring(1)) + 1 : 1); rootData.setStatus(functionalCaseMindDTO.getReviewStatus()); rootData.setResource(List.of(Translator.get("minder_extra_node.case")));