From d14c30cdb2a8e21313dca35c5e0376947f501517 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Wed, 10 Jan 2024 16:02:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B):?= =?UTF-8?q?=20=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=85=B3=E8=81=94?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E5=88=97=E8=A1=A8=E8=BF=94=E5=9B=9E=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=96=B0=E5=A2=9E=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/dto/BugProviderDTO.java | 14 +++++++++++++- .../src/main/resources/i18n/bug_en_US.properties | 4 +++- .../src/main/resources/i18n/bug_zh_CN.properties | 4 +++- .../src/main/resources/i18n/bug_zh_TW.properties | 4 +++- .../bug/mapper/ExtBugRelateCaseMapper.xml | 9 ++++++--- .../bug/provider/AssociateBugProvider.java | 12 +++++++++++- .../bug/controller/AssociateBugProviderTests.java | 4 ++++ .../test/resources/dml/init_bug_relation_case.sql | 5 ++++- 8 files changed, 47 insertions(+), 9 deletions(-) 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 @@