From dbacfc7d7c11d70f2788ecf8f29f8181ded45aca Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 4 Mar 2024 20:46:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E5=85=B3=E8=81=94=E7=94=A8=E4=BE=8B=E9=83=A8=E5=88=86=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1036504 --user=宋昌昌 【缺陷管理】缺陷详情-关联用例-列表有数据不展示-无法关联 https://www.tapd.cn/55049933/s/1468978 --- .../bug/dto/response/BugRelateCaseDTO.java | 3 + .../bug/mapper/ExtBugRelateCaseMapper.xml | 3 +- .../mapper/ExtFunctionalCaseMapper.xml | 1 - .../provider/AssociateCaseProvider.java | 22 +++++- frontend/src/api/requrls/bug-management.ts | 2 +- .../business/ms-case-associate/index.vue | 70 +++++++------------ frontend/src/locale/en-US/common.ts | 3 + frontend/src/locale/zh-CN/common.ts | 3 + .../bug-management/components/bugCaseTab.vue | 55 ++++++++++++--- .../src/views/bug-management/locale/en-US.ts | 4 ++ .../src/views/bug-management/locale/zh-CN.ts | 4 ++ 11 files changed, 109 insertions(+), 61 deletions(-) diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/response/BugRelateCaseDTO.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/response/BugRelateCaseDTO.java index 8f5c0e9827..11602eb075 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/response/BugRelateCaseDTO.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/response/BugRelateCaseDTO.java @@ -9,6 +9,9 @@ public class BugRelateCaseDTO{ @Schema(description = "关联ID") private String relateId; + @Schema(description = "关联用例ID") + private String relateCaseId; + @Schema(description = "关联用例名称") private String relateCaseName; diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.xml b/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.xml index d44dc4a765..d87dd0f0d5 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.xml +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.xml @@ -11,7 +11,6 @@ from functional_case_module fcm left join functional_case fc on fc.module_id = fcm.id where fc.deleted = #{deleted} and fc.project_id = #{request.projectId} - and fc.version_id = #{request.versionId} and fc.id not in ( select brc.case_id from bug_relation_case brc where brc.bug_id = #{request.sourceId} and brc.case_type = #{request.sourceType} @@ -46,7 +45,7 @@