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 @@