From bd143468b59eec13bf25a32ceae7f2d852873571 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Tue, 24 Dec 2024 13:42:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E5=AF=BC=E5=87=BAexcel=E7=94=A8=E4=BE=8B=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1050742 --user=王旭 【用例管理】导出用例为excel-模块导出错误 https://www.tapd.cn/55049933/s/1635925 --- .../functional/service/FunctionalCaseModuleService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseModuleService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseModuleService.java index 106640378e..25293bdb69 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseModuleService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseModuleService.java @@ -67,6 +67,11 @@ public class FunctionalCaseModuleService extends ModuleTreeService { public List getTree(String projectId) { List functionalModuleList = extFunctionalCaseModuleMapper.selectBaseByProjectId(projectId); + functionalModuleList.forEach(baseTreeNode -> { + if (StringUtils.equalsIgnoreCase(baseTreeNode.getParentId(), ModuleConstants.ROOT_NODE_PARENT_ID)) { + baseTreeNode.setPath(baseTreeNode.getPath() + baseTreeNode.getName()); + } + }); return super.buildTreeAndCountResource(functionalModuleList, true, Translator.get("functional_case.module.default.name")); }