diff --git a/backend/app/pom.xml b/backend/app/pom.xml
index 47f746ccae..3a3d2406c3 100644
--- a/backend/app/pom.xml
+++ b/backend/app/pom.xml
@@ -46,7 +46,7 @@
io.metersphere
- metersphere-functional-test
+ metersphere-case-management
${revision}
@@ -61,7 +61,7 @@
io.metersphere
- metersphere-issue-management
+ metersphere-bug-management
${revision}
diff --git a/backend/app/src/main/resources/commons.properties b/backend/app/src/main/resources/commons.properties
index 8de3c6da0a..6bbfbd0907 100644
--- a/backend/app/src/main/resources/commons.properties
+++ b/backend/app/src/main/resources/commons.properties
@@ -70,7 +70,7 @@ jmeter.home=/opt/jmeter
spring.servlet.multipart.max-file-size=500MB
spring.servlet.multipart.max-request-size=500MB
# i18n
-spring.messages.basename=i18n/commons,i18n/api,i18n/issue,i18n/load,i18n/project,i18n/system,i18n/plan,i18n/functional,i18n/ui,i18n/workstation
+spring.messages.basename=i18n/commons,i18n/api,i18n/bug,i18n/load,i18n/project,i18n/system,i18n/plan,i18n/case,i18n/ui,i18n/workstation
# actuator
management.endpoints.web.exposure.include=*
management.endpoints.enabled-by-default=false
@@ -80,4 +80,4 @@ spring.redis.redisson.file=file:/opt/metersphere/conf/redisson.yml
spring.session.redis.repository-type=indexed
#
spring.freemarker.check-template-location=false
-spring.groovy.template.check-template-location=false
\ No newline at end of file
+spring.groovy.template.check-template-location=false
diff --git a/backend/app/src/main/resources/logback-spring.xml b/backend/app/src/main/resources/logback-spring.xml
index 4c75905c79..b658f2c728 100644
--- a/backend/app/src/main/resources/logback-spring.xml
+++ b/backend/app/src/main/resources/logback-spring.xml
@@ -269,15 +269,15 @@
-
+
INFO
- ${logging.file.path}/functional-test.log
+ ${logging.file.path}/case-management.log
- ${logging.file.path}/history/functional-test.%d{yyyyMMdd}-%i.log
+ ${logging.file.path}/history/case-management.%d{yyyyMMdd}-%i.log
${logger.max.history:-30}
50MB
@@ -355,15 +355,15 @@
-
-
+
INFO
- ${logging.file.path}/issue.log
+ ${logging.file.path}/bug.log
- ${logging.file.path}/history/issue.%d{yyyyMMdd}-%i.log
+ ${logging.file.path}/history/bug.%d{yyyyMMdd}-%i.log
${logger.max.history:-30}
50MB
@@ -372,15 +372,15 @@
%d %t %-5level %logger{36} %line - %msg%n
-
+
INFO
10000
-
+
-
-
+
+
@@ -436,4 +436,4 @@
-
\ No newline at end of file
+
diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_10__functional_ddl.sql b/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_10__case_ddl.sql
similarity index 100%
rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_10__functional_ddl.sql
rename to backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_10__case_ddl.sql
diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__issue_ddl.sql b/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__bug_ddl.sql
similarity index 86%
rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__issue_ddl.sql
rename to backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__bug_ddl.sql
index 9bfd5b2919..d977ea7eb4 100644
--- a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__issue_ddl.sql
+++ b/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__bug_ddl.sql
@@ -1,7 +1,8 @@
-- set innodb lock wait timeout
SET SESSION innodb_lock_wait_timeout = 7200;
-CREATE TABLE IF NOT EXISTS issue(
+DROP TABLE IF EXISTS bug;
+CREATE TABLE IF NOT EXISTS bug(
`id` VARCHAR(50) NOT NULL COMMENT 'ID' ,
`num` INT NOT NULL COMMENT '业务ID' ,
`title` VARCHAR(300) NOT NULL COMMENT '缺陷标题' ,
@@ -14,9 +15,7 @@ CREATE TABLE IF NOT EXISTS issue(
`platform_status` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '第三方平台状态' ,
`platform_id` VARCHAR(50) COMMENT '第三方平台缺陷ID' ,
PRIMARY KEY (id)
- ) ENGINE = InnoDB
- DEFAULT CHARSET = utf8mb4
- COLLATE = utf8mb4_general_ci COMMENT = '缺陷';
+ ) COMMENT = '缺陷';
-- set innodb lock wait timeout to default
diff --git a/backend/framework/domain/pom.xml b/backend/framework/domain/pom.xml
index 0d70789371..3ad4ca8180 100644
--- a/backend/framework/domain/pom.xml
+++ b/backend/framework/domain/pom.xml
@@ -49,7 +49,9 @@
src/main/resources/loadGeneratorConfig.xml
src/main/resources/sdkGeneratorConfig.xml
src/main/resources/projectGeneratorConfig.xml
- src/main/resources/systemGeneratorConfig.xml
+
+
+
diff --git a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/Issue.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/Bug.java
similarity index 57%
rename from backend/framework/domain/src/main/java/io/metersphere/issue/domain/Issue.java
rename to backend/framework/domain/src/main/java/io/metersphere/bug/domain/Bug.java
index 82ec835266..dbecbcfd74 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/Issue.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/Bug.java
@@ -1,4 +1,4 @@
-package io.metersphere.issue.domain;
+package io.metersphere.bug.domain;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
@@ -7,19 +7,19 @@ import java.io.Serializable;
import lombok.Data;
@Data
-public class Issue implements Serializable {
+public class Bug implements Serializable {
@Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
- @NotBlank(message = "{issue.id.not_blank}", groups = {Updated.class})
- @Size(min = 1, max = 50, message = "{issue.id.length_range}", groups = {Created.class, Updated.class})
+ @NotBlank(message = "{bug.id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{bug.id.length_range}", groups = {Created.class, Updated.class})
private String id;
@Schema(title = "业务ID", requiredMode = Schema.RequiredMode.REQUIRED)
- @NotNull(message = "{issue.num.not_blank}", groups = {Created.class})
+ @NotNull(message = "{bug.num.not_blank}", groups = {Created.class})
private Integer num;
@Schema(title = "缺陷标题", requiredMode = Schema.RequiredMode.REQUIRED)
- @NotBlank(message = "{issue.title.not_blank}", groups = {Created.class})
- @Size(min = 1, max = 300, message = "{issue.title.length_range}", groups = {Created.class, Updated.class})
+ @NotBlank(message = "{bug.title.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 300, message = "{bug.title.length_range}", groups = {Created.class, Updated.class})
private String title;
@Schema(title = "创建时间")
@@ -29,13 +29,13 @@ public class Issue implements Serializable {
private Long updateTime;
@Schema(title = "缺陷平台", requiredMode = Schema.RequiredMode.REQUIRED)
- @NotBlank(message = "{issue.platform.not_blank}", groups = {Created.class})
- @Size(min = 1, max = 50, message = "{issue.platform.length_range}", groups = {Created.class, Updated.class})
+ @NotBlank(message = "{bug.platform.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug.platform.length_range}", groups = {Created.class, Updated.class})
private String platform;
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
- @NotBlank(message = "{issue.project_id.not_blank}", groups = {Created.class})
- @Size(min = 1, max = 50, message = "{issue.project_id.length_range}", groups = {Created.class, Updated.class})
+ @NotBlank(message = "{bug.project_id.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(title = "创建人")
@@ -45,8 +45,8 @@ public class Issue implements Serializable {
private String sourceId;
@Schema(title = "第三方平台状态", requiredMode = Schema.RequiredMode.REQUIRED)
- @NotBlank(message = "{issue.platform_status.not_blank}", groups = {Created.class})
- @Size(min = 1, max = 50, message = "{issue.platform_status.length_range}", groups = {Created.class, Updated.class})
+ @NotBlank(message = "{bug.platform_status.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug.platform_status.length_range}", groups = {Created.class, Updated.class})
private String platformStatus;
@Schema(title = "第三方平台缺陷ID")
diff --git a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueFollow.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugAttachment.java
similarity index 51%
rename from backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueFollow.java
rename to backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugAttachment.java
index cee7e40918..f4eee92952 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueFollow.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugAttachment.java
@@ -1,4 +1,4 @@
-package io.metersphere.issue.domain;
+package io.metersphere.bug.domain;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
@@ -7,16 +7,16 @@ import java.io.Serializable;
import lombok.Data;
@Data
-public class IssueFollow implements Serializable {
+public class BugAttachment implements Serializable {
@Schema(title = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED)
- @NotBlank(message = "{issue_follow.issue_id.not_blank}", groups = {Created.class})
- @Size(min = 1, max = 50, message = "{issue_follow.issue_id.length_range}", groups = {Created.class, Updated.class})
- private String issueId;
+ @NotBlank(message = "{bug_attachment.bug_id.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug_attachment.bug_id.length_range}", groups = {Created.class, Updated.class})
+ private String bugId;
- @Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED)
- @NotBlank(message = "{issue_follow.follow_id.not_blank}", groups = {Created.class})
- @Size(min = 1, max = 50, message = "{issue_follow.follow_id.length_range}", groups = {Created.class, Updated.class})
- private String followId;
+ @Schema(title = "文件的ID", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_attachment.file_id.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug_attachment.file_id.length_range}", groups = {Created.class, Updated.class})
+ private String fileId;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueAttachmentExample.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugAttachmentExample.java
similarity index 81%
rename from backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueAttachmentExample.java
rename to backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugAttachmentExample.java
index 6b50851649..b225d508d4 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueAttachmentExample.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugAttachmentExample.java
@@ -1,16 +1,16 @@
-package io.metersphere.issue.domain;
+package io.metersphere.bug.domain;
import java.util.ArrayList;
import java.util.List;
-public class IssueAttachmentExample {
+public class BugAttachmentExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
- public IssueAttachmentExample() {
+ public BugAttachmentExample() {
oredCriteria = new ArrayList();
}
@@ -104,73 +104,73 @@ public class IssueAttachmentExample {
criteria.add(new Criterion(condition, value1, value2));
}
- public Criteria andIssueIdIsNull() {
- addCriterion("issue_id is null");
+ public Criteria andBugIdIsNull() {
+ addCriterion("bug_id is null");
return (Criteria) this;
}
- public Criteria andIssueIdIsNotNull() {
- addCriterion("issue_id is not null");
+ public Criteria andBugIdIsNotNull() {
+ addCriterion("bug_id is not null");
return (Criteria) this;
}
- public Criteria andIssueIdEqualTo(String value) {
- addCriterion("issue_id =", value, "issueId");
+ public Criteria andBugIdEqualTo(String value) {
+ addCriterion("bug_id =", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotEqualTo(String value) {
- addCriterion("issue_id <>", value, "issueId");
+ public Criteria andBugIdNotEqualTo(String value) {
+ addCriterion("bug_id <>", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdGreaterThan(String value) {
- addCriterion("issue_id >", value, "issueId");
+ public Criteria andBugIdGreaterThan(String value) {
+ addCriterion("bug_id >", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdGreaterThanOrEqualTo(String value) {
- addCriterion("issue_id >=", value, "issueId");
+ public Criteria andBugIdGreaterThanOrEqualTo(String value) {
+ addCriterion("bug_id >=", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdLessThan(String value) {
- addCriterion("issue_id <", value, "issueId");
+ public Criteria andBugIdLessThan(String value) {
+ addCriterion("bug_id <", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdLessThanOrEqualTo(String value) {
- addCriterion("issue_id <=", value, "issueId");
+ public Criteria andBugIdLessThanOrEqualTo(String value) {
+ addCriterion("bug_id <=", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdLike(String value) {
- addCriterion("issue_id like", value, "issueId");
+ public Criteria andBugIdLike(String value) {
+ addCriterion("bug_id like", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotLike(String value) {
- addCriterion("issue_id not like", value, "issueId");
+ public Criteria andBugIdNotLike(String value) {
+ addCriterion("bug_id not like", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdIn(List values) {
- addCriterion("issue_id in", values, "issueId");
+ public Criteria andBugIdIn(List values) {
+ addCriterion("bug_id in", values, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotIn(List values) {
- addCriterion("issue_id not in", values, "issueId");
+ public Criteria andBugIdNotIn(List values) {
+ addCriterion("bug_id not in", values, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdBetween(String value1, String value2) {
- addCriterion("issue_id between", value1, value2, "issueId");
+ public Criteria andBugIdBetween(String value1, String value2) {
+ addCriterion("bug_id between", value1, value2, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotBetween(String value1, String value2) {
- addCriterion("issue_id not between", value1, value2, "issueId");
+ public Criteria andBugIdNotBetween(String value1, String value2) {
+ addCriterion("bug_id not between", value1, value2, "bugId");
return (Criteria) this;
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueBlob.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugBlob.java
similarity index 59%
rename from backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueBlob.java
rename to backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugBlob.java
index abf3652072..cb0a81aacd 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueBlob.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugBlob.java
@@ -1,4 +1,4 @@
-package io.metersphere.issue.domain;
+package io.metersphere.bug.domain;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
@@ -7,10 +7,10 @@ import java.io.Serializable;
import lombok.Data;
@Data
-public class IssueBlob implements Serializable {
+public class BugBlob implements Serializable {
@Schema(title = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED)
- @NotBlank(message = "{issue_blob.id.not_blank}", groups = {Updated.class})
- @Size(min = 1, max = 50, message = "{issue_blob.id.length_range}", groups = {Created.class, Updated.class})
+ @NotBlank(message = "{bug_blob.id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{bug_blob.id.length_range}", groups = {Created.class, Updated.class})
private String id;
@Schema(title = "缺陷描述")
diff --git a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueBlobExample.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugBlobExample.java
similarity index 98%
rename from backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueBlobExample.java
rename to backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugBlobExample.java
index 62b9c1e96e..f9c3c8408a 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueBlobExample.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugBlobExample.java
@@ -1,16 +1,16 @@
-package io.metersphere.issue.domain;
+package io.metersphere.bug.domain;
import java.util.ArrayList;
import java.util.List;
-public class IssueBlobExample {
+public class BugBlobExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
- public IssueBlobExample() {
+ public BugBlobExample() {
oredCriteria = new ArrayList();
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugComment.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugComment.java
new file mode 100644
index 0000000000..4a3768c330
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugComment.java
@@ -0,0 +1,36 @@
+package io.metersphere.bug.domain;
+
+import io.metersphere.validation.groups.*;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.*;
+import java.io.Serializable;
+import lombok.Data;
+
+@Data
+public class BugComment implements Serializable {
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_comment.id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 64, message = "{bug_comment.id.length_range}", groups = {Created.class, Updated.class})
+ private String id;
+
+ @Schema(title = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_comment.bug_id.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 64, message = "{bug_comment.bug_id.length_range}", groups = {Created.class, Updated.class})
+ private String bugId;
+
+ @Schema(title = "评论人")
+ private String createUser;
+
+ @Schema(title = "创建时间")
+ private Long createTime;
+
+ @Schema(title = "更新时间")
+ private Long updateTime;
+
+ @Schema(title = "内容", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_comment.description.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 65535, message = "{bug_comment.description.length_range}", groups = {Created.class, Updated.class})
+ private String description;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueCommentExample.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCommentExample.java
similarity index 88%
rename from backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueCommentExample.java
rename to backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCommentExample.java
index 9bb517a18e..2b0177b2f9 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueCommentExample.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCommentExample.java
@@ -1,16 +1,16 @@
-package io.metersphere.issue.domain;
+package io.metersphere.bug.domain;
import java.util.ArrayList;
import java.util.List;
-public class IssueCommentExample {
+public class BugCommentExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
- public IssueCommentExample() {
+ public BugCommentExample() {
oredCriteria = new ArrayList();
}
@@ -174,73 +174,73 @@ public class IssueCommentExample {
return (Criteria) this;
}
- public Criteria andIssueIdIsNull() {
- addCriterion("issue_id is null");
+ public Criteria andBugIdIsNull() {
+ addCriterion("bug_id is null");
return (Criteria) this;
}
- public Criteria andIssueIdIsNotNull() {
- addCriterion("issue_id is not null");
+ public Criteria andBugIdIsNotNull() {
+ addCriterion("bug_id is not null");
return (Criteria) this;
}
- public Criteria andIssueIdEqualTo(String value) {
- addCriterion("issue_id =", value, "issueId");
+ public Criteria andBugIdEqualTo(String value) {
+ addCriterion("bug_id =", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotEqualTo(String value) {
- addCriterion("issue_id <>", value, "issueId");
+ public Criteria andBugIdNotEqualTo(String value) {
+ addCriterion("bug_id <>", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdGreaterThan(String value) {
- addCriterion("issue_id >", value, "issueId");
+ public Criteria andBugIdGreaterThan(String value) {
+ addCriterion("bug_id >", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdGreaterThanOrEqualTo(String value) {
- addCriterion("issue_id >=", value, "issueId");
+ public Criteria andBugIdGreaterThanOrEqualTo(String value) {
+ addCriterion("bug_id >=", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdLessThan(String value) {
- addCriterion("issue_id <", value, "issueId");
+ public Criteria andBugIdLessThan(String value) {
+ addCriterion("bug_id <", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdLessThanOrEqualTo(String value) {
- addCriterion("issue_id <=", value, "issueId");
+ public Criteria andBugIdLessThanOrEqualTo(String value) {
+ addCriterion("bug_id <=", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdLike(String value) {
- addCriterion("issue_id like", value, "issueId");
+ public Criteria andBugIdLike(String value) {
+ addCriterion("bug_id like", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotLike(String value) {
- addCriterion("issue_id not like", value, "issueId");
+ public Criteria andBugIdNotLike(String value) {
+ addCriterion("bug_id not like", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdIn(List values) {
- addCriterion("issue_id in", values, "issueId");
+ public Criteria andBugIdIn(List values) {
+ addCriterion("bug_id in", values, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotIn(List values) {
- addCriterion("issue_id not in", values, "issueId");
+ public Criteria andBugIdNotIn(List values) {
+ addCriterion("bug_id not in", values, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdBetween(String value1, String value2) {
- addCriterion("issue_id between", value1, value2, "issueId");
+ public Criteria andBugIdBetween(String value1, String value2) {
+ addCriterion("bug_id between", value1, value2, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotBetween(String value1, String value2) {
- addCriterion("issue_id not between", value1, value2, "issueId");
+ public Criteria andBugIdNotBetween(String value1, String value2) {
+ addCriterion("bug_id not between", value1, value2, "bugId");
return (Criteria) this;
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCustomField.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCustomField.java
new file mode 100644
index 0000000000..e5636e4f51
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCustomField.java
@@ -0,0 +1,28 @@
+package io.metersphere.bug.domain;
+
+import io.metersphere.validation.groups.*;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.*;
+import java.io.Serializable;
+import lombok.Data;
+
+@Data
+public class BugCustomField implements Serializable {
+ @Schema(title = "资源ID", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_custom_field.bug_id.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug_custom_field.bug_id.length_range}", groups = {Created.class, Updated.class})
+ private String bugId;
+
+ @Schema(title = "字段ID", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_custom_field.field_id.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug_custom_field.field_id.length_range}", groups = {Created.class, Updated.class})
+ private String fieldId;
+
+ @Schema(title = "字段值")
+ private String value;
+
+ @Schema(title = "文本类型字段值")
+ private byte[] textValue;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/CustomFieldIssuesExample.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCustomFieldExample.java
similarity index 84%
rename from backend/framework/domain/src/main/java/io/metersphere/issue/domain/CustomFieldIssuesExample.java
rename to backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCustomFieldExample.java
index 12b58351fe..4d56bdcb2e 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/CustomFieldIssuesExample.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugCustomFieldExample.java
@@ -1,16 +1,16 @@
-package io.metersphere.issue.domain;
+package io.metersphere.bug.domain;
import java.util.ArrayList;
import java.util.List;
-public class CustomFieldIssuesExample {
+public class BugCustomFieldExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
- public CustomFieldIssuesExample() {
+ public BugCustomFieldExample() {
oredCriteria = new ArrayList();
}
@@ -104,73 +104,73 @@ public class CustomFieldIssuesExample {
criteria.add(new Criterion(condition, value1, value2));
}
- public Criteria andResourceIdIsNull() {
- addCriterion("resource_id is null");
+ public Criteria andBugIdIsNull() {
+ addCriterion("bug_id is null");
return (Criteria) this;
}
- public Criteria andResourceIdIsNotNull() {
- addCriterion("resource_id is not null");
+ public Criteria andBugIdIsNotNull() {
+ addCriterion("bug_id is not null");
return (Criteria) this;
}
- public Criteria andResourceIdEqualTo(String value) {
- addCriterion("resource_id =", value, "resourceId");
+ public Criteria andBugIdEqualTo(String value) {
+ addCriterion("bug_id =", value, "bugId");
return (Criteria) this;
}
- public Criteria andResourceIdNotEqualTo(String value) {
- addCriterion("resource_id <>", value, "resourceId");
+ public Criteria andBugIdNotEqualTo(String value) {
+ addCriterion("bug_id <>", value, "bugId");
return (Criteria) this;
}
- public Criteria andResourceIdGreaterThan(String value) {
- addCriterion("resource_id >", value, "resourceId");
+ public Criteria andBugIdGreaterThan(String value) {
+ addCriterion("bug_id >", value, "bugId");
return (Criteria) this;
}
- public Criteria andResourceIdGreaterThanOrEqualTo(String value) {
- addCriterion("resource_id >=", value, "resourceId");
+ public Criteria andBugIdGreaterThanOrEqualTo(String value) {
+ addCriterion("bug_id >=", value, "bugId");
return (Criteria) this;
}
- public Criteria andResourceIdLessThan(String value) {
- addCriterion("resource_id <", value, "resourceId");
+ public Criteria andBugIdLessThan(String value) {
+ addCriterion("bug_id <", value, "bugId");
return (Criteria) this;
}
- public Criteria andResourceIdLessThanOrEqualTo(String value) {
- addCriterion("resource_id <=", value, "resourceId");
+ public Criteria andBugIdLessThanOrEqualTo(String value) {
+ addCriterion("bug_id <=", value, "bugId");
return (Criteria) this;
}
- public Criteria andResourceIdLike(String value) {
- addCriterion("resource_id like", value, "resourceId");
+ public Criteria andBugIdLike(String value) {
+ addCriterion("bug_id like", value, "bugId");
return (Criteria) this;
}
- public Criteria andResourceIdNotLike(String value) {
- addCriterion("resource_id not like", value, "resourceId");
+ public Criteria andBugIdNotLike(String value) {
+ addCriterion("bug_id not like", value, "bugId");
return (Criteria) this;
}
- public Criteria andResourceIdIn(List values) {
- addCriterion("resource_id in", values, "resourceId");
+ public Criteria andBugIdIn(List values) {
+ addCriterion("bug_id in", values, "bugId");
return (Criteria) this;
}
- public Criteria andResourceIdNotIn(List values) {
- addCriterion("resource_id not in", values, "resourceId");
+ public Criteria andBugIdNotIn(List values) {
+ addCriterion("bug_id not in", values, "bugId");
return (Criteria) this;
}
- public Criteria andResourceIdBetween(String value1, String value2) {
- addCriterion("resource_id between", value1, value2, "resourceId");
+ public Criteria andBugIdBetween(String value1, String value2) {
+ addCriterion("bug_id between", value1, value2, "bugId");
return (Criteria) this;
}
- public Criteria andResourceIdNotBetween(String value1, String value2) {
- addCriterion("resource_id not between", value1, value2, "resourceId");
+ public Criteria andBugIdNotBetween(String value1, String value2) {
+ addCriterion("bug_id not between", value1, value2, "bugId");
return (Criteria) this;
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueExample.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugExample.java
similarity index 99%
rename from backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueExample.java
rename to backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugExample.java
index 24fac12eec..db02318075 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueExample.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugExample.java
@@ -1,16 +1,16 @@
-package io.metersphere.issue.domain;
+package io.metersphere.bug.domain;
import java.util.ArrayList;
import java.util.List;
-public class IssueExample {
+public class BugExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
- public IssueExample() {
+ public BugExample() {
oredCriteria = new ArrayList();
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFollower.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFollower.java
new file mode 100644
index 0000000000..8fd88e8154
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFollower.java
@@ -0,0 +1,22 @@
+package io.metersphere.bug.domain;
+
+import io.metersphere.validation.groups.*;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.*;
+import java.io.Serializable;
+import lombok.Data;
+
+@Data
+public class BugFollower implements Serializable {
+ @Schema(title = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_follower.bug_id.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug_follower.bug_id.length_range}", groups = {Created.class, Updated.class})
+ private String bugId;
+
+ @Schema(title = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_follower.user_id.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug_follower.user_id.length_range}", groups = {Created.class, Updated.class})
+ private String userId;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueFollowExample.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFollowerExample.java
similarity index 64%
rename from backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueFollowExample.java
rename to backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFollowerExample.java
index 297b2b682c..c309a601ed 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssueFollowExample.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFollowerExample.java
@@ -1,16 +1,16 @@
-package io.metersphere.issue.domain;
+package io.metersphere.bug.domain;
import java.util.ArrayList;
import java.util.List;
-public class IssueFollowExample {
+public class BugFollowerExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
- public IssueFollowExample() {
+ public BugFollowerExample() {
oredCriteria = new ArrayList();
}
@@ -104,143 +104,143 @@ public class IssueFollowExample {
criteria.add(new Criterion(condition, value1, value2));
}
- public Criteria andIssueIdIsNull() {
- addCriterion("issue_id is null");
+ public Criteria andBugIdIsNull() {
+ addCriterion("bug_id is null");
return (Criteria) this;
}
- public Criteria andIssueIdIsNotNull() {
- addCriterion("issue_id is not null");
+ public Criteria andBugIdIsNotNull() {
+ addCriterion("bug_id is not null");
return (Criteria) this;
}
- public Criteria andIssueIdEqualTo(String value) {
- addCriterion("issue_id =", value, "issueId");
+ public Criteria andBugIdEqualTo(String value) {
+ addCriterion("bug_id =", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotEqualTo(String value) {
- addCriterion("issue_id <>", value, "issueId");
+ public Criteria andBugIdNotEqualTo(String value) {
+ addCriterion("bug_id <>", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdGreaterThan(String value) {
- addCriterion("issue_id >", value, "issueId");
+ public Criteria andBugIdGreaterThan(String value) {
+ addCriterion("bug_id >", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdGreaterThanOrEqualTo(String value) {
- addCriterion("issue_id >=", value, "issueId");
+ public Criteria andBugIdGreaterThanOrEqualTo(String value) {
+ addCriterion("bug_id >=", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdLessThan(String value) {
- addCriterion("issue_id <", value, "issueId");
+ public Criteria andBugIdLessThan(String value) {
+ addCriterion("bug_id <", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdLessThanOrEqualTo(String value) {
- addCriterion("issue_id <=", value, "issueId");
+ public Criteria andBugIdLessThanOrEqualTo(String value) {
+ addCriterion("bug_id <=", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdLike(String value) {
- addCriterion("issue_id like", value, "issueId");
+ public Criteria andBugIdLike(String value) {
+ addCriterion("bug_id like", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotLike(String value) {
- addCriterion("issue_id not like", value, "issueId");
+ public Criteria andBugIdNotLike(String value) {
+ addCriterion("bug_id not like", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdIn(List values) {
- addCriterion("issue_id in", values, "issueId");
+ public Criteria andBugIdIn(List values) {
+ addCriterion("bug_id in", values, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotIn(List values) {
- addCriterion("issue_id not in", values, "issueId");
+ public Criteria andBugIdNotIn(List values) {
+ addCriterion("bug_id not in", values, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdBetween(String value1, String value2) {
- addCriterion("issue_id between", value1, value2, "issueId");
+ public Criteria andBugIdBetween(String value1, String value2) {
+ addCriterion("bug_id between", value1, value2, "bugId");
return (Criteria) this;
}
- public Criteria andIssueIdNotBetween(String value1, String value2) {
- addCriterion("issue_id not between", value1, value2, "issueId");
+ public Criteria andBugIdNotBetween(String value1, String value2) {
+ addCriterion("bug_id not between", value1, value2, "bugId");
return (Criteria) this;
}
- public Criteria andFollowIdIsNull() {
- addCriterion("follow_id is null");
+ public Criteria andUserIdIsNull() {
+ addCriterion("user_id is null");
return (Criteria) this;
}
- public Criteria andFollowIdIsNotNull() {
- addCriterion("follow_id is not null");
+ public Criteria andUserIdIsNotNull() {
+ addCriterion("user_id is not null");
return (Criteria) this;
}
- public Criteria andFollowIdEqualTo(String value) {
- addCriterion("follow_id =", value, "followId");
+ public Criteria andUserIdEqualTo(String value) {
+ addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
- public Criteria andFollowIdNotEqualTo(String value) {
- addCriterion("follow_id <>", value, "followId");
+ public Criteria andUserIdNotEqualTo(String value) {
+ addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
- public Criteria andFollowIdGreaterThan(String value) {
- addCriterion("follow_id >", value, "followId");
+ public Criteria andUserIdGreaterThan(String value) {
+ addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
- public Criteria andFollowIdGreaterThanOrEqualTo(String value) {
- addCriterion("follow_id >=", value, "followId");
+ public Criteria andUserIdGreaterThanOrEqualTo(String value) {
+ addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
- public Criteria andFollowIdLessThan(String value) {
- addCriterion("follow_id <", value, "followId");
+ public Criteria andUserIdLessThan(String value) {
+ addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
- public Criteria andFollowIdLessThanOrEqualTo(String value) {
- addCriterion("follow_id <=", value, "followId");
+ public Criteria andUserIdLessThanOrEqualTo(String value) {
+ addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
- public Criteria andFollowIdLike(String value) {
- addCriterion("follow_id like", value, "followId");
+ public Criteria andUserIdLike(String value) {
+ addCriterion("user_id like", value, "userId");
return (Criteria) this;
}
- public Criteria andFollowIdNotLike(String value) {
- addCriterion("follow_id not like", value, "followId");
+ public Criteria andUserIdNotLike(String value) {
+ addCriterion("user_id not like", value, "userId");
return (Criteria) this;
}
- public Criteria andFollowIdIn(List values) {
- addCriterion("follow_id in", values, "followId");
+ public Criteria andUserIdIn(List values) {
+ addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
- public Criteria andFollowIdNotIn(List values) {
- addCriterion("follow_id not in", values, "followId");
+ public Criteria andUserIdNotIn(List values) {
+ addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
- public Criteria andFollowIdBetween(String value1, String value2) {
- addCriterion("follow_id between", value1, value2, "followId");
+ public Criteria andUserIdBetween(String value1, String value2) {
+ addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
- public Criteria andFollowIdNotBetween(String value1, String value2) {
- addCriterion("follow_id not between", value1, value2, "followId");
+ public Criteria andUserIdNotBetween(String value1, String value2) {
+ addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFunctionalCase.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFunctionalCase.java
new file mode 100644
index 0000000000..2edf0736a9
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFunctionalCase.java
@@ -0,0 +1,43 @@
+package io.metersphere.bug.domain;
+
+import io.metersphere.validation.groups.*;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.*;
+import java.io.Serializable;
+import lombok.Data;
+
+@Data
+public class BugFunctionalCase implements Serializable {
+ @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_functional_case.id.not_blank}", groups = {Updated.class})
+ @Size(min = 1, max = 50, message = "{bug_functional_case.id.length_range}", groups = {Created.class, Updated.class})
+ private String id;
+
+ @Schema(title = "功能用例或测试计划功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_functional_case.resource_id.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug_functional_case.resource_id.length_range}", groups = {Created.class, Updated.class})
+ private String resourceId;
+
+ @Schema(title = "缺陷ID", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_functional_case.bug_id.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug_functional_case.bug_id.length_range}", groups = {Created.class, Updated.class})
+ private String bugId;
+
+ @Schema(title = "关联的类型:关联功能用例/关联测试计划功能用例", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_functional_case.ref_type.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 64, message = "{bug_functional_case.ref_type.length_range}", groups = {Created.class, Updated.class})
+ private String refType;
+
+ @Schema(title = "测试计划的用例所指向的用例的id", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotBlank(message = "{bug_functional_case.ref_id.not_blank}", groups = {Created.class})
+ @Size(min = 1, max = 50, message = "{bug_functional_case.ref_id.length_range}", groups = {Created.class, Updated.class})
+ private String refId;
+
+ @Schema(title = "创建时间")
+ private Long createTime;
+
+ @Schema(title = "更新时间")
+ private Long updateTime;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssuesFunctionalCaseExample.java b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFunctionalCaseExample.java
similarity index 91%
rename from backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssuesFunctionalCaseExample.java
rename to backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFunctionalCaseExample.java
index 90e17e3959..1b45a38185 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/issue/domain/IssuesFunctionalCaseExample.java
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/domain/BugFunctionalCaseExample.java
@@ -1,16 +1,16 @@
-package io.metersphere.issue.domain;
+package io.metersphere.bug.domain;
import java.util.ArrayList;
import java.util.List;
-public class IssuesFunctionalCaseExample {
+public class BugFunctionalCaseExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
- public IssuesFunctionalCaseExample() {
+ public BugFunctionalCaseExample() {
oredCriteria = new ArrayList();
}
@@ -244,73 +244,73 @@ public class IssuesFunctionalCaseExample {
return (Criteria) this;
}
- public Criteria andIssuesIdIsNull() {
- addCriterion("issues_id is null");
+ public Criteria andBugIdIsNull() {
+ addCriterion("bug_id is null");
return (Criteria) this;
}
- public Criteria andIssuesIdIsNotNull() {
- addCriterion("issues_id is not null");
+ public Criteria andBugIdIsNotNull() {
+ addCriterion("bug_id is not null");
return (Criteria) this;
}
- public Criteria andIssuesIdEqualTo(String value) {
- addCriterion("issues_id =", value, "issuesId");
+ public Criteria andBugIdEqualTo(String value) {
+ addCriterion("bug_id =", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssuesIdNotEqualTo(String value) {
- addCriterion("issues_id <>", value, "issuesId");
+ public Criteria andBugIdNotEqualTo(String value) {
+ addCriterion("bug_id <>", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssuesIdGreaterThan(String value) {
- addCriterion("issues_id >", value, "issuesId");
+ public Criteria andBugIdGreaterThan(String value) {
+ addCriterion("bug_id >", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssuesIdGreaterThanOrEqualTo(String value) {
- addCriterion("issues_id >=", value, "issuesId");
+ public Criteria andBugIdGreaterThanOrEqualTo(String value) {
+ addCriterion("bug_id >=", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssuesIdLessThan(String value) {
- addCriterion("issues_id <", value, "issuesId");
+ public Criteria andBugIdLessThan(String value) {
+ addCriterion("bug_id <", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssuesIdLessThanOrEqualTo(String value) {
- addCriterion("issues_id <=", value, "issuesId");
+ public Criteria andBugIdLessThanOrEqualTo(String value) {
+ addCriterion("bug_id <=", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssuesIdLike(String value) {
- addCriterion("issues_id like", value, "issuesId");
+ public Criteria andBugIdLike(String value) {
+ addCriterion("bug_id like", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssuesIdNotLike(String value) {
- addCriterion("issues_id not like", value, "issuesId");
+ public Criteria andBugIdNotLike(String value) {
+ addCriterion("bug_id not like", value, "bugId");
return (Criteria) this;
}
- public Criteria andIssuesIdIn(List values) {
- addCriterion("issues_id in", values, "issuesId");
+ public Criteria andBugIdIn(List values) {
+ addCriterion("bug_id in", values, "bugId");
return (Criteria) this;
}
- public Criteria andIssuesIdNotIn(List values) {
- addCriterion("issues_id not in", values, "issuesId");
+ public Criteria andBugIdNotIn(List values) {
+ addCriterion("bug_id not in", values, "bugId");
return (Criteria) this;
}
- public Criteria andIssuesIdBetween(String value1, String value2) {
- addCriterion("issues_id between", value1, value2, "issuesId");
+ public Criteria andBugIdBetween(String value1, String value2) {
+ addCriterion("bug_id between", value1, value2, "bugId");
return (Criteria) this;
}
- public Criteria andIssuesIdNotBetween(String value1, String value2) {
- addCriterion("issues_id not between", value1, value2, "issuesId");
+ public Criteria andBugIdNotBetween(String value1, String value2) {
+ addCriterion("bug_id not between", value1, value2, "bugId");
return (Criteria) this;
}
diff --git a/backend/framework/domain/src/main/java/io/metersphere/bug/mapper/BugAttachmentMapper.java b/backend/framework/domain/src/main/java/io/metersphere/bug/mapper/BugAttachmentMapper.java
new file mode 100644
index 0000000000..1bc5a90680
--- /dev/null
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/mapper/BugAttachmentMapper.java
@@ -0,0 +1,24 @@
+package io.metersphere.bug.mapper;
+
+import io.metersphere.bug.domain.BugAttachment;
+import io.metersphere.bug.domain.BugAttachmentExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface BugAttachmentMapper {
+ long countByExample(BugAttachmentExample example);
+
+ int deleteByExample(BugAttachmentExample example);
+
+ int deleteByPrimaryKey(@Param("bugId") String bugId, @Param("fileId") String fileId);
+
+ int insert(BugAttachment record);
+
+ int insertSelective(BugAttachment record);
+
+ List selectByExample(BugAttachmentExample example);
+
+ int updateByExampleSelective(@Param("record") BugAttachment record, @Param("example") BugAttachmentExample example);
+
+ int updateByExample(@Param("record") BugAttachment record, @Param("example") BugAttachmentExample example);
+}
\ No newline at end of file
diff --git a/backend/framework/domain/src/main/java/io/metersphere/issue/mapper/IssueAttachmentMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/bug/mapper/BugAttachmentMapper.xml
similarity index 73%
rename from backend/framework/domain/src/main/java/io/metersphere/issue/mapper/IssueAttachmentMapper.xml
rename to backend/framework/domain/src/main/java/io/metersphere/bug/mapper/BugAttachmentMapper.xml
index 1e4e82a081..153ede1098 100644
--- a/backend/framework/domain/src/main/java/io/metersphere/issue/mapper/IssueAttachmentMapper.xml
+++ b/backend/framework/domain/src/main/java/io/metersphere/bug/mapper/BugAttachmentMapper.xml
@@ -1,8 +1,8 @@
-
-
-
+
+
+
@@ -64,15 +64,15 @@
- issue_id, file_id
+ bug_id, file_id
-