diff --git a/backend/framework/provider/src/main/java/io/metersphere/dto/BugProviderDTO.java b/backend/framework/provider/src/main/java/io/metersphere/dto/BugProviderDTO.java index 897a96b5fe..dd791e264f 100644 --- a/backend/framework/provider/src/main/java/io/metersphere/dto/BugProviderDTO.java +++ b/backend/framework/provider/src/main/java/io/metersphere/dto/BugProviderDTO.java @@ -15,9 +15,12 @@ public class BugProviderDTO implements Serializable { @Serial private static final long serialVersionUID = 1L; - @Schema(description = "缺陷id") + @Schema(description = "id") private String id; + @Schema(description = "bugId") + private String bugId; + @Schema(description = "缺陷名称") private String name; @@ -35,4 +38,13 @@ public class BugProviderDTO implements Serializable { @Schema(description = "创建时间") private Long createTime; + + @Schema(description = "计划名称") + private String testPlanName; + + @Schema(description = "计划id") + private String testPlanId; + + @Schema(description = "来源") + private String source; } diff --git a/backend/framework/sdk/src/main/resources/i18n/bug_en_US.properties b/backend/framework/sdk/src/main/resources/i18n/bug_en_US.properties index f287dbe00a..a950440f4c 100644 --- a/backend/framework/sdk/src/main/resources/i18n/bug_en_US.properties +++ b/backend/framework/sdk/src/main/resources/i18n/bug_en_US.properties @@ -117,4 +117,6 @@ bug.export.system.other.columns.create_time=Create time bug.export.system.other.columns.case_count=Case count bug.export.system.other.columns.comment=Comment bug.export.system.other.columns.platform=Platform -permission.bug.name=Bug management \ No newline at end of file +permission.bug.name=Bug management +test_plan_related=Test plan related +direct_related=Direct related \ No newline at end of file diff --git a/backend/framework/sdk/src/main/resources/i18n/bug_zh_CN.properties b/backend/framework/sdk/src/main/resources/i18n/bug_zh_CN.properties index 25b4416ebb..bb9d8a054e 100644 --- a/backend/framework/sdk/src/main/resources/i18n/bug_zh_CN.properties +++ b/backend/framework/sdk/src/main/resources/i18n/bug_zh_CN.properties @@ -117,4 +117,6 @@ bug.export.system.other.columns.create_time=创建时间 bug.export.system.other.columns.case_count=用例数 bug.export.system.other.columns.comment=评论 bug.export.system.other.columns.platform=所属平台 -permission.bug.name=缺陷管理 \ No newline at end of file +permission.bug.name=缺陷管理 +test_plan_relate=测试计划关联 +direct_related=直接关联 \ No newline at end of file diff --git a/backend/framework/sdk/src/main/resources/i18n/bug_zh_TW.properties b/backend/framework/sdk/src/main/resources/i18n/bug_zh_TW.properties index 55f285de7b..38f48f3c50 100644 --- a/backend/framework/sdk/src/main/resources/i18n/bug_zh_TW.properties +++ b/backend/framework/sdk/src/main/resources/i18n/bug_zh_TW.properties @@ -118,4 +118,6 @@ bug.export.system.other.columns.create_time=創建時間 bug.export.system.other.columns.case_count=用例數 bug.export.system.other.columns.comment=評論 bug.export.system.other.columns.platform=所屬平台 -permission.bug.name=缺陷管理 \ No newline at end of file +permission.bug.name=缺陷管理 +test_plan_related=測試計劃關聯 +direct_related=直接關聯 \ No newline at end of file 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 527827d71a..0c31406bfd 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 @@ -22,14 +22,17 @@