diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/excel/domain/FunctionalCaseExportColumns.java b/backend/services/case-management/src/main/java/io/metersphere/functional/excel/domain/FunctionalCaseExportColumns.java index 317b0f9871..2891ee6a7c 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/excel/domain/FunctionalCaseExportColumns.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/excel/domain/FunctionalCaseExportColumns.java @@ -26,6 +26,8 @@ public class FunctionalCaseExportColumns { systemColumns.put("text_description", Translator.get("case.export.system.columns.text_description")); systemColumns.put("expected_result", Translator.get("case.export.system.columns.expected_result")); systemColumns.put("tags", Translator.get("xmind_tags")); + systemColumns.put("description", Translator.get("xmind_description")); + // 其他字段 otherColumns.put("last_execute_result", Translator.get("case.export.system.other.columns.last_execute_result")); diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java index 4320b57404..ecb13d0635 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java @@ -219,6 +219,7 @@ public class FunctionalCaseFileService { testCaseDTO.setName(Translator.get("test_case") + i); testCaseDTO.setModule(path.toString()); testCaseDTO.setPrerequisite(Translator.get("test_case_prerequisite")); + testCaseDTO.setDescription(Translator.get("test_case_remark")); testCaseDTO.setCaseEditType("STEP"); String textDescription = ""; String expectedResult = ""; @@ -653,7 +654,8 @@ public class FunctionalCaseFileService { //构建步骤 buildExportStep(data, functionalCaseBlob, functionalCase.getCaseEditType(), textDescriptionList, expectedResultList); data.setPrerequisite(parseHtml(new String(functionalCaseBlob.getPrerequisite() == null ? new byte[0] : functionalCaseBlob.getPrerequisite(), StandardCharsets.UTF_8))); - + //备注 + data.setDescription(parseHtml(new String(functionalCaseBlob.getDescription() == null ? new byte[0] : functionalCaseBlob.getDescription(), StandardCharsets.UTF_8))); //标签 data.setTags(JSON.toJSONString(functionalCase.getTags())); data.setCaseEditType(functionalCase.getCaseEditType()); diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/xmind/utils/XmindExportUtil.java b/backend/services/case-management/src/main/java/io/metersphere/functional/xmind/utils/XmindExportUtil.java index aa5ca73be4..3cf7561d82 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/xmind/utils/XmindExportUtil.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/xmind/utils/XmindExportUtil.java @@ -444,6 +444,9 @@ public class XmindExportUtil { case "tags": preTopic.setTitleText(columns.getSystemColumns().get(item).concat(":").concat(parseTag(dto.getTags()))); break; + case "description": + preTopic.setTitleText(columns.getSystemColumns().get(item).concat(":").concat(dto.getDescription())); + break; default: break; }