From 4f7b6aae67facb08084f61abd1eac275b0f52431 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 13 Jun 2024 16:41:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B):?= =?UTF-8?q?=20=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E8=84=91=E5=9B=BE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E4=BE=8B=E7=AD=89=E7=BA=A7=E5=9B=9E?= =?UTF-8?q?=E6=98=BE=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/functional/dto/FunctionalMinderTreeNodeDTO.java | 2 +- .../functional/service/FunctionalCaseMinderService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 f7b4aa702c..2d9b93ec97 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 @@ -20,7 +20,7 @@ public class FunctionalMinderTreeNodeDTO { private String text; @Schema(description = "用例等级") - private String priority; + private Integer priority; @Schema(description = "用例评审状态") private String status; 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 7e1bc80152..b87b59b85a 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 @@ -183,7 +183,7 @@ public class FunctionalCaseMinderService { rootData.setId(functionalCaseMindDTO.getId()); rootData.setPos(functionalCaseMindDTO.getPos()); rootData.setText(functionalCaseMindDTO.getName()); - rootData.setPriority(functionalCaseMindDTO.getPriority()); + rootData.setPriority(StringUtils.isNotBlank(functionalCaseMindDTO.getPriority()) ? Integer.parseInt(functionalCaseMindDTO.getPriority().substring(1)) : 0); rootData.setStatus(functionalCaseMindDTO.getReviewStatus()); rootData.setResource(List.of(Translator.get("minder_extra_node.case"))); List children = buildChildren(functionalCaseMindDTO);