From 38e8ccdc03beb4b889ce37fe44b879b9bdbba8f6 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Fri, 26 May 2023 18:44:04 +0800 Subject: [PATCH] =?UTF-8?q?build(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=9B=B4=E6=96=B0domain?= =?UTF-8?q?=E5=92=8Cmapper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 测试计划更新domain和mapper --- .../io/metersphere/plan/domain/TestPlan.java | 49 +- .../plan/domain/TestPlanApiCase.java | 55 +- .../plan/domain/TestPlanApiCaseExample.java | 740 ++++++++++ .../plan/domain/TestPlanApiScenario.java | 44 +- .../domain/TestPlanApiScenarioExample.java | 740 ++++++++++ .../plan/domain/TestPlanConfig.java | 34 +- .../plan/domain/TestPlanConfigExample.java | 450 ++++++ .../plan/domain/TestPlanExample.java | 1260 +++++++++++++++++ .../plan/domain/TestPlanExecuteRecord.java | 36 +- .../domain/TestPlanExecuteRecordBlob.java | 43 - .../domain/TestPlanExecuteRecordExample.java | 920 ++++++++++++ .../plan/domain/TestPlanExecutionQueue.java | 45 + .../domain/TestPlanExecutionQueueExample.java | 670 +++++++++ .../plan/domain/TestPlanFollow.java | 21 +- .../plan/domain/TestPlanFollowExample.java | 340 +++++ .../plan/domain/TestPlanFunctionCase.java | 32 +- .../domain/TestPlanFunctionCaseExample.java | 600 ++++++++ .../domain/TestPlanFunctionCaseResult.java | 50 + .../TestPlanFunctionCaseResultExample.java | 750 ++++++++++ .../plan/domain/TestPlanLoadCase.java | 35 +- .../plan/domain/TestPlanLoadCaseExample.java | 670 +++++++++ .../plan/domain/TestPlanPrincipal.java | 16 +- .../plan/domain/TestPlanPrincipalExample.java | 340 +++++ .../domain/TestPlanRecordApiCaseInfo.java | 34 + .../TestPlanRecordApiCaseInfoExample.java | 480 +++++++ .../domain/TestPlanRecordApiScenarioInfo.java | 34 + .../TestPlanRecordApiScenarioInfoExample.java | 480 +++++++ .../domain/TestPlanRecordLoadCaseInfo.java | 34 + .../TestPlanRecordLoadCaseInfoExample.java | 480 +++++++ .../domain/TestPlanRecordUiScenarioInfo.java | 34 + .../TestPlanRecordUiScenarioInfoExample.java | 480 +++++++ .../plan/domain/TestPlanReport.java | 36 +- .../plan/domain/TestPlanReportContent.java | 20 +- .../domain/TestPlanReportContentExample.java | 410 ++++++ .../plan/domain/TestPlanReportExample.java | 970 +++++++++++++ .../plan/domain/TestPlanUiScenario.java | 39 +- .../domain/TestPlanUiScenarioExample.java | 740 ++++++++++ .../plan/mapper/TestPlanApiCaseMapper.java | 36 + .../plan/mapper/TestPlanApiCaseMapper.xml | 324 +++++ .../mapper/TestPlanApiScenarioMapper.java | 36 + .../plan/mapper/TestPlanApiScenarioMapper.xml | 324 +++++ .../plan/mapper/TestPlanConfigMapper.java | 36 + .../plan/mapper/TestPlanConfigMapper.xml | 251 ++++ .../mapper/TestPlanExecuteRecordMapper.java | 36 + .../mapper/TestPlanExecuteRecordMapper.xml | 377 +++++ .../mapper/TestPlanExecutionQueueMapper.java | 30 + .../mapper/TestPlanExecutionQueueMapper.xml | 244 ++++ .../plan/mapper/TestPlanFollowMapper.java | 24 + .../plan/mapper/TestPlanFollowMapper.xml | 145 ++ .../mapper/TestPlanFunctionCaseMapper.java | 30 + .../mapper/TestPlanFunctionCaseMapper.xml | 228 +++ .../TestPlanFunctionCaseResultMapper.java | 30 + .../TestPlanFunctionCaseResultMapper.xml | 259 ++++ .../plan/mapper/TestPlanLoadCaseMapper.java | 36 + .../plan/mapper/TestPlanLoadCaseMapper.xml | 322 +++++ .../plan/mapper/TestPlanMapper.java | 30 + .../plan/mapper/TestPlanMapper.xml | 386 +++++ .../plan/mapper/TestPlanPrincipalMapper.java | 24 + .../plan/mapper/TestPlanPrincipalMapper.xml | 145 ++ .../TestPlanRecordApiCaseInfoMapper.java | 30 + .../TestPlanRecordApiCaseInfoMapper.xml | 196 +++ .../TestPlanRecordApiScenarioInfoMapper.java | 30 + .../TestPlanRecordApiScenarioInfoMapper.xml | 196 +++ .../TestPlanRecordLoadCaseInfoMapper.java | 30 + .../TestPlanRecordLoadCaseInfoMapper.xml | 196 +++ .../TestPlanRecordUiScenarioInfoMapper.java | 30 + .../TestPlanRecordUiScenarioInfoMapper.xml | 196 +++ .../mapper/TestPlanReportContentMapper.java | 36 + .../mapper/TestPlanReportContentMapper.xml | 234 +++ .../plan/mapper/TestPlanReportMapper.java | 30 + .../plan/mapper/TestPlanReportMapper.xml | 323 +++++ .../plan/mapper/TestPlanUiScenarioMapper.java | 36 + .../plan/mapper/TestPlanUiScenarioMapper.xml | 324 +++++ .../src/main/resources/generatorConfig.xml | 36 +- .../plan/service/TestPlanService.java | 2 +- .../controller/TestPlanControllerTests.java | 4 +- 76 files changed, 17177 insertions(+), 316 deletions(-) create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCaseExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenarioExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfigExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordBlob.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueue.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueueExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollowExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResult.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResultExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCaseExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipalExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfo.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfoExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfo.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfoExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfo.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfoExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfo.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfoExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContentExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenarioExample.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiCaseMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiCaseMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiScenarioMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiScenarioMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanConfigMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanConfigMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecuteRecordMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecuteRecordMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecutionQueueMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecutionQueueMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFollowMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFollowMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseResultMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseResultMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanLoadCaseMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanLoadCaseMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanPrincipalMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanPrincipalMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiCaseInfoMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiCaseInfoMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiScenarioInfoMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiScenarioInfoMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordLoadCaseInfoMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordLoadCaseInfoMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordUiScenarioInfoMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordUiScenarioInfoMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportContentMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportContentMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportMapper.xml create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanUiScenarioMapper.java create mode 100644 backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanUiScenarioMapper.xml diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java index 206c9982d7..1af918f32f 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlan.java @@ -5,87 +5,72 @@ import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; -import lombok.Data; -import org.springframework.data.annotation.Id; -import org.springframework.data.relational.core.mapping.Table; - import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划") -@Table("test_plan") @Data public class TestPlan implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @NotBlank(message = "{test_plan.id.not_blank}", groups = {Updated.class}) @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Size(min = 1, max = 50, message = "{test_plan.project_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan.project_id.not_blank}", groups = {Created.class}) @Schema(title = "测试计划所属项目", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan.project_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Size(min = 1, max = 50, message = "{test_plan.parent_id.length_range}", groups = {Created.class, Updated.class}) + @Schema(title = "测试计划父ID;测试计划要改为树结构。最上层的为root,其余则是父节点ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan.parent_id.not_blank}", groups = {Created.class}) - @Schema(title = "测试计划父ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Size(min = 1, max = 50, message = "{test_plan.parent_id.length_range}", groups = {Created.class, Updated.class}) private String parentId; - @Size(min = 1, max = 255, message = "{test_plan.name.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan.name.not_blank}", groups = {Created.class}) @Schema(title = "测试计划名称", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan.name.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 255, message = "{test_plan.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Size(min = 1, max = 20, message = "{test_plan.status.length_range}", groups = {Created.class, Updated.class}) + @Schema(title = "测试计划状态;进行中/未开始/已完成/已结束/已归档", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan.status.not_blank}", groups = {Created.class}) - @Schema(title = "测试计划状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Size(min = 1, max = 20, message = "{test_plan.status.length_range}", groups = {Created.class, Updated.class}) private String status; - @Size(min = 1, max = 30, message = "{test_plan.stage.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan.stage.not_blank}", groups = {Created.class}) @Schema(title = "测试阶段", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan.stage.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 30, message = "{test_plan.stage.length_range}", groups = {Created.class, Updated.class}) private String stage; - @Schema(title = "标签") private String tags; - - @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(title = "创建时间") private Long createTime; - @Size(min = 1, max = 50, message = "{test_plan.create_user.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan.create_user.not_blank}", groups = {Created.class}) @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan.create_user.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; - @Schema(title = "更新时间") private Long updateTime; - @Schema(title = "更新人") private String updateUser; - @Schema(title = "计划开始时间") private Long plannedStartTime; - @Schema(title = "计划结束时间") private Long plannedEndTime; - @Schema(title = "实际开始时间") private Long actualStartTime; - @Schema(title = "实际结束时间") private Long actualEndTime; - @Schema(title = "描述") 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/plan/domain/TestPlanApiCase.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCase.java index 3ba6d8168b..73c4f58d76 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCase.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCase.java @@ -5,56 +5,47 @@ import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; -import lombok.Data; -import org.springframework.data.annotation.Id; -import org.springframework.data.relational.core.mapping.Table; - import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划关联接口用例") -@Table("test_plan_api_case") @Data public class TestPlanApiCase implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @NotBlank(message = "{test_plan_api_case.id.not_blank}", groups = {Updated.class}) @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_api_case.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_api_case.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Size(min = 1, max = 50, message = "{test_plan_api_case.test_plan_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_api_case.test_plan_id.not_blank}", groups = {Created.class}) @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_api_case.test_plan_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_api_case.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Size(min = 1, max = 50, message = "{test_plan_api_case.api_case_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_api_case.api_case_id.not_blank}", groups = {Created.class}) @Schema(title = "接口用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_api_case.api_case_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_api_case.api_case_id.length_range}", groups = {Created.class, Updated.class}) private String apiCaseId; - @Schema(title = "环境类型") private String environmentType; + @Schema(title = "环境组ID") + private String environmentGroupId; + + @Schema(title = "创建时间") + private Long createTime; + + @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_api_case.create_user.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 40, message = "{test_plan_api_case.create_user.length_range}", groups = {Created.class, Updated.class}) + private String createUser; + + @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_api_case.pos.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 19, message = "{test_plan_api_case.pos.length_range}", groups = {Created.class, Updated.class}) + private Long pos; @Schema(title = "所属环境") private String environment; - - @Schema(title = "环境组ID") - private String environmentGroupId; - - - @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) - private Long createTime; - - @Size(min = 1, max = 40, message = "{test_plan_api_case.create_user.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_api_case.create_user.not_blank}", groups = {Created.class}) - @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) - private String createUser; - - - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) - private Long pos; - - + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCaseExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCaseExample.java new file mode 100644 index 0000000000..eedaf05c5f --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiCaseExample.java @@ -0,0 +1,740 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanApiCaseExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanApiCaseExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNull() { + addCriterion("test_plan_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNotNull() { + addCriterion("test_plan_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdEqualTo(String value) { + addCriterion("test_plan_id =", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotEqualTo(String value) { + addCriterion("test_plan_id <>", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThan(String value) { + addCriterion("test_plan_id >", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_id >=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThan(String value) { + addCriterion("test_plan_id <", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_id <=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLike(String value) { + addCriterion("test_plan_id like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotLike(String value) { + addCriterion("test_plan_id not like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIn(List values) { + addCriterion("test_plan_id in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotIn(List values) { + addCriterion("test_plan_id not in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdBetween(String value1, String value2) { + addCriterion("test_plan_id between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotBetween(String value1, String value2) { + addCriterion("test_plan_id not between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdIsNull() { + addCriterion("api_case_id is null"); + return (Criteria) this; + } + + public Criteria andApiCaseIdIsNotNull() { + addCriterion("api_case_id is not null"); + return (Criteria) this; + } + + public Criteria andApiCaseIdEqualTo(String value) { + addCriterion("api_case_id =", value, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdNotEqualTo(String value) { + addCriterion("api_case_id <>", value, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdGreaterThan(String value) { + addCriterion("api_case_id >", value, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdGreaterThanOrEqualTo(String value) { + addCriterion("api_case_id >=", value, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdLessThan(String value) { + addCriterion("api_case_id <", value, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdLessThanOrEqualTo(String value) { + addCriterion("api_case_id <=", value, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdLike(String value) { + addCriterion("api_case_id like", value, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdNotLike(String value) { + addCriterion("api_case_id not like", value, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdIn(List values) { + addCriterion("api_case_id in", values, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdNotIn(List values) { + addCriterion("api_case_id not in", values, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdBetween(String value1, String value2) { + addCriterion("api_case_id between", value1, value2, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andApiCaseIdNotBetween(String value1, String value2) { + addCriterion("api_case_id not between", value1, value2, "apiCaseId"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeIsNull() { + addCriterion("environment_type is null"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeIsNotNull() { + addCriterion("environment_type is not null"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeEqualTo(String value) { + addCriterion("environment_type =", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotEqualTo(String value) { + addCriterion("environment_type <>", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeGreaterThan(String value) { + addCriterion("environment_type >", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeGreaterThanOrEqualTo(String value) { + addCriterion("environment_type >=", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeLessThan(String value) { + addCriterion("environment_type <", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeLessThanOrEqualTo(String value) { + addCriterion("environment_type <=", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeLike(String value) { + addCriterion("environment_type like", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotLike(String value) { + addCriterion("environment_type not like", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeIn(List values) { + addCriterion("environment_type in", values, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotIn(List values) { + addCriterion("environment_type not in", values, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeBetween(String value1, String value2) { + addCriterion("environment_type between", value1, value2, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotBetween(String value1, String value2) { + addCriterion("environment_type not between", value1, value2, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdIsNull() { + addCriterion("environment_group_id is null"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdIsNotNull() { + addCriterion("environment_group_id is not null"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdEqualTo(String value) { + addCriterion("environment_group_id =", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotEqualTo(String value) { + addCriterion("environment_group_id <>", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdGreaterThan(String value) { + addCriterion("environment_group_id >", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdGreaterThanOrEqualTo(String value) { + addCriterion("environment_group_id >=", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdLessThan(String value) { + addCriterion("environment_group_id <", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdLessThanOrEqualTo(String value) { + addCriterion("environment_group_id <=", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdLike(String value) { + addCriterion("environment_group_id like", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotLike(String value) { + addCriterion("environment_group_id not like", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdIn(List values) { + addCriterion("environment_group_id in", values, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotIn(List values) { + addCriterion("environment_group_id not in", values, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdBetween(String value1, String value2) { + addCriterion("environment_group_id between", value1, value2, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotBetween(String value1, String value2) { + addCriterion("environment_group_id not between", value1, value2, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Long value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Long value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Long value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Long value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Long value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Long value1, Long value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Long value1, Long value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNull() { + addCriterion("create_user is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNotNull() { + addCriterion("create_user is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserEqualTo(String value) { + addCriterion("create_user =", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotEqualTo(String value) { + addCriterion("create_user <>", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThan(String value) { + addCriterion("create_user >", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThanOrEqualTo(String value) { + addCriterion("create_user >=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThan(String value) { + addCriterion("create_user <", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThanOrEqualTo(String value) { + addCriterion("create_user <=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLike(String value) { + addCriterion("create_user like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotLike(String value) { + addCriterion("create_user not like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserIn(List values) { + addCriterion("create_user in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotIn(List values) { + addCriterion("create_user not in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserBetween(String value1, String value2) { + addCriterion("create_user between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotBetween(String value1, String value2) { + addCriterion("create_user not between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andPosIsNull() { + addCriterion("pos is null"); + return (Criteria) this; + } + + public Criteria andPosIsNotNull() { + addCriterion("pos is not null"); + return (Criteria) this; + } + + public Criteria andPosEqualTo(Long value) { + addCriterion("pos =", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotEqualTo(Long value) { + addCriterion("pos <>", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThan(Long value) { + addCriterion("pos >", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThanOrEqualTo(Long value) { + addCriterion("pos >=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThan(Long value) { + addCriterion("pos <", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThanOrEqualTo(Long value) { + addCriterion("pos <=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosIn(List values) { + addCriterion("pos in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotIn(List values) { + addCriterion("pos not in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosBetween(Long value1, Long value2) { + addCriterion("pos between", value1, value2, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotBetween(Long value1, Long value2) { + addCriterion("pos not between", value1, value2, "pos"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java index 2c261f5e79..5be699b2be 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenario.java @@ -5,55 +5,45 @@ import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; -import lombok.Data; -import org.springframework.data.annotation.Id; -import org.springframework.data.relational.core.mapping.Table; - import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划关联场景用例") -@Table("test_plan_api_scenario") @Data public class TestPlanApiScenario implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @NotBlank(message = "{test_plan_api_scenario.id.not_blank}", groups = {Updated.class}) @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_api_scenario.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_api_scenario.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Size(min = 1, max = 50, message = "{test_plan_api_scenario.test_plan_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_api_scenario.test_plan_id.not_blank}", groups = {Created.class}) @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_api_scenario.test_plan_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_api_scenario.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Size(min = 1, max = 255, message = "{test_plan_api_scenario.api_scenario_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_api_scenario.api_scenario_id.not_blank}", groups = {Created.class}) - @Schema(title = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(title = "场景ID") private String apiScenarioId; - - @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(title = "创建时间") private Long createTime; - @Size(min = 1, max = 100, message = "{test_plan_api_scenario.create_user.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_api_scenario.create_user.not_blank}", groups = {Created.class}) @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_api_scenario.create_user.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 100, message = "{test_plan_api_scenario.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_api_scenario.pos.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 19, message = "{test_plan_api_scenario.pos.length_range}", groups = {Created.class, Updated.class}) private Long pos; - - @Schema(title = "环境类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(title = "环境类型") private String environmentType; - - @Schema(title = "所属环境", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - private String environment; - - - @Schema(title = "环境组ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(title = "环境组ID") private String environmentGroupId; + @Schema(title = "所属环境") + private String environment; + + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenarioExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenarioExample.java new file mode 100644 index 0000000000..569036232e --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanApiScenarioExample.java @@ -0,0 +1,740 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanApiScenarioExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanApiScenarioExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNull() { + addCriterion("test_plan_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNotNull() { + addCriterion("test_plan_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdEqualTo(String value) { + addCriterion("test_plan_id =", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotEqualTo(String value) { + addCriterion("test_plan_id <>", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThan(String value) { + addCriterion("test_plan_id >", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_id >=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThan(String value) { + addCriterion("test_plan_id <", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_id <=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLike(String value) { + addCriterion("test_plan_id like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotLike(String value) { + addCriterion("test_plan_id not like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIn(List values) { + addCriterion("test_plan_id in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotIn(List values) { + addCriterion("test_plan_id not in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdBetween(String value1, String value2) { + addCriterion("test_plan_id between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotBetween(String value1, String value2) { + addCriterion("test_plan_id not between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdIsNull() { + addCriterion("api_scenario_id is null"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdIsNotNull() { + addCriterion("api_scenario_id is not null"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdEqualTo(String value) { + addCriterion("api_scenario_id =", value, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdNotEqualTo(String value) { + addCriterion("api_scenario_id <>", value, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdGreaterThan(String value) { + addCriterion("api_scenario_id >", value, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdGreaterThanOrEqualTo(String value) { + addCriterion("api_scenario_id >=", value, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdLessThan(String value) { + addCriterion("api_scenario_id <", value, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdLessThanOrEqualTo(String value) { + addCriterion("api_scenario_id <=", value, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdLike(String value) { + addCriterion("api_scenario_id like", value, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdNotLike(String value) { + addCriterion("api_scenario_id not like", value, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdIn(List values) { + addCriterion("api_scenario_id in", values, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdNotIn(List values) { + addCriterion("api_scenario_id not in", values, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdBetween(String value1, String value2) { + addCriterion("api_scenario_id between", value1, value2, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andApiScenarioIdNotBetween(String value1, String value2) { + addCriterion("api_scenario_id not between", value1, value2, "apiScenarioId"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Long value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Long value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Long value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Long value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Long value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Long value1, Long value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Long value1, Long value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNull() { + addCriterion("create_user is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNotNull() { + addCriterion("create_user is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserEqualTo(String value) { + addCriterion("create_user =", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotEqualTo(String value) { + addCriterion("create_user <>", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThan(String value) { + addCriterion("create_user >", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThanOrEqualTo(String value) { + addCriterion("create_user >=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThan(String value) { + addCriterion("create_user <", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThanOrEqualTo(String value) { + addCriterion("create_user <=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLike(String value) { + addCriterion("create_user like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotLike(String value) { + addCriterion("create_user not like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserIn(List values) { + addCriterion("create_user in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotIn(List values) { + addCriterion("create_user not in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserBetween(String value1, String value2) { + addCriterion("create_user between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotBetween(String value1, String value2) { + addCriterion("create_user not between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andPosIsNull() { + addCriterion("pos is null"); + return (Criteria) this; + } + + public Criteria andPosIsNotNull() { + addCriterion("pos is not null"); + return (Criteria) this; + } + + public Criteria andPosEqualTo(Long value) { + addCriterion("pos =", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotEqualTo(Long value) { + addCriterion("pos <>", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThan(Long value) { + addCriterion("pos >", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThanOrEqualTo(Long value) { + addCriterion("pos >=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThan(Long value) { + addCriterion("pos <", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThanOrEqualTo(Long value) { + addCriterion("pos <=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosIn(List values) { + addCriterion("pos in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotIn(List values) { + addCriterion("pos not in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosBetween(Long value1, Long value2) { + addCriterion("pos between", value1, value2, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotBetween(Long value1, Long value2) { + addCriterion("pos not between", value1, value2, "pos"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeIsNull() { + addCriterion("environment_type is null"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeIsNotNull() { + addCriterion("environment_type is not null"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeEqualTo(String value) { + addCriterion("environment_type =", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotEqualTo(String value) { + addCriterion("environment_type <>", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeGreaterThan(String value) { + addCriterion("environment_type >", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeGreaterThanOrEqualTo(String value) { + addCriterion("environment_type >=", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeLessThan(String value) { + addCriterion("environment_type <", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeLessThanOrEqualTo(String value) { + addCriterion("environment_type <=", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeLike(String value) { + addCriterion("environment_type like", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotLike(String value) { + addCriterion("environment_type not like", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeIn(List values) { + addCriterion("environment_type in", values, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotIn(List values) { + addCriterion("environment_type not in", values, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeBetween(String value1, String value2) { + addCriterion("environment_type between", value1, value2, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotBetween(String value1, String value2) { + addCriterion("environment_type not between", value1, value2, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdIsNull() { + addCriterion("environment_group_id is null"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdIsNotNull() { + addCriterion("environment_group_id is not null"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdEqualTo(String value) { + addCriterion("environment_group_id =", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotEqualTo(String value) { + addCriterion("environment_group_id <>", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdGreaterThan(String value) { + addCriterion("environment_group_id >", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdGreaterThanOrEqualTo(String value) { + addCriterion("environment_group_id >=", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdLessThan(String value) { + addCriterion("environment_group_id <", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdLessThanOrEqualTo(String value) { + addCriterion("environment_group_id <=", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdLike(String value) { + addCriterion("environment_group_id like", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotLike(String value) { + addCriterion("environment_group_id not like", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdIn(List values) { + addCriterion("environment_group_id in", values, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotIn(List values) { + addCriterion("environment_group_id not in", values, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdBetween(String value1, String value2) { + addCriterion("environment_group_id between", value1, value2, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotBetween(String value1, String value2) { + addCriterion("environment_group_id not between", value1, value2, "environmentGroupId"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java index 8d3777b9a1..1b550fb70d 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfig.java @@ -5,39 +5,35 @@ import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; -import lombok.Data; -import org.springframework.data.annotation.Id; -import org.springframework.data.relational.core.mapping.Table; - import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划配置") -@Table("test_plan_config") @Data public class TestPlanConfig implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @NotBlank(message = "{test_plan_config.test_plan_id.not_blank}", groups = {Updated.class}) @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_config.test_plan_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_config.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - - @Schema(title = "运行模式", requiredMode = Schema.RequiredMode.REQUIRED) - private String runModeConfig; - - @Size(min = 1, max = 1, message = "{test_plan_config.automatic_status_update.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_config.automatic_status_update.not_blank}", groups = {Created.class}) @Schema(title = "是否自定更新功能用例状态", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_config.automatic_status_update.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 1, message = "{test_plan_config.automatic_status_update.length_range}", groups = {Created.class, Updated.class}) private Boolean automaticStatusUpdate; - @Size(min = 1, max = 1, message = "{test_plan_config.repeat_case.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_config.repeat_case.not_blank}", groups = {Created.class}) @Schema(title = "是否允许重复添加用例", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_config.repeat_case.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 1, message = "{test_plan_config.repeat_case.length_range}", groups = {Created.class, Updated.class}) private Boolean repeatCase; - @Size(min = 1, max = 3, message = "{test_plan_config.pass_threshold.length_range}", groups = {Created.class, Updated.class}) + @Schema(title = "测试计划通过阈值;0-100", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_config.pass_threshold.not_blank}", groups = {Created.class}) - @Schema(title = "测试计划通过阈值", requiredMode = Schema.RequiredMode.REQUIRED) + @Size(min = 1, max = 10, message = "{test_plan_config.pass_threshold.length_range}", groups = {Created.class, Updated.class}) private Integer passThreshold; + @Schema(title = "运行模式", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_config.run_mode_config.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 65535, message = "{test_plan_config.run_mode_config.length_range}", groups = {Created.class, Updated.class}) + private String runModeConfig; + + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfigExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfigExample.java new file mode 100644 index 0000000000..5f88051b69 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanConfigExample.java @@ -0,0 +1,450 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanConfigExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanConfigExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andTestPlanIdIsNull() { + addCriterion("test_plan_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNotNull() { + addCriterion("test_plan_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdEqualTo(String value) { + addCriterion("test_plan_id =", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotEqualTo(String value) { + addCriterion("test_plan_id <>", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThan(String value) { + addCriterion("test_plan_id >", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_id >=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThan(String value) { + addCriterion("test_plan_id <", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_id <=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLike(String value) { + addCriterion("test_plan_id like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotLike(String value) { + addCriterion("test_plan_id not like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIn(List values) { + addCriterion("test_plan_id in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotIn(List values) { + addCriterion("test_plan_id not in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdBetween(String value1, String value2) { + addCriterion("test_plan_id between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotBetween(String value1, String value2) { + addCriterion("test_plan_id not between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateIsNull() { + addCriterion("automatic_status_update is null"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateIsNotNull() { + addCriterion("automatic_status_update is not null"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateEqualTo(Boolean value) { + addCriterion("automatic_status_update =", value, "automaticStatusUpdate"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateNotEqualTo(Boolean value) { + addCriterion("automatic_status_update <>", value, "automaticStatusUpdate"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateGreaterThan(Boolean value) { + addCriterion("automatic_status_update >", value, "automaticStatusUpdate"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateGreaterThanOrEqualTo(Boolean value) { + addCriterion("automatic_status_update >=", value, "automaticStatusUpdate"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateLessThan(Boolean value) { + addCriterion("automatic_status_update <", value, "automaticStatusUpdate"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateLessThanOrEqualTo(Boolean value) { + addCriterion("automatic_status_update <=", value, "automaticStatusUpdate"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateIn(List values) { + addCriterion("automatic_status_update in", values, "automaticStatusUpdate"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateNotIn(List values) { + addCriterion("automatic_status_update not in", values, "automaticStatusUpdate"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateBetween(Boolean value1, Boolean value2) { + addCriterion("automatic_status_update between", value1, value2, "automaticStatusUpdate"); + return (Criteria) this; + } + + public Criteria andAutomaticStatusUpdateNotBetween(Boolean value1, Boolean value2) { + addCriterion("automatic_status_update not between", value1, value2, "automaticStatusUpdate"); + return (Criteria) this; + } + + public Criteria andRepeatCaseIsNull() { + addCriterion("repeat_case is null"); + return (Criteria) this; + } + + public Criteria andRepeatCaseIsNotNull() { + addCriterion("repeat_case is not null"); + return (Criteria) this; + } + + public Criteria andRepeatCaseEqualTo(Boolean value) { + addCriterion("repeat_case =", value, "repeatCase"); + return (Criteria) this; + } + + public Criteria andRepeatCaseNotEqualTo(Boolean value) { + addCriterion("repeat_case <>", value, "repeatCase"); + return (Criteria) this; + } + + public Criteria andRepeatCaseGreaterThan(Boolean value) { + addCriterion("repeat_case >", value, "repeatCase"); + return (Criteria) this; + } + + public Criteria andRepeatCaseGreaterThanOrEqualTo(Boolean value) { + addCriterion("repeat_case >=", value, "repeatCase"); + return (Criteria) this; + } + + public Criteria andRepeatCaseLessThan(Boolean value) { + addCriterion("repeat_case <", value, "repeatCase"); + return (Criteria) this; + } + + public Criteria andRepeatCaseLessThanOrEqualTo(Boolean value) { + addCriterion("repeat_case <=", value, "repeatCase"); + return (Criteria) this; + } + + public Criteria andRepeatCaseIn(List values) { + addCriterion("repeat_case in", values, "repeatCase"); + return (Criteria) this; + } + + public Criteria andRepeatCaseNotIn(List values) { + addCriterion("repeat_case not in", values, "repeatCase"); + return (Criteria) this; + } + + public Criteria andRepeatCaseBetween(Boolean value1, Boolean value2) { + addCriterion("repeat_case between", value1, value2, "repeatCase"); + return (Criteria) this; + } + + public Criteria andRepeatCaseNotBetween(Boolean value1, Boolean value2) { + addCriterion("repeat_case not between", value1, value2, "repeatCase"); + return (Criteria) this; + } + + public Criteria andPassThresholdIsNull() { + addCriterion("pass_threshold is null"); + return (Criteria) this; + } + + public Criteria andPassThresholdIsNotNull() { + addCriterion("pass_threshold is not null"); + return (Criteria) this; + } + + public Criteria andPassThresholdEqualTo(Integer value) { + addCriterion("pass_threshold =", value, "passThreshold"); + return (Criteria) this; + } + + public Criteria andPassThresholdNotEqualTo(Integer value) { + addCriterion("pass_threshold <>", value, "passThreshold"); + return (Criteria) this; + } + + public Criteria andPassThresholdGreaterThan(Integer value) { + addCriterion("pass_threshold >", value, "passThreshold"); + return (Criteria) this; + } + + public Criteria andPassThresholdGreaterThanOrEqualTo(Integer value) { + addCriterion("pass_threshold >=", value, "passThreshold"); + return (Criteria) this; + } + + public Criteria andPassThresholdLessThan(Integer value) { + addCriterion("pass_threshold <", value, "passThreshold"); + return (Criteria) this; + } + + public Criteria andPassThresholdLessThanOrEqualTo(Integer value) { + addCriterion("pass_threshold <=", value, "passThreshold"); + return (Criteria) this; + } + + public Criteria andPassThresholdIn(List values) { + addCriterion("pass_threshold in", values, "passThreshold"); + return (Criteria) this; + } + + public Criteria andPassThresholdNotIn(List values) { + addCriterion("pass_threshold not in", values, "passThreshold"); + return (Criteria) this; + } + + public Criteria andPassThresholdBetween(Integer value1, Integer value2) { + addCriterion("pass_threshold between", value1, value2, "passThreshold"); + return (Criteria) this; + } + + public Criteria andPassThresholdNotBetween(Integer value1, Integer value2) { + addCriterion("pass_threshold not between", value1, value2, "passThreshold"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExample.java new file mode 100644 index 0000000000..5f1b1bc9b7 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExample.java @@ -0,0 +1,1260 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(String value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(String value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(String value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(String value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(String value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(String value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLike(String value) { + addCriterion("project_id like", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotLike(String value) { + addCriterion("project_id not like", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(String value1, String value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(String value1, String value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andParentIdIsNull() { + addCriterion("parent_id is null"); + return (Criteria) this; + } + + public Criteria andParentIdIsNotNull() { + addCriterion("parent_id is not null"); + return (Criteria) this; + } + + public Criteria andParentIdEqualTo(String value) { + addCriterion("parent_id =", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotEqualTo(String value) { + addCriterion("parent_id <>", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThan(String value) { + addCriterion("parent_id >", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThanOrEqualTo(String value) { + addCriterion("parent_id >=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThan(String value) { + addCriterion("parent_id <", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThanOrEqualTo(String value) { + addCriterion("parent_id <=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLike(String value) { + addCriterion("parent_id like", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotLike(String value) { + addCriterion("parent_id not like", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdIn(List values) { + addCriterion("parent_id in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotIn(List values) { + addCriterion("parent_id not in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdBetween(String value1, String value2) { + addCriterion("parent_id between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotBetween(String value1, String value2) { + addCriterion("parent_id not between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("`name` is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("`name` is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("`name` =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("`name` <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("`name` >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("`name` >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("`name` <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("`name` <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("`name` like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("`name` not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("`name` in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("`name` not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("`name` between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("`name` not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("`status` is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("`status` is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(String value) { + addCriterion("`status` =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(String value) { + addCriterion("`status` <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(String value) { + addCriterion("`status` >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(String value) { + addCriterion("`status` >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(String value) { + addCriterion("`status` <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(String value) { + addCriterion("`status` <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLike(String value) { + addCriterion("`status` like", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotLike(String value) { + addCriterion("`status` not like", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("`status` in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("`status` not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(String value1, String value2) { + addCriterion("`status` between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(String value1, String value2) { + addCriterion("`status` not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStageIsNull() { + addCriterion("stage is null"); + return (Criteria) this; + } + + public Criteria andStageIsNotNull() { + addCriterion("stage is not null"); + return (Criteria) this; + } + + public Criteria andStageEqualTo(String value) { + addCriterion("stage =", value, "stage"); + return (Criteria) this; + } + + public Criteria andStageNotEqualTo(String value) { + addCriterion("stage <>", value, "stage"); + return (Criteria) this; + } + + public Criteria andStageGreaterThan(String value) { + addCriterion("stage >", value, "stage"); + return (Criteria) this; + } + + public Criteria andStageGreaterThanOrEqualTo(String value) { + addCriterion("stage >=", value, "stage"); + return (Criteria) this; + } + + public Criteria andStageLessThan(String value) { + addCriterion("stage <", value, "stage"); + return (Criteria) this; + } + + public Criteria andStageLessThanOrEqualTo(String value) { + addCriterion("stage <=", value, "stage"); + return (Criteria) this; + } + + public Criteria andStageLike(String value) { + addCriterion("stage like", value, "stage"); + return (Criteria) this; + } + + public Criteria andStageNotLike(String value) { + addCriterion("stage not like", value, "stage"); + return (Criteria) this; + } + + public Criteria andStageIn(List values) { + addCriterion("stage in", values, "stage"); + return (Criteria) this; + } + + public Criteria andStageNotIn(List values) { + addCriterion("stage not in", values, "stage"); + return (Criteria) this; + } + + public Criteria andStageBetween(String value1, String value2) { + addCriterion("stage between", value1, value2, "stage"); + return (Criteria) this; + } + + public Criteria andStageNotBetween(String value1, String value2) { + addCriterion("stage not between", value1, value2, "stage"); + return (Criteria) this; + } + + public Criteria andTagsIsNull() { + addCriterion("tags is null"); + return (Criteria) this; + } + + public Criteria andTagsIsNotNull() { + addCriterion("tags is not null"); + return (Criteria) this; + } + + public Criteria andTagsEqualTo(String value) { + addCriterion("tags =", value, "tags"); + return (Criteria) this; + } + + public Criteria andTagsNotEqualTo(String value) { + addCriterion("tags <>", value, "tags"); + return (Criteria) this; + } + + public Criteria andTagsGreaterThan(String value) { + addCriterion("tags >", value, "tags"); + return (Criteria) this; + } + + public Criteria andTagsGreaterThanOrEqualTo(String value) { + addCriterion("tags >=", value, "tags"); + return (Criteria) this; + } + + public Criteria andTagsLessThan(String value) { + addCriterion("tags <", value, "tags"); + return (Criteria) this; + } + + public Criteria andTagsLessThanOrEqualTo(String value) { + addCriterion("tags <=", value, "tags"); + return (Criteria) this; + } + + public Criteria andTagsLike(String value) { + addCriterion("tags like", value, "tags"); + return (Criteria) this; + } + + public Criteria andTagsNotLike(String value) { + addCriterion("tags not like", value, "tags"); + return (Criteria) this; + } + + public Criteria andTagsIn(List values) { + addCriterion("tags in", values, "tags"); + return (Criteria) this; + } + + public Criteria andTagsNotIn(List values) { + addCriterion("tags not in", values, "tags"); + return (Criteria) this; + } + + public Criteria andTagsBetween(String value1, String value2) { + addCriterion("tags between", value1, value2, "tags"); + return (Criteria) this; + } + + public Criteria andTagsNotBetween(String value1, String value2) { + addCriterion("tags not between", value1, value2, "tags"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Long value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Long value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Long value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Long value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Long value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Long value1, Long value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Long value1, Long value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNull() { + addCriterion("create_user is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNotNull() { + addCriterion("create_user is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserEqualTo(String value) { + addCriterion("create_user =", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotEqualTo(String value) { + addCriterion("create_user <>", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThan(String value) { + addCriterion("create_user >", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThanOrEqualTo(String value) { + addCriterion("create_user >=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThan(String value) { + addCriterion("create_user <", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThanOrEqualTo(String value) { + addCriterion("create_user <=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLike(String value) { + addCriterion("create_user like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotLike(String value) { + addCriterion("create_user not like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserIn(List values) { + addCriterion("create_user in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotIn(List values) { + addCriterion("create_user not in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserBetween(String value1, String value2) { + addCriterion("create_user between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotBetween(String value1, String value2) { + addCriterion("create_user not between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Long value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Long value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Long value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Long value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Long value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Long value1, Long value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Long value1, Long value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateUserIsNull() { + addCriterion("update_user is null"); + return (Criteria) this; + } + + public Criteria andUpdateUserIsNotNull() { + addCriterion("update_user is not null"); + return (Criteria) this; + } + + public Criteria andUpdateUserEqualTo(String value) { + addCriterion("update_user =", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotEqualTo(String value) { + addCriterion("update_user <>", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserGreaterThan(String value) { + addCriterion("update_user >", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserGreaterThanOrEqualTo(String value) { + addCriterion("update_user >=", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserLessThan(String value) { + addCriterion("update_user <", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserLessThanOrEqualTo(String value) { + addCriterion("update_user <=", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserLike(String value) { + addCriterion("update_user like", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotLike(String value) { + addCriterion("update_user not like", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserIn(List values) { + addCriterion("update_user in", values, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotIn(List values) { + addCriterion("update_user not in", values, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserBetween(String value1, String value2) { + addCriterion("update_user between", value1, value2, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotBetween(String value1, String value2) { + addCriterion("update_user not between", value1, value2, "updateUser"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeIsNull() { + addCriterion("planned_start_time is null"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeIsNotNull() { + addCriterion("planned_start_time is not null"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeEqualTo(Long value) { + addCriterion("planned_start_time =", value, "plannedStartTime"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeNotEqualTo(Long value) { + addCriterion("planned_start_time <>", value, "plannedStartTime"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeGreaterThan(Long value) { + addCriterion("planned_start_time >", value, "plannedStartTime"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeGreaterThanOrEqualTo(Long value) { + addCriterion("planned_start_time >=", value, "plannedStartTime"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeLessThan(Long value) { + addCriterion("planned_start_time <", value, "plannedStartTime"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeLessThanOrEqualTo(Long value) { + addCriterion("planned_start_time <=", value, "plannedStartTime"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeIn(List values) { + addCriterion("planned_start_time in", values, "plannedStartTime"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeNotIn(List values) { + addCriterion("planned_start_time not in", values, "plannedStartTime"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeBetween(Long value1, Long value2) { + addCriterion("planned_start_time between", value1, value2, "plannedStartTime"); + return (Criteria) this; + } + + public Criteria andPlannedStartTimeNotBetween(Long value1, Long value2) { + addCriterion("planned_start_time not between", value1, value2, "plannedStartTime"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeIsNull() { + addCriterion("planned_end_time is null"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeIsNotNull() { + addCriterion("planned_end_time is not null"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeEqualTo(Long value) { + addCriterion("planned_end_time =", value, "plannedEndTime"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeNotEqualTo(Long value) { + addCriterion("planned_end_time <>", value, "plannedEndTime"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeGreaterThan(Long value) { + addCriterion("planned_end_time >", value, "plannedEndTime"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeGreaterThanOrEqualTo(Long value) { + addCriterion("planned_end_time >=", value, "plannedEndTime"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeLessThan(Long value) { + addCriterion("planned_end_time <", value, "plannedEndTime"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeLessThanOrEqualTo(Long value) { + addCriterion("planned_end_time <=", value, "plannedEndTime"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeIn(List values) { + addCriterion("planned_end_time in", values, "plannedEndTime"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeNotIn(List values) { + addCriterion("planned_end_time not in", values, "plannedEndTime"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeBetween(Long value1, Long value2) { + addCriterion("planned_end_time between", value1, value2, "plannedEndTime"); + return (Criteria) this; + } + + public Criteria andPlannedEndTimeNotBetween(Long value1, Long value2) { + addCriterion("planned_end_time not between", value1, value2, "plannedEndTime"); + return (Criteria) this; + } + + public Criteria andActualStartTimeIsNull() { + addCriterion("actual_start_time is null"); + return (Criteria) this; + } + + public Criteria andActualStartTimeIsNotNull() { + addCriterion("actual_start_time is not null"); + return (Criteria) this; + } + + public Criteria andActualStartTimeEqualTo(Long value) { + addCriterion("actual_start_time =", value, "actualStartTime"); + return (Criteria) this; + } + + public Criteria andActualStartTimeNotEqualTo(Long value) { + addCriterion("actual_start_time <>", value, "actualStartTime"); + return (Criteria) this; + } + + public Criteria andActualStartTimeGreaterThan(Long value) { + addCriterion("actual_start_time >", value, "actualStartTime"); + return (Criteria) this; + } + + public Criteria andActualStartTimeGreaterThanOrEqualTo(Long value) { + addCriterion("actual_start_time >=", value, "actualStartTime"); + return (Criteria) this; + } + + public Criteria andActualStartTimeLessThan(Long value) { + addCriterion("actual_start_time <", value, "actualStartTime"); + return (Criteria) this; + } + + public Criteria andActualStartTimeLessThanOrEqualTo(Long value) { + addCriterion("actual_start_time <=", value, "actualStartTime"); + return (Criteria) this; + } + + public Criteria andActualStartTimeIn(List values) { + addCriterion("actual_start_time in", values, "actualStartTime"); + return (Criteria) this; + } + + public Criteria andActualStartTimeNotIn(List values) { + addCriterion("actual_start_time not in", values, "actualStartTime"); + return (Criteria) this; + } + + public Criteria andActualStartTimeBetween(Long value1, Long value2) { + addCriterion("actual_start_time between", value1, value2, "actualStartTime"); + return (Criteria) this; + } + + public Criteria andActualStartTimeNotBetween(Long value1, Long value2) { + addCriterion("actual_start_time not between", value1, value2, "actualStartTime"); + return (Criteria) this; + } + + public Criteria andActualEndTimeIsNull() { + addCriterion("actual_end_time is null"); + return (Criteria) this; + } + + public Criteria andActualEndTimeIsNotNull() { + addCriterion("actual_end_time is not null"); + return (Criteria) this; + } + + public Criteria andActualEndTimeEqualTo(Long value) { + addCriterion("actual_end_time =", value, "actualEndTime"); + return (Criteria) this; + } + + public Criteria andActualEndTimeNotEqualTo(Long value) { + addCriterion("actual_end_time <>", value, "actualEndTime"); + return (Criteria) this; + } + + public Criteria andActualEndTimeGreaterThan(Long value) { + addCriterion("actual_end_time >", value, "actualEndTime"); + return (Criteria) this; + } + + public Criteria andActualEndTimeGreaterThanOrEqualTo(Long value) { + addCriterion("actual_end_time >=", value, "actualEndTime"); + return (Criteria) this; + } + + public Criteria andActualEndTimeLessThan(Long value) { + addCriterion("actual_end_time <", value, "actualEndTime"); + return (Criteria) this; + } + + public Criteria andActualEndTimeLessThanOrEqualTo(Long value) { + addCriterion("actual_end_time <=", value, "actualEndTime"); + return (Criteria) this; + } + + public Criteria andActualEndTimeIn(List values) { + addCriterion("actual_end_time in", values, "actualEndTime"); + return (Criteria) this; + } + + public Criteria andActualEndTimeNotIn(List values) { + addCriterion("actual_end_time not in", values, "actualEndTime"); + return (Criteria) this; + } + + public Criteria andActualEndTimeBetween(Long value1, Long value2) { + addCriterion("actual_end_time between", value1, value2, "actualEndTime"); + return (Criteria) this; + } + + public Criteria andActualEndTimeNotBetween(Long value1, Long value2) { + addCriterion("actual_end_time not between", value1, value2, "actualEndTime"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNull() { + addCriterion("description is null"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNotNull() { + addCriterion("description is not null"); + return (Criteria) this; + } + + public Criteria andDescriptionEqualTo(String value) { + addCriterion("description =", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotEqualTo(String value) { + addCriterion("description <>", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThan(String value) { + addCriterion("description >", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThanOrEqualTo(String value) { + addCriterion("description >=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThan(String value) { + addCriterion("description <", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThanOrEqualTo(String value) { + addCriterion("description <=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLike(String value) { + addCriterion("description like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotLike(String value) { + addCriterion("description not like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionIn(List values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List values) { + addCriterion("description not in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionBetween(String value1, String value2) { + addCriterion("description between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotBetween(String value1, String value2) { + addCriterion("description not between", value1, value2, "description"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java index ce3673b62e..b8dffb4d41 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecord.java @@ -5,64 +5,54 @@ import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; -import lombok.Data; -import org.springframework.data.annotation.Id; -import org.springframework.data.relational.core.mapping.Table; - import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划执行记录") -@Table("test_plan_execute_record") @Data public class TestPlanExecuteRecord implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @NotBlank(message = "{test_plan_execute_record.id.not_blank}", groups = {Updated.class}) @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_execute_record.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_execute_record.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Size(min = 1, max = 50, message = "{test_plan_execute_record.test_plan_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_execute_record.test_plan_id.not_blank}", groups = {Created.class}) @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_execute_record.test_plan_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_execute_record.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Size(min = 1, max = 255, message = "{test_plan_execute_record.name.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_execute_record.name.not_blank}", groups = {Created.class}) @Schema(title = "执行记录名称", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_execute_record.name.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 255, message = "{test_plan_execute_record.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Size(min = 1, max = 50, message = "{test_plan_execute_record.status.length_range}", groups = {Created.class, Updated.class}) + @Schema(title = "执行状态;RUNNING/SUCCESS/ERROR/UNEXECUTE", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{test_plan_execute_record.status.not_blank}", groups = {Created.class}) - @Schema(title = "执行状态", requiredMode = Schema.RequiredMode.REQUIRED) + @Size(min = 1, max = 50, message = "{test_plan_execute_record.status.length_range}", groups = {Created.class, Updated.class}) private String status; - - @Schema(title = "触发类型") + @Schema(title = "触发类型;触发类型:SINGLE/BATCH/SCHEDULE/JENKINS") private String triggerMode; - @Schema(title = "创建人(执行人/触发人)") private String createUser; - @Schema(title = "创建时间(开始时间)") private Long createTime; - @Schema(title = "结束时间") private Long endTime; - @Schema(title = "用例总数量") private Integer caseCount; - @Schema(title = "执行率") private Double executeRate; - @Schema(title = "通过率") private Double passRate; + @Schema(title = "执行配置") + private String runConfig; + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordBlob.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordBlob.java deleted file mode 100644 index e3ef0ec7c1..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordBlob.java +++ /dev/null @@ -1,43 +0,0 @@ -package io.metersphere.plan.domain; - -import io.metersphere.validation.groups.Updated; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.NotBlank; -import lombok.Data; -import org.springframework.data.annotation.Id; -import org.springframework.data.relational.core.mapping.Table; - -import java.io.Serializable; - -@Schema(title = "测试计划执行记录详细内容(拆分成下面4张表)") -@Table("test_plan_execute_record_blob") -@Data -public class TestPlanExecuteRecordBlob implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @NotBlank(message = "{test_plan_execute_record_blob.test_plan_execute_record.not_blank}", groups = {Updated.class}) - @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) - private String testPlanExecuteRecord; - - - @Schema(title = "执行配置") - private String runConfig; - - - @Schema(title = "接口用例执行信息") - private String apiCases; - - - @Schema(title = "场景执行信息") - private String scenarios; - - - @Schema(title = "性能用例执行信息") - private String loadCases; - - - @Schema(title = "UI用例执行信息") - private String uiCases; - - -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordExample.java new file mode 100644 index 0000000000..24b1aedae7 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecuteRecordExample.java @@ -0,0 +1,920 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanExecuteRecordExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanExecuteRecordExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNull() { + addCriterion("test_plan_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNotNull() { + addCriterion("test_plan_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdEqualTo(String value) { + addCriterion("test_plan_id =", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotEqualTo(String value) { + addCriterion("test_plan_id <>", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThan(String value) { + addCriterion("test_plan_id >", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_id >=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThan(String value) { + addCriterion("test_plan_id <", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_id <=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLike(String value) { + addCriterion("test_plan_id like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotLike(String value) { + addCriterion("test_plan_id not like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIn(List values) { + addCriterion("test_plan_id in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotIn(List values) { + addCriterion("test_plan_id not in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdBetween(String value1, String value2) { + addCriterion("test_plan_id between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotBetween(String value1, String value2) { + addCriterion("test_plan_id not between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("`name` is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("`name` is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("`name` =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("`name` <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("`name` >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("`name` >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("`name` <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("`name` <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("`name` like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("`name` not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("`name` in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("`name` not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("`name` between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("`name` not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("`status` is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("`status` is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(String value) { + addCriterion("`status` =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(String value) { + addCriterion("`status` <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(String value) { + addCriterion("`status` >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(String value) { + addCriterion("`status` >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(String value) { + addCriterion("`status` <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(String value) { + addCriterion("`status` <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLike(String value) { + addCriterion("`status` like", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotLike(String value) { + addCriterion("`status` not like", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("`status` in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("`status` not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(String value1, String value2) { + addCriterion("`status` between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(String value1, String value2) { + addCriterion("`status` not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andTriggerModeIsNull() { + addCriterion("trigger_mode is null"); + return (Criteria) this; + } + + public Criteria andTriggerModeIsNotNull() { + addCriterion("trigger_mode is not null"); + return (Criteria) this; + } + + public Criteria andTriggerModeEqualTo(String value) { + addCriterion("trigger_mode =", value, "triggerMode"); + return (Criteria) this; + } + + public Criteria andTriggerModeNotEqualTo(String value) { + addCriterion("trigger_mode <>", value, "triggerMode"); + return (Criteria) this; + } + + public Criteria andTriggerModeGreaterThan(String value) { + addCriterion("trigger_mode >", value, "triggerMode"); + return (Criteria) this; + } + + public Criteria andTriggerModeGreaterThanOrEqualTo(String value) { + addCriterion("trigger_mode >=", value, "triggerMode"); + return (Criteria) this; + } + + public Criteria andTriggerModeLessThan(String value) { + addCriterion("trigger_mode <", value, "triggerMode"); + return (Criteria) this; + } + + public Criteria andTriggerModeLessThanOrEqualTo(String value) { + addCriterion("trigger_mode <=", value, "triggerMode"); + return (Criteria) this; + } + + public Criteria andTriggerModeLike(String value) { + addCriterion("trigger_mode like", value, "triggerMode"); + return (Criteria) this; + } + + public Criteria andTriggerModeNotLike(String value) { + addCriterion("trigger_mode not like", value, "triggerMode"); + return (Criteria) this; + } + + public Criteria andTriggerModeIn(List values) { + addCriterion("trigger_mode in", values, "triggerMode"); + return (Criteria) this; + } + + public Criteria andTriggerModeNotIn(List values) { + addCriterion("trigger_mode not in", values, "triggerMode"); + return (Criteria) this; + } + + public Criteria andTriggerModeBetween(String value1, String value2) { + addCriterion("trigger_mode between", value1, value2, "triggerMode"); + return (Criteria) this; + } + + public Criteria andTriggerModeNotBetween(String value1, String value2) { + addCriterion("trigger_mode not between", value1, value2, "triggerMode"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNull() { + addCriterion("create_user is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNotNull() { + addCriterion("create_user is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserEqualTo(String value) { + addCriterion("create_user =", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotEqualTo(String value) { + addCriterion("create_user <>", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThan(String value) { + addCriterion("create_user >", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThanOrEqualTo(String value) { + addCriterion("create_user >=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThan(String value) { + addCriterion("create_user <", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThanOrEqualTo(String value) { + addCriterion("create_user <=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLike(String value) { + addCriterion("create_user like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotLike(String value) { + addCriterion("create_user not like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserIn(List values) { + addCriterion("create_user in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotIn(List values) { + addCriterion("create_user not in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserBetween(String value1, String value2) { + addCriterion("create_user between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotBetween(String value1, String value2) { + addCriterion("create_user not between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Long value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Long value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Long value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Long value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Long value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Long value1, Long value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Long value1, Long value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNull() { + addCriterion("end_time is null"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNotNull() { + addCriterion("end_time is not null"); + return (Criteria) this; + } + + public Criteria andEndTimeEqualTo(Long value) { + addCriterion("end_time =", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotEqualTo(Long value) { + addCriterion("end_time <>", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThan(Long value) { + addCriterion("end_time >", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThanOrEqualTo(Long value) { + addCriterion("end_time >=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThan(Long value) { + addCriterion("end_time <", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThanOrEqualTo(Long value) { + addCriterion("end_time <=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIn(List values) { + addCriterion("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List values) { + addCriterion("end_time not in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeBetween(Long value1, Long value2) { + addCriterion("end_time between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotBetween(Long value1, Long value2) { + addCriterion("end_time not between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andCaseCountIsNull() { + addCriterion("case_count is null"); + return (Criteria) this; + } + + public Criteria andCaseCountIsNotNull() { + addCriterion("case_count is not null"); + return (Criteria) this; + } + + public Criteria andCaseCountEqualTo(Integer value) { + addCriterion("case_count =", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountNotEqualTo(Integer value) { + addCriterion("case_count <>", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountGreaterThan(Integer value) { + addCriterion("case_count >", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountGreaterThanOrEqualTo(Integer value) { + addCriterion("case_count >=", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountLessThan(Integer value) { + addCriterion("case_count <", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountLessThanOrEqualTo(Integer value) { + addCriterion("case_count <=", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountIn(List values) { + addCriterion("case_count in", values, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountNotIn(List values) { + addCriterion("case_count not in", values, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountBetween(Integer value1, Integer value2) { + addCriterion("case_count between", value1, value2, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountNotBetween(Integer value1, Integer value2) { + addCriterion("case_count not between", value1, value2, "caseCount"); + return (Criteria) this; + } + + public Criteria andExecuteRateIsNull() { + addCriterion("execute_rate is null"); + return (Criteria) this; + } + + public Criteria andExecuteRateIsNotNull() { + addCriterion("execute_rate is not null"); + return (Criteria) this; + } + + public Criteria andExecuteRateEqualTo(Double value) { + addCriterion("execute_rate =", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateNotEqualTo(Double value) { + addCriterion("execute_rate <>", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateGreaterThan(Double value) { + addCriterion("execute_rate >", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateGreaterThanOrEqualTo(Double value) { + addCriterion("execute_rate >=", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateLessThan(Double value) { + addCriterion("execute_rate <", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateLessThanOrEqualTo(Double value) { + addCriterion("execute_rate <=", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateIn(List values) { + addCriterion("execute_rate in", values, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateNotIn(List values) { + addCriterion("execute_rate not in", values, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateBetween(Double value1, Double value2) { + addCriterion("execute_rate between", value1, value2, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateNotBetween(Double value1, Double value2) { + addCriterion("execute_rate not between", value1, value2, "executeRate"); + return (Criteria) this; + } + + public Criteria andPassRateIsNull() { + addCriterion("pass_rate is null"); + return (Criteria) this; + } + + public Criteria andPassRateIsNotNull() { + addCriterion("pass_rate is not null"); + return (Criteria) this; + } + + public Criteria andPassRateEqualTo(Double value) { + addCriterion("pass_rate =", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateNotEqualTo(Double value) { + addCriterion("pass_rate <>", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateGreaterThan(Double value) { + addCriterion("pass_rate >", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateGreaterThanOrEqualTo(Double value) { + addCriterion("pass_rate >=", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateLessThan(Double value) { + addCriterion("pass_rate <", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateLessThanOrEqualTo(Double value) { + addCriterion("pass_rate <=", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateIn(List values) { + addCriterion("pass_rate in", values, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateNotIn(List values) { + addCriterion("pass_rate not in", values, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateBetween(Double value1, Double value2) { + addCriterion("pass_rate between", value1, value2, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateNotBetween(Double value1, Double value2) { + addCriterion("pass_rate not between", value1, value2, "passRate"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueue.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueue.java new file mode 100644 index 0000000000..cdefb52b8f --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueue.java @@ -0,0 +1,45 @@ +package io.metersphere.plan.domain; + +import io.metersphere.validation.groups.Created; +import io.metersphere.validation.groups.Updated; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.Size; +import java.io.Serializable; +import lombok.Data; + +@Data +public class TestPlanExecutionQueue implements Serializable { + @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_execution_queue.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_execution_queue.id.length_range}", groups = {Created.class, Updated.class}) + private String id; + + @Schema(title = "执行批次;随机生成UUID作为执行批次", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_execution_queue.execute_batch.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_execution_queue.execute_batch.length_range}", groups = {Created.class, Updated.class}) + private String executeBatch; + + @Schema(title = "testPlanId", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_execution_queue.test_plan_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_execution_queue.test_plan_id.length_range}", groups = {Created.class, Updated.class}) + private String testPlanId; + + @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_execution_queue.test_plan_execute_record_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_execution_queue.test_plan_execute_record_id.length_range}", groups = {Created.class, Updated.class}) + private String testPlanExecuteRecordId; + + @Schema(title = "执行模式;并行/串行", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_execution_queue.run_mode.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 20, message = "{test_plan_execution_queue.run_mode.length_range}", groups = {Created.class, Updated.class}) + private String runMode; + + @Schema(title = "创建时间") + private Long createTime; + + @Schema(title = "排序") + private Integer pos; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueueExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueueExample.java new file mode 100644 index 0000000000..3918352cf4 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanExecutionQueueExample.java @@ -0,0 +1,670 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanExecutionQueueExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanExecutionQueueExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andExecuteBatchIsNull() { + addCriterion("execute_batch is null"); + return (Criteria) this; + } + + public Criteria andExecuteBatchIsNotNull() { + addCriterion("execute_batch is not null"); + return (Criteria) this; + } + + public Criteria andExecuteBatchEqualTo(String value) { + addCriterion("execute_batch =", value, "executeBatch"); + return (Criteria) this; + } + + public Criteria andExecuteBatchNotEqualTo(String value) { + addCriterion("execute_batch <>", value, "executeBatch"); + return (Criteria) this; + } + + public Criteria andExecuteBatchGreaterThan(String value) { + addCriterion("execute_batch >", value, "executeBatch"); + return (Criteria) this; + } + + public Criteria andExecuteBatchGreaterThanOrEqualTo(String value) { + addCriterion("execute_batch >=", value, "executeBatch"); + return (Criteria) this; + } + + public Criteria andExecuteBatchLessThan(String value) { + addCriterion("execute_batch <", value, "executeBatch"); + return (Criteria) this; + } + + public Criteria andExecuteBatchLessThanOrEqualTo(String value) { + addCriterion("execute_batch <=", value, "executeBatch"); + return (Criteria) this; + } + + public Criteria andExecuteBatchLike(String value) { + addCriterion("execute_batch like", value, "executeBatch"); + return (Criteria) this; + } + + public Criteria andExecuteBatchNotLike(String value) { + addCriterion("execute_batch not like", value, "executeBatch"); + return (Criteria) this; + } + + public Criteria andExecuteBatchIn(List values) { + addCriterion("execute_batch in", values, "executeBatch"); + return (Criteria) this; + } + + public Criteria andExecuteBatchNotIn(List values) { + addCriterion("execute_batch not in", values, "executeBatch"); + return (Criteria) this; + } + + public Criteria andExecuteBatchBetween(String value1, String value2) { + addCriterion("execute_batch between", value1, value2, "executeBatch"); + return (Criteria) this; + } + + public Criteria andExecuteBatchNotBetween(String value1, String value2) { + addCriterion("execute_batch not between", value1, value2, "executeBatch"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNull() { + addCriterion("test_plan_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNotNull() { + addCriterion("test_plan_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdEqualTo(String value) { + addCriterion("test_plan_id =", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotEqualTo(String value) { + addCriterion("test_plan_id <>", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThan(String value) { + addCriterion("test_plan_id >", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_id >=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThan(String value) { + addCriterion("test_plan_id <", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_id <=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLike(String value) { + addCriterion("test_plan_id like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotLike(String value) { + addCriterion("test_plan_id not like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIn(List values) { + addCriterion("test_plan_id in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotIn(List values) { + addCriterion("test_plan_id not in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdBetween(String value1, String value2) { + addCriterion("test_plan_id between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotBetween(String value1, String value2) { + addCriterion("test_plan_id not between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIsNull() { + addCriterion("test_plan_execute_record_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIsNotNull() { + addCriterion("test_plan_execute_record_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdEqualTo(String value) { + addCriterion("test_plan_execute_record_id =", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotEqualTo(String value) { + addCriterion("test_plan_execute_record_id <>", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdGreaterThan(String value) { + addCriterion("test_plan_execute_record_id >", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_execute_record_id >=", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLessThan(String value) { + addCriterion("test_plan_execute_record_id <", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_execute_record_id <=", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLike(String value) { + addCriterion("test_plan_execute_record_id like", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotLike(String value) { + addCriterion("test_plan_execute_record_id not like", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIn(List values) { + addCriterion("test_plan_execute_record_id in", values, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotIn(List values) { + addCriterion("test_plan_execute_record_id not in", values, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdBetween(String value1, String value2) { + addCriterion("test_plan_execute_record_id between", value1, value2, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotBetween(String value1, String value2) { + addCriterion("test_plan_execute_record_id not between", value1, value2, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andRunModeIsNull() { + addCriterion("run_mode is null"); + return (Criteria) this; + } + + public Criteria andRunModeIsNotNull() { + addCriterion("run_mode is not null"); + return (Criteria) this; + } + + public Criteria andRunModeEqualTo(String value) { + addCriterion("run_mode =", value, "runMode"); + return (Criteria) this; + } + + public Criteria andRunModeNotEqualTo(String value) { + addCriterion("run_mode <>", value, "runMode"); + return (Criteria) this; + } + + public Criteria andRunModeGreaterThan(String value) { + addCriterion("run_mode >", value, "runMode"); + return (Criteria) this; + } + + public Criteria andRunModeGreaterThanOrEqualTo(String value) { + addCriterion("run_mode >=", value, "runMode"); + return (Criteria) this; + } + + public Criteria andRunModeLessThan(String value) { + addCriterion("run_mode <", value, "runMode"); + return (Criteria) this; + } + + public Criteria andRunModeLessThanOrEqualTo(String value) { + addCriterion("run_mode <=", value, "runMode"); + return (Criteria) this; + } + + public Criteria andRunModeLike(String value) { + addCriterion("run_mode like", value, "runMode"); + return (Criteria) this; + } + + public Criteria andRunModeNotLike(String value) { + addCriterion("run_mode not like", value, "runMode"); + return (Criteria) this; + } + + public Criteria andRunModeIn(List values) { + addCriterion("run_mode in", values, "runMode"); + return (Criteria) this; + } + + public Criteria andRunModeNotIn(List values) { + addCriterion("run_mode not in", values, "runMode"); + return (Criteria) this; + } + + public Criteria andRunModeBetween(String value1, String value2) { + addCriterion("run_mode between", value1, value2, "runMode"); + return (Criteria) this; + } + + public Criteria andRunModeNotBetween(String value1, String value2) { + addCriterion("run_mode not between", value1, value2, "runMode"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Long value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Long value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Long value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Long value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Long value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Long value1, Long value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Long value1, Long value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andPosIsNull() { + addCriterion("pos is null"); + return (Criteria) this; + } + + public Criteria andPosIsNotNull() { + addCriterion("pos is not null"); + return (Criteria) this; + } + + public Criteria andPosEqualTo(Integer value) { + addCriterion("pos =", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotEqualTo(Integer value) { + addCriterion("pos <>", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThan(Integer value) { + addCriterion("pos >", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThanOrEqualTo(Integer value) { + addCriterion("pos >=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThan(Integer value) { + addCriterion("pos <", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThanOrEqualTo(Integer value) { + addCriterion("pos <=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosIn(List values) { + addCriterion("pos in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotIn(List values) { + addCriterion("pos not in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosBetween(Integer value1, Integer value2) { + addCriterion("pos between", value1, value2, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotBetween(Integer value1, Integer value2) { + addCriterion("pos not between", value1, value2, "pos"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java index 0496a81408..e90b06e9b4 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java @@ -1,25 +1,24 @@ package io.metersphere.plan.domain; +import io.metersphere.validation.groups.Created; import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; -import lombok.Data; -import org.springframework.data.relational.core.mapping.Table; - +import jakarta.validation.constraints.Size; import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划关注人") -@Table("test_plan_follow") @Data public class TestPlanFollow implements Serializable { - private static final long serialVersionUID = 1L; - @NotBlank(message = "{test_plan_follow.test_plan_id.not_blank}", groups = {Updated.class}) - @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(title = "测试计划ID;联合主键", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_follow.test_plan_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_follow.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @NotBlank(message = "{test_plan_follow.user_id.not_blank}", groups = {Updated.class}) - @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(title = "用户ID;联合主键", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_follow.user_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_follow.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/plan/domain/TestPlanFollowExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollowExample.java new file mode 100644 index 0000000000..7753cfa772 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollowExample.java @@ -0,0 +1,340 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanFollowExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanFollowExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andTestPlanIdIsNull() { + addCriterion("test_plan_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNotNull() { + addCriterion("test_plan_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdEqualTo(String value) { + addCriterion("test_plan_id =", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotEqualTo(String value) { + addCriterion("test_plan_id <>", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThan(String value) { + addCriterion("test_plan_id >", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_id >=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThan(String value) { + addCriterion("test_plan_id <", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_id <=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLike(String value) { + addCriterion("test_plan_id like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotLike(String value) { + addCriterion("test_plan_id not like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIn(List values) { + addCriterion("test_plan_id in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotIn(List values) { + addCriterion("test_plan_id not in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdBetween(String value1, String value2) { + addCriterion("test_plan_id between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotBetween(String value1, String value2) { + addCriterion("test_plan_id not between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(String value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(String value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(String value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(String value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(String value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(String value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLike(String value) { + addCriterion("user_id like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotLike(String value) { + addCriterion("user_id not like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(String value1, String value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(String value1, String value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java index c4b44e129e..82d2145c5e 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCase.java @@ -5,44 +5,38 @@ import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; -import lombok.Data; -import org.springframework.data.annotation.Id; -import org.springframework.data.relational.core.mapping.Table; - import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划关联功能用例") -@Table("test_plan_function_case") @Data public class TestPlanFunctionCase implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @NotBlank(message = "{test_plan_function_case.id.not_blank}", groups = {Updated.class}) @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_function_case.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_function_case.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Size(min = 1, max = 50, message = "{test_plan_function_case.test_plan_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_function_case.test_plan_id.not_blank}", groups = {Created.class}) @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_function_case.test_plan_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_function_case.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Size(min = 1, max = 50, message = "{test_plan_function_case.function_case_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_function_case.function_case_id.not_blank}", groups = {Created.class}) @Schema(title = "功能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_function_case.function_case_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_function_case.function_case_id.length_range}", groups = {Created.class, Updated.class}) private String functionCaseId; - - @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(title = "创建时间") private Long createTime; - @Size(min = 1, max = 50, message = "{test_plan_function_case.create_user.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_function_case.create_user.not_blank}", groups = {Created.class}) @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_function_case.create_user.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_function_case.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_function_case.pos.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 19, message = "{test_plan_function_case.pos.length_range}", groups = {Created.class, Updated.class}) private Long pos; - + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseExample.java new file mode 100644 index 0000000000..a83b6570ef --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseExample.java @@ -0,0 +1,600 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanFunctionCaseExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanFunctionCaseExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNull() { + addCriterion("test_plan_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNotNull() { + addCriterion("test_plan_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdEqualTo(String value) { + addCriterion("test_plan_id =", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotEqualTo(String value) { + addCriterion("test_plan_id <>", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThan(String value) { + addCriterion("test_plan_id >", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_id >=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThan(String value) { + addCriterion("test_plan_id <", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_id <=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLike(String value) { + addCriterion("test_plan_id like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotLike(String value) { + addCriterion("test_plan_id not like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIn(List values) { + addCriterion("test_plan_id in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotIn(List values) { + addCriterion("test_plan_id not in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdBetween(String value1, String value2) { + addCriterion("test_plan_id between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotBetween(String value1, String value2) { + addCriterion("test_plan_id not between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdIsNull() { + addCriterion("function_case_id is null"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdIsNotNull() { + addCriterion("function_case_id is not null"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdEqualTo(String value) { + addCriterion("function_case_id =", value, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdNotEqualTo(String value) { + addCriterion("function_case_id <>", value, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdGreaterThan(String value) { + addCriterion("function_case_id >", value, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdGreaterThanOrEqualTo(String value) { + addCriterion("function_case_id >=", value, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdLessThan(String value) { + addCriterion("function_case_id <", value, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdLessThanOrEqualTo(String value) { + addCriterion("function_case_id <=", value, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdLike(String value) { + addCriterion("function_case_id like", value, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdNotLike(String value) { + addCriterion("function_case_id not like", value, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdIn(List values) { + addCriterion("function_case_id in", values, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdNotIn(List values) { + addCriterion("function_case_id not in", values, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdBetween(String value1, String value2) { + addCriterion("function_case_id between", value1, value2, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andFunctionCaseIdNotBetween(String value1, String value2) { + addCriterion("function_case_id not between", value1, value2, "functionCaseId"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Long value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Long value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Long value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Long value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Long value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Long value1, Long value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Long value1, Long value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNull() { + addCriterion("create_user is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNotNull() { + addCriterion("create_user is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserEqualTo(String value) { + addCriterion("create_user =", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotEqualTo(String value) { + addCriterion("create_user <>", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThan(String value) { + addCriterion("create_user >", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThanOrEqualTo(String value) { + addCriterion("create_user >=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThan(String value) { + addCriterion("create_user <", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThanOrEqualTo(String value) { + addCriterion("create_user <=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLike(String value) { + addCriterion("create_user like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotLike(String value) { + addCriterion("create_user not like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserIn(List values) { + addCriterion("create_user in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotIn(List values) { + addCriterion("create_user not in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserBetween(String value1, String value2) { + addCriterion("create_user between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotBetween(String value1, String value2) { + addCriterion("create_user not between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andPosIsNull() { + addCriterion("pos is null"); + return (Criteria) this; + } + + public Criteria andPosIsNotNull() { + addCriterion("pos is not null"); + return (Criteria) this; + } + + public Criteria andPosEqualTo(Long value) { + addCriterion("pos =", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotEqualTo(Long value) { + addCriterion("pos <>", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThan(Long value) { + addCriterion("pos >", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThanOrEqualTo(Long value) { + addCriterion("pos >=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThan(Long value) { + addCriterion("pos <", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThanOrEqualTo(Long value) { + addCriterion("pos <=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosIn(List values) { + addCriterion("pos in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotIn(List values) { + addCriterion("pos not in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosBetween(Long value1, Long value2) { + addCriterion("pos between", value1, value2, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotBetween(Long value1, Long value2) { + addCriterion("pos not between", value1, value2, "pos"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResult.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResult.java new file mode 100644 index 0000000000..980e14cf03 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResult.java @@ -0,0 +1,50 @@ +package io.metersphere.plan.domain; + +import io.metersphere.validation.groups.Created; +import io.metersphere.validation.groups.Updated; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.Size; +import java.io.Serializable; +import lombok.Data; + +@Data +public class TestPlanFunctionCaseResult implements Serializable { + @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_function_case_result.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_function_case_result.id.length_range}", groups = {Created.class, Updated.class}) + private String id; + + @Schema(title = "测试计划功能用例关联表ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_function_case_result.test_plan_function_case_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_function_case_result.test_plan_function_case_id.length_range}", groups = {Created.class, Updated.class}) + private String testPlanFunctionCaseId; + + @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_function_case_result.project_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_function_case_result.project_id.length_range}", groups = {Created.class, Updated.class}) + private String projectId; + + @Schema(title = "执行结果", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_function_case_result.result.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_function_case_result.result.length_range}", groups = {Created.class, Updated.class}) + private String result; + + @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_function_case_result.create_user.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_function_case_result.create_user.length_range}", groups = {Created.class, Updated.class}) + private String createUser; + + @Schema(title = "创建时间") + private Long createTime; + + @Schema(title = "评论") + private String comment; + + @Schema(title = "所属版本", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_function_case_result.version.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_function_case_result.version.length_range}", groups = {Created.class, Updated.class}) + private String version; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResultExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResultExample.java new file mode 100644 index 0000000000..8605d9c694 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFunctionCaseResultExample.java @@ -0,0 +1,750 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanFunctionCaseResultExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanFunctionCaseResultExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdIsNull() { + addCriterion("test_plan_function_case_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdIsNotNull() { + addCriterion("test_plan_function_case_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdEqualTo(String value) { + addCriterion("test_plan_function_case_id =", value, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdNotEqualTo(String value) { + addCriterion("test_plan_function_case_id <>", value, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdGreaterThan(String value) { + addCriterion("test_plan_function_case_id >", value, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_function_case_id >=", value, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdLessThan(String value) { + addCriterion("test_plan_function_case_id <", value, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_function_case_id <=", value, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdLike(String value) { + addCriterion("test_plan_function_case_id like", value, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdNotLike(String value) { + addCriterion("test_plan_function_case_id not like", value, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdIn(List values) { + addCriterion("test_plan_function_case_id in", values, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdNotIn(List values) { + addCriterion("test_plan_function_case_id not in", values, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdBetween(String value1, String value2) { + addCriterion("test_plan_function_case_id between", value1, value2, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanFunctionCaseIdNotBetween(String value1, String value2) { + addCriterion("test_plan_function_case_id not between", value1, value2, "testPlanFunctionCaseId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(String value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(String value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(String value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(String value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(String value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(String value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLike(String value) { + addCriterion("project_id like", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotLike(String value) { + addCriterion("project_id not like", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(String value1, String value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(String value1, String value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andResultIsNull() { + addCriterion("`result` is null"); + return (Criteria) this; + } + + public Criteria andResultIsNotNull() { + addCriterion("`result` is not null"); + return (Criteria) this; + } + + public Criteria andResultEqualTo(String value) { + addCriterion("`result` =", value, "result"); + return (Criteria) this; + } + + public Criteria andResultNotEqualTo(String value) { + addCriterion("`result` <>", value, "result"); + return (Criteria) this; + } + + public Criteria andResultGreaterThan(String value) { + addCriterion("`result` >", value, "result"); + return (Criteria) this; + } + + public Criteria andResultGreaterThanOrEqualTo(String value) { + addCriterion("`result` >=", value, "result"); + return (Criteria) this; + } + + public Criteria andResultLessThan(String value) { + addCriterion("`result` <", value, "result"); + return (Criteria) this; + } + + public Criteria andResultLessThanOrEqualTo(String value) { + addCriterion("`result` <=", value, "result"); + return (Criteria) this; + } + + public Criteria andResultLike(String value) { + addCriterion("`result` like", value, "result"); + return (Criteria) this; + } + + public Criteria andResultNotLike(String value) { + addCriterion("`result` not like", value, "result"); + return (Criteria) this; + } + + public Criteria andResultIn(List values) { + addCriterion("`result` in", values, "result"); + return (Criteria) this; + } + + public Criteria andResultNotIn(List values) { + addCriterion("`result` not in", values, "result"); + return (Criteria) this; + } + + public Criteria andResultBetween(String value1, String value2) { + addCriterion("`result` between", value1, value2, "result"); + return (Criteria) this; + } + + public Criteria andResultNotBetween(String value1, String value2) { + addCriterion("`result` not between", value1, value2, "result"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNull() { + addCriterion("create_user is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNotNull() { + addCriterion("create_user is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserEqualTo(String value) { + addCriterion("create_user =", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotEqualTo(String value) { + addCriterion("create_user <>", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThan(String value) { + addCriterion("create_user >", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThanOrEqualTo(String value) { + addCriterion("create_user >=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThan(String value) { + addCriterion("create_user <", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThanOrEqualTo(String value) { + addCriterion("create_user <=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLike(String value) { + addCriterion("create_user like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotLike(String value) { + addCriterion("create_user not like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserIn(List values) { + addCriterion("create_user in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotIn(List values) { + addCriterion("create_user not in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserBetween(String value1, String value2) { + addCriterion("create_user between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotBetween(String value1, String value2) { + addCriterion("create_user not between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Long value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Long value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Long value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Long value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Long value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Long value1, Long value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Long value1, Long value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCommentIsNull() { + addCriterion("`comment` is null"); + return (Criteria) this; + } + + public Criteria andCommentIsNotNull() { + addCriterion("`comment` is not null"); + return (Criteria) this; + } + + public Criteria andCommentEqualTo(String value) { + addCriterion("`comment` =", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentNotEqualTo(String value) { + addCriterion("`comment` <>", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentGreaterThan(String value) { + addCriterion("`comment` >", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentGreaterThanOrEqualTo(String value) { + addCriterion("`comment` >=", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentLessThan(String value) { + addCriterion("`comment` <", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentLessThanOrEqualTo(String value) { + addCriterion("`comment` <=", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentLike(String value) { + addCriterion("`comment` like", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentNotLike(String value) { + addCriterion("`comment` not like", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentIn(List values) { + addCriterion("`comment` in", values, "comment"); + return (Criteria) this; + } + + public Criteria andCommentNotIn(List values) { + addCriterion("`comment` not in", values, "comment"); + return (Criteria) this; + } + + public Criteria andCommentBetween(String value1, String value2) { + addCriterion("`comment` between", value1, value2, "comment"); + return (Criteria) this; + } + + public Criteria andCommentNotBetween(String value1, String value2) { + addCriterion("`comment` not between", value1, value2, "comment"); + return (Criteria) this; + } + + public Criteria andVersionIsNull() { + addCriterion("version is null"); + return (Criteria) this; + } + + public Criteria andVersionIsNotNull() { + addCriterion("version is not null"); + return (Criteria) this; + } + + public Criteria andVersionEqualTo(String value) { + addCriterion("version =", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotEqualTo(String value) { + addCriterion("version <>", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionGreaterThan(String value) { + addCriterion("version >", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionGreaterThanOrEqualTo(String value) { + addCriterion("version >=", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLessThan(String value) { + addCriterion("version <", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLessThanOrEqualTo(String value) { + addCriterion("version <=", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLike(String value) { + addCriterion("version like", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotLike(String value) { + addCriterion("version not like", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionIn(List values) { + addCriterion("version in", values, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotIn(List values) { + addCriterion("version not in", values, "version"); + return (Criteria) this; + } + + public Criteria andVersionBetween(String value1, String value2) { + addCriterion("version between", value1, value2, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotBetween(String value1, String value2) { + addCriterion("version not between", value1, value2, "version"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java index 9bed98f81b..16d9dfffc8 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCase.java @@ -5,56 +5,47 @@ import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; -import lombok.Data; -import org.springframework.data.annotation.Id; -import org.springframework.data.relational.core.mapping.Table; - import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划关联性能测试用例") -@Table("test_plan_load_case") @Data public class TestPlanLoadCase implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @NotBlank(message = "{test_plan_load_case.id.not_blank}", groups = {Updated.class}) @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_load_case.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_load_case.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Size(min = 1, max = 50, message = "{test_plan_load_case.test_plan_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_load_case.test_plan_id.not_blank}", groups = {Created.class}) @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_load_case.test_plan_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_load_case.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Size(min = 1, max = 50, message = "{test_plan_load_case.load_case_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_load_case.load_case_id.not_blank}", groups = {Created.class}) @Schema(title = "性能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_load_case.load_case_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_load_case.load_case_id.length_range}", groups = {Created.class, Updated.class}) private String loadCaseId; - - @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(title = "创建时间") private Long createTime; - @Size(min = 1, max = 50, message = "{test_plan_load_case.create_user.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_load_case.create_user.not_blank}", groups = {Created.class}) @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_load_case.create_user.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_load_case.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; - @Schema(title = "所用测试资源池ID") private String testResourcePoolId; - @Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_load_case.pos.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 19, message = "{test_plan_load_case.pos.length_range}", groups = {Created.class, Updated.class}) private Long pos; - @Schema(title = "压力配置") private String loadConfiguration; - @Schema(title = "高级配置") private String advancedConfiguration; - + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCaseExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCaseExample.java new file mode 100644 index 0000000000..480711eaca --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanLoadCaseExample.java @@ -0,0 +1,670 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanLoadCaseExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanLoadCaseExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNull() { + addCriterion("test_plan_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNotNull() { + addCriterion("test_plan_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdEqualTo(String value) { + addCriterion("test_plan_id =", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotEqualTo(String value) { + addCriterion("test_plan_id <>", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThan(String value) { + addCriterion("test_plan_id >", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_id >=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThan(String value) { + addCriterion("test_plan_id <", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_id <=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLike(String value) { + addCriterion("test_plan_id like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotLike(String value) { + addCriterion("test_plan_id not like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIn(List values) { + addCriterion("test_plan_id in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotIn(List values) { + addCriterion("test_plan_id not in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdBetween(String value1, String value2) { + addCriterion("test_plan_id between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotBetween(String value1, String value2) { + addCriterion("test_plan_id not between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdIsNull() { + addCriterion("load_case_id is null"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdIsNotNull() { + addCriterion("load_case_id is not null"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdEqualTo(String value) { + addCriterion("load_case_id =", value, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdNotEqualTo(String value) { + addCriterion("load_case_id <>", value, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdGreaterThan(String value) { + addCriterion("load_case_id >", value, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdGreaterThanOrEqualTo(String value) { + addCriterion("load_case_id >=", value, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdLessThan(String value) { + addCriterion("load_case_id <", value, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdLessThanOrEqualTo(String value) { + addCriterion("load_case_id <=", value, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdLike(String value) { + addCriterion("load_case_id like", value, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdNotLike(String value) { + addCriterion("load_case_id not like", value, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdIn(List values) { + addCriterion("load_case_id in", values, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdNotIn(List values) { + addCriterion("load_case_id not in", values, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdBetween(String value1, String value2) { + addCriterion("load_case_id between", value1, value2, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andLoadCaseIdNotBetween(String value1, String value2) { + addCriterion("load_case_id not between", value1, value2, "loadCaseId"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Long value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Long value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Long value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Long value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Long value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Long value1, Long value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Long value1, Long value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNull() { + addCriterion("create_user is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNotNull() { + addCriterion("create_user is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserEqualTo(String value) { + addCriterion("create_user =", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotEqualTo(String value) { + addCriterion("create_user <>", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThan(String value) { + addCriterion("create_user >", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThanOrEqualTo(String value) { + addCriterion("create_user >=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThan(String value) { + addCriterion("create_user <", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThanOrEqualTo(String value) { + addCriterion("create_user <=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLike(String value) { + addCriterion("create_user like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotLike(String value) { + addCriterion("create_user not like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserIn(List values) { + addCriterion("create_user in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotIn(List values) { + addCriterion("create_user not in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserBetween(String value1, String value2) { + addCriterion("create_user between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotBetween(String value1, String value2) { + addCriterion("create_user not between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdIsNull() { + addCriterion("test_resource_pool_id is null"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdIsNotNull() { + addCriterion("test_resource_pool_id is not null"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdEqualTo(String value) { + addCriterion("test_resource_pool_id =", value, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdNotEqualTo(String value) { + addCriterion("test_resource_pool_id <>", value, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdGreaterThan(String value) { + addCriterion("test_resource_pool_id >", value, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdGreaterThanOrEqualTo(String value) { + addCriterion("test_resource_pool_id >=", value, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdLessThan(String value) { + addCriterion("test_resource_pool_id <", value, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdLessThanOrEqualTo(String value) { + addCriterion("test_resource_pool_id <=", value, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdLike(String value) { + addCriterion("test_resource_pool_id like", value, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdNotLike(String value) { + addCriterion("test_resource_pool_id not like", value, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdIn(List values) { + addCriterion("test_resource_pool_id in", values, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdNotIn(List values) { + addCriterion("test_resource_pool_id not in", values, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdBetween(String value1, String value2) { + addCriterion("test_resource_pool_id between", value1, value2, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andTestResourcePoolIdNotBetween(String value1, String value2) { + addCriterion("test_resource_pool_id not between", value1, value2, "testResourcePoolId"); + return (Criteria) this; + } + + public Criteria andPosIsNull() { + addCriterion("pos is null"); + return (Criteria) this; + } + + public Criteria andPosIsNotNull() { + addCriterion("pos is not null"); + return (Criteria) this; + } + + public Criteria andPosEqualTo(Long value) { + addCriterion("pos =", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotEqualTo(Long value) { + addCriterion("pos <>", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThan(Long value) { + addCriterion("pos >", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThanOrEqualTo(Long value) { + addCriterion("pos >=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThan(Long value) { + addCriterion("pos <", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThanOrEqualTo(Long value) { + addCriterion("pos <=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosIn(List values) { + addCriterion("pos in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotIn(List values) { + addCriterion("pos not in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosBetween(Long value1, Long value2) { + addCriterion("pos between", value1, value2, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotBetween(Long value1, Long value2) { + addCriterion("pos not between", value1, value2, "pos"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java index 9ba68ca18f..7cceb8cbfa 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java @@ -1,24 +1,24 @@ package io.metersphere.plan.domain; +import io.metersphere.validation.groups.Created; import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; -import lombok.Data; -import org.springframework.data.relational.core.mapping.Table; - +import jakarta.validation.constraints.Size; import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划责任人") -@Table("test_plan_principal") @Data public class TestPlanPrincipal implements Serializable { - private static final long serialVersionUID = 1L; - @NotBlank(message = "{test_plan_principal.test_plan_id.not_blank}", groups = {Updated.class}) @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_principal.test_plan_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_principal.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @NotBlank(message = "{test_plan_principal.user_id.not_blank}", groups = {Updated.class}) @Schema(title = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_principal.user_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_principal.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/plan/domain/TestPlanPrincipalExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipalExample.java new file mode 100644 index 0000000000..4dd2b6ee8a --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipalExample.java @@ -0,0 +1,340 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanPrincipalExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanPrincipalExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andTestPlanIdIsNull() { + addCriterion("test_plan_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNotNull() { + addCriterion("test_plan_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdEqualTo(String value) { + addCriterion("test_plan_id =", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotEqualTo(String value) { + addCriterion("test_plan_id <>", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThan(String value) { + addCriterion("test_plan_id >", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_id >=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThan(String value) { + addCriterion("test_plan_id <", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_id <=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLike(String value) { + addCriterion("test_plan_id like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotLike(String value) { + addCriterion("test_plan_id not like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIn(List values) { + addCriterion("test_plan_id in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotIn(List values) { + addCriterion("test_plan_id not in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdBetween(String value1, String value2) { + addCriterion("test_plan_id between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotBetween(String value1, String value2) { + addCriterion("test_plan_id not between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(String value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(String value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(String value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(String value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(String value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(String value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLike(String value) { + addCriterion("user_id like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotLike(String value) { + addCriterion("user_id not like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(String value1, String value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(String value1, String value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfo.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfo.java new file mode 100644 index 0000000000..566363b2c5 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfo.java @@ -0,0 +1,34 @@ +package io.metersphere.plan.domain; + +import io.metersphere.validation.groups.Created; +import io.metersphere.validation.groups.Updated; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.Size; +import java.io.Serializable; +import lombok.Data; + +@Data +public class TestPlanRecordApiCaseInfo implements Serializable { + @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_api_case_info.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_api_case_info.id.length_range}", groups = {Created.class, Updated.class}) + private String id; + + @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_api_case_info.test_plan_execute_record_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_api_case_info.test_plan_execute_record_id.length_range}", groups = {Created.class, Updated.class}) + private String testPlanExecuteRecordId; + + @Schema(title = "测试计划接口用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_api_case_info.test_plan_api_case_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_api_case_info.test_plan_api_case_id.length_range}", groups = {Created.class, Updated.class}) + private String testPlanApiCaseId; + + @Schema(title = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_api_case_info.report_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_api_case_info.report_id.length_range}", groups = {Created.class, Updated.class}) + private String reportId; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfoExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfoExample.java new file mode 100644 index 0000000000..b6198a8114 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiCaseInfoExample.java @@ -0,0 +1,480 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanRecordApiCaseInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanRecordApiCaseInfoExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIsNull() { + addCriterion("test_plan_execute_record_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIsNotNull() { + addCriterion("test_plan_execute_record_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdEqualTo(String value) { + addCriterion("test_plan_execute_record_id =", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotEqualTo(String value) { + addCriterion("test_plan_execute_record_id <>", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdGreaterThan(String value) { + addCriterion("test_plan_execute_record_id >", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_execute_record_id >=", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLessThan(String value) { + addCriterion("test_plan_execute_record_id <", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_execute_record_id <=", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLike(String value) { + addCriterion("test_plan_execute_record_id like", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotLike(String value) { + addCriterion("test_plan_execute_record_id not like", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIn(List values) { + addCriterion("test_plan_execute_record_id in", values, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotIn(List values) { + addCriterion("test_plan_execute_record_id not in", values, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdBetween(String value1, String value2) { + addCriterion("test_plan_execute_record_id between", value1, value2, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotBetween(String value1, String value2) { + addCriterion("test_plan_execute_record_id not between", value1, value2, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdIsNull() { + addCriterion("test_plan_api_case_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdIsNotNull() { + addCriterion("test_plan_api_case_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdEqualTo(String value) { + addCriterion("test_plan_api_case_id =", value, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdNotEqualTo(String value) { + addCriterion("test_plan_api_case_id <>", value, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdGreaterThan(String value) { + addCriterion("test_plan_api_case_id >", value, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_api_case_id >=", value, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdLessThan(String value) { + addCriterion("test_plan_api_case_id <", value, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_api_case_id <=", value, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdLike(String value) { + addCriterion("test_plan_api_case_id like", value, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdNotLike(String value) { + addCriterion("test_plan_api_case_id not like", value, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdIn(List values) { + addCriterion("test_plan_api_case_id in", values, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdNotIn(List values) { + addCriterion("test_plan_api_case_id not in", values, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdBetween(String value1, String value2) { + addCriterion("test_plan_api_case_id between", value1, value2, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiCaseIdNotBetween(String value1, String value2) { + addCriterion("test_plan_api_case_id not between", value1, value2, "testPlanApiCaseId"); + return (Criteria) this; + } + + public Criteria andReportIdIsNull() { + addCriterion("report_id is null"); + return (Criteria) this; + } + + public Criteria andReportIdIsNotNull() { + addCriterion("report_id is not null"); + return (Criteria) this; + } + + public Criteria andReportIdEqualTo(String value) { + addCriterion("report_id =", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotEqualTo(String value) { + addCriterion("report_id <>", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThan(String value) { + addCriterion("report_id >", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThanOrEqualTo(String value) { + addCriterion("report_id >=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThan(String value) { + addCriterion("report_id <", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThanOrEqualTo(String value) { + addCriterion("report_id <=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLike(String value) { + addCriterion("report_id like", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotLike(String value) { + addCriterion("report_id not like", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdIn(List values) { + addCriterion("report_id in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotIn(List values) { + addCriterion("report_id not in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdBetween(String value1, String value2) { + addCriterion("report_id between", value1, value2, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotBetween(String value1, String value2) { + addCriterion("report_id not between", value1, value2, "reportId"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfo.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfo.java new file mode 100644 index 0000000000..c5f73c73d9 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfo.java @@ -0,0 +1,34 @@ +package io.metersphere.plan.domain; + +import io.metersphere.validation.groups.Created; +import io.metersphere.validation.groups.Updated; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.Size; +import java.io.Serializable; +import lombok.Data; + +@Data +public class TestPlanRecordApiScenarioInfo implements Serializable { + @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_api_scenario_info.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_api_scenario_info.id.length_range}", groups = {Created.class, Updated.class}) + private String id; + + @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_api_scenario_info.test_plan_execute_record_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_api_scenario_info.test_plan_execute_record_id.length_range}", groups = {Created.class, Updated.class}) + private String testPlanExecuteRecordId; + + @Schema(title = "测试计划接口场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_api_scenario_info.test_plan_api_scenario_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_api_scenario_info.test_plan_api_scenario_id.length_range}", groups = {Created.class, Updated.class}) + private String testPlanApiScenarioId; + + @Schema(title = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_api_scenario_info.report_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_api_scenario_info.report_id.length_range}", groups = {Created.class, Updated.class}) + private String reportId; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfoExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfoExample.java new file mode 100644 index 0000000000..4aab0ae6a6 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordApiScenarioInfoExample.java @@ -0,0 +1,480 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanRecordApiScenarioInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanRecordApiScenarioInfoExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIsNull() { + addCriterion("test_plan_execute_record_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIsNotNull() { + addCriterion("test_plan_execute_record_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdEqualTo(String value) { + addCriterion("test_plan_execute_record_id =", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotEqualTo(String value) { + addCriterion("test_plan_execute_record_id <>", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdGreaterThan(String value) { + addCriterion("test_plan_execute_record_id >", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_execute_record_id >=", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLessThan(String value) { + addCriterion("test_plan_execute_record_id <", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_execute_record_id <=", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLike(String value) { + addCriterion("test_plan_execute_record_id like", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotLike(String value) { + addCriterion("test_plan_execute_record_id not like", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIn(List values) { + addCriterion("test_plan_execute_record_id in", values, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotIn(List values) { + addCriterion("test_plan_execute_record_id not in", values, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdBetween(String value1, String value2) { + addCriterion("test_plan_execute_record_id between", value1, value2, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotBetween(String value1, String value2) { + addCriterion("test_plan_execute_record_id not between", value1, value2, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdIsNull() { + addCriterion("test_plan_api_scenario_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdIsNotNull() { + addCriterion("test_plan_api_scenario_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdEqualTo(String value) { + addCriterion("test_plan_api_scenario_id =", value, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdNotEqualTo(String value) { + addCriterion("test_plan_api_scenario_id <>", value, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdGreaterThan(String value) { + addCriterion("test_plan_api_scenario_id >", value, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_api_scenario_id >=", value, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdLessThan(String value) { + addCriterion("test_plan_api_scenario_id <", value, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_api_scenario_id <=", value, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdLike(String value) { + addCriterion("test_plan_api_scenario_id like", value, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdNotLike(String value) { + addCriterion("test_plan_api_scenario_id not like", value, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdIn(List values) { + addCriterion("test_plan_api_scenario_id in", values, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdNotIn(List values) { + addCriterion("test_plan_api_scenario_id not in", values, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdBetween(String value1, String value2) { + addCriterion("test_plan_api_scenario_id between", value1, value2, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanApiScenarioIdNotBetween(String value1, String value2) { + addCriterion("test_plan_api_scenario_id not between", value1, value2, "testPlanApiScenarioId"); + return (Criteria) this; + } + + public Criteria andReportIdIsNull() { + addCriterion("report_id is null"); + return (Criteria) this; + } + + public Criteria andReportIdIsNotNull() { + addCriterion("report_id is not null"); + return (Criteria) this; + } + + public Criteria andReportIdEqualTo(String value) { + addCriterion("report_id =", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotEqualTo(String value) { + addCriterion("report_id <>", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThan(String value) { + addCriterion("report_id >", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThanOrEqualTo(String value) { + addCriterion("report_id >=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThan(String value) { + addCriterion("report_id <", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThanOrEqualTo(String value) { + addCriterion("report_id <=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLike(String value) { + addCriterion("report_id like", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotLike(String value) { + addCriterion("report_id not like", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdIn(List values) { + addCriterion("report_id in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotIn(List values) { + addCriterion("report_id not in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdBetween(String value1, String value2) { + addCriterion("report_id between", value1, value2, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotBetween(String value1, String value2) { + addCriterion("report_id not between", value1, value2, "reportId"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfo.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfo.java new file mode 100644 index 0000000000..69875fd1da --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfo.java @@ -0,0 +1,34 @@ +package io.metersphere.plan.domain; + +import io.metersphere.validation.groups.Created; +import io.metersphere.validation.groups.Updated; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.Size; +import java.io.Serializable; +import lombok.Data; + +@Data +public class TestPlanRecordLoadCaseInfo implements Serializable { + @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_load_case_info.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_load_case_info.id.length_range}", groups = {Created.class, Updated.class}) + private String id; + + @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_load_case_info.test_plan_execute_record_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_load_case_info.test_plan_execute_record_id.length_range}", groups = {Created.class, Updated.class}) + private String testPlanExecuteRecordId; + + @Schema(title = "测试计划性能用例ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_load_case_info.test_plan_load_case_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_load_case_info.test_plan_load_case_id.length_range}", groups = {Created.class, Updated.class}) + private String testPlanLoadCaseId; + + @Schema(title = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_load_case_info.report_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_load_case_info.report_id.length_range}", groups = {Created.class, Updated.class}) + private String reportId; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfoExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfoExample.java new file mode 100644 index 0000000000..ed8aef5e11 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordLoadCaseInfoExample.java @@ -0,0 +1,480 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanRecordLoadCaseInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanRecordLoadCaseInfoExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIsNull() { + addCriterion("test_plan_execute_record_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIsNotNull() { + addCriterion("test_plan_execute_record_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdEqualTo(String value) { + addCriterion("test_plan_execute_record_id =", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotEqualTo(String value) { + addCriterion("test_plan_execute_record_id <>", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdGreaterThan(String value) { + addCriterion("test_plan_execute_record_id >", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_execute_record_id >=", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLessThan(String value) { + addCriterion("test_plan_execute_record_id <", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_execute_record_id <=", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLike(String value) { + addCriterion("test_plan_execute_record_id like", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotLike(String value) { + addCriterion("test_plan_execute_record_id not like", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIn(List values) { + addCriterion("test_plan_execute_record_id in", values, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotIn(List values) { + addCriterion("test_plan_execute_record_id not in", values, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdBetween(String value1, String value2) { + addCriterion("test_plan_execute_record_id between", value1, value2, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotBetween(String value1, String value2) { + addCriterion("test_plan_execute_record_id not between", value1, value2, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdIsNull() { + addCriterion("test_plan_load_case_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdIsNotNull() { + addCriterion("test_plan_load_case_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdEqualTo(String value) { + addCriterion("test_plan_load_case_id =", value, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdNotEqualTo(String value) { + addCriterion("test_plan_load_case_id <>", value, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdGreaterThan(String value) { + addCriterion("test_plan_load_case_id >", value, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_load_case_id >=", value, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdLessThan(String value) { + addCriterion("test_plan_load_case_id <", value, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_load_case_id <=", value, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdLike(String value) { + addCriterion("test_plan_load_case_id like", value, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdNotLike(String value) { + addCriterion("test_plan_load_case_id not like", value, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdIn(List values) { + addCriterion("test_plan_load_case_id in", values, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdNotIn(List values) { + addCriterion("test_plan_load_case_id not in", values, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdBetween(String value1, String value2) { + addCriterion("test_plan_load_case_id between", value1, value2, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andTestPlanLoadCaseIdNotBetween(String value1, String value2) { + addCriterion("test_plan_load_case_id not between", value1, value2, "testPlanLoadCaseId"); + return (Criteria) this; + } + + public Criteria andReportIdIsNull() { + addCriterion("report_id is null"); + return (Criteria) this; + } + + public Criteria andReportIdIsNotNull() { + addCriterion("report_id is not null"); + return (Criteria) this; + } + + public Criteria andReportIdEqualTo(String value) { + addCriterion("report_id =", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotEqualTo(String value) { + addCriterion("report_id <>", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThan(String value) { + addCriterion("report_id >", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThanOrEqualTo(String value) { + addCriterion("report_id >=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThan(String value) { + addCriterion("report_id <", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThanOrEqualTo(String value) { + addCriterion("report_id <=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLike(String value) { + addCriterion("report_id like", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotLike(String value) { + addCriterion("report_id not like", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdIn(List values) { + addCriterion("report_id in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotIn(List values) { + addCriterion("report_id not in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdBetween(String value1, String value2) { + addCriterion("report_id between", value1, value2, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotBetween(String value1, String value2) { + addCriterion("report_id not between", value1, value2, "reportId"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfo.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfo.java new file mode 100644 index 0000000000..60bb21c40c --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfo.java @@ -0,0 +1,34 @@ +package io.metersphere.plan.domain; + +import io.metersphere.validation.groups.Created; +import io.metersphere.validation.groups.Updated; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.Size; +import java.io.Serializable; +import lombok.Data; + +@Data +public class TestPlanRecordUiScenarioInfo implements Serializable { + @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_ui_scenario_info.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_ui_scenario_info.id.length_range}", groups = {Created.class, Updated.class}) + private String id; + + @Schema(title = "测试计划执行记录ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_ui_scenario_info.test_plan_execute_record_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_ui_scenario_info.test_plan_execute_record_id.length_range}", groups = {Created.class, Updated.class}) + private String testPlanExecuteRecordId; + + @Schema(title = "测试计划UI场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_ui_scenario_info.test_plan_ui_scenario_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_ui_scenario_info.test_plan_ui_scenario_id.length_range}", groups = {Created.class, Updated.class}) + private String testPlanUiScenarioId; + + @Schema(title = "报告ID;报告ID(预生成)", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_record_ui_scenario_info.report_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_record_ui_scenario_info.report_id.length_range}", groups = {Created.class, Updated.class}) + private String reportId; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfoExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfoExample.java new file mode 100644 index 0000000000..77045138c6 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanRecordUiScenarioInfoExample.java @@ -0,0 +1,480 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanRecordUiScenarioInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanRecordUiScenarioInfoExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIsNull() { + addCriterion("test_plan_execute_record_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIsNotNull() { + addCriterion("test_plan_execute_record_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdEqualTo(String value) { + addCriterion("test_plan_execute_record_id =", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotEqualTo(String value) { + addCriterion("test_plan_execute_record_id <>", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdGreaterThan(String value) { + addCriterion("test_plan_execute_record_id >", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_execute_record_id >=", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLessThan(String value) { + addCriterion("test_plan_execute_record_id <", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_execute_record_id <=", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdLike(String value) { + addCriterion("test_plan_execute_record_id like", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotLike(String value) { + addCriterion("test_plan_execute_record_id not like", value, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdIn(List values) { + addCriterion("test_plan_execute_record_id in", values, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotIn(List values) { + addCriterion("test_plan_execute_record_id not in", values, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdBetween(String value1, String value2) { + addCriterion("test_plan_execute_record_id between", value1, value2, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanExecuteRecordIdNotBetween(String value1, String value2) { + addCriterion("test_plan_execute_record_id not between", value1, value2, "testPlanExecuteRecordId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdIsNull() { + addCriterion("test_plan_ui_scenario_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdIsNotNull() { + addCriterion("test_plan_ui_scenario_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdEqualTo(String value) { + addCriterion("test_plan_ui_scenario_id =", value, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdNotEqualTo(String value) { + addCriterion("test_plan_ui_scenario_id <>", value, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdGreaterThan(String value) { + addCriterion("test_plan_ui_scenario_id >", value, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_ui_scenario_id >=", value, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdLessThan(String value) { + addCriterion("test_plan_ui_scenario_id <", value, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_ui_scenario_id <=", value, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdLike(String value) { + addCriterion("test_plan_ui_scenario_id like", value, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdNotLike(String value) { + addCriterion("test_plan_ui_scenario_id not like", value, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdIn(List values) { + addCriterion("test_plan_ui_scenario_id in", values, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdNotIn(List values) { + addCriterion("test_plan_ui_scenario_id not in", values, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdBetween(String value1, String value2) { + addCriterion("test_plan_ui_scenario_id between", value1, value2, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andTestPlanUiScenarioIdNotBetween(String value1, String value2) { + addCriterion("test_plan_ui_scenario_id not between", value1, value2, "testPlanUiScenarioId"); + return (Criteria) this; + } + + public Criteria andReportIdIsNull() { + addCriterion("report_id is null"); + return (Criteria) this; + } + + public Criteria andReportIdIsNotNull() { + addCriterion("report_id is not null"); + return (Criteria) this; + } + + public Criteria andReportIdEqualTo(String value) { + addCriterion("report_id =", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotEqualTo(String value) { + addCriterion("report_id <>", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThan(String value) { + addCriterion("report_id >", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThanOrEqualTo(String value) { + addCriterion("report_id >=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThan(String value) { + addCriterion("report_id <", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThanOrEqualTo(String value) { + addCriterion("report_id <=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLike(String value) { + addCriterion("report_id like", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotLike(String value) { + addCriterion("report_id not like", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdIn(List values) { + addCriterion("report_id in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotIn(List values) { + addCriterion("report_id not in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdBetween(String value1, String value2) { + addCriterion("report_id between", value1, value2, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotBetween(String value1, String value2) { + addCriterion("report_id not between", value1, value2, "reportId"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java index 0a33861bac..b33011745c 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReport.java @@ -5,68 +5,54 @@ import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; -import lombok.Data; -import org.springframework.data.annotation.Id; -import org.springframework.data.relational.core.mapping.Table; - import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划报告") -@Table("test_plan_report") @Data public class TestPlanReport implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @NotBlank(message = "{test_plan_report.id.not_blank}", groups = {Updated.class}) @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_report.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_report.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Size(min = 1, max = 50, message = "{test_plan_report.test_plan_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_report.test_plan_id.not_blank}", groups = {Created.class}) @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_report.test_plan_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_report.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Size(min = 1, max = 128, message = "{test_plan_report.name.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_report.name.not_blank}", groups = {Created.class}) @Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_report.name.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 255, message = "{test_plan_report.name.length_range}", groups = {Created.class, Updated.class}) private String name; - @Size(min = 1, max = 50, message = "{test_plan_report.create_user.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_report.create_user.not_blank}", groups = {Created.class}) @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_report.create_user.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_report.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; - - @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(title = "创建时间") private Long createTime; - @Schema(title = "修改人") private String updateUser; - @Schema(title = "更新时间") private Long updateTime; - @Schema(title = "开始时间") private Long startTime; - @Schema(title = "结束时间") private Long endTime; - @Schema(title = "用例数量") private Long caseCount; - @Schema(title = "执行率") private Double executeRate; - @Schema(title = "通过率") private Double passRate; - + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java index a76a31ba02..66a942e094 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContent.java @@ -5,34 +5,26 @@ import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; -import lombok.Data; -import org.springframework.data.annotation.Id; -import org.springframework.data.relational.core.mapping.Table; - import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划报告内容") -@Table("test_plan_report_content") @Data public class TestPlanReportContent implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @NotBlank(message = "{test_plan_report_content.id.not_blank}", groups = {Updated.class}) @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_report_content.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_report_content.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Size(min = 1, max = 50, message = "{test_plan_report_content.test_plan_report_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_report_content.test_plan_report_id.not_blank}", groups = {Created.class}) @Schema(title = "测试计划报告ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_report_content.test_plan_report_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_report_content.test_plan_report_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanReportId; - @Schema(title = "总结") private String summary; - @Schema(title = "报告内容") private byte[] content; - + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContentExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContentExample.java new file mode 100644 index 0000000000..2e277cc776 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportContentExample.java @@ -0,0 +1,410 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanReportContentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanReportContentExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdIsNull() { + addCriterion("test_plan_report_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdIsNotNull() { + addCriterion("test_plan_report_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdEqualTo(String value) { + addCriterion("test_plan_report_id =", value, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdNotEqualTo(String value) { + addCriterion("test_plan_report_id <>", value, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdGreaterThan(String value) { + addCriterion("test_plan_report_id >", value, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_report_id >=", value, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdLessThan(String value) { + addCriterion("test_plan_report_id <", value, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_report_id <=", value, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdLike(String value) { + addCriterion("test_plan_report_id like", value, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdNotLike(String value) { + addCriterion("test_plan_report_id not like", value, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdIn(List values) { + addCriterion("test_plan_report_id in", values, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdNotIn(List values) { + addCriterion("test_plan_report_id not in", values, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdBetween(String value1, String value2) { + addCriterion("test_plan_report_id between", value1, value2, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andTestPlanReportIdNotBetween(String value1, String value2) { + addCriterion("test_plan_report_id not between", value1, value2, "testPlanReportId"); + return (Criteria) this; + } + + public Criteria andSummaryIsNull() { + addCriterion("summary is null"); + return (Criteria) this; + } + + public Criteria andSummaryIsNotNull() { + addCriterion("summary is not null"); + return (Criteria) this; + } + + public Criteria andSummaryEqualTo(String value) { + addCriterion("summary =", value, "summary"); + return (Criteria) this; + } + + public Criteria andSummaryNotEqualTo(String value) { + addCriterion("summary <>", value, "summary"); + return (Criteria) this; + } + + public Criteria andSummaryGreaterThan(String value) { + addCriterion("summary >", value, "summary"); + return (Criteria) this; + } + + public Criteria andSummaryGreaterThanOrEqualTo(String value) { + addCriterion("summary >=", value, "summary"); + return (Criteria) this; + } + + public Criteria andSummaryLessThan(String value) { + addCriterion("summary <", value, "summary"); + return (Criteria) this; + } + + public Criteria andSummaryLessThanOrEqualTo(String value) { + addCriterion("summary <=", value, "summary"); + return (Criteria) this; + } + + public Criteria andSummaryLike(String value) { + addCriterion("summary like", value, "summary"); + return (Criteria) this; + } + + public Criteria andSummaryNotLike(String value) { + addCriterion("summary not like", value, "summary"); + return (Criteria) this; + } + + public Criteria andSummaryIn(List values) { + addCriterion("summary in", values, "summary"); + return (Criteria) this; + } + + public Criteria andSummaryNotIn(List values) { + addCriterion("summary not in", values, "summary"); + return (Criteria) this; + } + + public Criteria andSummaryBetween(String value1, String value2) { + addCriterion("summary between", value1, value2, "summary"); + return (Criteria) this; + } + + public Criteria andSummaryNotBetween(String value1, String value2) { + addCriterion("summary not between", value1, value2, "summary"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportExample.java new file mode 100644 index 0000000000..0a94e25abb --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanReportExample.java @@ -0,0 +1,970 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanReportExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanReportExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNull() { + addCriterion("test_plan_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNotNull() { + addCriterion("test_plan_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdEqualTo(String value) { + addCriterion("test_plan_id =", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotEqualTo(String value) { + addCriterion("test_plan_id <>", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThan(String value) { + addCriterion("test_plan_id >", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_id >=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThan(String value) { + addCriterion("test_plan_id <", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_id <=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLike(String value) { + addCriterion("test_plan_id like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotLike(String value) { + addCriterion("test_plan_id not like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIn(List values) { + addCriterion("test_plan_id in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotIn(List values) { + addCriterion("test_plan_id not in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdBetween(String value1, String value2) { + addCriterion("test_plan_id between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotBetween(String value1, String value2) { + addCriterion("test_plan_id not between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("`name` is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("`name` is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("`name` =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("`name` <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("`name` >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("`name` >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("`name` <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("`name` <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("`name` like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("`name` not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("`name` in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("`name` not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("`name` between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("`name` not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNull() { + addCriterion("create_user is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNotNull() { + addCriterion("create_user is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserEqualTo(String value) { + addCriterion("create_user =", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotEqualTo(String value) { + addCriterion("create_user <>", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThan(String value) { + addCriterion("create_user >", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThanOrEqualTo(String value) { + addCriterion("create_user >=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThan(String value) { + addCriterion("create_user <", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThanOrEqualTo(String value) { + addCriterion("create_user <=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLike(String value) { + addCriterion("create_user like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotLike(String value) { + addCriterion("create_user not like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserIn(List values) { + addCriterion("create_user in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotIn(List values) { + addCriterion("create_user not in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserBetween(String value1, String value2) { + addCriterion("create_user between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotBetween(String value1, String value2) { + addCriterion("create_user not between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Long value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Long value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Long value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Long value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Long value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Long value1, Long value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Long value1, Long value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andUpdateUserIsNull() { + addCriterion("update_user is null"); + return (Criteria) this; + } + + public Criteria andUpdateUserIsNotNull() { + addCriterion("update_user is not null"); + return (Criteria) this; + } + + public Criteria andUpdateUserEqualTo(String value) { + addCriterion("update_user =", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotEqualTo(String value) { + addCriterion("update_user <>", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserGreaterThan(String value) { + addCriterion("update_user >", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserGreaterThanOrEqualTo(String value) { + addCriterion("update_user >=", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserLessThan(String value) { + addCriterion("update_user <", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserLessThanOrEqualTo(String value) { + addCriterion("update_user <=", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserLike(String value) { + addCriterion("update_user like", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotLike(String value) { + addCriterion("update_user not like", value, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserIn(List values) { + addCriterion("update_user in", values, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotIn(List values) { + addCriterion("update_user not in", values, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserBetween(String value1, String value2) { + addCriterion("update_user between", value1, value2, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateUserNotBetween(String value1, String value2) { + addCriterion("update_user not between", value1, value2, "updateUser"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Long value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Long value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Long value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Long value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Long value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Long value1, Long value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Long value1, Long value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andStartTimeIsNull() { + addCriterion("start_time is null"); + return (Criteria) this; + } + + public Criteria andStartTimeIsNotNull() { + addCriterion("start_time is not null"); + return (Criteria) this; + } + + public Criteria andStartTimeEqualTo(Long value) { + addCriterion("start_time =", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotEqualTo(Long value) { + addCriterion("start_time <>", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThan(Long value) { + addCriterion("start_time >", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThanOrEqualTo(Long value) { + addCriterion("start_time >=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThan(Long value) { + addCriterion("start_time <", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThanOrEqualTo(Long value) { + addCriterion("start_time <=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeIn(List values) { + addCriterion("start_time in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotIn(List values) { + addCriterion("start_time not in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeBetween(Long value1, Long value2) { + addCriterion("start_time between", value1, value2, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotBetween(Long value1, Long value2) { + addCriterion("start_time not between", value1, value2, "startTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNull() { + addCriterion("end_time is null"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNotNull() { + addCriterion("end_time is not null"); + return (Criteria) this; + } + + public Criteria andEndTimeEqualTo(Long value) { + addCriterion("end_time =", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotEqualTo(Long value) { + addCriterion("end_time <>", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThan(Long value) { + addCriterion("end_time >", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThanOrEqualTo(Long value) { + addCriterion("end_time >=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThan(Long value) { + addCriterion("end_time <", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThanOrEqualTo(Long value) { + addCriterion("end_time <=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIn(List values) { + addCriterion("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List values) { + addCriterion("end_time not in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeBetween(Long value1, Long value2) { + addCriterion("end_time between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotBetween(Long value1, Long value2) { + addCriterion("end_time not between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andCaseCountIsNull() { + addCriterion("case_count is null"); + return (Criteria) this; + } + + public Criteria andCaseCountIsNotNull() { + addCriterion("case_count is not null"); + return (Criteria) this; + } + + public Criteria andCaseCountEqualTo(Long value) { + addCriterion("case_count =", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountNotEqualTo(Long value) { + addCriterion("case_count <>", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountGreaterThan(Long value) { + addCriterion("case_count >", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountGreaterThanOrEqualTo(Long value) { + addCriterion("case_count >=", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountLessThan(Long value) { + addCriterion("case_count <", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountLessThanOrEqualTo(Long value) { + addCriterion("case_count <=", value, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountIn(List values) { + addCriterion("case_count in", values, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountNotIn(List values) { + addCriterion("case_count not in", values, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountBetween(Long value1, Long value2) { + addCriterion("case_count between", value1, value2, "caseCount"); + return (Criteria) this; + } + + public Criteria andCaseCountNotBetween(Long value1, Long value2) { + addCriterion("case_count not between", value1, value2, "caseCount"); + return (Criteria) this; + } + + public Criteria andExecuteRateIsNull() { + addCriterion("execute_rate is null"); + return (Criteria) this; + } + + public Criteria andExecuteRateIsNotNull() { + addCriterion("execute_rate is not null"); + return (Criteria) this; + } + + public Criteria andExecuteRateEqualTo(Double value) { + addCriterion("execute_rate =", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateNotEqualTo(Double value) { + addCriterion("execute_rate <>", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateGreaterThan(Double value) { + addCriterion("execute_rate >", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateGreaterThanOrEqualTo(Double value) { + addCriterion("execute_rate >=", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateLessThan(Double value) { + addCriterion("execute_rate <", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateLessThanOrEqualTo(Double value) { + addCriterion("execute_rate <=", value, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateIn(List values) { + addCriterion("execute_rate in", values, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateNotIn(List values) { + addCriterion("execute_rate not in", values, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateBetween(Double value1, Double value2) { + addCriterion("execute_rate between", value1, value2, "executeRate"); + return (Criteria) this; + } + + public Criteria andExecuteRateNotBetween(Double value1, Double value2) { + addCriterion("execute_rate not between", value1, value2, "executeRate"); + return (Criteria) this; + } + + public Criteria andPassRateIsNull() { + addCriterion("pass_rate is null"); + return (Criteria) this; + } + + public Criteria andPassRateIsNotNull() { + addCriterion("pass_rate is not null"); + return (Criteria) this; + } + + public Criteria andPassRateEqualTo(Double value) { + addCriterion("pass_rate =", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateNotEqualTo(Double value) { + addCriterion("pass_rate <>", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateGreaterThan(Double value) { + addCriterion("pass_rate >", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateGreaterThanOrEqualTo(Double value) { + addCriterion("pass_rate >=", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateLessThan(Double value) { + addCriterion("pass_rate <", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateLessThanOrEqualTo(Double value) { + addCriterion("pass_rate <=", value, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateIn(List values) { + addCriterion("pass_rate in", values, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateNotIn(List values) { + addCriterion("pass_rate not in", values, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateBetween(Double value1, Double value2) { + addCriterion("pass_rate between", value1, value2, "passRate"); + return (Criteria) this; + } + + public Criteria andPassRateNotBetween(Double value1, Double value2) { + addCriterion("pass_rate not between", value1, value2, "passRate"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java index 25b4b34c63..b899bf423e 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenario.java @@ -5,56 +5,47 @@ import io.metersphere.validation.groups.Updated; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; -import lombok.Data; -import org.springframework.data.annotation.Id; -import org.springframework.data.relational.core.mapping.Table; - import java.io.Serializable; +import lombok.Data; -@Schema(title = "测试计划关联UI场景") -@Table("test_plan_ui_scenario") @Data public class TestPlanUiScenario implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @NotBlank(message = "{test_plan_ui_scenario.id.not_blank}", groups = {Updated.class}) @Schema(title = "ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_ui_scenario.id.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 50, message = "{test_plan_ui_scenario.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Size(min = 1, max = 50, message = "{test_plan_ui_scenario.test_plan_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_ui_scenario.test_plan_id.not_blank}", groups = {Created.class}) @Schema(title = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_ui_scenario.test_plan_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_ui_scenario.test_plan_id.length_range}", groups = {Created.class, Updated.class}) private String testPlanId; - @Size(min = 1, max = 50, message = "{test_plan_ui_scenario.ui_scenario_id.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_ui_scenario.ui_scenario_id.not_blank}", groups = {Created.class}) @Schema(title = "UI场景ID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_ui_scenario.ui_scenario_id.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_ui_scenario.ui_scenario_id.length_range}", groups = {Created.class, Updated.class}) private String uiScenarioId; - @Size(min = 1, max = 50, message = "{test_plan_ui_scenario.create_user.length_range}", groups = {Created.class, Updated.class}) - @NotBlank(message = "{test_plan_ui_scenario.create_user.not_blank}", groups = {Created.class}) @Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_ui_scenario.create_user.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 50, message = "{test_plan_ui_scenario.create_user.length_range}", groups = {Created.class, Updated.class}) private String createUser; - - @Schema(title = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(title = "创建时间") private Long createTime; - @Schema(title = "排序,默认值5000", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{test_plan_ui_scenario.pos.not_blank}", groups = {Created.class}) + @Size(min = 1, max = 19, message = "{test_plan_ui_scenario.pos.length_range}", groups = {Created.class, Updated.class}) private Long pos; - @Schema(title = "环境类型") private String environmentType; + @Schema(title = "环境组ID") + private String environmentGroupId; @Schema(title = "所属环境") private String environment; - - @Schema(title = "环境组ID") - private String environmentGroupId; - - + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenarioExample.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenarioExample.java new file mode 100644 index 0000000000..4e88ecefb8 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanUiScenarioExample.java @@ -0,0 +1,740 @@ +package io.metersphere.plan.domain; + +import java.util.ArrayList; +import java.util.List; + +public class TestPlanUiScenarioExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TestPlanUiScenarioExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNull() { + addCriterion("test_plan_id is null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIsNotNull() { + addCriterion("test_plan_id is not null"); + return (Criteria) this; + } + + public Criteria andTestPlanIdEqualTo(String value) { + addCriterion("test_plan_id =", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotEqualTo(String value) { + addCriterion("test_plan_id <>", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThan(String value) { + addCriterion("test_plan_id >", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdGreaterThanOrEqualTo(String value) { + addCriterion("test_plan_id >=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThan(String value) { + addCriterion("test_plan_id <", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLessThanOrEqualTo(String value) { + addCriterion("test_plan_id <=", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdLike(String value) { + addCriterion("test_plan_id like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotLike(String value) { + addCriterion("test_plan_id not like", value, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdIn(List values) { + addCriterion("test_plan_id in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotIn(List values) { + addCriterion("test_plan_id not in", values, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdBetween(String value1, String value2) { + addCriterion("test_plan_id between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andTestPlanIdNotBetween(String value1, String value2) { + addCriterion("test_plan_id not between", value1, value2, "testPlanId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdIsNull() { + addCriterion("ui_scenario_id is null"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdIsNotNull() { + addCriterion("ui_scenario_id is not null"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdEqualTo(String value) { + addCriterion("ui_scenario_id =", value, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdNotEqualTo(String value) { + addCriterion("ui_scenario_id <>", value, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdGreaterThan(String value) { + addCriterion("ui_scenario_id >", value, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdGreaterThanOrEqualTo(String value) { + addCriterion("ui_scenario_id >=", value, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdLessThan(String value) { + addCriterion("ui_scenario_id <", value, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdLessThanOrEqualTo(String value) { + addCriterion("ui_scenario_id <=", value, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdLike(String value) { + addCriterion("ui_scenario_id like", value, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdNotLike(String value) { + addCriterion("ui_scenario_id not like", value, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdIn(List values) { + addCriterion("ui_scenario_id in", values, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdNotIn(List values) { + addCriterion("ui_scenario_id not in", values, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdBetween(String value1, String value2) { + addCriterion("ui_scenario_id between", value1, value2, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andUiScenarioIdNotBetween(String value1, String value2) { + addCriterion("ui_scenario_id not between", value1, value2, "uiScenarioId"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNull() { + addCriterion("create_user is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNotNull() { + addCriterion("create_user is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserEqualTo(String value) { + addCriterion("create_user =", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotEqualTo(String value) { + addCriterion("create_user <>", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThan(String value) { + addCriterion("create_user >", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThanOrEqualTo(String value) { + addCriterion("create_user >=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThan(String value) { + addCriterion("create_user <", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThanOrEqualTo(String value) { + addCriterion("create_user <=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLike(String value) { + addCriterion("create_user like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotLike(String value) { + addCriterion("create_user not like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserIn(List values) { + addCriterion("create_user in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotIn(List values) { + addCriterion("create_user not in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserBetween(String value1, String value2) { + addCriterion("create_user between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotBetween(String value1, String value2) { + addCriterion("create_user not between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Long value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Long value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Long value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Long value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Long value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Long value1, Long value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Long value1, Long value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andPosIsNull() { + addCriterion("pos is null"); + return (Criteria) this; + } + + public Criteria andPosIsNotNull() { + addCriterion("pos is not null"); + return (Criteria) this; + } + + public Criteria andPosEqualTo(Long value) { + addCriterion("pos =", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotEqualTo(Long value) { + addCriterion("pos <>", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThan(Long value) { + addCriterion("pos >", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosGreaterThanOrEqualTo(Long value) { + addCriterion("pos >=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThan(Long value) { + addCriterion("pos <", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosLessThanOrEqualTo(Long value) { + addCriterion("pos <=", value, "pos"); + return (Criteria) this; + } + + public Criteria andPosIn(List values) { + addCriterion("pos in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotIn(List values) { + addCriterion("pos not in", values, "pos"); + return (Criteria) this; + } + + public Criteria andPosBetween(Long value1, Long value2) { + addCriterion("pos between", value1, value2, "pos"); + return (Criteria) this; + } + + public Criteria andPosNotBetween(Long value1, Long value2) { + addCriterion("pos not between", value1, value2, "pos"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeIsNull() { + addCriterion("environment_type is null"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeIsNotNull() { + addCriterion("environment_type is not null"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeEqualTo(String value) { + addCriterion("environment_type =", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotEqualTo(String value) { + addCriterion("environment_type <>", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeGreaterThan(String value) { + addCriterion("environment_type >", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeGreaterThanOrEqualTo(String value) { + addCriterion("environment_type >=", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeLessThan(String value) { + addCriterion("environment_type <", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeLessThanOrEqualTo(String value) { + addCriterion("environment_type <=", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeLike(String value) { + addCriterion("environment_type like", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotLike(String value) { + addCriterion("environment_type not like", value, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeIn(List values) { + addCriterion("environment_type in", values, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotIn(List values) { + addCriterion("environment_type not in", values, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeBetween(String value1, String value2) { + addCriterion("environment_type between", value1, value2, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentTypeNotBetween(String value1, String value2) { + addCriterion("environment_type not between", value1, value2, "environmentType"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdIsNull() { + addCriterion("environment_group_id is null"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdIsNotNull() { + addCriterion("environment_group_id is not null"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdEqualTo(String value) { + addCriterion("environment_group_id =", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotEqualTo(String value) { + addCriterion("environment_group_id <>", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdGreaterThan(String value) { + addCriterion("environment_group_id >", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdGreaterThanOrEqualTo(String value) { + addCriterion("environment_group_id >=", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdLessThan(String value) { + addCriterion("environment_group_id <", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdLessThanOrEqualTo(String value) { + addCriterion("environment_group_id <=", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdLike(String value) { + addCriterion("environment_group_id like", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotLike(String value) { + addCriterion("environment_group_id not like", value, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdIn(List values) { + addCriterion("environment_group_id in", values, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotIn(List values) { + addCriterion("environment_group_id not in", values, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdBetween(String value1, String value2) { + addCriterion("environment_group_id between", value1, value2, "environmentGroupId"); + return (Criteria) this; + } + + public Criteria andEnvironmentGroupIdNotBetween(String value1, String value2) { + addCriterion("environment_group_id not between", value1, value2, "environmentGroupId"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiCaseMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiCaseMapper.java new file mode 100644 index 0000000000..bc369660ff --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiCaseMapper.java @@ -0,0 +1,36 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanApiCase; +import io.metersphere.plan.domain.TestPlanApiCaseExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanApiCaseMapper { + long countByExample(TestPlanApiCaseExample example); + + int deleteByExample(TestPlanApiCaseExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanApiCase record); + + int insertSelective(TestPlanApiCase record); + + List selectByExampleWithBLOBs(TestPlanApiCaseExample example); + + List selectByExample(TestPlanApiCaseExample example); + + TestPlanApiCase selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanApiCase record, @Param("example") TestPlanApiCaseExample example); + + int updateByExampleWithBLOBs(@Param("record") TestPlanApiCase record, @Param("example") TestPlanApiCaseExample example); + + int updateByExample(@Param("record") TestPlanApiCase record, @Param("example") TestPlanApiCaseExample example); + + int updateByPrimaryKeySelective(TestPlanApiCase record); + + int updateByPrimaryKeyWithBLOBs(TestPlanApiCase record); + + int updateByPrimaryKey(TestPlanApiCase record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiCaseMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiCaseMapper.xml new file mode 100644 index 0000000000..7c8a3bb87d --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiCaseMapper.xml @@ -0,0 +1,324 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_id, api_case_id, environment_type, environment_group_id, create_time, + create_user, pos + + + environment + + + + + + delete from test_plan_api_case + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_api_case + + + + + + insert into test_plan_api_case (id, test_plan_id, api_case_id, + environment_type, environment_group_id, create_time, + create_user, pos, environment + ) + values (#{id,jdbcType=VARCHAR}, #{testPlanId,jdbcType=VARCHAR}, #{apiCaseId,jdbcType=VARCHAR}, + #{environmentType,jdbcType=VARCHAR}, #{environmentGroupId,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, + #{createUser,jdbcType=VARCHAR}, #{pos,jdbcType=BIGINT}, #{environment,jdbcType=LONGVARCHAR} + ) + + + insert into test_plan_api_case + + + id, + + + test_plan_id, + + + api_case_id, + + + environment_type, + + + environment_group_id, + + + create_time, + + + create_user, + + + pos, + + + environment, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanId,jdbcType=VARCHAR}, + + + #{apiCaseId,jdbcType=VARCHAR}, + + + #{environmentType,jdbcType=VARCHAR}, + + + #{environmentGroupId,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=BIGINT}, + + + #{createUser,jdbcType=VARCHAR}, + + + #{pos,jdbcType=BIGINT}, + + + #{environment,jdbcType=LONGVARCHAR}, + + + + + + update test_plan_api_case + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + + + api_case_id = #{record.apiCaseId,jdbcType=VARCHAR}, + + + environment_type = #{record.environmentType,jdbcType=VARCHAR}, + + + environment_group_id = #{record.environmentGroupId,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=BIGINT}, + + + create_user = #{record.createUser,jdbcType=VARCHAR}, + + + pos = #{record.pos,jdbcType=BIGINT}, + + + environment = #{record.environment,jdbcType=LONGVARCHAR}, + + + + + + + + update test_plan_api_case + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + api_case_id = #{record.apiCaseId,jdbcType=VARCHAR}, + environment_type = #{record.environmentType,jdbcType=VARCHAR}, + environment_group_id = #{record.environmentGroupId,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + pos = #{record.pos,jdbcType=BIGINT}, + environment = #{record.environment,jdbcType=LONGVARCHAR} + + + + + + update test_plan_api_case + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + api_case_id = #{record.apiCaseId,jdbcType=VARCHAR}, + environment_type = #{record.environmentType,jdbcType=VARCHAR}, + environment_group_id = #{record.environmentGroupId,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + pos = #{record.pos,jdbcType=BIGINT} + + + + + + update test_plan_api_case + + + test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + + + api_case_id = #{apiCaseId,jdbcType=VARCHAR}, + + + environment_type = #{environmentType,jdbcType=VARCHAR}, + + + environment_group_id = #{environmentGroupId,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, + + + create_user = #{createUser,jdbcType=VARCHAR}, + + + pos = #{pos,jdbcType=BIGINT}, + + + environment = #{environment,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_api_case + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + api_case_id = #{apiCaseId,jdbcType=VARCHAR}, + environment_type = #{environmentType,jdbcType=VARCHAR}, + environment_group_id = #{environmentGroupId,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + create_user = #{createUser,jdbcType=VARCHAR}, + pos = #{pos,jdbcType=BIGINT}, + environment = #{environment,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_api_case + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + api_case_id = #{apiCaseId,jdbcType=VARCHAR}, + environment_type = #{environmentType,jdbcType=VARCHAR}, + environment_group_id = #{environmentGroupId,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + create_user = #{createUser,jdbcType=VARCHAR}, + pos = #{pos,jdbcType=BIGINT} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiScenarioMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiScenarioMapper.java new file mode 100644 index 0000000000..5e683037a6 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiScenarioMapper.java @@ -0,0 +1,36 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanApiScenario; +import io.metersphere.plan.domain.TestPlanApiScenarioExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanApiScenarioMapper { + long countByExample(TestPlanApiScenarioExample example); + + int deleteByExample(TestPlanApiScenarioExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanApiScenario record); + + int insertSelective(TestPlanApiScenario record); + + List selectByExampleWithBLOBs(TestPlanApiScenarioExample example); + + List selectByExample(TestPlanApiScenarioExample example); + + TestPlanApiScenario selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanApiScenario record, @Param("example") TestPlanApiScenarioExample example); + + int updateByExampleWithBLOBs(@Param("record") TestPlanApiScenario record, @Param("example") TestPlanApiScenarioExample example); + + int updateByExample(@Param("record") TestPlanApiScenario record, @Param("example") TestPlanApiScenarioExample example); + + int updateByPrimaryKeySelective(TestPlanApiScenario record); + + int updateByPrimaryKeyWithBLOBs(TestPlanApiScenario record); + + int updateByPrimaryKey(TestPlanApiScenario record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiScenarioMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiScenarioMapper.xml new file mode 100644 index 0000000000..68eb170721 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanApiScenarioMapper.xml @@ -0,0 +1,324 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_id, api_scenario_id, create_time, create_user, pos, environment_type, + environment_group_id + + + environment + + + + + + delete from test_plan_api_scenario + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_api_scenario + + + + + + insert into test_plan_api_scenario (id, test_plan_id, api_scenario_id, + create_time, create_user, pos, + environment_type, environment_group_id, environment + ) + values (#{id,jdbcType=VARCHAR}, #{testPlanId,jdbcType=VARCHAR}, #{apiScenarioId,jdbcType=VARCHAR}, + #{createTime,jdbcType=BIGINT}, #{createUser,jdbcType=VARCHAR}, #{pos,jdbcType=BIGINT}, + #{environmentType,jdbcType=VARCHAR}, #{environmentGroupId,jdbcType=VARCHAR}, #{environment,jdbcType=LONGVARCHAR} + ) + + + insert into test_plan_api_scenario + + + id, + + + test_plan_id, + + + api_scenario_id, + + + create_time, + + + create_user, + + + pos, + + + environment_type, + + + environment_group_id, + + + environment, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanId,jdbcType=VARCHAR}, + + + #{apiScenarioId,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=BIGINT}, + + + #{createUser,jdbcType=VARCHAR}, + + + #{pos,jdbcType=BIGINT}, + + + #{environmentType,jdbcType=VARCHAR}, + + + #{environmentGroupId,jdbcType=VARCHAR}, + + + #{environment,jdbcType=LONGVARCHAR}, + + + + + + update test_plan_api_scenario + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + + + api_scenario_id = #{record.apiScenarioId,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=BIGINT}, + + + create_user = #{record.createUser,jdbcType=VARCHAR}, + + + pos = #{record.pos,jdbcType=BIGINT}, + + + environment_type = #{record.environmentType,jdbcType=VARCHAR}, + + + environment_group_id = #{record.environmentGroupId,jdbcType=VARCHAR}, + + + environment = #{record.environment,jdbcType=LONGVARCHAR}, + + + + + + + + update test_plan_api_scenario + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + api_scenario_id = #{record.apiScenarioId,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + pos = #{record.pos,jdbcType=BIGINT}, + environment_type = #{record.environmentType,jdbcType=VARCHAR}, + environment_group_id = #{record.environmentGroupId,jdbcType=VARCHAR}, + environment = #{record.environment,jdbcType=LONGVARCHAR} + + + + + + update test_plan_api_scenario + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + api_scenario_id = #{record.apiScenarioId,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + pos = #{record.pos,jdbcType=BIGINT}, + environment_type = #{record.environmentType,jdbcType=VARCHAR}, + environment_group_id = #{record.environmentGroupId,jdbcType=VARCHAR} + + + + + + update test_plan_api_scenario + + + test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + + + api_scenario_id = #{apiScenarioId,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, + + + create_user = #{createUser,jdbcType=VARCHAR}, + + + pos = #{pos,jdbcType=BIGINT}, + + + environment_type = #{environmentType,jdbcType=VARCHAR}, + + + environment_group_id = #{environmentGroupId,jdbcType=VARCHAR}, + + + environment = #{environment,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_api_scenario + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + api_scenario_id = #{apiScenarioId,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + create_user = #{createUser,jdbcType=VARCHAR}, + pos = #{pos,jdbcType=BIGINT}, + environment_type = #{environmentType,jdbcType=VARCHAR}, + environment_group_id = #{environmentGroupId,jdbcType=VARCHAR}, + environment = #{environment,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_api_scenario + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + api_scenario_id = #{apiScenarioId,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + create_user = #{createUser,jdbcType=VARCHAR}, + pos = #{pos,jdbcType=BIGINT}, + environment_type = #{environmentType,jdbcType=VARCHAR}, + environment_group_id = #{environmentGroupId,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanConfigMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanConfigMapper.java new file mode 100644 index 0000000000..bf4682d5c7 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanConfigMapper.java @@ -0,0 +1,36 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanConfig; +import io.metersphere.plan.domain.TestPlanConfigExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanConfigMapper { + long countByExample(TestPlanConfigExample example); + + int deleteByExample(TestPlanConfigExample example); + + int deleteByPrimaryKey(String testPlanId); + + int insert(TestPlanConfig record); + + int insertSelective(TestPlanConfig record); + + List selectByExampleWithBLOBs(TestPlanConfigExample example); + + List selectByExample(TestPlanConfigExample example); + + TestPlanConfig selectByPrimaryKey(String testPlanId); + + int updateByExampleSelective(@Param("record") TestPlanConfig record, @Param("example") TestPlanConfigExample example); + + int updateByExampleWithBLOBs(@Param("record") TestPlanConfig record, @Param("example") TestPlanConfigExample example); + + int updateByExample(@Param("record") TestPlanConfig record, @Param("example") TestPlanConfigExample example); + + int updateByPrimaryKeySelective(TestPlanConfig record); + + int updateByPrimaryKeyWithBLOBs(TestPlanConfig record); + + int updateByPrimaryKey(TestPlanConfig record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanConfigMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanConfigMapper.xml new file mode 100644 index 0000000000..99d3b261c7 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanConfigMapper.xml @@ -0,0 +1,251 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + test_plan_id, automatic_status_update, repeat_case, pass_threshold + + + run_mode_config + + + + + + delete from test_plan_config + where test_plan_id = #{testPlanId,jdbcType=VARCHAR} + + + delete from test_plan_config + + + + + + insert into test_plan_config (test_plan_id, automatic_status_update, repeat_case, + pass_threshold, run_mode_config) + values (#{testPlanId,jdbcType=VARCHAR}, #{automaticStatusUpdate,jdbcType=BIT}, #{repeatCase,jdbcType=BIT}, + #{passThreshold,jdbcType=INTEGER}, #{runModeConfig,jdbcType=LONGVARCHAR}) + + + insert into test_plan_config + + + test_plan_id, + + + automatic_status_update, + + + repeat_case, + + + pass_threshold, + + + run_mode_config, + + + + + #{testPlanId,jdbcType=VARCHAR}, + + + #{automaticStatusUpdate,jdbcType=BIT}, + + + #{repeatCase,jdbcType=BIT}, + + + #{passThreshold,jdbcType=INTEGER}, + + + #{runModeConfig,jdbcType=LONGVARCHAR}, + + + + + + update test_plan_config + + + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + + + automatic_status_update = #{record.automaticStatusUpdate,jdbcType=BIT}, + + + repeat_case = #{record.repeatCase,jdbcType=BIT}, + + + pass_threshold = #{record.passThreshold,jdbcType=INTEGER}, + + + run_mode_config = #{record.runModeConfig,jdbcType=LONGVARCHAR}, + + + + + + + + update test_plan_config + set test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + automatic_status_update = #{record.automaticStatusUpdate,jdbcType=BIT}, + repeat_case = #{record.repeatCase,jdbcType=BIT}, + pass_threshold = #{record.passThreshold,jdbcType=INTEGER}, + run_mode_config = #{record.runModeConfig,jdbcType=LONGVARCHAR} + + + + + + update test_plan_config + set test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + automatic_status_update = #{record.automaticStatusUpdate,jdbcType=BIT}, + repeat_case = #{record.repeatCase,jdbcType=BIT}, + pass_threshold = #{record.passThreshold,jdbcType=INTEGER} + + + + + + update test_plan_config + + + automatic_status_update = #{automaticStatusUpdate,jdbcType=BIT}, + + + repeat_case = #{repeatCase,jdbcType=BIT}, + + + pass_threshold = #{passThreshold,jdbcType=INTEGER}, + + + run_mode_config = #{runModeConfig,jdbcType=LONGVARCHAR}, + + + where test_plan_id = #{testPlanId,jdbcType=VARCHAR} + + + update test_plan_config + set automatic_status_update = #{automaticStatusUpdate,jdbcType=BIT}, + repeat_case = #{repeatCase,jdbcType=BIT}, + pass_threshold = #{passThreshold,jdbcType=INTEGER}, + run_mode_config = #{runModeConfig,jdbcType=LONGVARCHAR} + where test_plan_id = #{testPlanId,jdbcType=VARCHAR} + + + update test_plan_config + set automatic_status_update = #{automaticStatusUpdate,jdbcType=BIT}, + repeat_case = #{repeatCase,jdbcType=BIT}, + pass_threshold = #{passThreshold,jdbcType=INTEGER} + where test_plan_id = #{testPlanId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecuteRecordMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecuteRecordMapper.java new file mode 100644 index 0000000000..a575da4b01 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecuteRecordMapper.java @@ -0,0 +1,36 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanExecuteRecord; +import io.metersphere.plan.domain.TestPlanExecuteRecordExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanExecuteRecordMapper { + long countByExample(TestPlanExecuteRecordExample example); + + int deleteByExample(TestPlanExecuteRecordExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanExecuteRecord record); + + int insertSelective(TestPlanExecuteRecord record); + + List selectByExampleWithBLOBs(TestPlanExecuteRecordExample example); + + List selectByExample(TestPlanExecuteRecordExample example); + + TestPlanExecuteRecord selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanExecuteRecord record, @Param("example") TestPlanExecuteRecordExample example); + + int updateByExampleWithBLOBs(@Param("record") TestPlanExecuteRecord record, @Param("example") TestPlanExecuteRecordExample example); + + int updateByExample(@Param("record") TestPlanExecuteRecord record, @Param("example") TestPlanExecuteRecordExample example); + + int updateByPrimaryKeySelective(TestPlanExecuteRecord record); + + int updateByPrimaryKeyWithBLOBs(TestPlanExecuteRecord record); + + int updateByPrimaryKey(TestPlanExecuteRecord record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecuteRecordMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecuteRecordMapper.xml new file mode 100644 index 0000000000..2f5adb02d5 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecuteRecordMapper.xml @@ -0,0 +1,377 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_id, `name`, `status`, trigger_mode, create_user, create_time, end_time, + case_count, execute_rate, pass_rate + + + run_config + + + + + + delete from test_plan_execute_record + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_execute_record + + + + + + insert into test_plan_execute_record (id, test_plan_id, `name`, + `status`, trigger_mode, create_user, + create_time, end_time, case_count, + execute_rate, pass_rate, run_config + ) + values (#{id,jdbcType=VARCHAR}, #{testPlanId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, + #{status,jdbcType=VARCHAR}, #{triggerMode,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, + #{createTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{caseCount,jdbcType=INTEGER}, + #{executeRate,jdbcType=DOUBLE}, #{passRate,jdbcType=DOUBLE}, #{runConfig,jdbcType=LONGVARCHAR} + ) + + + insert into test_plan_execute_record + + + id, + + + test_plan_id, + + + `name`, + + + `status`, + + + trigger_mode, + + + create_user, + + + create_time, + + + end_time, + + + case_count, + + + execute_rate, + + + pass_rate, + + + run_config, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanId,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{status,jdbcType=VARCHAR}, + + + #{triggerMode,jdbcType=VARCHAR}, + + + #{createUser,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=BIGINT}, + + + #{endTime,jdbcType=BIGINT}, + + + #{caseCount,jdbcType=INTEGER}, + + + #{executeRate,jdbcType=DOUBLE}, + + + #{passRate,jdbcType=DOUBLE}, + + + #{runConfig,jdbcType=LONGVARCHAR}, + + + + + + update test_plan_execute_record + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + + + `name` = #{record.name,jdbcType=VARCHAR}, + + + `status` = #{record.status,jdbcType=VARCHAR}, + + + trigger_mode = #{record.triggerMode,jdbcType=VARCHAR}, + + + create_user = #{record.createUser,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=BIGINT}, + + + end_time = #{record.endTime,jdbcType=BIGINT}, + + + case_count = #{record.caseCount,jdbcType=INTEGER}, + + + execute_rate = #{record.executeRate,jdbcType=DOUBLE}, + + + pass_rate = #{record.passRate,jdbcType=DOUBLE}, + + + run_config = #{record.runConfig,jdbcType=LONGVARCHAR}, + + + + + + + + update test_plan_execute_record + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + `name` = #{record.name,jdbcType=VARCHAR}, + `status` = #{record.status,jdbcType=VARCHAR}, + trigger_mode = #{record.triggerMode,jdbcType=VARCHAR}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + end_time = #{record.endTime,jdbcType=BIGINT}, + case_count = #{record.caseCount,jdbcType=INTEGER}, + execute_rate = #{record.executeRate,jdbcType=DOUBLE}, + pass_rate = #{record.passRate,jdbcType=DOUBLE}, + run_config = #{record.runConfig,jdbcType=LONGVARCHAR} + + + + + + update test_plan_execute_record + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + `name` = #{record.name,jdbcType=VARCHAR}, + `status` = #{record.status,jdbcType=VARCHAR}, + trigger_mode = #{record.triggerMode,jdbcType=VARCHAR}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + end_time = #{record.endTime,jdbcType=BIGINT}, + case_count = #{record.caseCount,jdbcType=INTEGER}, + execute_rate = #{record.executeRate,jdbcType=DOUBLE}, + pass_rate = #{record.passRate,jdbcType=DOUBLE} + + + + + + update test_plan_execute_record + + + test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + + + `name` = #{name,jdbcType=VARCHAR}, + + + `status` = #{status,jdbcType=VARCHAR}, + + + trigger_mode = #{triggerMode,jdbcType=VARCHAR}, + + + create_user = #{createUser,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, + + + end_time = #{endTime,jdbcType=BIGINT}, + + + case_count = #{caseCount,jdbcType=INTEGER}, + + + execute_rate = #{executeRate,jdbcType=DOUBLE}, + + + pass_rate = #{passRate,jdbcType=DOUBLE}, + + + run_config = #{runConfig,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_execute_record + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + `name` = #{name,jdbcType=VARCHAR}, + `status` = #{status,jdbcType=VARCHAR}, + trigger_mode = #{triggerMode,jdbcType=VARCHAR}, + create_user = #{createUser,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + end_time = #{endTime,jdbcType=BIGINT}, + case_count = #{caseCount,jdbcType=INTEGER}, + execute_rate = #{executeRate,jdbcType=DOUBLE}, + pass_rate = #{passRate,jdbcType=DOUBLE}, + run_config = #{runConfig,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_execute_record + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + `name` = #{name,jdbcType=VARCHAR}, + `status` = #{status,jdbcType=VARCHAR}, + trigger_mode = #{triggerMode,jdbcType=VARCHAR}, + create_user = #{createUser,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + end_time = #{endTime,jdbcType=BIGINT}, + case_count = #{caseCount,jdbcType=INTEGER}, + execute_rate = #{executeRate,jdbcType=DOUBLE}, + pass_rate = #{passRate,jdbcType=DOUBLE} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecutionQueueMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecutionQueueMapper.java new file mode 100644 index 0000000000..e2802c7faa --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecutionQueueMapper.java @@ -0,0 +1,30 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanExecutionQueue; +import io.metersphere.plan.domain.TestPlanExecutionQueueExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanExecutionQueueMapper { + long countByExample(TestPlanExecutionQueueExample example); + + int deleteByExample(TestPlanExecutionQueueExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanExecutionQueue record); + + int insertSelective(TestPlanExecutionQueue record); + + List selectByExample(TestPlanExecutionQueueExample example); + + TestPlanExecutionQueue selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanExecutionQueue record, @Param("example") TestPlanExecutionQueueExample example); + + int updateByExample(@Param("record") TestPlanExecutionQueue record, @Param("example") TestPlanExecutionQueueExample example); + + int updateByPrimaryKeySelective(TestPlanExecutionQueue record); + + int updateByPrimaryKey(TestPlanExecutionQueue record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecutionQueueMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecutionQueueMapper.xml new file mode 100644 index 0000000000..f7639d8a4b --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanExecutionQueueMapper.xml @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, execute_batch, test_plan_id, test_plan_execute_record_id, run_mode, create_time, + pos + + + + + delete from test_plan_execution_queue + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_execution_queue + + + + + + insert into test_plan_execution_queue (id, execute_batch, test_plan_id, + test_plan_execute_record_id, run_mode, create_time, + pos) + values (#{id,jdbcType=VARCHAR}, #{executeBatch,jdbcType=VARCHAR}, #{testPlanId,jdbcType=VARCHAR}, + #{testPlanExecuteRecordId,jdbcType=VARCHAR}, #{runMode,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, + #{pos,jdbcType=INTEGER}) + + + insert into test_plan_execution_queue + + + id, + + + execute_batch, + + + test_plan_id, + + + test_plan_execute_record_id, + + + run_mode, + + + create_time, + + + pos, + + + + + #{id,jdbcType=VARCHAR}, + + + #{executeBatch,jdbcType=VARCHAR}, + + + #{testPlanId,jdbcType=VARCHAR}, + + + #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + #{runMode,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=BIGINT}, + + + #{pos,jdbcType=INTEGER}, + + + + + + update test_plan_execution_queue + + + id = #{record.id,jdbcType=VARCHAR}, + + + execute_batch = #{record.executeBatch,jdbcType=VARCHAR}, + + + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + + + test_plan_execute_record_id = #{record.testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + run_mode = #{record.runMode,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=BIGINT}, + + + pos = #{record.pos,jdbcType=INTEGER}, + + + + + + + + update test_plan_execution_queue + set id = #{record.id,jdbcType=VARCHAR}, + execute_batch = #{record.executeBatch,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + test_plan_execute_record_id = #{record.testPlanExecuteRecordId,jdbcType=VARCHAR}, + run_mode = #{record.runMode,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + pos = #{record.pos,jdbcType=INTEGER} + + + + + + update test_plan_execution_queue + + + execute_batch = #{executeBatch,jdbcType=VARCHAR}, + + + test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + + + test_plan_execute_record_id = #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + run_mode = #{runMode,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, + + + pos = #{pos,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_execution_queue + set execute_batch = #{executeBatch,jdbcType=VARCHAR}, + test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + test_plan_execute_record_id = #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + run_mode = #{runMode,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + pos = #{pos,jdbcType=INTEGER} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFollowMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFollowMapper.java new file mode 100644 index 0000000000..160bea989c --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFollowMapper.java @@ -0,0 +1,24 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanFollow; +import io.metersphere.plan.domain.TestPlanFollowExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanFollowMapper { + long countByExample(TestPlanFollowExample example); + + int deleteByExample(TestPlanFollowExample example); + + int deleteByPrimaryKey(@Param("testPlanId") String testPlanId, @Param("userId") String userId); + + int insert(TestPlanFollow record); + + int insertSelective(TestPlanFollow record); + + List selectByExample(TestPlanFollowExample example); + + int updateByExampleSelective(@Param("record") TestPlanFollow record, @Param("example") TestPlanFollowExample example); + + int updateByExample(@Param("record") TestPlanFollow record, @Param("example") TestPlanFollowExample example); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFollowMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFollowMapper.xml new file mode 100644 index 0000000000..fe85ab75b8 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFollowMapper.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + test_plan_id, user_id + + + + delete from test_plan_follow + where test_plan_id = #{testPlanId,jdbcType=VARCHAR} + and user_id = #{userId,jdbcType=VARCHAR} + + + delete from test_plan_follow + + + + + + insert into test_plan_follow (test_plan_id, user_id) + values (#{testPlanId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}) + + + insert into test_plan_follow + + + test_plan_id, + + + user_id, + + + + + #{testPlanId,jdbcType=VARCHAR}, + + + #{userId,jdbcType=VARCHAR}, + + + + + + update test_plan_follow + + + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + + + user_id = #{record.userId,jdbcType=VARCHAR}, + + + + + + + + update test_plan_follow + set test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + user_id = #{record.userId,jdbcType=VARCHAR} + + + + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseMapper.java new file mode 100644 index 0000000000..514e604531 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseMapper.java @@ -0,0 +1,30 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanFunctionCase; +import io.metersphere.plan.domain.TestPlanFunctionCaseExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanFunctionCaseMapper { + long countByExample(TestPlanFunctionCaseExample example); + + int deleteByExample(TestPlanFunctionCaseExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanFunctionCase record); + + int insertSelective(TestPlanFunctionCase record); + + List selectByExample(TestPlanFunctionCaseExample example); + + TestPlanFunctionCase selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanFunctionCase record, @Param("example") TestPlanFunctionCaseExample example); + + int updateByExample(@Param("record") TestPlanFunctionCase record, @Param("example") TestPlanFunctionCaseExample example); + + int updateByPrimaryKeySelective(TestPlanFunctionCase record); + + int updateByPrimaryKey(TestPlanFunctionCase record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseMapper.xml new file mode 100644 index 0000000000..2432191c2e --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_id, function_case_id, create_time, create_user, pos + + + + + delete from test_plan_function_case + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_function_case + + + + + + insert into test_plan_function_case (id, test_plan_id, function_case_id, + create_time, create_user, pos + ) + values (#{id,jdbcType=VARCHAR}, #{testPlanId,jdbcType=VARCHAR}, #{functionCaseId,jdbcType=VARCHAR}, + #{createTime,jdbcType=BIGINT}, #{createUser,jdbcType=VARCHAR}, #{pos,jdbcType=BIGINT} + ) + + + insert into test_plan_function_case + + + id, + + + test_plan_id, + + + function_case_id, + + + create_time, + + + create_user, + + + pos, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanId,jdbcType=VARCHAR}, + + + #{functionCaseId,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=BIGINT}, + + + #{createUser,jdbcType=VARCHAR}, + + + #{pos,jdbcType=BIGINT}, + + + + + + update test_plan_function_case + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + + + function_case_id = #{record.functionCaseId,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=BIGINT}, + + + create_user = #{record.createUser,jdbcType=VARCHAR}, + + + pos = #{record.pos,jdbcType=BIGINT}, + + + + + + + + update test_plan_function_case + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + function_case_id = #{record.functionCaseId,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + pos = #{record.pos,jdbcType=BIGINT} + + + + + + update test_plan_function_case + + + test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + + + function_case_id = #{functionCaseId,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, + + + create_user = #{createUser,jdbcType=VARCHAR}, + + + pos = #{pos,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_function_case + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + function_case_id = #{functionCaseId,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + create_user = #{createUser,jdbcType=VARCHAR}, + pos = #{pos,jdbcType=BIGINT} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseResultMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseResultMapper.java new file mode 100644 index 0000000000..cb2f121c55 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseResultMapper.java @@ -0,0 +1,30 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanFunctionCaseResult; +import io.metersphere.plan.domain.TestPlanFunctionCaseResultExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanFunctionCaseResultMapper { + long countByExample(TestPlanFunctionCaseResultExample example); + + int deleteByExample(TestPlanFunctionCaseResultExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanFunctionCaseResult record); + + int insertSelective(TestPlanFunctionCaseResult record); + + List selectByExample(TestPlanFunctionCaseResultExample example); + + TestPlanFunctionCaseResult selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanFunctionCaseResult record, @Param("example") TestPlanFunctionCaseResultExample example); + + int updateByExample(@Param("record") TestPlanFunctionCaseResult record, @Param("example") TestPlanFunctionCaseResultExample example); + + int updateByPrimaryKeySelective(TestPlanFunctionCaseResult record); + + int updateByPrimaryKey(TestPlanFunctionCaseResult record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseResultMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseResultMapper.xml new file mode 100644 index 0000000000..4ab295a3e4 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanFunctionCaseResultMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_function_case_id, project_id, `result`, create_user, create_time, `comment`, + version + + + + + delete from test_plan_function_case_result + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_function_case_result + + + + + + insert into test_plan_function_case_result (id, test_plan_function_case_id, project_id, + `result`, create_user, create_time, + `comment`, version) + values (#{id,jdbcType=VARCHAR}, #{testPlanFunctionCaseId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, + #{result,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, + #{comment,jdbcType=VARCHAR}, #{version,jdbcType=VARCHAR}) + + + insert into test_plan_function_case_result + + + id, + + + test_plan_function_case_id, + + + project_id, + + + `result`, + + + create_user, + + + create_time, + + + `comment`, + + + version, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanFunctionCaseId,jdbcType=VARCHAR}, + + + #{projectId,jdbcType=VARCHAR}, + + + #{result,jdbcType=VARCHAR}, + + + #{createUser,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=BIGINT}, + + + #{comment,jdbcType=VARCHAR}, + + + #{version,jdbcType=VARCHAR}, + + + + + + update test_plan_function_case_result + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_function_case_id = #{record.testPlanFunctionCaseId,jdbcType=VARCHAR}, + + + project_id = #{record.projectId,jdbcType=VARCHAR}, + + + `result` = #{record.result,jdbcType=VARCHAR}, + + + create_user = #{record.createUser,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=BIGINT}, + + + `comment` = #{record.comment,jdbcType=VARCHAR}, + + + version = #{record.version,jdbcType=VARCHAR}, + + + + + + + + update test_plan_function_case_result + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_function_case_id = #{record.testPlanFunctionCaseId,jdbcType=VARCHAR}, + project_id = #{record.projectId,jdbcType=VARCHAR}, + `result` = #{record.result,jdbcType=VARCHAR}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + `comment` = #{record.comment,jdbcType=VARCHAR}, + version = #{record.version,jdbcType=VARCHAR} + + + + + + update test_plan_function_case_result + + + test_plan_function_case_id = #{testPlanFunctionCaseId,jdbcType=VARCHAR}, + + + project_id = #{projectId,jdbcType=VARCHAR}, + + + `result` = #{result,jdbcType=VARCHAR}, + + + create_user = #{createUser,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, + + + `comment` = #{comment,jdbcType=VARCHAR}, + + + version = #{version,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_function_case_result + set test_plan_function_case_id = #{testPlanFunctionCaseId,jdbcType=VARCHAR}, + project_id = #{projectId,jdbcType=VARCHAR}, + `result` = #{result,jdbcType=VARCHAR}, + create_user = #{createUser,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + `comment` = #{comment,jdbcType=VARCHAR}, + version = #{version,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanLoadCaseMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanLoadCaseMapper.java new file mode 100644 index 0000000000..498295ab6f --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanLoadCaseMapper.java @@ -0,0 +1,36 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanLoadCase; +import io.metersphere.plan.domain.TestPlanLoadCaseExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanLoadCaseMapper { + long countByExample(TestPlanLoadCaseExample example); + + int deleteByExample(TestPlanLoadCaseExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanLoadCase record); + + int insertSelective(TestPlanLoadCase record); + + List selectByExampleWithBLOBs(TestPlanLoadCaseExample example); + + List selectByExample(TestPlanLoadCaseExample example); + + TestPlanLoadCase selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanLoadCase record, @Param("example") TestPlanLoadCaseExample example); + + int updateByExampleWithBLOBs(@Param("record") TestPlanLoadCase record, @Param("example") TestPlanLoadCaseExample example); + + int updateByExample(@Param("record") TestPlanLoadCase record, @Param("example") TestPlanLoadCaseExample example); + + int updateByPrimaryKeySelective(TestPlanLoadCase record); + + int updateByPrimaryKeyWithBLOBs(TestPlanLoadCase record); + + int updateByPrimaryKey(TestPlanLoadCase record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanLoadCaseMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanLoadCaseMapper.xml new file mode 100644 index 0000000000..d8c02f4c1f --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanLoadCaseMapper.xml @@ -0,0 +1,322 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_id, load_case_id, create_time, create_user, test_resource_pool_id, + pos + + + load_configuration, advanced_configuration + + + + + + delete from test_plan_load_case + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_load_case + + + + + + insert into test_plan_load_case (id, test_plan_id, load_case_id, + create_time, create_user, test_resource_pool_id, + pos, load_configuration, advanced_configuration + ) + values (#{id,jdbcType=VARCHAR}, #{testPlanId,jdbcType=VARCHAR}, #{loadCaseId,jdbcType=VARCHAR}, + #{createTime,jdbcType=BIGINT}, #{createUser,jdbcType=VARCHAR}, #{testResourcePoolId,jdbcType=VARCHAR}, + #{pos,jdbcType=BIGINT}, #{loadConfiguration,jdbcType=LONGVARCHAR}, #{advancedConfiguration,jdbcType=LONGVARCHAR} + ) + + + insert into test_plan_load_case + + + id, + + + test_plan_id, + + + load_case_id, + + + create_time, + + + create_user, + + + test_resource_pool_id, + + + pos, + + + load_configuration, + + + advanced_configuration, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanId,jdbcType=VARCHAR}, + + + #{loadCaseId,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=BIGINT}, + + + #{createUser,jdbcType=VARCHAR}, + + + #{testResourcePoolId,jdbcType=VARCHAR}, + + + #{pos,jdbcType=BIGINT}, + + + #{loadConfiguration,jdbcType=LONGVARCHAR}, + + + #{advancedConfiguration,jdbcType=LONGVARCHAR}, + + + + + + update test_plan_load_case + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + + + load_case_id = #{record.loadCaseId,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=BIGINT}, + + + create_user = #{record.createUser,jdbcType=VARCHAR}, + + + test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR}, + + + pos = #{record.pos,jdbcType=BIGINT}, + + + load_configuration = #{record.loadConfiguration,jdbcType=LONGVARCHAR}, + + + advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARCHAR}, + + + + + + + + update test_plan_load_case + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + load_case_id = #{record.loadCaseId,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR}, + pos = #{record.pos,jdbcType=BIGINT}, + load_configuration = #{record.loadConfiguration,jdbcType=LONGVARCHAR}, + advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARCHAR} + + + + + + update test_plan_load_case + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + load_case_id = #{record.loadCaseId,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR}, + pos = #{record.pos,jdbcType=BIGINT} + + + + + + update test_plan_load_case + + + test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + + + load_case_id = #{loadCaseId,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, + + + create_user = #{createUser,jdbcType=VARCHAR}, + + + test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR}, + + + pos = #{pos,jdbcType=BIGINT}, + + + load_configuration = #{loadConfiguration,jdbcType=LONGVARCHAR}, + + + advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_load_case + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + load_case_id = #{loadCaseId,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + create_user = #{createUser,jdbcType=VARCHAR}, + test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR}, + pos = #{pos,jdbcType=BIGINT}, + load_configuration = #{loadConfiguration,jdbcType=LONGVARCHAR}, + advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_load_case + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + load_case_id = #{loadCaseId,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + create_user = #{createUser,jdbcType=VARCHAR}, + test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR}, + pos = #{pos,jdbcType=BIGINT} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanMapper.java new file mode 100644 index 0000000000..e11acc9957 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanMapper.java @@ -0,0 +1,30 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlan; +import io.metersphere.plan.domain.TestPlanExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanMapper { + long countByExample(TestPlanExample example); + + int deleteByExample(TestPlanExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlan record); + + int insertSelective(TestPlan record); + + List selectByExample(TestPlanExample example); + + TestPlan selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlan record, @Param("example") TestPlanExample example); + + int updateByExample(@Param("record") TestPlan record, @Param("example") TestPlanExample example); + + int updateByPrimaryKeySelective(TestPlan record); + + int updateByPrimaryKey(TestPlan record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanMapper.xml new file mode 100644 index 0000000000..a121034ab0 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanMapper.xml @@ -0,0 +1,386 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, project_id, parent_id, `name`, `status`, stage, tags, create_time, create_user, + update_time, update_user, planned_start_time, planned_end_time, actual_start_time, + actual_end_time, description + + + + + delete from test_plan + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan + + + + + + insert into test_plan (id, project_id, parent_id, + `name`, `status`, stage, + tags, create_time, create_user, + update_time, update_user, planned_start_time, + planned_end_time, actual_start_time, actual_end_time, + description) + values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR}, + #{name,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{stage,jdbcType=VARCHAR}, + #{tags,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{createUser,jdbcType=VARCHAR}, + #{updateTime,jdbcType=BIGINT}, #{updateUser,jdbcType=VARCHAR}, #{plannedStartTime,jdbcType=BIGINT}, + #{plannedEndTime,jdbcType=BIGINT}, #{actualStartTime,jdbcType=BIGINT}, #{actualEndTime,jdbcType=BIGINT}, + #{description,jdbcType=VARCHAR}) + + + insert into test_plan + + + id, + + + project_id, + + + parent_id, + + + `name`, + + + `status`, + + + stage, + + + tags, + + + create_time, + + + create_user, + + + update_time, + + + update_user, + + + planned_start_time, + + + planned_end_time, + + + actual_start_time, + + + actual_end_time, + + + description, + + + + + #{id,jdbcType=VARCHAR}, + + + #{projectId,jdbcType=VARCHAR}, + + + #{parentId,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{status,jdbcType=VARCHAR}, + + + #{stage,jdbcType=VARCHAR}, + + + #{tags,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=BIGINT}, + + + #{createUser,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=BIGINT}, + + + #{updateUser,jdbcType=VARCHAR}, + + + #{plannedStartTime,jdbcType=BIGINT}, + + + #{plannedEndTime,jdbcType=BIGINT}, + + + #{actualStartTime,jdbcType=BIGINT}, + + + #{actualEndTime,jdbcType=BIGINT}, + + + #{description,jdbcType=VARCHAR}, + + + + + + update test_plan + + + id = #{record.id,jdbcType=VARCHAR}, + + + project_id = #{record.projectId,jdbcType=VARCHAR}, + + + parent_id = #{record.parentId,jdbcType=VARCHAR}, + + + `name` = #{record.name,jdbcType=VARCHAR}, + + + `status` = #{record.status,jdbcType=VARCHAR}, + + + stage = #{record.stage,jdbcType=VARCHAR}, + + + tags = #{record.tags,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=BIGINT}, + + + create_user = #{record.createUser,jdbcType=VARCHAR}, + + + update_time = #{record.updateTime,jdbcType=BIGINT}, + + + update_user = #{record.updateUser,jdbcType=VARCHAR}, + + + planned_start_time = #{record.plannedStartTime,jdbcType=BIGINT}, + + + planned_end_time = #{record.plannedEndTime,jdbcType=BIGINT}, + + + actual_start_time = #{record.actualStartTime,jdbcType=BIGINT}, + + + actual_end_time = #{record.actualEndTime,jdbcType=BIGINT}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + + + + + + update test_plan + set id = #{record.id,jdbcType=VARCHAR}, + project_id = #{record.projectId,jdbcType=VARCHAR}, + parent_id = #{record.parentId,jdbcType=VARCHAR}, + `name` = #{record.name,jdbcType=VARCHAR}, + `status` = #{record.status,jdbcType=VARCHAR}, + stage = #{record.stage,jdbcType=VARCHAR}, + tags = #{record.tags,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + update_time = #{record.updateTime,jdbcType=BIGINT}, + update_user = #{record.updateUser,jdbcType=VARCHAR}, + planned_start_time = #{record.plannedStartTime,jdbcType=BIGINT}, + planned_end_time = #{record.plannedEndTime,jdbcType=BIGINT}, + actual_start_time = #{record.actualStartTime,jdbcType=BIGINT}, + actual_end_time = #{record.actualEndTime,jdbcType=BIGINT}, + description = #{record.description,jdbcType=VARCHAR} + + + + + + update test_plan + + + project_id = #{projectId,jdbcType=VARCHAR}, + + + parent_id = #{parentId,jdbcType=VARCHAR}, + + + `name` = #{name,jdbcType=VARCHAR}, + + + `status` = #{status,jdbcType=VARCHAR}, + + + stage = #{stage,jdbcType=VARCHAR}, + + + tags = #{tags,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, + + + create_user = #{createUser,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=BIGINT}, + + + update_user = #{updateUser,jdbcType=VARCHAR}, + + + planned_start_time = #{plannedStartTime,jdbcType=BIGINT}, + + + planned_end_time = #{plannedEndTime,jdbcType=BIGINT}, + + + actual_start_time = #{actualStartTime,jdbcType=BIGINT}, + + + actual_end_time = #{actualEndTime,jdbcType=BIGINT}, + + + description = #{description,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan + set project_id = #{projectId,jdbcType=VARCHAR}, + parent_id = #{parentId,jdbcType=VARCHAR}, + `name` = #{name,jdbcType=VARCHAR}, + `status` = #{status,jdbcType=VARCHAR}, + stage = #{stage,jdbcType=VARCHAR}, + tags = #{tags,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + create_user = #{createUser,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=BIGINT}, + update_user = #{updateUser,jdbcType=VARCHAR}, + planned_start_time = #{plannedStartTime,jdbcType=BIGINT}, + planned_end_time = #{plannedEndTime,jdbcType=BIGINT}, + actual_start_time = #{actualStartTime,jdbcType=BIGINT}, + actual_end_time = #{actualEndTime,jdbcType=BIGINT}, + description = #{description,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanPrincipalMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanPrincipalMapper.java new file mode 100644 index 0000000000..a46310e189 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanPrincipalMapper.java @@ -0,0 +1,24 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanPrincipal; +import io.metersphere.plan.domain.TestPlanPrincipalExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanPrincipalMapper { + long countByExample(TestPlanPrincipalExample example); + + int deleteByExample(TestPlanPrincipalExample example); + + int deleteByPrimaryKey(@Param("testPlanId") String testPlanId, @Param("userId") String userId); + + int insert(TestPlanPrincipal record); + + int insertSelective(TestPlanPrincipal record); + + List selectByExample(TestPlanPrincipalExample example); + + int updateByExampleSelective(@Param("record") TestPlanPrincipal record, @Param("example") TestPlanPrincipalExample example); + + int updateByExample(@Param("record") TestPlanPrincipal record, @Param("example") TestPlanPrincipalExample example); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanPrincipalMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanPrincipalMapper.xml new file mode 100644 index 0000000000..20ce7bc5da --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanPrincipalMapper.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + test_plan_id, user_id + + + + delete from test_plan_principal + where test_plan_id = #{testPlanId,jdbcType=VARCHAR} + and user_id = #{userId,jdbcType=VARCHAR} + + + delete from test_plan_principal + + + + + + insert into test_plan_principal (test_plan_id, user_id) + values (#{testPlanId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}) + + + insert into test_plan_principal + + + test_plan_id, + + + user_id, + + + + + #{testPlanId,jdbcType=VARCHAR}, + + + #{userId,jdbcType=VARCHAR}, + + + + + + update test_plan_principal + + + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + + + user_id = #{record.userId,jdbcType=VARCHAR}, + + + + + + + + update test_plan_principal + set test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + user_id = #{record.userId,jdbcType=VARCHAR} + + + + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiCaseInfoMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiCaseInfoMapper.java new file mode 100644 index 0000000000..fba3b314df --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiCaseInfoMapper.java @@ -0,0 +1,30 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanRecordApiCaseInfo; +import io.metersphere.plan.domain.TestPlanRecordApiCaseInfoExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanRecordApiCaseInfoMapper { + long countByExample(TestPlanRecordApiCaseInfoExample example); + + int deleteByExample(TestPlanRecordApiCaseInfoExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanRecordApiCaseInfo record); + + int insertSelective(TestPlanRecordApiCaseInfo record); + + List selectByExample(TestPlanRecordApiCaseInfoExample example); + + TestPlanRecordApiCaseInfo selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanRecordApiCaseInfo record, @Param("example") TestPlanRecordApiCaseInfoExample example); + + int updateByExample(@Param("record") TestPlanRecordApiCaseInfo record, @Param("example") TestPlanRecordApiCaseInfoExample example); + + int updateByPrimaryKeySelective(TestPlanRecordApiCaseInfo record); + + int updateByPrimaryKey(TestPlanRecordApiCaseInfo record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiCaseInfoMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiCaseInfoMapper.xml new file mode 100644 index 0000000000..0a0f7cc507 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiCaseInfoMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_execute_record_id, test_plan_api_case_id, report_id + + + + + delete from test_plan_record_api_case_info + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_record_api_case_info + + + + + + insert into test_plan_record_api_case_info (id, test_plan_execute_record_id, test_plan_api_case_id, + report_id) + values (#{id,jdbcType=VARCHAR}, #{testPlanExecuteRecordId,jdbcType=VARCHAR}, #{testPlanApiCaseId,jdbcType=VARCHAR}, + #{reportId,jdbcType=VARCHAR}) + + + insert into test_plan_record_api_case_info + + + id, + + + test_plan_execute_record_id, + + + test_plan_api_case_id, + + + report_id, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + #{testPlanApiCaseId,jdbcType=VARCHAR}, + + + #{reportId,jdbcType=VARCHAR}, + + + + + + update test_plan_record_api_case_info + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_execute_record_id = #{record.testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + test_plan_api_case_id = #{record.testPlanApiCaseId,jdbcType=VARCHAR}, + + + report_id = #{record.reportId,jdbcType=VARCHAR}, + + + + + + + + update test_plan_record_api_case_info + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_execute_record_id = #{record.testPlanExecuteRecordId,jdbcType=VARCHAR}, + test_plan_api_case_id = #{record.testPlanApiCaseId,jdbcType=VARCHAR}, + report_id = #{record.reportId,jdbcType=VARCHAR} + + + + + + update test_plan_record_api_case_info + + + test_plan_execute_record_id = #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + test_plan_api_case_id = #{testPlanApiCaseId,jdbcType=VARCHAR}, + + + report_id = #{reportId,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_record_api_case_info + set test_plan_execute_record_id = #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + test_plan_api_case_id = #{testPlanApiCaseId,jdbcType=VARCHAR}, + report_id = #{reportId,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiScenarioInfoMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiScenarioInfoMapper.java new file mode 100644 index 0000000000..412af5e375 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiScenarioInfoMapper.java @@ -0,0 +1,30 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanRecordApiScenarioInfo; +import io.metersphere.plan.domain.TestPlanRecordApiScenarioInfoExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanRecordApiScenarioInfoMapper { + long countByExample(TestPlanRecordApiScenarioInfoExample example); + + int deleteByExample(TestPlanRecordApiScenarioInfoExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanRecordApiScenarioInfo record); + + int insertSelective(TestPlanRecordApiScenarioInfo record); + + List selectByExample(TestPlanRecordApiScenarioInfoExample example); + + TestPlanRecordApiScenarioInfo selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanRecordApiScenarioInfo record, @Param("example") TestPlanRecordApiScenarioInfoExample example); + + int updateByExample(@Param("record") TestPlanRecordApiScenarioInfo record, @Param("example") TestPlanRecordApiScenarioInfoExample example); + + int updateByPrimaryKeySelective(TestPlanRecordApiScenarioInfo record); + + int updateByPrimaryKey(TestPlanRecordApiScenarioInfo record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiScenarioInfoMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiScenarioInfoMapper.xml new file mode 100644 index 0000000000..7c7044652b --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordApiScenarioInfoMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_execute_record_id, test_plan_api_scenario_id, report_id + + + + + delete from test_plan_record_api_scenario_info + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_record_api_scenario_info + + + + + + insert into test_plan_record_api_scenario_info (id, test_plan_execute_record_id, test_plan_api_scenario_id, + report_id) + values (#{id,jdbcType=VARCHAR}, #{testPlanExecuteRecordId,jdbcType=VARCHAR}, #{testPlanApiScenarioId,jdbcType=VARCHAR}, + #{reportId,jdbcType=VARCHAR}) + + + insert into test_plan_record_api_scenario_info + + + id, + + + test_plan_execute_record_id, + + + test_plan_api_scenario_id, + + + report_id, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + #{testPlanApiScenarioId,jdbcType=VARCHAR}, + + + #{reportId,jdbcType=VARCHAR}, + + + + + + update test_plan_record_api_scenario_info + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_execute_record_id = #{record.testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + test_plan_api_scenario_id = #{record.testPlanApiScenarioId,jdbcType=VARCHAR}, + + + report_id = #{record.reportId,jdbcType=VARCHAR}, + + + + + + + + update test_plan_record_api_scenario_info + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_execute_record_id = #{record.testPlanExecuteRecordId,jdbcType=VARCHAR}, + test_plan_api_scenario_id = #{record.testPlanApiScenarioId,jdbcType=VARCHAR}, + report_id = #{record.reportId,jdbcType=VARCHAR} + + + + + + update test_plan_record_api_scenario_info + + + test_plan_execute_record_id = #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + test_plan_api_scenario_id = #{testPlanApiScenarioId,jdbcType=VARCHAR}, + + + report_id = #{reportId,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_record_api_scenario_info + set test_plan_execute_record_id = #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + test_plan_api_scenario_id = #{testPlanApiScenarioId,jdbcType=VARCHAR}, + report_id = #{reportId,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordLoadCaseInfoMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordLoadCaseInfoMapper.java new file mode 100644 index 0000000000..d497098563 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordLoadCaseInfoMapper.java @@ -0,0 +1,30 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanRecordLoadCaseInfo; +import io.metersphere.plan.domain.TestPlanRecordLoadCaseInfoExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanRecordLoadCaseInfoMapper { + long countByExample(TestPlanRecordLoadCaseInfoExample example); + + int deleteByExample(TestPlanRecordLoadCaseInfoExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanRecordLoadCaseInfo record); + + int insertSelective(TestPlanRecordLoadCaseInfo record); + + List selectByExample(TestPlanRecordLoadCaseInfoExample example); + + TestPlanRecordLoadCaseInfo selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanRecordLoadCaseInfo record, @Param("example") TestPlanRecordLoadCaseInfoExample example); + + int updateByExample(@Param("record") TestPlanRecordLoadCaseInfo record, @Param("example") TestPlanRecordLoadCaseInfoExample example); + + int updateByPrimaryKeySelective(TestPlanRecordLoadCaseInfo record); + + int updateByPrimaryKey(TestPlanRecordLoadCaseInfo record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordLoadCaseInfoMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordLoadCaseInfoMapper.xml new file mode 100644 index 0000000000..fad0c96bb1 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordLoadCaseInfoMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_execute_record_id, test_plan_load_case_id, report_id + + + + + delete from test_plan_record_load_case_info + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_record_load_case_info + + + + + + insert into test_plan_record_load_case_info (id, test_plan_execute_record_id, test_plan_load_case_id, + report_id) + values (#{id,jdbcType=VARCHAR}, #{testPlanExecuteRecordId,jdbcType=VARCHAR}, #{testPlanLoadCaseId,jdbcType=VARCHAR}, + #{reportId,jdbcType=VARCHAR}) + + + insert into test_plan_record_load_case_info + + + id, + + + test_plan_execute_record_id, + + + test_plan_load_case_id, + + + report_id, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + #{testPlanLoadCaseId,jdbcType=VARCHAR}, + + + #{reportId,jdbcType=VARCHAR}, + + + + + + update test_plan_record_load_case_info + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_execute_record_id = #{record.testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + test_plan_load_case_id = #{record.testPlanLoadCaseId,jdbcType=VARCHAR}, + + + report_id = #{record.reportId,jdbcType=VARCHAR}, + + + + + + + + update test_plan_record_load_case_info + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_execute_record_id = #{record.testPlanExecuteRecordId,jdbcType=VARCHAR}, + test_plan_load_case_id = #{record.testPlanLoadCaseId,jdbcType=VARCHAR}, + report_id = #{record.reportId,jdbcType=VARCHAR} + + + + + + update test_plan_record_load_case_info + + + test_plan_execute_record_id = #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + test_plan_load_case_id = #{testPlanLoadCaseId,jdbcType=VARCHAR}, + + + report_id = #{reportId,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_record_load_case_info + set test_plan_execute_record_id = #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + test_plan_load_case_id = #{testPlanLoadCaseId,jdbcType=VARCHAR}, + report_id = #{reportId,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordUiScenarioInfoMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordUiScenarioInfoMapper.java new file mode 100644 index 0000000000..825c192693 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordUiScenarioInfoMapper.java @@ -0,0 +1,30 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanRecordUiScenarioInfo; +import io.metersphere.plan.domain.TestPlanRecordUiScenarioInfoExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanRecordUiScenarioInfoMapper { + long countByExample(TestPlanRecordUiScenarioInfoExample example); + + int deleteByExample(TestPlanRecordUiScenarioInfoExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanRecordUiScenarioInfo record); + + int insertSelective(TestPlanRecordUiScenarioInfo record); + + List selectByExample(TestPlanRecordUiScenarioInfoExample example); + + TestPlanRecordUiScenarioInfo selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanRecordUiScenarioInfo record, @Param("example") TestPlanRecordUiScenarioInfoExample example); + + int updateByExample(@Param("record") TestPlanRecordUiScenarioInfo record, @Param("example") TestPlanRecordUiScenarioInfoExample example); + + int updateByPrimaryKeySelective(TestPlanRecordUiScenarioInfo record); + + int updateByPrimaryKey(TestPlanRecordUiScenarioInfo record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordUiScenarioInfoMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordUiScenarioInfoMapper.xml new file mode 100644 index 0000000000..81613331ec --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanRecordUiScenarioInfoMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_execute_record_id, test_plan_ui_scenario_id, report_id + + + + + delete from test_plan_record_ui_scenario_info + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_record_ui_scenario_info + + + + + + insert into test_plan_record_ui_scenario_info (id, test_plan_execute_record_id, test_plan_ui_scenario_id, + report_id) + values (#{id,jdbcType=VARCHAR}, #{testPlanExecuteRecordId,jdbcType=VARCHAR}, #{testPlanUiScenarioId,jdbcType=VARCHAR}, + #{reportId,jdbcType=VARCHAR}) + + + insert into test_plan_record_ui_scenario_info + + + id, + + + test_plan_execute_record_id, + + + test_plan_ui_scenario_id, + + + report_id, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + #{testPlanUiScenarioId,jdbcType=VARCHAR}, + + + #{reportId,jdbcType=VARCHAR}, + + + + + + update test_plan_record_ui_scenario_info + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_execute_record_id = #{record.testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + test_plan_ui_scenario_id = #{record.testPlanUiScenarioId,jdbcType=VARCHAR}, + + + report_id = #{record.reportId,jdbcType=VARCHAR}, + + + + + + + + update test_plan_record_ui_scenario_info + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_execute_record_id = #{record.testPlanExecuteRecordId,jdbcType=VARCHAR}, + test_plan_ui_scenario_id = #{record.testPlanUiScenarioId,jdbcType=VARCHAR}, + report_id = #{record.reportId,jdbcType=VARCHAR} + + + + + + update test_plan_record_ui_scenario_info + + + test_plan_execute_record_id = #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + + + test_plan_ui_scenario_id = #{testPlanUiScenarioId,jdbcType=VARCHAR}, + + + report_id = #{reportId,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_record_ui_scenario_info + set test_plan_execute_record_id = #{testPlanExecuteRecordId,jdbcType=VARCHAR}, + test_plan_ui_scenario_id = #{testPlanUiScenarioId,jdbcType=VARCHAR}, + report_id = #{reportId,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportContentMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportContentMapper.java new file mode 100644 index 0000000000..53de757c15 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportContentMapper.java @@ -0,0 +1,36 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanReportContent; +import io.metersphere.plan.domain.TestPlanReportContentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanReportContentMapper { + long countByExample(TestPlanReportContentExample example); + + int deleteByExample(TestPlanReportContentExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanReportContent record); + + int insertSelective(TestPlanReportContent record); + + List selectByExampleWithBLOBs(TestPlanReportContentExample example); + + List selectByExample(TestPlanReportContentExample example); + + TestPlanReportContent selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanReportContent record, @Param("example") TestPlanReportContentExample example); + + int updateByExampleWithBLOBs(@Param("record") TestPlanReportContent record, @Param("example") TestPlanReportContentExample example); + + int updateByExample(@Param("record") TestPlanReportContent record, @Param("example") TestPlanReportContentExample example); + + int updateByPrimaryKeySelective(TestPlanReportContent record); + + int updateByPrimaryKeyWithBLOBs(TestPlanReportContent record); + + int updateByPrimaryKey(TestPlanReportContent record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportContentMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportContentMapper.xml new file mode 100644 index 0000000000..2943f46100 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportContentMapper.xml @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_report_id, summary + + + content + + + + + + delete from test_plan_report_content + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_report_content + + + + + + insert into test_plan_report_content (id, test_plan_report_id, summary, + content) + values (#{id,jdbcType=VARCHAR}, #{testPlanReportId,jdbcType=VARCHAR}, #{summary,jdbcType=VARCHAR}, + #{content,jdbcType=LONGVARBINARY}) + + + insert into test_plan_report_content + + + id, + + + test_plan_report_id, + + + summary, + + + content, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanReportId,jdbcType=VARCHAR}, + + + #{summary,jdbcType=VARCHAR}, + + + #{content,jdbcType=LONGVARBINARY}, + + + + + + update test_plan_report_content + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_report_id = #{record.testPlanReportId,jdbcType=VARCHAR}, + + + summary = #{record.summary,jdbcType=VARCHAR}, + + + content = #{record.content,jdbcType=LONGVARBINARY}, + + + + + + + + update test_plan_report_content + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_report_id = #{record.testPlanReportId,jdbcType=VARCHAR}, + summary = #{record.summary,jdbcType=VARCHAR}, + content = #{record.content,jdbcType=LONGVARBINARY} + + + + + + update test_plan_report_content + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_report_id = #{record.testPlanReportId,jdbcType=VARCHAR}, + summary = #{record.summary,jdbcType=VARCHAR} + + + + + + update test_plan_report_content + + + test_plan_report_id = #{testPlanReportId,jdbcType=VARCHAR}, + + + summary = #{summary,jdbcType=VARCHAR}, + + + content = #{content,jdbcType=LONGVARBINARY}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_report_content + set test_plan_report_id = #{testPlanReportId,jdbcType=VARCHAR}, + summary = #{summary,jdbcType=VARCHAR}, + content = #{content,jdbcType=LONGVARBINARY} + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_report_content + set test_plan_report_id = #{testPlanReportId,jdbcType=VARCHAR}, + summary = #{summary,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportMapper.java new file mode 100644 index 0000000000..e55a26df81 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportMapper.java @@ -0,0 +1,30 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanReport; +import io.metersphere.plan.domain.TestPlanReportExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanReportMapper { + long countByExample(TestPlanReportExample example); + + int deleteByExample(TestPlanReportExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanReport record); + + int insertSelective(TestPlanReport record); + + List selectByExample(TestPlanReportExample example); + + TestPlanReport selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanReport record, @Param("example") TestPlanReportExample example); + + int updateByExample(@Param("record") TestPlanReport record, @Param("example") TestPlanReportExample example); + + int updateByPrimaryKeySelective(TestPlanReport record); + + int updateByPrimaryKey(TestPlanReport record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportMapper.xml new file mode 100644 index 0000000000..9fc303f2fd --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanReportMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_id, `name`, create_user, create_time, update_user, update_time, start_time, + end_time, case_count, execute_rate, pass_rate + + + + + delete from test_plan_report + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_report + + + + + + insert into test_plan_report (id, test_plan_id, `name`, + create_user, create_time, update_user, + update_time, start_time, end_time, + case_count, execute_rate, pass_rate + ) + values (#{id,jdbcType=VARCHAR}, #{testPlanId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, + #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateUser,jdbcType=VARCHAR}, + #{updateTime,jdbcType=BIGINT}, #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, + #{caseCount,jdbcType=BIGINT}, #{executeRate,jdbcType=DOUBLE}, #{passRate,jdbcType=DOUBLE} + ) + + + insert into test_plan_report + + + id, + + + test_plan_id, + + + `name`, + + + create_user, + + + create_time, + + + update_user, + + + update_time, + + + start_time, + + + end_time, + + + case_count, + + + execute_rate, + + + pass_rate, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanId,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{createUser,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=BIGINT}, + + + #{updateUser,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=BIGINT}, + + + #{startTime,jdbcType=BIGINT}, + + + #{endTime,jdbcType=BIGINT}, + + + #{caseCount,jdbcType=BIGINT}, + + + #{executeRate,jdbcType=DOUBLE}, + + + #{passRate,jdbcType=DOUBLE}, + + + + + + update test_plan_report + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + + + `name` = #{record.name,jdbcType=VARCHAR}, + + + create_user = #{record.createUser,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=BIGINT}, + + + update_user = #{record.updateUser,jdbcType=VARCHAR}, + + + update_time = #{record.updateTime,jdbcType=BIGINT}, + + + start_time = #{record.startTime,jdbcType=BIGINT}, + + + end_time = #{record.endTime,jdbcType=BIGINT}, + + + case_count = #{record.caseCount,jdbcType=BIGINT}, + + + execute_rate = #{record.executeRate,jdbcType=DOUBLE}, + + + pass_rate = #{record.passRate,jdbcType=DOUBLE}, + + + + + + + + update test_plan_report + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + `name` = #{record.name,jdbcType=VARCHAR}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + update_user = #{record.updateUser,jdbcType=VARCHAR}, + update_time = #{record.updateTime,jdbcType=BIGINT}, + start_time = #{record.startTime,jdbcType=BIGINT}, + end_time = #{record.endTime,jdbcType=BIGINT}, + case_count = #{record.caseCount,jdbcType=BIGINT}, + execute_rate = #{record.executeRate,jdbcType=DOUBLE}, + pass_rate = #{record.passRate,jdbcType=DOUBLE} + + + + + + update test_plan_report + + + test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + + + `name` = #{name,jdbcType=VARCHAR}, + + + create_user = #{createUser,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, + + + update_user = #{updateUser,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=BIGINT}, + + + start_time = #{startTime,jdbcType=BIGINT}, + + + end_time = #{endTime,jdbcType=BIGINT}, + + + case_count = #{caseCount,jdbcType=BIGINT}, + + + execute_rate = #{executeRate,jdbcType=DOUBLE}, + + + pass_rate = #{passRate,jdbcType=DOUBLE}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_report + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + `name` = #{name,jdbcType=VARCHAR}, + create_user = #{createUser,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + update_user = #{updateUser,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=BIGINT}, + start_time = #{startTime,jdbcType=BIGINT}, + end_time = #{endTime,jdbcType=BIGINT}, + case_count = #{caseCount,jdbcType=BIGINT}, + execute_rate = #{executeRate,jdbcType=DOUBLE}, + pass_rate = #{passRate,jdbcType=DOUBLE} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanUiScenarioMapper.java b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanUiScenarioMapper.java new file mode 100644 index 0000000000..8584d32e7a --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanUiScenarioMapper.java @@ -0,0 +1,36 @@ +package io.metersphere.plan.mapper; + +import io.metersphere.plan.domain.TestPlanUiScenario; +import io.metersphere.plan.domain.TestPlanUiScenarioExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TestPlanUiScenarioMapper { + long countByExample(TestPlanUiScenarioExample example); + + int deleteByExample(TestPlanUiScenarioExample example); + + int deleteByPrimaryKey(String id); + + int insert(TestPlanUiScenario record); + + int insertSelective(TestPlanUiScenario record); + + List selectByExampleWithBLOBs(TestPlanUiScenarioExample example); + + List selectByExample(TestPlanUiScenarioExample example); + + TestPlanUiScenario selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") TestPlanUiScenario record, @Param("example") TestPlanUiScenarioExample example); + + int updateByExampleWithBLOBs(@Param("record") TestPlanUiScenario record, @Param("example") TestPlanUiScenarioExample example); + + int updateByExample(@Param("record") TestPlanUiScenario record, @Param("example") TestPlanUiScenarioExample example); + + int updateByPrimaryKeySelective(TestPlanUiScenario record); + + int updateByPrimaryKeyWithBLOBs(TestPlanUiScenario record); + + int updateByPrimaryKey(TestPlanUiScenario record); +} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanUiScenarioMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanUiScenarioMapper.xml new file mode 100644 index 0000000000..c85da43526 --- /dev/null +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/mapper/TestPlanUiScenarioMapper.xml @@ -0,0 +1,324 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, test_plan_id, ui_scenario_id, create_user, create_time, pos, environment_type, + environment_group_id + + + environment + + + + + + delete from test_plan_ui_scenario + where id = #{id,jdbcType=VARCHAR} + + + delete from test_plan_ui_scenario + + + + + + insert into test_plan_ui_scenario (id, test_plan_id, ui_scenario_id, + create_user, create_time, pos, + environment_type, environment_group_id, environment + ) + values (#{id,jdbcType=VARCHAR}, #{testPlanId,jdbcType=VARCHAR}, #{uiScenarioId,jdbcType=VARCHAR}, + #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{pos,jdbcType=BIGINT}, + #{environmentType,jdbcType=VARCHAR}, #{environmentGroupId,jdbcType=VARCHAR}, #{environment,jdbcType=LONGVARCHAR} + ) + + + insert into test_plan_ui_scenario + + + id, + + + test_plan_id, + + + ui_scenario_id, + + + create_user, + + + create_time, + + + pos, + + + environment_type, + + + environment_group_id, + + + environment, + + + + + #{id,jdbcType=VARCHAR}, + + + #{testPlanId,jdbcType=VARCHAR}, + + + #{uiScenarioId,jdbcType=VARCHAR}, + + + #{createUser,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=BIGINT}, + + + #{pos,jdbcType=BIGINT}, + + + #{environmentType,jdbcType=VARCHAR}, + + + #{environmentGroupId,jdbcType=VARCHAR}, + + + #{environment,jdbcType=LONGVARCHAR}, + + + + + + update test_plan_ui_scenario + + + id = #{record.id,jdbcType=VARCHAR}, + + + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + + + ui_scenario_id = #{record.uiScenarioId,jdbcType=VARCHAR}, + + + create_user = #{record.createUser,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=BIGINT}, + + + pos = #{record.pos,jdbcType=BIGINT}, + + + environment_type = #{record.environmentType,jdbcType=VARCHAR}, + + + environment_group_id = #{record.environmentGroupId,jdbcType=VARCHAR}, + + + environment = #{record.environment,jdbcType=LONGVARCHAR}, + + + + + + + + update test_plan_ui_scenario + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + ui_scenario_id = #{record.uiScenarioId,jdbcType=VARCHAR}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + pos = #{record.pos,jdbcType=BIGINT}, + environment_type = #{record.environmentType,jdbcType=VARCHAR}, + environment_group_id = #{record.environmentGroupId,jdbcType=VARCHAR}, + environment = #{record.environment,jdbcType=LONGVARCHAR} + + + + + + update test_plan_ui_scenario + set id = #{record.id,jdbcType=VARCHAR}, + test_plan_id = #{record.testPlanId,jdbcType=VARCHAR}, + ui_scenario_id = #{record.uiScenarioId,jdbcType=VARCHAR}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=BIGINT}, + pos = #{record.pos,jdbcType=BIGINT}, + environment_type = #{record.environmentType,jdbcType=VARCHAR}, + environment_group_id = #{record.environmentGroupId,jdbcType=VARCHAR} + + + + + + update test_plan_ui_scenario + + + test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + + + ui_scenario_id = #{uiScenarioId,jdbcType=VARCHAR}, + + + create_user = #{createUser,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, + + + pos = #{pos,jdbcType=BIGINT}, + + + environment_type = #{environmentType,jdbcType=VARCHAR}, + + + environment_group_id = #{environmentGroupId,jdbcType=VARCHAR}, + + + environment = #{environment,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_ui_scenario + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + ui_scenario_id = #{uiScenarioId,jdbcType=VARCHAR}, + create_user = #{createUser,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + pos = #{pos,jdbcType=BIGINT}, + environment_type = #{environmentType,jdbcType=VARCHAR}, + environment_group_id = #{environmentGroupId,jdbcType=VARCHAR}, + environment = #{environment,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=VARCHAR} + + + update test_plan_ui_scenario + set test_plan_id = #{testPlanId,jdbcType=VARCHAR}, + ui_scenario_id = #{uiScenarioId,jdbcType=VARCHAR}, + create_user = #{createUser,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + pos = #{pos,jdbcType=BIGINT}, + environment_type = #{environmentType,jdbcType=VARCHAR}, + environment_group_id = #{environmentGroupId,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/framework/domain/src/main/resources/generatorConfig.xml b/backend/framework/domain/src/main/resources/generatorConfig.xml index 57e7c6b1dd..da6c71bb33 100644 --- a/backend/framework/domain/src/main/resources/generatorConfig.xml +++ b/backend/framework/domain/src/main/resources/generatorConfig.xml @@ -53,33 +53,39 @@ - + - + - - -
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+