From f5e0177de8486d6598244d4dda9a4a6d27c2383e Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Sun, 28 Apr 2024 11:08:36 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B8=85=E7=90=86=E6=9A=82=E6=97=B6?= =?UTF-8?q?=E6=9C=AA=E8=A7=84=E5=88=92=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/load/domain/LoadTest.java | 71 - .../metersphere/load/domain/LoadTestApi.java | 38 - .../load/domain/LoadTestApiExample.java | 610 ------- .../metersphere/load/domain/LoadTestBlob.java | 26 - .../load/domain/LoadTestBlobExample.java | 270 --- .../load/domain/LoadTestExample.java | 1130 ------------ .../metersphere/load/domain/LoadTestFile.java | 26 - .../load/domain/LoadTestFileExample.java | 400 ----- .../load/domain/LoadTestFollower.java | 22 - .../load/domain/LoadTestFollowerExample.java | 340 ---- .../load/domain/LoadTestReport.java | 90 - .../load/domain/LoadTestReportBlob.java | 29 - .../domain/LoadTestReportBlobExample.java | 270 --- .../load/domain/LoadTestReportExample.java | 1550 ----------------- .../load/domain/LoadTestReportFile.java | 26 - .../domain/LoadTestReportFileExample.java | 400 ----- .../load/domain/LoadTestReportLog.java | 33 - .../load/domain/LoadTestReportLogExample.java | 470 ----- .../load/domain/LoadTestReportResult.java | 28 - .../domain/LoadTestReportResultExample.java | 410 ----- .../load/domain/LoadTestReportResultPart.java | 29 - .../LoadTestReportResultPartExample.java | 400 ----- .../domain/LoadTestReportResultRealtime.java | 33 - .../LoadTestReportResultRealtimeExample.java | 460 ----- .../load/mapper/LoadTestApiMapper.java | 30 - .../load/mapper/LoadTestApiMapper.xml | 228 --- .../load/mapper/LoadTestBlobMapper.java | 34 - .../load/mapper/LoadTestBlobMapper.xml | 226 --- .../load/mapper/LoadTestFileMapper.java | 22 - .../load/mapper/LoadTestFileMapper.xml | 153 -- .../load/mapper/LoadTestFollowerMapper.java | 22 - .../load/mapper/LoadTestFollowerMapper.xml | 140 -- .../load/mapper/LoadTestMapper.java | 30 - .../load/mapper/LoadTestMapper.xml | 353 ---- .../load/mapper/LoadTestReportBlobMapper.java | 34 - .../load/mapper/LoadTestReportBlobMapper.xml | 243 --- .../load/mapper/LoadTestReportFileMapper.java | 22 - .../load/mapper/LoadTestReportFileMapper.xml | 153 -- .../load/mapper/LoadTestReportLogMapper.java | 36 - .../load/mapper/LoadTestReportLogMapper.xml | 251 --- .../load/mapper/LoadTestReportMapper.java | 30 - .../load/mapper/LoadTestReportMapper.xml | 448 ----- .../mapper/LoadTestReportResultMapper.java | 36 - .../mapper/LoadTestReportResultMapper.xml | 234 --- .../LoadTestReportResultPartMapper.java | 34 - .../mapper/LoadTestReportResultPartMapper.xml | 228 --- .../LoadTestReportResultRealtimeMapper.java | 34 - .../LoadTestReportResultRealtimeMapper.xml | 244 --- .../migration/3.0.0/ddl/V3.0.0_8__ui_test.sql | 7 - .../3.0.0/ddl/V3.0.0_9__load_test.sql | 5 - .../sdk/constants/ApplicationScope.java | 2 - backend/services/load-test/pom.xml | 65 - .../load/service/LoadTestService.java | 5 - .../main/resources/loadGeneratorConfig.xml | 95 - backend/services/pom.xml | 1 - .../ProjectApplicationController.java | 3 +- .../service/NoticeTemplateService.java | 6 - .../project/service/ProjectService.java | 8 - .../NoticeTemplateControllerTests.java | 9 +- .../controller/ProjectControllerTests.java | 6 - .../interceptor/LoadTestInterceptor.java | 38 - .../notice/constants/NoticeConstants.java | 6 - .../notice/sender/AbstractNoticeSender.java | 24 - .../notice/utils/MessageTemplateUtils.java | 3 - .../CommonNoticeSendServiceTests.java | 53 - 65 files changed, 3 insertions(+), 10759 deletions(-) delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApiExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlob.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlobExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFile.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFileExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollower.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollowerExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReport.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlobExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFile.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFileExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLog.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLogExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResult.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPart.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPartExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtime.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtimeExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowerMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowerMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.xml delete mode 100644 backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_8__ui_test.sql delete mode 100644 backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_9__load_test.sql delete mode 100644 backend/services/load-test/pom.xml delete mode 100644 backend/services/load-test/src/main/java/io/metersphere/load/service/LoadTestService.java delete mode 100644 backend/services/load-test/src/main/resources/loadGeneratorConfig.xml delete mode 100644 backend/services/system-setting/src/main/java/io/metersphere/system/config/interceptor/LoadTestInterceptor.java diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java deleted file mode 100644 index 0a8c7994de91..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTest.java +++ /dev/null @@ -1,71 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTest implements Serializable { - @Schema(description = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{load_test.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test.project_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test.project_id.length_range}", groups = {Created.class, Updated.class}) - private String projectId; - - @Schema(description = "测试名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test.name.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 255, message = "{load_test.name.length_range}", groups = {Created.class, Updated.class}) - private String name; - - @Schema(description = "状态为Error时表示错误信息") - private String description; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "更新时间") - private Long updateTime; - - @Schema(description = "状态: Starting, Running, Completed, Error, etc.", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test.status.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 64, message = "{load_test.status.length_range}", groups = {Created.class, Updated.class}) - private String status; - - @Schema(description = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test.test_resource_pool_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test.test_resource_pool_id.length_range}", groups = {Created.class, Updated.class}) - private String testResourcePoolId; - - @Schema(description = "测试数字ID,例如: 100001", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{load_test.num.not_blank}", groups = {Created.class}) - private Integer num; - - @Schema(description = "创建人") - private String createUser; - - @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{load_test.pos.not_blank}", groups = {Created.class}) - private Long pos; - - @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test.version_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test.version_id.length_range}", groups = {Created.class, Updated.class}) - private String versionId; - - @Schema(description = "基版本数据ID,首条测试和测试ID相同", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test.ref_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test.ref_id.length_range}", groups = {Created.class, Updated.class}) - private String refId; - - @Schema(description = "是否为最新版本 0:否,1:是", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{load_test.latest.not_blank}", groups = {Created.class}) - private Boolean latest; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java deleted file mode 100644 index cfd9c97715cc..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApi.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTestApi implements Serializable { - @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_api.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{load_test_api.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "接口场景或用例ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_api.api_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_api.api_id.length_range}", groups = {Created.class, Updated.class}) - private String apiId; - - @Schema(description = "性能测试ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_api.load_test_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_api.load_test_id.length_range}", groups = {Created.class, Updated.class}) - private String loadTestId; - - @Schema(description = "环境ID") - private String envId; - - @Schema(description = "类型: SCENARIO, CASE", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_api.type.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 20, message = "{load_test_api.type.length_range}", groups = {Created.class, Updated.class}) - private String type; - - @Schema(description = "关联版本") - private Integer apiVersion; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApiExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApiExample.java deleted file mode 100644 index 37c5e3c61ff6..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestApiExample.java +++ /dev/null @@ -1,610 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestApiExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestApiExample() { - 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 andApiIdIsNull() { - addCriterion("api_id is null"); - return (Criteria) this; - } - - public Criteria andApiIdIsNotNull() { - addCriterion("api_id is not null"); - return (Criteria) this; - } - - public Criteria andApiIdEqualTo(String value) { - addCriterion("api_id =", value, "apiId"); - return (Criteria) this; - } - - public Criteria andApiIdNotEqualTo(String value) { - addCriterion("api_id <>", value, "apiId"); - return (Criteria) this; - } - - public Criteria andApiIdGreaterThan(String value) { - addCriterion("api_id >", value, "apiId"); - return (Criteria) this; - } - - public Criteria andApiIdGreaterThanOrEqualTo(String value) { - addCriterion("api_id >=", value, "apiId"); - return (Criteria) this; - } - - public Criteria andApiIdLessThan(String value) { - addCriterion("api_id <", value, "apiId"); - return (Criteria) this; - } - - public Criteria andApiIdLessThanOrEqualTo(String value) { - addCriterion("api_id <=", value, "apiId"); - return (Criteria) this; - } - - public Criteria andApiIdLike(String value) { - addCriterion("api_id like", value, "apiId"); - return (Criteria) this; - } - - public Criteria andApiIdNotLike(String value) { - addCriterion("api_id not like", value, "apiId"); - return (Criteria) this; - } - - public Criteria andApiIdIn(List values) { - addCriterion("api_id in", values, "apiId"); - return (Criteria) this; - } - - public Criteria andApiIdNotIn(List values) { - addCriterion("api_id not in", values, "apiId"); - return (Criteria) this; - } - - public Criteria andApiIdBetween(String value1, String value2) { - addCriterion("api_id between", value1, value2, "apiId"); - return (Criteria) this; - } - - public Criteria andApiIdNotBetween(String value1, String value2) { - addCriterion("api_id not between", value1, value2, "apiId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdIsNull() { - addCriterion("load_test_id is null"); - return (Criteria) this; - } - - public Criteria andLoadTestIdIsNotNull() { - addCriterion("load_test_id is not null"); - return (Criteria) this; - } - - public Criteria andLoadTestIdEqualTo(String value) { - addCriterion("load_test_id =", value, "loadTestId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdNotEqualTo(String value) { - addCriterion("load_test_id <>", value, "loadTestId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdGreaterThan(String value) { - addCriterion("load_test_id >", value, "loadTestId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdGreaterThanOrEqualTo(String value) { - addCriterion("load_test_id >=", value, "loadTestId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdLessThan(String value) { - addCriterion("load_test_id <", value, "loadTestId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdLessThanOrEqualTo(String value) { - addCriterion("load_test_id <=", value, "loadTestId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdLike(String value) { - addCriterion("load_test_id like", value, "loadTestId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdNotLike(String value) { - addCriterion("load_test_id not like", value, "loadTestId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdIn(List values) { - addCriterion("load_test_id in", values, "loadTestId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdNotIn(List values) { - addCriterion("load_test_id not in", values, "loadTestId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdBetween(String value1, String value2) { - addCriterion("load_test_id between", value1, value2, "loadTestId"); - return (Criteria) this; - } - - public Criteria andLoadTestIdNotBetween(String value1, String value2) { - addCriterion("load_test_id not between", value1, value2, "loadTestId"); - return (Criteria) this; - } - - public Criteria andEnvIdIsNull() { - addCriterion("env_id is null"); - return (Criteria) this; - } - - public Criteria andEnvIdIsNotNull() { - addCriterion("env_id is not null"); - return (Criteria) this; - } - - public Criteria andEnvIdEqualTo(String value) { - addCriterion("env_id =", value, "envId"); - return (Criteria) this; - } - - public Criteria andEnvIdNotEqualTo(String value) { - addCriterion("env_id <>", value, "envId"); - return (Criteria) this; - } - - public Criteria andEnvIdGreaterThan(String value) { - addCriterion("env_id >", value, "envId"); - return (Criteria) this; - } - - public Criteria andEnvIdGreaterThanOrEqualTo(String value) { - addCriterion("env_id >=", value, "envId"); - return (Criteria) this; - } - - public Criteria andEnvIdLessThan(String value) { - addCriterion("env_id <", value, "envId"); - return (Criteria) this; - } - - public Criteria andEnvIdLessThanOrEqualTo(String value) { - addCriterion("env_id <=", value, "envId"); - return (Criteria) this; - } - - public Criteria andEnvIdLike(String value) { - addCriterion("env_id like", value, "envId"); - return (Criteria) this; - } - - public Criteria andEnvIdNotLike(String value) { - addCriterion("env_id not like", value, "envId"); - return (Criteria) this; - } - - public Criteria andEnvIdIn(List values) { - addCriterion("env_id in", values, "envId"); - return (Criteria) this; - } - - public Criteria andEnvIdNotIn(List values) { - addCriterion("env_id not in", values, "envId"); - return (Criteria) this; - } - - public Criteria andEnvIdBetween(String value1, String value2) { - addCriterion("env_id between", value1, value2, "envId"); - return (Criteria) this; - } - - public Criteria andEnvIdNotBetween(String value1, String value2) { - addCriterion("env_id not between", value1, value2, "envId"); - return (Criteria) this; - } - - public Criteria andTypeIsNull() { - addCriterion("`type` is null"); - return (Criteria) this; - } - - public Criteria andTypeIsNotNull() { - addCriterion("`type` is not null"); - return (Criteria) this; - } - - public Criteria andTypeEqualTo(String value) { - addCriterion("`type` =", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotEqualTo(String value) { - addCriterion("`type` <>", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThan(String value) { - addCriterion("`type` >", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThanOrEqualTo(String value) { - addCriterion("`type` >=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThan(String value) { - addCriterion("`type` <", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThanOrEqualTo(String value) { - addCriterion("`type` <=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLike(String value) { - addCriterion("`type` like", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotLike(String value) { - addCriterion("`type` not like", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeIn(List values) { - addCriterion("`type` in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotIn(List values) { - addCriterion("`type` not in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeBetween(String value1, String value2) { - addCriterion("`type` between", value1, value2, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotBetween(String value1, String value2) { - addCriterion("`type` not between", value1, value2, "type"); - return (Criteria) this; - } - - public Criteria andApiVersionIsNull() { - addCriterion("api_version is null"); - return (Criteria) this; - } - - public Criteria andApiVersionIsNotNull() { - addCriterion("api_version is not null"); - return (Criteria) this; - } - - public Criteria andApiVersionEqualTo(Integer value) { - addCriterion("api_version =", value, "apiVersion"); - return (Criteria) this; - } - - public Criteria andApiVersionNotEqualTo(Integer value) { - addCriterion("api_version <>", value, "apiVersion"); - return (Criteria) this; - } - - public Criteria andApiVersionGreaterThan(Integer value) { - addCriterion("api_version >", value, "apiVersion"); - return (Criteria) this; - } - - public Criteria andApiVersionGreaterThanOrEqualTo(Integer value) { - addCriterion("api_version >=", value, "apiVersion"); - return (Criteria) this; - } - - public Criteria andApiVersionLessThan(Integer value) { - addCriterion("api_version <", value, "apiVersion"); - return (Criteria) this; - } - - public Criteria andApiVersionLessThanOrEqualTo(Integer value) { - addCriterion("api_version <=", value, "apiVersion"); - return (Criteria) this; - } - - public Criteria andApiVersionIn(List values) { - addCriterion("api_version in", values, "apiVersion"); - return (Criteria) this; - } - - public Criteria andApiVersionNotIn(List values) { - addCriterion("api_version not in", values, "apiVersion"); - return (Criteria) this; - } - - public Criteria andApiVersionBetween(Integer value1, Integer value2) { - addCriterion("api_version between", value1, value2, "apiVersion"); - return (Criteria) this; - } - - public Criteria andApiVersionNotBetween(Integer value1, Integer value2) { - addCriterion("api_version not between", value1, value2, "apiVersion"); - 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/load/domain/LoadTestBlob.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlob.java deleted file mode 100644 index 1093f7595337..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlob.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTestBlob implements Serializable { - @Schema(description = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_blob.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{load_test_blob.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "压力配置") - private byte[] loadConfiguration; - - @Schema(description = "高级配置") - private byte[] advancedConfiguration; - - @Schema(description = "环境信息 (JSON format)") - private byte[] envInfo; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlobExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlobExample.java deleted file mode 100644 index b8442094ca04..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestBlobExample.java +++ /dev/null @@ -1,270 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestBlobExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestBlobExample() { - 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 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/load/domain/LoadTestExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestExample.java deleted file mode 100644 index 3be413754a37..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestExample.java +++ /dev/null @@ -1,1130 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestExample() { - 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 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 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 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 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 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 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 andNumIsNull() { - addCriterion("num is null"); - return (Criteria) this; - } - - public Criteria andNumIsNotNull() { - addCriterion("num is not null"); - return (Criteria) this; - } - - public Criteria andNumEqualTo(Integer value) { - addCriterion("num =", value, "num"); - return (Criteria) this; - } - - public Criteria andNumNotEqualTo(Integer value) { - addCriterion("num <>", value, "num"); - return (Criteria) this; - } - - public Criteria andNumGreaterThan(Integer value) { - addCriterion("num >", value, "num"); - return (Criteria) this; - } - - public Criteria andNumGreaterThanOrEqualTo(Integer value) { - addCriterion("num >=", value, "num"); - return (Criteria) this; - } - - public Criteria andNumLessThan(Integer value) { - addCriterion("num <", value, "num"); - return (Criteria) this; - } - - public Criteria andNumLessThanOrEqualTo(Integer value) { - addCriterion("num <=", value, "num"); - return (Criteria) this; - } - - public Criteria andNumIn(List values) { - addCriterion("num in", values, "num"); - return (Criteria) this; - } - - public Criteria andNumNotIn(List values) { - addCriterion("num not in", values, "num"); - return (Criteria) this; - } - - public Criteria andNumBetween(Integer value1, Integer value2) { - addCriterion("num between", value1, value2, "num"); - return (Criteria) this; - } - - public Criteria andNumNotBetween(Integer value1, Integer value2) { - addCriterion("num not between", value1, value2, "num"); - 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 andVersionIdIsNull() { - addCriterion("version_id is null"); - return (Criteria) this; - } - - public Criteria andVersionIdIsNotNull() { - addCriterion("version_id is not null"); - return (Criteria) this; - } - - public Criteria andVersionIdEqualTo(String value) { - addCriterion("version_id =", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdNotEqualTo(String value) { - addCriterion("version_id <>", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdGreaterThan(String value) { - addCriterion("version_id >", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdGreaterThanOrEqualTo(String value) { - addCriterion("version_id >=", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdLessThan(String value) { - addCriterion("version_id <", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdLessThanOrEqualTo(String value) { - addCriterion("version_id <=", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdLike(String value) { - addCriterion("version_id like", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdNotLike(String value) { - addCriterion("version_id not like", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdIn(List values) { - addCriterion("version_id in", values, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdNotIn(List values) { - addCriterion("version_id not in", values, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdBetween(String value1, String value2) { - addCriterion("version_id between", value1, value2, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdNotBetween(String value1, String value2) { - addCriterion("version_id not between", value1, value2, "versionId"); - return (Criteria) this; - } - - public Criteria andRefIdIsNull() { - addCriterion("ref_id is null"); - return (Criteria) this; - } - - public Criteria andRefIdIsNotNull() { - addCriterion("ref_id is not null"); - return (Criteria) this; - } - - public Criteria andRefIdEqualTo(String value) { - addCriterion("ref_id =", value, "refId"); - return (Criteria) this; - } - - public Criteria andRefIdNotEqualTo(String value) { - addCriterion("ref_id <>", value, "refId"); - return (Criteria) this; - } - - public Criteria andRefIdGreaterThan(String value) { - addCriterion("ref_id >", value, "refId"); - return (Criteria) this; - } - - public Criteria andRefIdGreaterThanOrEqualTo(String value) { - addCriterion("ref_id >=", value, "refId"); - return (Criteria) this; - } - - public Criteria andRefIdLessThan(String value) { - addCriterion("ref_id <", value, "refId"); - return (Criteria) this; - } - - public Criteria andRefIdLessThanOrEqualTo(String value) { - addCriterion("ref_id <=", value, "refId"); - return (Criteria) this; - } - - public Criteria andRefIdLike(String value) { - addCriterion("ref_id like", value, "refId"); - return (Criteria) this; - } - - public Criteria andRefIdNotLike(String value) { - addCriterion("ref_id not like", value, "refId"); - return (Criteria) this; - } - - public Criteria andRefIdIn(List values) { - addCriterion("ref_id in", values, "refId"); - return (Criteria) this; - } - - public Criteria andRefIdNotIn(List values) { - addCriterion("ref_id not in", values, "refId"); - return (Criteria) this; - } - - public Criteria andRefIdBetween(String value1, String value2) { - addCriterion("ref_id between", value1, value2, "refId"); - return (Criteria) this; - } - - public Criteria andRefIdNotBetween(String value1, String value2) { - addCriterion("ref_id not between", value1, value2, "refId"); - return (Criteria) this; - } - - public Criteria andLatestIsNull() { - addCriterion("latest is null"); - return (Criteria) this; - } - - public Criteria andLatestIsNotNull() { - addCriterion("latest is not null"); - return (Criteria) this; - } - - public Criteria andLatestEqualTo(Boolean value) { - addCriterion("latest =", value, "latest"); - return (Criteria) this; - } - - public Criteria andLatestNotEqualTo(Boolean value) { - addCriterion("latest <>", value, "latest"); - return (Criteria) this; - } - - public Criteria andLatestGreaterThan(Boolean value) { - addCriterion("latest >", value, "latest"); - return (Criteria) this; - } - - public Criteria andLatestGreaterThanOrEqualTo(Boolean value) { - addCriterion("latest >=", value, "latest"); - return (Criteria) this; - } - - public Criteria andLatestLessThan(Boolean value) { - addCriterion("latest <", value, "latest"); - return (Criteria) this; - } - - public Criteria andLatestLessThanOrEqualTo(Boolean value) { - addCriterion("latest <=", value, "latest"); - return (Criteria) this; - } - - public Criteria andLatestIn(List values) { - addCriterion("latest in", values, "latest"); - return (Criteria) this; - } - - public Criteria andLatestNotIn(List values) { - addCriterion("latest not in", values, "latest"); - return (Criteria) this; - } - - public Criteria andLatestBetween(Boolean value1, Boolean value2) { - addCriterion("latest between", value1, value2, "latest"); - return (Criteria) this; - } - - public Criteria andLatestNotBetween(Boolean value1, Boolean value2) { - addCriterion("latest not between", value1, value2, "latest"); - 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/load/domain/LoadTestFile.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFile.java deleted file mode 100644 index fcd261b82abf..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFile.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTestFile implements Serializable { - @Schema(description = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_file.test_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_file.test_id.length_range}", groups = {Created.class, Updated.class}) - private String testId; - - @Schema(description = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_file.file_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_file.file_id.length_range}", groups = {Created.class, Updated.class}) - private String fileId; - - @Schema(description = "文件排序", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{load_test_file.sort.not_blank}", groups = {Created.class}) - private Integer sort; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFileExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFileExample.java deleted file mode 100644 index 4244a9f2b7a9..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFileExample.java +++ /dev/null @@ -1,400 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestFileExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestFileExample() { - 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 andTestIdIsNull() { - addCriterion("test_id is null"); - return (Criteria) this; - } - - public Criteria andTestIdIsNotNull() { - addCriterion("test_id is not null"); - return (Criteria) this; - } - - public Criteria andTestIdEqualTo(String value) { - addCriterion("test_id =", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotEqualTo(String value) { - addCriterion("test_id <>", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdGreaterThan(String value) { - addCriterion("test_id >", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdGreaterThanOrEqualTo(String value) { - addCriterion("test_id >=", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdLessThan(String value) { - addCriterion("test_id <", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdLessThanOrEqualTo(String value) { - addCriterion("test_id <=", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdLike(String value) { - addCriterion("test_id like", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotLike(String value) { - addCriterion("test_id not like", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdIn(List values) { - addCriterion("test_id in", values, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotIn(List values) { - addCriterion("test_id not in", values, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdBetween(String value1, String value2) { - addCriterion("test_id between", value1, value2, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotBetween(String value1, String value2) { - addCriterion("test_id not between", value1, value2, "testId"); - return (Criteria) this; - } - - public Criteria andFileIdIsNull() { - addCriterion("file_id is null"); - return (Criteria) this; - } - - public Criteria andFileIdIsNotNull() { - addCriterion("file_id is not null"); - return (Criteria) this; - } - - public Criteria andFileIdEqualTo(String value) { - addCriterion("file_id =", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdNotEqualTo(String value) { - addCriterion("file_id <>", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdGreaterThan(String value) { - addCriterion("file_id >", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdGreaterThanOrEqualTo(String value) { - addCriterion("file_id >=", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdLessThan(String value) { - addCriterion("file_id <", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdLessThanOrEqualTo(String value) { - addCriterion("file_id <=", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdLike(String value) { - addCriterion("file_id like", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdNotLike(String value) { - addCriterion("file_id not like", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdIn(List values) { - addCriterion("file_id in", values, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdNotIn(List values) { - addCriterion("file_id not in", values, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdBetween(String value1, String value2) { - addCriterion("file_id between", value1, value2, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdNotBetween(String value1, String value2) { - addCriterion("file_id not between", value1, value2, "fileId"); - return (Criteria) this; - } - - public Criteria andSortIsNull() { - addCriterion("sort is null"); - return (Criteria) this; - } - - public Criteria andSortIsNotNull() { - addCriterion("sort is not null"); - return (Criteria) this; - } - - public Criteria andSortEqualTo(Integer value) { - addCriterion("sort =", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortNotEqualTo(Integer value) { - addCriterion("sort <>", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortGreaterThan(Integer value) { - addCriterion("sort >", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortGreaterThanOrEqualTo(Integer value) { - addCriterion("sort >=", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortLessThan(Integer value) { - addCriterion("sort <", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortLessThanOrEqualTo(Integer value) { - addCriterion("sort <=", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortIn(List values) { - addCriterion("sort in", values, "sort"); - return (Criteria) this; - } - - public Criteria andSortNotIn(List values) { - addCriterion("sort not in", values, "sort"); - return (Criteria) this; - } - - public Criteria andSortBetween(Integer value1, Integer value2) { - addCriterion("sort between", value1, value2, "sort"); - return (Criteria) this; - } - - public Criteria andSortNotBetween(Integer value1, Integer value2) { - addCriterion("sort not between", value1, value2, "sort"); - 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/load/domain/LoadTestFollower.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollower.java deleted file mode 100644 index 3055fc6e1fb2..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollower.java +++ /dev/null @@ -1,22 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTestFollower implements Serializable { - @Schema(description = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_follower.test_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_follower.test_id.length_range}", groups = {Created.class, Updated.class}) - private String testId; - - @Schema(description = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_follower.user_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_follower.user_id.length_range}", groups = {Created.class, Updated.class}) - private String userId; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollowerExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollowerExample.java deleted file mode 100644 index 0113d7b0ee74..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestFollowerExample.java +++ /dev/null @@ -1,340 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestFollowerExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestFollowerExample() { - 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 andTestIdIsNull() { - addCriterion("test_id is null"); - return (Criteria) this; - } - - public Criteria andTestIdIsNotNull() { - addCriterion("test_id is not null"); - return (Criteria) this; - } - - public Criteria andTestIdEqualTo(String value) { - addCriterion("test_id =", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotEqualTo(String value) { - addCriterion("test_id <>", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdGreaterThan(String value) { - addCriterion("test_id >", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdGreaterThanOrEqualTo(String value) { - addCriterion("test_id >=", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdLessThan(String value) { - addCriterion("test_id <", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdLessThanOrEqualTo(String value) { - addCriterion("test_id <=", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdLike(String value) { - addCriterion("test_id like", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotLike(String value) { - addCriterion("test_id not like", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdIn(List values) { - addCriterion("test_id in", values, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotIn(List values) { - addCriterion("test_id not in", values, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdBetween(String value1, String value2) { - addCriterion("test_id between", value1, value2, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotBetween(String value1, String value2) { - addCriterion("test_id not between", value1, value2, "testId"); - 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/load/domain/LoadTestReport.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReport.java deleted file mode 100644 index 9714d78f8177..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReport.java +++ /dev/null @@ -1,90 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTestReport implements Serializable { - @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{load_test_report.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report.test_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_report.test_id.length_range}", groups = {Created.class, Updated.class}) - private String testId; - - @Schema(description = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report.name.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 255, message = "{load_test_report.name.length_range}", groups = {Created.class, Updated.class}) - private String name; - - @Schema(description = "报告描述") - private String description; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "更新时间") - private Long updateTime; - - @Schema(description = "状态: Starting, Running, Error,Completed etc.", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report.status.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 64, message = "{load_test_report.status.length_range}", groups = {Created.class, Updated.class}) - private String status; - - @Schema(description = "创建人(执行人)ID") - private String createUser; - - @Schema(description = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report.trigger_mode.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 64, message = "{load_test_report.trigger_mode.length_range}", groups = {Created.class, Updated.class}) - private String triggerMode; - - @Schema(description = "最大并发数") - private String maxUsers; - - @Schema(description = "平均响应时间") - private String avgResponseTime; - - @Schema(description = "每秒事务数") - private String tps; - - @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report.project_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_report.project_id.length_range}", groups = {Created.class, Updated.class}) - private String projectId; - - @Schema(description = "测试名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report.test_name.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 255, message = "{load_test_report.test_name.length_range}", groups = {Created.class, Updated.class}) - private String testName; - - @Schema(description = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report.test_resource_pool_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_report.test_resource_pool_id.length_range}", groups = {Created.class, Updated.class}) - private String testResourcePoolId; - - @Schema(description = "测试开始时间") - private Long testStartTime; - - @Schema(description = "测试结束时间") - private Long testEndTime; - - @Schema(description = "执行时长") - private Long testDuration; - - @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report.version_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_report.version_id.length_range}", groups = {Created.class, Updated.class}) - private String versionId; - - @Schema(description = "关联的测试计划报告ID(可以为空)") - private String relevanceTestPlanReportId; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java deleted file mode 100644 index 3c4ec24758f6..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlob.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTestReportBlob implements Serializable { - @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_blob.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{load_test_report_blob.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "压力配置") - private byte[] loadConfiguration; - - @Schema(description = "JMX内容") - private byte[] jmxContent; - - @Schema(description = "高级配置") - private byte[] advancedConfiguration; - - @Schema(description = "环境信息 (JSON format)") - private byte[] envInfo; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlobExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlobExample.java deleted file mode 100644 index 42c8999a12ae..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportBlobExample.java +++ /dev/null @@ -1,270 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestReportBlobExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestReportBlobExample() { - 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 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/load/domain/LoadTestReportExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportExample.java deleted file mode 100644 index 8c853e86929e..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportExample.java +++ /dev/null @@ -1,1550 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestReportExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestReportExample() { - 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 andTestIdIsNull() { - addCriterion("test_id is null"); - return (Criteria) this; - } - - public Criteria andTestIdIsNotNull() { - addCriterion("test_id is not null"); - return (Criteria) this; - } - - public Criteria andTestIdEqualTo(String value) { - addCriterion("test_id =", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotEqualTo(String value) { - addCriterion("test_id <>", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdGreaterThan(String value) { - addCriterion("test_id >", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdGreaterThanOrEqualTo(String value) { - addCriterion("test_id >=", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdLessThan(String value) { - addCriterion("test_id <", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdLessThanOrEqualTo(String value) { - addCriterion("test_id <=", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdLike(String value) { - addCriterion("test_id like", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotLike(String value) { - addCriterion("test_id not like", value, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdIn(List values) { - addCriterion("test_id in", values, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotIn(List values) { - addCriterion("test_id not in", values, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdBetween(String value1, String value2) { - addCriterion("test_id between", value1, value2, "testId"); - return (Criteria) this; - } - - public Criteria andTestIdNotBetween(String value1, String value2) { - addCriterion("test_id not between", value1, value2, "testId"); - 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 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 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 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 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 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 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 andMaxUsersIsNull() { - addCriterion("max_users is null"); - return (Criteria) this; - } - - public Criteria andMaxUsersIsNotNull() { - addCriterion("max_users is not null"); - return (Criteria) this; - } - - public Criteria andMaxUsersEqualTo(String value) { - addCriterion("max_users =", value, "maxUsers"); - return (Criteria) this; - } - - public Criteria andMaxUsersNotEqualTo(String value) { - addCriterion("max_users <>", value, "maxUsers"); - return (Criteria) this; - } - - public Criteria andMaxUsersGreaterThan(String value) { - addCriterion("max_users >", value, "maxUsers"); - return (Criteria) this; - } - - public Criteria andMaxUsersGreaterThanOrEqualTo(String value) { - addCriterion("max_users >=", value, "maxUsers"); - return (Criteria) this; - } - - public Criteria andMaxUsersLessThan(String value) { - addCriterion("max_users <", value, "maxUsers"); - return (Criteria) this; - } - - public Criteria andMaxUsersLessThanOrEqualTo(String value) { - addCriterion("max_users <=", value, "maxUsers"); - return (Criteria) this; - } - - public Criteria andMaxUsersLike(String value) { - addCriterion("max_users like", value, "maxUsers"); - return (Criteria) this; - } - - public Criteria andMaxUsersNotLike(String value) { - addCriterion("max_users not like", value, "maxUsers"); - return (Criteria) this; - } - - public Criteria andMaxUsersIn(List values) { - addCriterion("max_users in", values, "maxUsers"); - return (Criteria) this; - } - - public Criteria andMaxUsersNotIn(List values) { - addCriterion("max_users not in", values, "maxUsers"); - return (Criteria) this; - } - - public Criteria andMaxUsersBetween(String value1, String value2) { - addCriterion("max_users between", value1, value2, "maxUsers"); - return (Criteria) this; - } - - public Criteria andMaxUsersNotBetween(String value1, String value2) { - addCriterion("max_users not between", value1, value2, "maxUsers"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeIsNull() { - addCriterion("avg_response_time is null"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeIsNotNull() { - addCriterion("avg_response_time is not null"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeEqualTo(String value) { - addCriterion("avg_response_time =", value, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeNotEqualTo(String value) { - addCriterion("avg_response_time <>", value, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeGreaterThan(String value) { - addCriterion("avg_response_time >", value, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeGreaterThanOrEqualTo(String value) { - addCriterion("avg_response_time >=", value, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeLessThan(String value) { - addCriterion("avg_response_time <", value, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeLessThanOrEqualTo(String value) { - addCriterion("avg_response_time <=", value, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeLike(String value) { - addCriterion("avg_response_time like", value, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeNotLike(String value) { - addCriterion("avg_response_time not like", value, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeIn(List values) { - addCriterion("avg_response_time in", values, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeNotIn(List values) { - addCriterion("avg_response_time not in", values, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeBetween(String value1, String value2) { - addCriterion("avg_response_time between", value1, value2, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andAvgResponseTimeNotBetween(String value1, String value2) { - addCriterion("avg_response_time not between", value1, value2, "avgResponseTime"); - return (Criteria) this; - } - - public Criteria andTpsIsNull() { - addCriterion("tps is null"); - return (Criteria) this; - } - - public Criteria andTpsIsNotNull() { - addCriterion("tps is not null"); - return (Criteria) this; - } - - public Criteria andTpsEqualTo(String value) { - addCriterion("tps =", value, "tps"); - return (Criteria) this; - } - - public Criteria andTpsNotEqualTo(String value) { - addCriterion("tps <>", value, "tps"); - return (Criteria) this; - } - - public Criteria andTpsGreaterThan(String value) { - addCriterion("tps >", value, "tps"); - return (Criteria) this; - } - - public Criteria andTpsGreaterThanOrEqualTo(String value) { - addCriterion("tps >=", value, "tps"); - return (Criteria) this; - } - - public Criteria andTpsLessThan(String value) { - addCriterion("tps <", value, "tps"); - return (Criteria) this; - } - - public Criteria andTpsLessThanOrEqualTo(String value) { - addCriterion("tps <=", value, "tps"); - return (Criteria) this; - } - - public Criteria andTpsLike(String value) { - addCriterion("tps like", value, "tps"); - return (Criteria) this; - } - - public Criteria andTpsNotLike(String value) { - addCriterion("tps not like", value, "tps"); - return (Criteria) this; - } - - public Criteria andTpsIn(List values) { - addCriterion("tps in", values, "tps"); - return (Criteria) this; - } - - public Criteria andTpsNotIn(List values) { - addCriterion("tps not in", values, "tps"); - return (Criteria) this; - } - - public Criteria andTpsBetween(String value1, String value2) { - addCriterion("tps between", value1, value2, "tps"); - return (Criteria) this; - } - - public Criteria andTpsNotBetween(String value1, String value2) { - addCriterion("tps not between", value1, value2, "tps"); - 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 andTestNameIsNull() { - addCriterion("test_name is null"); - return (Criteria) this; - } - - public Criteria andTestNameIsNotNull() { - addCriterion("test_name is not null"); - return (Criteria) this; - } - - public Criteria andTestNameEqualTo(String value) { - addCriterion("test_name =", value, "testName"); - return (Criteria) this; - } - - public Criteria andTestNameNotEqualTo(String value) { - addCriterion("test_name <>", value, "testName"); - return (Criteria) this; - } - - public Criteria andTestNameGreaterThan(String value) { - addCriterion("test_name >", value, "testName"); - return (Criteria) this; - } - - public Criteria andTestNameGreaterThanOrEqualTo(String value) { - addCriterion("test_name >=", value, "testName"); - return (Criteria) this; - } - - public Criteria andTestNameLessThan(String value) { - addCriterion("test_name <", value, "testName"); - return (Criteria) this; - } - - public Criteria andTestNameLessThanOrEqualTo(String value) { - addCriterion("test_name <=", value, "testName"); - return (Criteria) this; - } - - public Criteria andTestNameLike(String value) { - addCriterion("test_name like", value, "testName"); - return (Criteria) this; - } - - public Criteria andTestNameNotLike(String value) { - addCriterion("test_name not like", value, "testName"); - return (Criteria) this; - } - - public Criteria andTestNameIn(List values) { - addCriterion("test_name in", values, "testName"); - return (Criteria) this; - } - - public Criteria andTestNameNotIn(List values) { - addCriterion("test_name not in", values, "testName"); - return (Criteria) this; - } - - public Criteria andTestNameBetween(String value1, String value2) { - addCriterion("test_name between", value1, value2, "testName"); - return (Criteria) this; - } - - public Criteria andTestNameNotBetween(String value1, String value2) { - addCriterion("test_name not between", value1, value2, "testName"); - 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 andTestStartTimeIsNull() { - addCriterion("test_start_time is null"); - return (Criteria) this; - } - - public Criteria andTestStartTimeIsNotNull() { - addCriterion("test_start_time is not null"); - return (Criteria) this; - } - - public Criteria andTestStartTimeEqualTo(Long value) { - addCriterion("test_start_time =", value, "testStartTime"); - return (Criteria) this; - } - - public Criteria andTestStartTimeNotEqualTo(Long value) { - addCriterion("test_start_time <>", value, "testStartTime"); - return (Criteria) this; - } - - public Criteria andTestStartTimeGreaterThan(Long value) { - addCriterion("test_start_time >", value, "testStartTime"); - return (Criteria) this; - } - - public Criteria andTestStartTimeGreaterThanOrEqualTo(Long value) { - addCriterion("test_start_time >=", value, "testStartTime"); - return (Criteria) this; - } - - public Criteria andTestStartTimeLessThan(Long value) { - addCriterion("test_start_time <", value, "testStartTime"); - return (Criteria) this; - } - - public Criteria andTestStartTimeLessThanOrEqualTo(Long value) { - addCriterion("test_start_time <=", value, "testStartTime"); - return (Criteria) this; - } - - public Criteria andTestStartTimeIn(List values) { - addCriterion("test_start_time in", values, "testStartTime"); - return (Criteria) this; - } - - public Criteria andTestStartTimeNotIn(List values) { - addCriterion("test_start_time not in", values, "testStartTime"); - return (Criteria) this; - } - - public Criteria andTestStartTimeBetween(Long value1, Long value2) { - addCriterion("test_start_time between", value1, value2, "testStartTime"); - return (Criteria) this; - } - - public Criteria andTestStartTimeNotBetween(Long value1, Long value2) { - addCriterion("test_start_time not between", value1, value2, "testStartTime"); - return (Criteria) this; - } - - public Criteria andTestEndTimeIsNull() { - addCriterion("test_end_time is null"); - return (Criteria) this; - } - - public Criteria andTestEndTimeIsNotNull() { - addCriterion("test_end_time is not null"); - return (Criteria) this; - } - - public Criteria andTestEndTimeEqualTo(Long value) { - addCriterion("test_end_time =", value, "testEndTime"); - return (Criteria) this; - } - - public Criteria andTestEndTimeNotEqualTo(Long value) { - addCriterion("test_end_time <>", value, "testEndTime"); - return (Criteria) this; - } - - public Criteria andTestEndTimeGreaterThan(Long value) { - addCriterion("test_end_time >", value, "testEndTime"); - return (Criteria) this; - } - - public Criteria andTestEndTimeGreaterThanOrEqualTo(Long value) { - addCriterion("test_end_time >=", value, "testEndTime"); - return (Criteria) this; - } - - public Criteria andTestEndTimeLessThan(Long value) { - addCriterion("test_end_time <", value, "testEndTime"); - return (Criteria) this; - } - - public Criteria andTestEndTimeLessThanOrEqualTo(Long value) { - addCriterion("test_end_time <=", value, "testEndTime"); - return (Criteria) this; - } - - public Criteria andTestEndTimeIn(List values) { - addCriterion("test_end_time in", values, "testEndTime"); - return (Criteria) this; - } - - public Criteria andTestEndTimeNotIn(List values) { - addCriterion("test_end_time not in", values, "testEndTime"); - return (Criteria) this; - } - - public Criteria andTestEndTimeBetween(Long value1, Long value2) { - addCriterion("test_end_time between", value1, value2, "testEndTime"); - return (Criteria) this; - } - - public Criteria andTestEndTimeNotBetween(Long value1, Long value2) { - addCriterion("test_end_time not between", value1, value2, "testEndTime"); - return (Criteria) this; - } - - public Criteria andTestDurationIsNull() { - addCriterion("test_duration is null"); - return (Criteria) this; - } - - public Criteria andTestDurationIsNotNull() { - addCriterion("test_duration is not null"); - return (Criteria) this; - } - - public Criteria andTestDurationEqualTo(Long value) { - addCriterion("test_duration =", value, "testDuration"); - return (Criteria) this; - } - - public Criteria andTestDurationNotEqualTo(Long value) { - addCriterion("test_duration <>", value, "testDuration"); - return (Criteria) this; - } - - public Criteria andTestDurationGreaterThan(Long value) { - addCriterion("test_duration >", value, "testDuration"); - return (Criteria) this; - } - - public Criteria andTestDurationGreaterThanOrEqualTo(Long value) { - addCriterion("test_duration >=", value, "testDuration"); - return (Criteria) this; - } - - public Criteria andTestDurationLessThan(Long value) { - addCriterion("test_duration <", value, "testDuration"); - return (Criteria) this; - } - - public Criteria andTestDurationLessThanOrEqualTo(Long value) { - addCriterion("test_duration <=", value, "testDuration"); - return (Criteria) this; - } - - public Criteria andTestDurationIn(List values) { - addCriterion("test_duration in", values, "testDuration"); - return (Criteria) this; - } - - public Criteria andTestDurationNotIn(List values) { - addCriterion("test_duration not in", values, "testDuration"); - return (Criteria) this; - } - - public Criteria andTestDurationBetween(Long value1, Long value2) { - addCriterion("test_duration between", value1, value2, "testDuration"); - return (Criteria) this; - } - - public Criteria andTestDurationNotBetween(Long value1, Long value2) { - addCriterion("test_duration not between", value1, value2, "testDuration"); - return (Criteria) this; - } - - public Criteria andVersionIdIsNull() { - addCriterion("version_id is null"); - return (Criteria) this; - } - - public Criteria andVersionIdIsNotNull() { - addCriterion("version_id is not null"); - return (Criteria) this; - } - - public Criteria andVersionIdEqualTo(String value) { - addCriterion("version_id =", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdNotEqualTo(String value) { - addCriterion("version_id <>", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdGreaterThan(String value) { - addCriterion("version_id >", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdGreaterThanOrEqualTo(String value) { - addCriterion("version_id >=", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdLessThan(String value) { - addCriterion("version_id <", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdLessThanOrEqualTo(String value) { - addCriterion("version_id <=", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdLike(String value) { - addCriterion("version_id like", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdNotLike(String value) { - addCriterion("version_id not like", value, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdIn(List values) { - addCriterion("version_id in", values, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdNotIn(List values) { - addCriterion("version_id not in", values, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdBetween(String value1, String value2) { - addCriterion("version_id between", value1, value2, "versionId"); - return (Criteria) this; - } - - public Criteria andVersionIdNotBetween(String value1, String value2) { - addCriterion("version_id not between", value1, value2, "versionId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdIsNull() { - addCriterion("relevance_test_plan_report_id is null"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdIsNotNull() { - addCriterion("relevance_test_plan_report_id is not null"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdEqualTo(String value) { - addCriterion("relevance_test_plan_report_id =", value, "relevanceTestPlanReportId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdNotEqualTo(String value) { - addCriterion("relevance_test_plan_report_id <>", value, "relevanceTestPlanReportId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdGreaterThan(String value) { - addCriterion("relevance_test_plan_report_id >", value, "relevanceTestPlanReportId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdGreaterThanOrEqualTo(String value) { - addCriterion("relevance_test_plan_report_id >=", value, "relevanceTestPlanReportId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdLessThan(String value) { - addCriterion("relevance_test_plan_report_id <", value, "relevanceTestPlanReportId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdLessThanOrEqualTo(String value) { - addCriterion("relevance_test_plan_report_id <=", value, "relevanceTestPlanReportId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdLike(String value) { - addCriterion("relevance_test_plan_report_id like", value, "relevanceTestPlanReportId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdNotLike(String value) { - addCriterion("relevance_test_plan_report_id not like", value, "relevanceTestPlanReportId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdIn(List values) { - addCriterion("relevance_test_plan_report_id in", values, "relevanceTestPlanReportId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdNotIn(List values) { - addCriterion("relevance_test_plan_report_id not in", values, "relevanceTestPlanReportId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdBetween(String value1, String value2) { - addCriterion("relevance_test_plan_report_id between", value1, value2, "relevanceTestPlanReportId"); - return (Criteria) this; - } - - public Criteria andRelevanceTestPlanReportIdNotBetween(String value1, String value2) { - addCriterion("relevance_test_plan_report_id not between", value1, value2, "relevanceTestPlanReportId"); - 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/load/domain/LoadTestReportFile.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFile.java deleted file mode 100644 index 1a1519609a75..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFile.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTestReportFile implements Serializable { - @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_file.report_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_report_file.report_id.length_range}", groups = {Created.class, Updated.class}) - private String reportId; - - @Schema(description = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_file.file_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_report_file.file_id.length_range}", groups = {Created.class, Updated.class}) - private String fileId; - - @Schema(description = "文件排序", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{load_test_report_file.sort.not_blank}", groups = {Created.class}) - private Integer sort; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFileExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFileExample.java deleted file mode 100644 index d337cd5cc823..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportFileExample.java +++ /dev/null @@ -1,400 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestReportFileExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestReportFileExample() { - 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 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 Criteria andFileIdIsNull() { - addCriterion("file_id is null"); - return (Criteria) this; - } - - public Criteria andFileIdIsNotNull() { - addCriterion("file_id is not null"); - return (Criteria) this; - } - - public Criteria andFileIdEqualTo(String value) { - addCriterion("file_id =", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdNotEqualTo(String value) { - addCriterion("file_id <>", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdGreaterThan(String value) { - addCriterion("file_id >", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdGreaterThanOrEqualTo(String value) { - addCriterion("file_id >=", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdLessThan(String value) { - addCriterion("file_id <", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdLessThanOrEqualTo(String value) { - addCriterion("file_id <=", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdLike(String value) { - addCriterion("file_id like", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdNotLike(String value) { - addCriterion("file_id not like", value, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdIn(List values) { - addCriterion("file_id in", values, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdNotIn(List values) { - addCriterion("file_id not in", values, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdBetween(String value1, String value2) { - addCriterion("file_id between", value1, value2, "fileId"); - return (Criteria) this; - } - - public Criteria andFileIdNotBetween(String value1, String value2) { - addCriterion("file_id not between", value1, value2, "fileId"); - return (Criteria) this; - } - - public Criteria andSortIsNull() { - addCriterion("sort is null"); - return (Criteria) this; - } - - public Criteria andSortIsNotNull() { - addCriterion("sort is not null"); - return (Criteria) this; - } - - public Criteria andSortEqualTo(Integer value) { - addCriterion("sort =", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortNotEqualTo(Integer value) { - addCriterion("sort <>", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortGreaterThan(Integer value) { - addCriterion("sort >", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortGreaterThanOrEqualTo(Integer value) { - addCriterion("sort >=", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortLessThan(Integer value) { - addCriterion("sort <", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortLessThanOrEqualTo(Integer value) { - addCriterion("sort <=", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortIn(List values) { - addCriterion("sort in", values, "sort"); - return (Criteria) this; - } - - public Criteria andSortNotIn(List values) { - addCriterion("sort not in", values, "sort"); - return (Criteria) this; - } - - public Criteria andSortBetween(Integer value1, Integer value2) { - addCriterion("sort between", value1, value2, "sort"); - return (Criteria) this; - } - - public Criteria andSortNotBetween(Integer value1, Integer value2) { - addCriterion("sort not between", value1, value2, "sort"); - 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/load/domain/LoadTestReportLog.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLog.java deleted file mode 100644 index c2706ca6e125..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLog.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTestReportLog implements Serializable { - @Schema(description = "主键无实际意义", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_log.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{load_test_report_log.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_log.report_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_report_log.report_id.length_range}", groups = {Created.class, Updated.class}) - private String reportId; - - @Schema(description = "资源节点ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_log.resource_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_report_log.resource_id.length_range}", groups = {Created.class, Updated.class}) - private String resourceId; - - @Schema(description = "日志内容分段") - private Long part; - - @Schema(description = "jmeter.log 内容") - 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/load/domain/LoadTestReportLogExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLogExample.java deleted file mode 100644 index 2528b169a354..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportLogExample.java +++ /dev/null @@ -1,470 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestReportLogExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestReportLogExample() { - 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 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 Criteria andResourceIdIsNull() { - addCriterion("resource_id is null"); - return (Criteria) this; - } - - public Criteria andResourceIdIsNotNull() { - addCriterion("resource_id is not null"); - return (Criteria) this; - } - - public Criteria andResourceIdEqualTo(String value) { - addCriterion("resource_id =", value, "resourceId"); - return (Criteria) this; - } - - public Criteria andResourceIdNotEqualTo(String value) { - addCriterion("resource_id <>", value, "resourceId"); - return (Criteria) this; - } - - public Criteria andResourceIdGreaterThan(String value) { - addCriterion("resource_id >", value, "resourceId"); - return (Criteria) this; - } - - public Criteria andResourceIdGreaterThanOrEqualTo(String value) { - addCriterion("resource_id >=", value, "resourceId"); - return (Criteria) this; - } - - public Criteria andResourceIdLessThan(String value) { - addCriterion("resource_id <", value, "resourceId"); - return (Criteria) this; - } - - public Criteria andResourceIdLessThanOrEqualTo(String value) { - addCriterion("resource_id <=", value, "resourceId"); - return (Criteria) this; - } - - public Criteria andResourceIdLike(String value) { - addCriterion("resource_id like", value, "resourceId"); - return (Criteria) this; - } - - public Criteria andResourceIdNotLike(String value) { - addCriterion("resource_id not like", value, "resourceId"); - return (Criteria) this; - } - - public Criteria andResourceIdIn(List values) { - addCriterion("resource_id in", values, "resourceId"); - return (Criteria) this; - } - - public Criteria andResourceIdNotIn(List values) { - addCriterion("resource_id not in", values, "resourceId"); - return (Criteria) this; - } - - public Criteria andResourceIdBetween(String value1, String value2) { - addCriterion("resource_id between", value1, value2, "resourceId"); - return (Criteria) this; - } - - public Criteria andResourceIdNotBetween(String value1, String value2) { - addCriterion("resource_id not between", value1, value2, "resourceId"); - return (Criteria) this; - } - - public Criteria andPartIsNull() { - addCriterion("`part` is null"); - return (Criteria) this; - } - - public Criteria andPartIsNotNull() { - addCriterion("`part` is not null"); - return (Criteria) this; - } - - public Criteria andPartEqualTo(Long value) { - addCriterion("`part` =", value, "part"); - return (Criteria) this; - } - - public Criteria andPartNotEqualTo(Long value) { - addCriterion("`part` <>", value, "part"); - return (Criteria) this; - } - - public Criteria andPartGreaterThan(Long value) { - addCriterion("`part` >", value, "part"); - return (Criteria) this; - } - - public Criteria andPartGreaterThanOrEqualTo(Long value) { - addCriterion("`part` >=", value, "part"); - return (Criteria) this; - } - - public Criteria andPartLessThan(Long value) { - addCriterion("`part` <", value, "part"); - return (Criteria) this; - } - - public Criteria andPartLessThanOrEqualTo(Long value) { - addCriterion("`part` <=", value, "part"); - return (Criteria) this; - } - - public Criteria andPartIn(List values) { - addCriterion("`part` in", values, "part"); - return (Criteria) this; - } - - public Criteria andPartNotIn(List values) { - addCriterion("`part` not in", values, "part"); - return (Criteria) this; - } - - public Criteria andPartBetween(Long value1, Long value2) { - addCriterion("`part` between", value1, value2, "part"); - return (Criteria) this; - } - - public Criteria andPartNotBetween(Long value1, Long value2) { - addCriterion("`part` not between", value1, value2, "part"); - 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/load/domain/LoadTestReportResult.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResult.java deleted file mode 100644 index 5b0e5ceb04ae..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResult.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTestReportResult implements Serializable { - @Schema(description = "主键无实际意义", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_result.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{load_test_report_result.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_result.report_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_report_result.report_id.length_range}", groups = {Created.class, Updated.class}) - private String reportId; - - @Schema(description = "报告项目key") - private String reportKey; - - @Schema(description = "报告项目内容") - private byte[] reportValue; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultExample.java deleted file mode 100644 index d99e6c260fdc..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultExample.java +++ /dev/null @@ -1,410 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestReportResultExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestReportResultExample() { - 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 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 Criteria andReportKeyIsNull() { - addCriterion("report_key is null"); - return (Criteria) this; - } - - public Criteria andReportKeyIsNotNull() { - addCriterion("report_key is not null"); - return (Criteria) this; - } - - public Criteria andReportKeyEqualTo(String value) { - addCriterion("report_key =", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotEqualTo(String value) { - addCriterion("report_key <>", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyGreaterThan(String value) { - addCriterion("report_key >", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyGreaterThanOrEqualTo(String value) { - addCriterion("report_key >=", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyLessThan(String value) { - addCriterion("report_key <", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyLessThanOrEqualTo(String value) { - addCriterion("report_key <=", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyLike(String value) { - addCriterion("report_key like", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotLike(String value) { - addCriterion("report_key not like", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyIn(List values) { - addCriterion("report_key in", values, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotIn(List values) { - addCriterion("report_key not in", values, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyBetween(String value1, String value2) { - addCriterion("report_key between", value1, value2, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotBetween(String value1, String value2) { - addCriterion("report_key not between", value1, value2, "reportKey"); - 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/load/domain/LoadTestReportResultPart.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPart.java deleted file mode 100644 index acca0c462738..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPart.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTestReportResultPart implements Serializable { - @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_result_part.report_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_report_result_part.report_id.length_range}", groups = {Created.class, Updated.class}) - private String reportId; - - @Schema(description = "报告项目key", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_result_part.report_key.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 64, message = "{load_test_report_result_part.report_key.length_range}", groups = {Created.class, Updated.class}) - private String reportKey; - - @Schema(description = "资源节点索引号", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{load_test_report_result_part.resource_index.not_blank}", groups = {Created.class}) - private Integer resourceIndex; - - @Schema(description = "报告项目内容") - private byte[] reportValue; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPartExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPartExample.java deleted file mode 100644 index f3b8a685b53d..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultPartExample.java +++ /dev/null @@ -1,400 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestReportResultPartExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestReportResultPartExample() { - 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 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 Criteria andReportKeyIsNull() { - addCriterion("report_key is null"); - return (Criteria) this; - } - - public Criteria andReportKeyIsNotNull() { - addCriterion("report_key is not null"); - return (Criteria) this; - } - - public Criteria andReportKeyEqualTo(String value) { - addCriterion("report_key =", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotEqualTo(String value) { - addCriterion("report_key <>", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyGreaterThan(String value) { - addCriterion("report_key >", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyGreaterThanOrEqualTo(String value) { - addCriterion("report_key >=", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyLessThan(String value) { - addCriterion("report_key <", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyLessThanOrEqualTo(String value) { - addCriterion("report_key <=", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyLike(String value) { - addCriterion("report_key like", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotLike(String value) { - addCriterion("report_key not like", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyIn(List values) { - addCriterion("report_key in", values, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotIn(List values) { - addCriterion("report_key not in", values, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyBetween(String value1, String value2) { - addCriterion("report_key between", value1, value2, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotBetween(String value1, String value2) { - addCriterion("report_key not between", value1, value2, "reportKey"); - return (Criteria) this; - } - - public Criteria andResourceIndexIsNull() { - addCriterion("resource_index is null"); - return (Criteria) this; - } - - public Criteria andResourceIndexIsNotNull() { - addCriterion("resource_index is not null"); - return (Criteria) this; - } - - public Criteria andResourceIndexEqualTo(Integer value) { - addCriterion("resource_index =", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexNotEqualTo(Integer value) { - addCriterion("resource_index <>", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexGreaterThan(Integer value) { - addCriterion("resource_index >", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexGreaterThanOrEqualTo(Integer value) { - addCriterion("resource_index >=", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexLessThan(Integer value) { - addCriterion("resource_index <", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexLessThanOrEqualTo(Integer value) { - addCriterion("resource_index <=", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexIn(List values) { - addCriterion("resource_index in", values, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexNotIn(List values) { - addCriterion("resource_index not in", values, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexBetween(Integer value1, Integer value2) { - addCriterion("resource_index between", value1, value2, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexNotBetween(Integer value1, Integer value2) { - addCriterion("resource_index not between", value1, value2, "resourceIndex"); - 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/load/domain/LoadTestReportResultRealtime.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtime.java deleted file mode 100644 index 81e3cbab757c..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtime.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.metersphere.load.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import lombok.Data; - -@Data -public class LoadTestReportResultRealtime implements Serializable { - @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_result_realtime.report_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{load_test_report_result_realtime.report_id.length_range}", groups = {Created.class, Updated.class}) - private String reportId; - - @Schema(description = "报告项目key", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{load_test_report_result_realtime.report_key.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 64, message = "{load_test_report_result_realtime.report_key.length_range}", groups = {Created.class, Updated.class}) - private String reportKey; - - @Schema(description = "资源节点索引号", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{load_test_report_result_realtime.resource_index.not_blank}", groups = {Created.class}) - private Integer resourceIndex; - - @Schema(description = "报告项目内容排序", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{load_test_report_result_realtime.sort.not_blank}", groups = {Created.class}) - private Integer sort; - - @Schema(description = "报告项目内容") - private byte[] reportValue; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtimeExample.java b/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtimeExample.java deleted file mode 100644 index 4980786360f6..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/domain/LoadTestReportResultRealtimeExample.java +++ /dev/null @@ -1,460 +0,0 @@ -package io.metersphere.load.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LoadTestReportResultRealtimeExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public LoadTestReportResultRealtimeExample() { - 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 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 Criteria andReportKeyIsNull() { - addCriterion("report_key is null"); - return (Criteria) this; - } - - public Criteria andReportKeyIsNotNull() { - addCriterion("report_key is not null"); - return (Criteria) this; - } - - public Criteria andReportKeyEqualTo(String value) { - addCriterion("report_key =", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotEqualTo(String value) { - addCriterion("report_key <>", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyGreaterThan(String value) { - addCriterion("report_key >", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyGreaterThanOrEqualTo(String value) { - addCriterion("report_key >=", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyLessThan(String value) { - addCriterion("report_key <", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyLessThanOrEqualTo(String value) { - addCriterion("report_key <=", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyLike(String value) { - addCriterion("report_key like", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotLike(String value) { - addCriterion("report_key not like", value, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyIn(List values) { - addCriterion("report_key in", values, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotIn(List values) { - addCriterion("report_key not in", values, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyBetween(String value1, String value2) { - addCriterion("report_key between", value1, value2, "reportKey"); - return (Criteria) this; - } - - public Criteria andReportKeyNotBetween(String value1, String value2) { - addCriterion("report_key not between", value1, value2, "reportKey"); - return (Criteria) this; - } - - public Criteria andResourceIndexIsNull() { - addCriterion("resource_index is null"); - return (Criteria) this; - } - - public Criteria andResourceIndexIsNotNull() { - addCriterion("resource_index is not null"); - return (Criteria) this; - } - - public Criteria andResourceIndexEqualTo(Integer value) { - addCriterion("resource_index =", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexNotEqualTo(Integer value) { - addCriterion("resource_index <>", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexGreaterThan(Integer value) { - addCriterion("resource_index >", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexGreaterThanOrEqualTo(Integer value) { - addCriterion("resource_index >=", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexLessThan(Integer value) { - addCriterion("resource_index <", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexLessThanOrEqualTo(Integer value) { - addCriterion("resource_index <=", value, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexIn(List values) { - addCriterion("resource_index in", values, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexNotIn(List values) { - addCriterion("resource_index not in", values, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexBetween(Integer value1, Integer value2) { - addCriterion("resource_index between", value1, value2, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andResourceIndexNotBetween(Integer value1, Integer value2) { - addCriterion("resource_index not between", value1, value2, "resourceIndex"); - return (Criteria) this; - } - - public Criteria andSortIsNull() { - addCriterion("sort is null"); - return (Criteria) this; - } - - public Criteria andSortIsNotNull() { - addCriterion("sort is not null"); - return (Criteria) this; - } - - public Criteria andSortEqualTo(Integer value) { - addCriterion("sort =", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortNotEqualTo(Integer value) { - addCriterion("sort <>", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortGreaterThan(Integer value) { - addCriterion("sort >", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortGreaterThanOrEqualTo(Integer value) { - addCriterion("sort >=", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortLessThan(Integer value) { - addCriterion("sort <", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortLessThanOrEqualTo(Integer value) { - addCriterion("sort <=", value, "sort"); - return (Criteria) this; - } - - public Criteria andSortIn(List values) { - addCriterion("sort in", values, "sort"); - return (Criteria) this; - } - - public Criteria andSortNotIn(List values) { - addCriterion("sort not in", values, "sort"); - return (Criteria) this; - } - - public Criteria andSortBetween(Integer value1, Integer value2) { - addCriterion("sort between", value1, value2, "sort"); - return (Criteria) this; - } - - public Criteria andSortNotBetween(Integer value1, Integer value2) { - addCriterion("sort not between", value1, value2, "sort"); - 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/load/mapper/LoadTestApiMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.java deleted file mode 100644 index 3e73f829f52e..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTestApi; -import io.metersphere.load.domain.LoadTestApiExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestApiMapper { - long countByExample(LoadTestApiExample example); - - int deleteByExample(LoadTestApiExample example); - - int deleteByPrimaryKey(String id); - - int insert(LoadTestApi record); - - int insertSelective(LoadTestApi record); - - List selectByExample(LoadTestApiExample example); - - LoadTestApi selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") LoadTestApi record, @Param("example") LoadTestApiExample example); - - int updateByExample(@Param("record") LoadTestApi record, @Param("example") LoadTestApiExample example); - - int updateByPrimaryKeySelective(LoadTestApi record); - - int updateByPrimaryKey(LoadTestApi record); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.xml deleted file mode 100644 index fb7a8ba04d31..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestApiMapper.xml +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - - - - - - - - - - - - - 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, api_id, load_test_id, env_id, `type`, api_version - - - - - delete from load_test_api - where id = #{id,jdbcType=VARCHAR} - - - delete from load_test_api - - - - - - insert into load_test_api (id, api_id, load_test_id, - env_id, `type`, api_version - ) - values (#{id,jdbcType=VARCHAR}, #{apiId,jdbcType=VARCHAR}, #{loadTestId,jdbcType=VARCHAR}, - #{envId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{apiVersion,jdbcType=INTEGER} - ) - - - insert into load_test_api - - - id, - - - api_id, - - - load_test_id, - - - env_id, - - - `type`, - - - api_version, - - - - - #{id,jdbcType=VARCHAR}, - - - #{apiId,jdbcType=VARCHAR}, - - - #{loadTestId,jdbcType=VARCHAR}, - - - #{envId,jdbcType=VARCHAR}, - - - #{type,jdbcType=VARCHAR}, - - - #{apiVersion,jdbcType=INTEGER}, - - - - - - update load_test_api - - - id = #{record.id,jdbcType=VARCHAR}, - - - api_id = #{record.apiId,jdbcType=VARCHAR}, - - - load_test_id = #{record.loadTestId,jdbcType=VARCHAR}, - - - env_id = #{record.envId,jdbcType=VARCHAR}, - - - `type` = #{record.type,jdbcType=VARCHAR}, - - - api_version = #{record.apiVersion,jdbcType=INTEGER}, - - - - - - - - update load_test_api - set id = #{record.id,jdbcType=VARCHAR}, - api_id = #{record.apiId,jdbcType=VARCHAR}, - load_test_id = #{record.loadTestId,jdbcType=VARCHAR}, - env_id = #{record.envId,jdbcType=VARCHAR}, - `type` = #{record.type,jdbcType=VARCHAR}, - api_version = #{record.apiVersion,jdbcType=INTEGER} - - - - - - update load_test_api - - - api_id = #{apiId,jdbcType=VARCHAR}, - - - load_test_id = #{loadTestId,jdbcType=VARCHAR}, - - - env_id = #{envId,jdbcType=VARCHAR}, - - - `type` = #{type,jdbcType=VARCHAR}, - - - api_version = #{apiVersion,jdbcType=INTEGER}, - - - where id = #{id,jdbcType=VARCHAR} - - - update load_test_api - set api_id = #{apiId,jdbcType=VARCHAR}, - load_test_id = #{loadTestId,jdbcType=VARCHAR}, - env_id = #{envId,jdbcType=VARCHAR}, - `type` = #{type,jdbcType=VARCHAR}, - api_version = #{apiVersion,jdbcType=INTEGER} - where id = #{id,jdbcType=VARCHAR} - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.java deleted file mode 100644 index d54eb73d8b99..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTestBlob; -import io.metersphere.load.domain.LoadTestBlobExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestBlobMapper { - long countByExample(LoadTestBlobExample example); - - int deleteByExample(LoadTestBlobExample example); - - int deleteByPrimaryKey(String id); - - int insert(LoadTestBlob record); - - int insertSelective(LoadTestBlob record); - - List selectByExampleWithBLOBs(LoadTestBlobExample example); - - List selectByExample(LoadTestBlobExample example); - - LoadTestBlob selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") LoadTestBlob record, @Param("example") LoadTestBlobExample example); - - int updateByExampleWithBLOBs(@Param("record") LoadTestBlob record, @Param("example") LoadTestBlobExample example); - - int updateByExample(@Param("record") LoadTestBlob record, @Param("example") LoadTestBlobExample example); - - int updateByPrimaryKeySelective(LoadTestBlob record); - - int updateByPrimaryKeyWithBLOBs(LoadTestBlob record); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.xml deleted file mode 100644 index b3daccfcfecf..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestBlobMapper.xml +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - - - - - - - - - - - - - - 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 - - - load_configuration, advanced_configuration, env_info - - - - - - delete from load_test_blob - where id = #{id,jdbcType=VARCHAR} - - - delete from load_test_blob - - - - - - insert into load_test_blob (id, load_configuration, advanced_configuration, - env_info) - values (#{id,jdbcType=VARCHAR}, #{loadConfiguration,jdbcType=LONGVARBINARY}, #{advancedConfiguration,jdbcType=LONGVARBINARY}, - #{envInfo,jdbcType=LONGVARBINARY}) - - - insert into load_test_blob - - - id, - - - load_configuration, - - - advanced_configuration, - - - env_info, - - - - - #{id,jdbcType=VARCHAR}, - - - #{loadConfiguration,jdbcType=LONGVARBINARY}, - - - #{advancedConfiguration,jdbcType=LONGVARBINARY}, - - - #{envInfo,jdbcType=LONGVARBINARY}, - - - - - - update load_test_blob - - - id = #{record.id,jdbcType=VARCHAR}, - - - load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY}, - - - advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY}, - - - env_info = #{record.envInfo,jdbcType=LONGVARBINARY}, - - - - - - - - update load_test_blob - set id = #{record.id,jdbcType=VARCHAR}, - load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY}, - advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY}, - env_info = #{record.envInfo,jdbcType=LONGVARBINARY} - - - - - - update load_test_blob - set id = #{record.id,jdbcType=VARCHAR} - - - - - - update load_test_blob - - - load_configuration = #{loadConfiguration,jdbcType=LONGVARBINARY}, - - - advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY}, - - - env_info = #{envInfo,jdbcType=LONGVARBINARY}, - - - where id = #{id,jdbcType=VARCHAR} - - - update load_test_blob - set load_configuration = #{loadConfiguration,jdbcType=LONGVARBINARY}, - advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY}, - env_info = #{envInfo,jdbcType=LONGVARBINARY} - where id = #{id,jdbcType=VARCHAR} - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.java deleted file mode 100644 index 5e3f60097f38..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTestFile; -import io.metersphere.load.domain.LoadTestFileExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestFileMapper { - long countByExample(LoadTestFileExample example); - - int deleteByExample(LoadTestFileExample example); - - int insert(LoadTestFile record); - - int insertSelective(LoadTestFile record); - - List selectByExample(LoadTestFileExample example); - - int updateByExampleSelective(@Param("record") LoadTestFile record, @Param("example") LoadTestFileExample example); - - int updateByExample(@Param("record") LoadTestFile record, @Param("example") LoadTestFileExample example); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.xml deleted file mode 100644 index 5276a006f36d..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFileMapper.xml +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - - - - - - - - - - - - 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_id, file_id, sort - - - - delete from load_test_file - - - - - - insert into load_test_file (test_id, file_id, sort - ) - values (#{testId,jdbcType=VARCHAR}, #{fileId,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER} - ) - - - insert into load_test_file - - - test_id, - - - file_id, - - - sort, - - - - - #{testId,jdbcType=VARCHAR}, - - - #{fileId,jdbcType=VARCHAR}, - - - #{sort,jdbcType=INTEGER}, - - - - - - update load_test_file - - - test_id = #{record.testId,jdbcType=VARCHAR}, - - - file_id = #{record.fileId,jdbcType=VARCHAR}, - - - sort = #{record.sort,jdbcType=INTEGER}, - - - - - - - - update load_test_file - set test_id = #{record.testId,jdbcType=VARCHAR}, - file_id = #{record.fileId,jdbcType=VARCHAR}, - sort = #{record.sort,jdbcType=INTEGER} - - - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowerMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowerMapper.java deleted file mode 100644 index 90ca22c2a3cc..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowerMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTestFollower; -import io.metersphere.load.domain.LoadTestFollowerExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestFollowerMapper { - long countByExample(LoadTestFollowerExample example); - - int deleteByExample(LoadTestFollowerExample example); - - int insert(LoadTestFollower record); - - int insertSelective(LoadTestFollower record); - - List selectByExample(LoadTestFollowerExample example); - - int updateByExampleSelective(@Param("record") LoadTestFollower record, @Param("example") LoadTestFollowerExample example); - - int updateByExample(@Param("record") LoadTestFollower record, @Param("example") LoadTestFollowerExample example); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowerMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowerMapper.xml deleted file mode 100644 index bfe92e662198..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestFollowerMapper.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - - - - - - - - - - - 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_id, user_id - - - - delete from load_test_follower - - - - - - insert into load_test_follower (test_id, user_id) - values (#{testId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}) - - - insert into load_test_follower - - - test_id, - - - user_id, - - - - - #{testId,jdbcType=VARCHAR}, - - - #{userId,jdbcType=VARCHAR}, - - - - - - update load_test_follower - - - test_id = #{record.testId,jdbcType=VARCHAR}, - - - user_id = #{record.userId,jdbcType=VARCHAR}, - - - - - - - - update load_test_follower - set test_id = #{record.testId,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/load/mapper/LoadTestMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.java deleted file mode 100644 index 42e170be2df2..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTest; -import io.metersphere.load.domain.LoadTestExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestMapper { - long countByExample(LoadTestExample example); - - int deleteByExample(LoadTestExample example); - - int deleteByPrimaryKey(String id); - - int insert(LoadTest record); - - int insertSelective(LoadTest record); - - List selectByExample(LoadTestExample example); - - LoadTest selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") LoadTest record, @Param("example") LoadTestExample example); - - int updateByExample(@Param("record") LoadTest record, @Param("example") LoadTestExample example); - - int updateByPrimaryKeySelective(LoadTest record); - - int updateByPrimaryKey(LoadTest record); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.xml deleted file mode 100644 index 6d9133565691..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestMapper.xml +++ /dev/null @@ -1,353 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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, `name`, description, create_time, update_time, `status`, test_resource_pool_id, - num, create_user, pos, version_id, ref_id, latest - - - - - delete from load_test - where id = #{id,jdbcType=VARCHAR} - - - delete from load_test - - - - - - insert into load_test (id, project_id, `name`, - description, create_time, update_time, - `status`, test_resource_pool_id, num, - create_user, pos, version_id, - ref_id, latest) - values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{description,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT}, - #{status,jdbcType=VARCHAR}, #{testResourcePoolId,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, - #{createUser,jdbcType=VARCHAR}, #{pos,jdbcType=BIGINT}, #{versionId,jdbcType=VARCHAR}, - #{refId,jdbcType=VARCHAR}, #{latest,jdbcType=BIT}) - - - insert into load_test - - - id, - - - project_id, - - - `name`, - - - description, - - - create_time, - - - update_time, - - - `status`, - - - test_resource_pool_id, - - - num, - - - create_user, - - - pos, - - - version_id, - - - ref_id, - - - latest, - - - - - #{id,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{description,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=BIGINT}, - - - #{updateTime,jdbcType=BIGINT}, - - - #{status,jdbcType=VARCHAR}, - - - #{testResourcePoolId,jdbcType=VARCHAR}, - - - #{num,jdbcType=INTEGER}, - - - #{createUser,jdbcType=VARCHAR}, - - - #{pos,jdbcType=BIGINT}, - - - #{versionId,jdbcType=VARCHAR}, - - - #{refId,jdbcType=VARCHAR}, - - - #{latest,jdbcType=BIT}, - - - - - - update load_test - - - id = #{record.id,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - description = #{record.description,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - update_time = #{record.updateTime,jdbcType=BIGINT}, - - - `status` = #{record.status,jdbcType=VARCHAR}, - - - test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR}, - - - num = #{record.num,jdbcType=INTEGER}, - - - create_user = #{record.createUser,jdbcType=VARCHAR}, - - - pos = #{record.pos,jdbcType=BIGINT}, - - - version_id = #{record.versionId,jdbcType=VARCHAR}, - - - ref_id = #{record.refId,jdbcType=VARCHAR}, - - - latest = #{record.latest,jdbcType=BIT}, - - - - - - - - update load_test - set id = #{record.id,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR}, - `name` = #{record.name,jdbcType=VARCHAR}, - description = #{record.description,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT}, - update_time = #{record.updateTime,jdbcType=BIGINT}, - `status` = #{record.status,jdbcType=VARCHAR}, - test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR}, - num = #{record.num,jdbcType=INTEGER}, - create_user = #{record.createUser,jdbcType=VARCHAR}, - pos = #{record.pos,jdbcType=BIGINT}, - version_id = #{record.versionId,jdbcType=VARCHAR}, - ref_id = #{record.refId,jdbcType=VARCHAR}, - latest = #{record.latest,jdbcType=BIT} - - - - - - update load_test - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - description = #{description,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - update_time = #{updateTime,jdbcType=BIGINT}, - - - `status` = #{status,jdbcType=VARCHAR}, - - - test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR}, - - - num = #{num,jdbcType=INTEGER}, - - - create_user = #{createUser,jdbcType=VARCHAR}, - - - pos = #{pos,jdbcType=BIGINT}, - - - version_id = #{versionId,jdbcType=VARCHAR}, - - - ref_id = #{refId,jdbcType=VARCHAR}, - - - latest = #{latest,jdbcType=BIT}, - - - where id = #{id,jdbcType=VARCHAR} - - - update load_test - set project_id = #{projectId,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - description = #{description,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, - update_time = #{updateTime,jdbcType=BIGINT}, - `status` = #{status,jdbcType=VARCHAR}, - test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR}, - num = #{num,jdbcType=INTEGER}, - create_user = #{createUser,jdbcType=VARCHAR}, - pos = #{pos,jdbcType=BIGINT}, - version_id = #{versionId,jdbcType=VARCHAR}, - ref_id = #{refId,jdbcType=VARCHAR}, - latest = #{latest,jdbcType=BIT} - where id = #{id,jdbcType=VARCHAR} - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.java deleted file mode 100644 index f0ac0fac9acb..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTestReportBlob; -import io.metersphere.load.domain.LoadTestReportBlobExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestReportBlobMapper { - long countByExample(LoadTestReportBlobExample example); - - int deleteByExample(LoadTestReportBlobExample example); - - int deleteByPrimaryKey(String id); - - int insert(LoadTestReportBlob record); - - int insertSelective(LoadTestReportBlob record); - - List selectByExampleWithBLOBs(LoadTestReportBlobExample example); - - List selectByExample(LoadTestReportBlobExample example); - - LoadTestReportBlob selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") LoadTestReportBlob record, @Param("example") LoadTestReportBlobExample example); - - int updateByExampleWithBLOBs(@Param("record") LoadTestReportBlob record, @Param("example") LoadTestReportBlobExample example); - - int updateByExample(@Param("record") LoadTestReportBlob record, @Param("example") LoadTestReportBlobExample example); - - int updateByPrimaryKeySelective(LoadTestReportBlob record); - - int updateByPrimaryKeyWithBLOBs(LoadTestReportBlob record); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.xml deleted file mode 100644 index e1ffa5722c60..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportBlobMapper.xml +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - 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 - - - load_configuration, jmx_content, advanced_configuration, env_info - - - - - - delete from load_test_report_blob - where id = #{id,jdbcType=VARCHAR} - - - delete from load_test_report_blob - - - - - - insert into load_test_report_blob (id, load_configuration, jmx_content, - advanced_configuration, env_info - ) - values (#{id,jdbcType=VARCHAR}, #{loadConfiguration,jdbcType=LONGVARBINARY}, #{jmxContent,jdbcType=LONGVARBINARY}, - #{advancedConfiguration,jdbcType=LONGVARBINARY}, #{envInfo,jdbcType=LONGVARBINARY} - ) - - - insert into load_test_report_blob - - - id, - - - load_configuration, - - - jmx_content, - - - advanced_configuration, - - - env_info, - - - - - #{id,jdbcType=VARCHAR}, - - - #{loadConfiguration,jdbcType=LONGVARBINARY}, - - - #{jmxContent,jdbcType=LONGVARBINARY}, - - - #{advancedConfiguration,jdbcType=LONGVARBINARY}, - - - #{envInfo,jdbcType=LONGVARBINARY}, - - - - - - update load_test_report_blob - - - id = #{record.id,jdbcType=VARCHAR}, - - - load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY}, - - - jmx_content = #{record.jmxContent,jdbcType=LONGVARBINARY}, - - - advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY}, - - - env_info = #{record.envInfo,jdbcType=LONGVARBINARY}, - - - - - - - - update load_test_report_blob - set id = #{record.id,jdbcType=VARCHAR}, - load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY}, - jmx_content = #{record.jmxContent,jdbcType=LONGVARBINARY}, - advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY}, - env_info = #{record.envInfo,jdbcType=LONGVARBINARY} - - - - - - update load_test_report_blob - set id = #{record.id,jdbcType=VARCHAR} - - - - - - update load_test_report_blob - - - load_configuration = #{loadConfiguration,jdbcType=LONGVARBINARY}, - - - jmx_content = #{jmxContent,jdbcType=LONGVARBINARY}, - - - advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY}, - - - env_info = #{envInfo,jdbcType=LONGVARBINARY}, - - - where id = #{id,jdbcType=VARCHAR} - - - update load_test_report_blob - set load_configuration = #{loadConfiguration,jdbcType=LONGVARBINARY}, - jmx_content = #{jmxContent,jdbcType=LONGVARBINARY}, - advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY}, - env_info = #{envInfo,jdbcType=LONGVARBINARY} - where id = #{id,jdbcType=VARCHAR} - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.java deleted file mode 100644 index 6c823b54aafb..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTestReportFile; -import io.metersphere.load.domain.LoadTestReportFileExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestReportFileMapper { - long countByExample(LoadTestReportFileExample example); - - int deleteByExample(LoadTestReportFileExample example); - - int insert(LoadTestReportFile record); - - int insertSelective(LoadTestReportFile record); - - List selectByExample(LoadTestReportFileExample example); - - int updateByExampleSelective(@Param("record") LoadTestReportFile record, @Param("example") LoadTestReportFileExample example); - - int updateByExample(@Param("record") LoadTestReportFile record, @Param("example") LoadTestReportFileExample example); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.xml deleted file mode 100644 index e384d624ea70..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportFileMapper.xml +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - - - - - - - - - - - - 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} - - - - - - - - - - - report_id, file_id, sort - - - - delete from load_test_report_file - - - - - - insert into load_test_report_file (report_id, file_id, sort - ) - values (#{reportId,jdbcType=VARCHAR}, #{fileId,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER} - ) - - - insert into load_test_report_file - - - report_id, - - - file_id, - - - sort, - - - - - #{reportId,jdbcType=VARCHAR}, - - - #{fileId,jdbcType=VARCHAR}, - - - #{sort,jdbcType=INTEGER}, - - - - - - update load_test_report_file - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - file_id = #{record.fileId,jdbcType=VARCHAR}, - - - sort = #{record.sort,jdbcType=INTEGER}, - - - - - - - - update load_test_report_file - set report_id = #{record.reportId,jdbcType=VARCHAR}, - file_id = #{record.fileId,jdbcType=VARCHAR}, - sort = #{record.sort,jdbcType=INTEGER} - - - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.java deleted file mode 100644 index 6ef383adf1a3..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTestReportLog; -import io.metersphere.load.domain.LoadTestReportLogExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestReportLogMapper { - long countByExample(LoadTestReportLogExample example); - - int deleteByExample(LoadTestReportLogExample example); - - int deleteByPrimaryKey(String id); - - int insert(LoadTestReportLog record); - - int insertSelective(LoadTestReportLog record); - - List selectByExampleWithBLOBs(LoadTestReportLogExample example); - - List selectByExample(LoadTestReportLogExample example); - - LoadTestReportLog selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") LoadTestReportLog record, @Param("example") LoadTestReportLogExample example); - - int updateByExampleWithBLOBs(@Param("record") LoadTestReportLog record, @Param("example") LoadTestReportLogExample example); - - int updateByExample(@Param("record") LoadTestReportLog record, @Param("example") LoadTestReportLogExample example); - - int updateByPrimaryKeySelective(LoadTestReportLog record); - - int updateByPrimaryKeyWithBLOBs(LoadTestReportLog record); - - int updateByPrimaryKey(LoadTestReportLog record); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.xml deleted file mode 100644 index cbb280a40c27..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportLogMapper.xml +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - 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, report_id, resource_id, `part` - - - content - - - - - - delete from load_test_report_log - where id = #{id,jdbcType=VARCHAR} - - - delete from load_test_report_log - - - - - - insert into load_test_report_log (id, report_id, resource_id, - `part`, content) - values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR}, - #{part,jdbcType=BIGINT}, #{content,jdbcType=LONGVARBINARY}) - - - insert into load_test_report_log - - - id, - - - report_id, - - - resource_id, - - - `part`, - - - content, - - - - - #{id,jdbcType=VARCHAR}, - - - #{reportId,jdbcType=VARCHAR}, - - - #{resourceId,jdbcType=VARCHAR}, - - - #{part,jdbcType=BIGINT}, - - - #{content,jdbcType=LONGVARBINARY}, - - - - - - update load_test_report_log - - - id = #{record.id,jdbcType=VARCHAR}, - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - resource_id = #{record.resourceId,jdbcType=VARCHAR}, - - - `part` = #{record.part,jdbcType=BIGINT}, - - - content = #{record.content,jdbcType=LONGVARBINARY}, - - - - - - - - update load_test_report_log - set id = #{record.id,jdbcType=VARCHAR}, - report_id = #{record.reportId,jdbcType=VARCHAR}, - resource_id = #{record.resourceId,jdbcType=VARCHAR}, - `part` = #{record.part,jdbcType=BIGINT}, - content = #{record.content,jdbcType=LONGVARBINARY} - - - - - - update load_test_report_log - set id = #{record.id,jdbcType=VARCHAR}, - report_id = #{record.reportId,jdbcType=VARCHAR}, - resource_id = #{record.resourceId,jdbcType=VARCHAR}, - `part` = #{record.part,jdbcType=BIGINT} - - - - - - update load_test_report_log - - - report_id = #{reportId,jdbcType=VARCHAR}, - - - resource_id = #{resourceId,jdbcType=VARCHAR}, - - - `part` = #{part,jdbcType=BIGINT}, - - - content = #{content,jdbcType=LONGVARBINARY}, - - - where id = #{id,jdbcType=VARCHAR} - - - update load_test_report_log - set report_id = #{reportId,jdbcType=VARCHAR}, - resource_id = #{resourceId,jdbcType=VARCHAR}, - `part` = #{part,jdbcType=BIGINT}, - content = #{content,jdbcType=LONGVARBINARY} - where id = #{id,jdbcType=VARCHAR} - - - update load_test_report_log - set report_id = #{reportId,jdbcType=VARCHAR}, - resource_id = #{resourceId,jdbcType=VARCHAR}, - `part` = #{part,jdbcType=BIGINT} - where id = #{id,jdbcType=VARCHAR} - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.java deleted file mode 100644 index c74d5624e740..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTestReport; -import io.metersphere.load.domain.LoadTestReportExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestReportMapper { - long countByExample(LoadTestReportExample example); - - int deleteByExample(LoadTestReportExample example); - - int deleteByPrimaryKey(String id); - - int insert(LoadTestReport record); - - int insertSelective(LoadTestReport record); - - List selectByExample(LoadTestReportExample example); - - LoadTestReport selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") LoadTestReport record, @Param("example") LoadTestReportExample example); - - int updateByExample(@Param("record") LoadTestReport record, @Param("example") LoadTestReportExample example); - - int updateByPrimaryKeySelective(LoadTestReport record); - - int updateByPrimaryKey(LoadTestReport record); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.xml deleted file mode 100644 index 68c8de5a4c86..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportMapper.xml +++ /dev/null @@ -1,448 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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_id, `name`, description, create_time, update_time, `status`, create_user, - trigger_mode, max_users, avg_response_time, tps, project_id, test_name, test_resource_pool_id, - test_start_time, test_end_time, test_duration, version_id, relevance_test_plan_report_id - - - - - delete from load_test_report - where id = #{id,jdbcType=VARCHAR} - - - delete from load_test_report - - - - - - insert into load_test_report (id, test_id, `name`, - description, create_time, update_time, - `status`, create_user, trigger_mode, - max_users, avg_response_time, tps, - project_id, test_name, test_resource_pool_id, - test_start_time, test_end_time, test_duration, - version_id, relevance_test_plan_report_id) - values (#{id,jdbcType=VARCHAR}, #{testId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{description,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT}, - #{status,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{triggerMode,jdbcType=VARCHAR}, - #{maxUsers,jdbcType=VARCHAR}, #{avgResponseTime,jdbcType=VARCHAR}, #{tps,jdbcType=VARCHAR}, - #{projectId,jdbcType=VARCHAR}, #{testName,jdbcType=VARCHAR}, #{testResourcePoolId,jdbcType=VARCHAR}, - #{testStartTime,jdbcType=BIGINT}, #{testEndTime,jdbcType=BIGINT}, #{testDuration,jdbcType=BIGINT}, - #{versionId,jdbcType=VARCHAR}, #{relevanceTestPlanReportId,jdbcType=VARCHAR}) - - - insert into load_test_report - - - id, - - - test_id, - - - `name`, - - - description, - - - create_time, - - - update_time, - - - `status`, - - - create_user, - - - trigger_mode, - - - max_users, - - - avg_response_time, - - - tps, - - - project_id, - - - test_name, - - - test_resource_pool_id, - - - test_start_time, - - - test_end_time, - - - test_duration, - - - version_id, - - - relevance_test_plan_report_id, - - - - - #{id,jdbcType=VARCHAR}, - - - #{testId,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{description,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=BIGINT}, - - - #{updateTime,jdbcType=BIGINT}, - - - #{status,jdbcType=VARCHAR}, - - - #{createUser,jdbcType=VARCHAR}, - - - #{triggerMode,jdbcType=VARCHAR}, - - - #{maxUsers,jdbcType=VARCHAR}, - - - #{avgResponseTime,jdbcType=VARCHAR}, - - - #{tps,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - #{testName,jdbcType=VARCHAR}, - - - #{testResourcePoolId,jdbcType=VARCHAR}, - - - #{testStartTime,jdbcType=BIGINT}, - - - #{testEndTime,jdbcType=BIGINT}, - - - #{testDuration,jdbcType=BIGINT}, - - - #{versionId,jdbcType=VARCHAR}, - - - #{relevanceTestPlanReportId,jdbcType=VARCHAR}, - - - - - - update load_test_report - - - id = #{record.id,jdbcType=VARCHAR}, - - - test_id = #{record.testId,jdbcType=VARCHAR}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - description = #{record.description,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - update_time = #{record.updateTime,jdbcType=BIGINT}, - - - `status` = #{record.status,jdbcType=VARCHAR}, - - - create_user = #{record.createUser,jdbcType=VARCHAR}, - - - trigger_mode = #{record.triggerMode,jdbcType=VARCHAR}, - - - max_users = #{record.maxUsers,jdbcType=VARCHAR}, - - - avg_response_time = #{record.avgResponseTime,jdbcType=VARCHAR}, - - - tps = #{record.tps,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - test_name = #{record.testName,jdbcType=VARCHAR}, - - - test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR}, - - - test_start_time = #{record.testStartTime,jdbcType=BIGINT}, - - - test_end_time = #{record.testEndTime,jdbcType=BIGINT}, - - - test_duration = #{record.testDuration,jdbcType=BIGINT}, - - - version_id = #{record.versionId,jdbcType=VARCHAR}, - - - relevance_test_plan_report_id = #{record.relevanceTestPlanReportId,jdbcType=VARCHAR}, - - - - - - - - update load_test_report - set id = #{record.id,jdbcType=VARCHAR}, - test_id = #{record.testId,jdbcType=VARCHAR}, - `name` = #{record.name,jdbcType=VARCHAR}, - description = #{record.description,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT}, - update_time = #{record.updateTime,jdbcType=BIGINT}, - `status` = #{record.status,jdbcType=VARCHAR}, - create_user = #{record.createUser,jdbcType=VARCHAR}, - trigger_mode = #{record.triggerMode,jdbcType=VARCHAR}, - max_users = #{record.maxUsers,jdbcType=VARCHAR}, - avg_response_time = #{record.avgResponseTime,jdbcType=VARCHAR}, - tps = #{record.tps,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR}, - test_name = #{record.testName,jdbcType=VARCHAR}, - test_resource_pool_id = #{record.testResourcePoolId,jdbcType=VARCHAR}, - test_start_time = #{record.testStartTime,jdbcType=BIGINT}, - test_end_time = #{record.testEndTime,jdbcType=BIGINT}, - test_duration = #{record.testDuration,jdbcType=BIGINT}, - version_id = #{record.versionId,jdbcType=VARCHAR}, - relevance_test_plan_report_id = #{record.relevanceTestPlanReportId,jdbcType=VARCHAR} - - - - - - update load_test_report - - - test_id = #{testId,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - description = #{description,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - update_time = #{updateTime,jdbcType=BIGINT}, - - - `status` = #{status,jdbcType=VARCHAR}, - - - create_user = #{createUser,jdbcType=VARCHAR}, - - - trigger_mode = #{triggerMode,jdbcType=VARCHAR}, - - - max_users = #{maxUsers,jdbcType=VARCHAR}, - - - avg_response_time = #{avgResponseTime,jdbcType=VARCHAR}, - - - tps = #{tps,jdbcType=VARCHAR}, - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - test_name = #{testName,jdbcType=VARCHAR}, - - - test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR}, - - - test_start_time = #{testStartTime,jdbcType=BIGINT}, - - - test_end_time = #{testEndTime,jdbcType=BIGINT}, - - - test_duration = #{testDuration,jdbcType=BIGINT}, - - - version_id = #{versionId,jdbcType=VARCHAR}, - - - relevance_test_plan_report_id = #{relevanceTestPlanReportId,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=VARCHAR} - - - update load_test_report - set test_id = #{testId,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - description = #{description,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, - update_time = #{updateTime,jdbcType=BIGINT}, - `status` = #{status,jdbcType=VARCHAR}, - create_user = #{createUser,jdbcType=VARCHAR}, - trigger_mode = #{triggerMode,jdbcType=VARCHAR}, - max_users = #{maxUsers,jdbcType=VARCHAR}, - avg_response_time = #{avgResponseTime,jdbcType=VARCHAR}, - tps = #{tps,jdbcType=VARCHAR}, - project_id = #{projectId,jdbcType=VARCHAR}, - test_name = #{testName,jdbcType=VARCHAR}, - test_resource_pool_id = #{testResourcePoolId,jdbcType=VARCHAR}, - test_start_time = #{testStartTime,jdbcType=BIGINT}, - test_end_time = #{testEndTime,jdbcType=BIGINT}, - test_duration = #{testDuration,jdbcType=BIGINT}, - version_id = #{versionId,jdbcType=VARCHAR}, - relevance_test_plan_report_id = #{relevanceTestPlanReportId,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.java deleted file mode 100644 index 1feaf09ec400..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTestReportResult; -import io.metersphere.load.domain.LoadTestReportResultExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestReportResultMapper { - long countByExample(LoadTestReportResultExample example); - - int deleteByExample(LoadTestReportResultExample example); - - int deleteByPrimaryKey(String id); - - int insert(LoadTestReportResult record); - - int insertSelective(LoadTestReportResult record); - - List selectByExampleWithBLOBs(LoadTestReportResultExample example); - - List selectByExample(LoadTestReportResultExample example); - - LoadTestReportResult selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") LoadTestReportResult record, @Param("example") LoadTestReportResultExample example); - - int updateByExampleWithBLOBs(@Param("record") LoadTestReportResult record, @Param("example") LoadTestReportResultExample example); - - int updateByExample(@Param("record") LoadTestReportResult record, @Param("example") LoadTestReportResultExample example); - - int updateByPrimaryKeySelective(LoadTestReportResult record); - - int updateByPrimaryKeyWithBLOBs(LoadTestReportResult record); - - int updateByPrimaryKey(LoadTestReportResult record); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.xml deleted file mode 100644 index f82778fd6fee..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultMapper.xml +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - - - - - - - - - - - - - - - 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, report_id, report_key - - - report_value - - - - - - delete from load_test_report_result - where id = #{id,jdbcType=VARCHAR} - - - delete from load_test_report_result - - - - - - insert into load_test_report_result (id, report_id, report_key, - report_value) - values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{reportKey,jdbcType=VARCHAR}, - #{reportValue,jdbcType=LONGVARBINARY}) - - - insert into load_test_report_result - - - id, - - - report_id, - - - report_key, - - - report_value, - - - - - #{id,jdbcType=VARCHAR}, - - - #{reportId,jdbcType=VARCHAR}, - - - #{reportKey,jdbcType=VARCHAR}, - - - #{reportValue,jdbcType=LONGVARBINARY}, - - - - - - update load_test_report_result - - - id = #{record.id,jdbcType=VARCHAR}, - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - report_key = #{record.reportKey,jdbcType=VARCHAR}, - - - report_value = #{record.reportValue,jdbcType=LONGVARBINARY}, - - - - - - - - update load_test_report_result - set id = #{record.id,jdbcType=VARCHAR}, - report_id = #{record.reportId,jdbcType=VARCHAR}, - report_key = #{record.reportKey,jdbcType=VARCHAR}, - report_value = #{record.reportValue,jdbcType=LONGVARBINARY} - - - - - - update load_test_report_result - set id = #{record.id,jdbcType=VARCHAR}, - report_id = #{record.reportId,jdbcType=VARCHAR}, - report_key = #{record.reportKey,jdbcType=VARCHAR} - - - - - - update load_test_report_result - - - report_id = #{reportId,jdbcType=VARCHAR}, - - - report_key = #{reportKey,jdbcType=VARCHAR}, - - - report_value = #{reportValue,jdbcType=LONGVARBINARY}, - - - where id = #{id,jdbcType=VARCHAR} - - - update load_test_report_result - set report_id = #{reportId,jdbcType=VARCHAR}, - report_key = #{reportKey,jdbcType=VARCHAR}, - report_value = #{reportValue,jdbcType=LONGVARBINARY} - where id = #{id,jdbcType=VARCHAR} - - - update load_test_report_result - set report_id = #{reportId,jdbcType=VARCHAR}, - report_key = #{reportKey,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.java deleted file mode 100644 index 0b1002d926e8..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTestReportResultPart; -import io.metersphere.load.domain.LoadTestReportResultPartExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestReportResultPartMapper { - long countByExample(LoadTestReportResultPartExample example); - - int deleteByExample(LoadTestReportResultPartExample example); - - int deleteByPrimaryKey(@Param("reportId") String reportId, @Param("reportKey") String reportKey, @Param("resourceIndex") Integer resourceIndex); - - int insert(LoadTestReportResultPart record); - - int insertSelective(LoadTestReportResultPart record); - - List selectByExampleWithBLOBs(LoadTestReportResultPartExample example); - - List selectByExample(LoadTestReportResultPartExample example); - - LoadTestReportResultPart selectByPrimaryKey(@Param("reportId") String reportId, @Param("reportKey") String reportKey, @Param("resourceIndex") Integer resourceIndex); - - int updateByExampleSelective(@Param("record") LoadTestReportResultPart record, @Param("example") LoadTestReportResultPartExample example); - - int updateByExampleWithBLOBs(@Param("record") LoadTestReportResultPart record, @Param("example") LoadTestReportResultPartExample example); - - int updateByExample(@Param("record") LoadTestReportResultPart record, @Param("example") LoadTestReportResultPartExample example); - - int updateByPrimaryKeySelective(LoadTestReportResultPart record); - - int updateByPrimaryKeyWithBLOBs(LoadTestReportResultPart record); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.xml deleted file mode 100644 index 5e9afef764c7..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultPartMapper.xml +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - - - - - - - - - - - - - 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} - - - - - - - - - - - report_id, report_key, resource_index - - - report_value - - - - - - delete from load_test_report_result_part - where report_id = #{reportId,jdbcType=VARCHAR} - and report_key = #{reportKey,jdbcType=VARCHAR} - and resource_index = #{resourceIndex,jdbcType=INTEGER} - - - delete from load_test_report_result_part - - - - - - insert into load_test_report_result_part (report_id, report_key, resource_index, - report_value) - values (#{reportId,jdbcType=VARCHAR}, #{reportKey,jdbcType=VARCHAR}, #{resourceIndex,jdbcType=INTEGER}, - #{reportValue,jdbcType=LONGVARBINARY}) - - - insert into load_test_report_result_part - - - report_id, - - - report_key, - - - resource_index, - - - report_value, - - - - - #{reportId,jdbcType=VARCHAR}, - - - #{reportKey,jdbcType=VARCHAR}, - - - #{resourceIndex,jdbcType=INTEGER}, - - - #{reportValue,jdbcType=LONGVARBINARY}, - - - - - - update load_test_report_result_part - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - report_key = #{record.reportKey,jdbcType=VARCHAR}, - - - resource_index = #{record.resourceIndex,jdbcType=INTEGER}, - - - report_value = #{record.reportValue,jdbcType=LONGVARBINARY}, - - - - - - - - update load_test_report_result_part - set report_id = #{record.reportId,jdbcType=VARCHAR}, - report_key = #{record.reportKey,jdbcType=VARCHAR}, - resource_index = #{record.resourceIndex,jdbcType=INTEGER}, - report_value = #{record.reportValue,jdbcType=LONGVARBINARY} - - - - - - update load_test_report_result_part - set report_id = #{record.reportId,jdbcType=VARCHAR}, - report_key = #{record.reportKey,jdbcType=VARCHAR}, - resource_index = #{record.resourceIndex,jdbcType=INTEGER} - - - - - - update load_test_report_result_part - - - report_value = #{reportValue,jdbcType=LONGVARBINARY}, - - - where report_id = #{reportId,jdbcType=VARCHAR} - and report_key = #{reportKey,jdbcType=VARCHAR} - and resource_index = #{resourceIndex,jdbcType=INTEGER} - - - update load_test_report_result_part - set report_value = #{reportValue,jdbcType=LONGVARBINARY} - where report_id = #{reportId,jdbcType=VARCHAR} - and report_key = #{reportKey,jdbcType=VARCHAR} - and resource_index = #{resourceIndex,jdbcType=INTEGER} - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.java b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.java deleted file mode 100644 index c4ecb9747bb2..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.load.mapper; - -import io.metersphere.load.domain.LoadTestReportResultRealtime; -import io.metersphere.load.domain.LoadTestReportResultRealtimeExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface LoadTestReportResultRealtimeMapper { - long countByExample(LoadTestReportResultRealtimeExample example); - - int deleteByExample(LoadTestReportResultRealtimeExample example); - - int deleteByPrimaryKey(@Param("reportId") String reportId, @Param("reportKey") String reportKey, @Param("resourceIndex") Integer resourceIndex, @Param("sort") Integer sort); - - int insert(LoadTestReportResultRealtime record); - - int insertSelective(LoadTestReportResultRealtime record); - - List selectByExampleWithBLOBs(LoadTestReportResultRealtimeExample example); - - List selectByExample(LoadTestReportResultRealtimeExample example); - - LoadTestReportResultRealtime selectByPrimaryKey(@Param("reportId") String reportId, @Param("reportKey") String reportKey, @Param("resourceIndex") Integer resourceIndex, @Param("sort") Integer sort); - - int updateByExampleSelective(@Param("record") LoadTestReportResultRealtime record, @Param("example") LoadTestReportResultRealtimeExample example); - - int updateByExampleWithBLOBs(@Param("record") LoadTestReportResultRealtime record, @Param("example") LoadTestReportResultRealtimeExample example); - - int updateByExample(@Param("record") LoadTestReportResultRealtime record, @Param("example") LoadTestReportResultRealtimeExample example); - - int updateByPrimaryKeySelective(LoadTestReportResultRealtime record); - - int updateByPrimaryKeyWithBLOBs(LoadTestReportResultRealtime record); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.xml deleted file mode 100644 index c16ff55deba7..000000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/load/mapper/LoadTestReportResultRealtimeMapper.xml +++ /dev/null @@ -1,244 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - 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} - - - - - - - - - - - report_id, report_key, resource_index, sort - - - report_value - - - - - - delete from load_test_report_result_realtime - where report_id = #{reportId,jdbcType=VARCHAR} - and report_key = #{reportKey,jdbcType=VARCHAR} - and resource_index = #{resourceIndex,jdbcType=INTEGER} - and sort = #{sort,jdbcType=INTEGER} - - - delete from load_test_report_result_realtime - - - - - - insert into load_test_report_result_realtime (report_id, report_key, resource_index, - sort, report_value) - values (#{reportId,jdbcType=VARCHAR}, #{reportKey,jdbcType=VARCHAR}, #{resourceIndex,jdbcType=INTEGER}, - #{sort,jdbcType=INTEGER}, #{reportValue,jdbcType=LONGVARBINARY}) - - - insert into load_test_report_result_realtime - - - report_id, - - - report_key, - - - resource_index, - - - sort, - - - report_value, - - - - - #{reportId,jdbcType=VARCHAR}, - - - #{reportKey,jdbcType=VARCHAR}, - - - #{resourceIndex,jdbcType=INTEGER}, - - - #{sort,jdbcType=INTEGER}, - - - #{reportValue,jdbcType=LONGVARBINARY}, - - - - - - update load_test_report_result_realtime - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - report_key = #{record.reportKey,jdbcType=VARCHAR}, - - - resource_index = #{record.resourceIndex,jdbcType=INTEGER}, - - - sort = #{record.sort,jdbcType=INTEGER}, - - - report_value = #{record.reportValue,jdbcType=LONGVARBINARY}, - - - - - - - - update load_test_report_result_realtime - set report_id = #{record.reportId,jdbcType=VARCHAR}, - report_key = #{record.reportKey,jdbcType=VARCHAR}, - resource_index = #{record.resourceIndex,jdbcType=INTEGER}, - sort = #{record.sort,jdbcType=INTEGER}, - report_value = #{record.reportValue,jdbcType=LONGVARBINARY} - - - - - - update load_test_report_result_realtime - set report_id = #{record.reportId,jdbcType=VARCHAR}, - report_key = #{record.reportKey,jdbcType=VARCHAR}, - resource_index = #{record.resourceIndex,jdbcType=INTEGER}, - sort = #{record.sort,jdbcType=INTEGER} - - - - - - update load_test_report_result_realtime - - - report_value = #{reportValue,jdbcType=LONGVARBINARY}, - - - where report_id = #{reportId,jdbcType=VARCHAR} - and report_key = #{reportKey,jdbcType=VARCHAR} - and resource_index = #{resourceIndex,jdbcType=INTEGER} - and sort = #{sort,jdbcType=INTEGER} - - - update load_test_report_result_realtime - set report_value = #{reportValue,jdbcType=LONGVARBINARY} - where report_id = #{reportId,jdbcType=VARCHAR} - and report_key = #{reportKey,jdbcType=VARCHAR} - and resource_index = #{resourceIndex,jdbcType=INTEGER} - and sort = #{sort,jdbcType=INTEGER} - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_8__ui_test.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_8__ui_test.sql deleted file mode 100644 index feef1f58bd51..000000000000 --- a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_8__ui_test.sql +++ /dev/null @@ -1,7 +0,0 @@ --- set innodb lock wait timeout -SET SESSION innodb_lock_wait_timeout = 7200; - - --- set innodb lock wait timeout to default -SET SESSION innodb_lock_wait_timeout = DEFAULT; - diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_9__load_test.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_9__load_test.sql deleted file mode 100644 index bda98b50e691..000000000000 --- a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_9__load_test.sql +++ /dev/null @@ -1,5 +0,0 @@ --- set innodb lock wait timeout -SET SESSION innodb_lock_wait_timeout = 7200; - --- set innodb lock wait timeout to default -SET SESSION innodb_lock_wait_timeout = DEFAULT; \ No newline at end of file diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/ApplicationScope.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/ApplicationScope.java index 61f3c92d566b..d5e1bdeef5aa 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/ApplicationScope.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/ApplicationScope.java @@ -2,7 +2,5 @@ public class ApplicationScope { public static final String API_TEST = "api_test"; - public static final String UI_TEST = "ui_test"; - public static final String LOAD_TEST = "load_test"; } diff --git a/backend/services/load-test/pom.xml b/backend/services/load-test/pom.xml deleted file mode 100644 index 8881e5fbba2e..000000000000 --- a/backend/services/load-test/pom.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - 4.0.0 - - io.metersphere - services - ${revision} - - metersphere-load-test - ${revision} - load-test - - - - - io.metersphere - metersphere-sdk - ${revision} - - - io.metersphere - metersphere-system-setting - ${revision} - - - io.metersphere - metersphere-project-management - ${revision} - - - - - - - - org.mybatis.generator - mybatis-generator-maven-plugin - 1.3.7 - - true - true - src/main/resources/loadGeneratorConfig.xml - - - - com.mysql - mysql-connector-j - ${mysql-connector-java.version} - - - com.itfsw - mybatis-generator-plugin - 1.3.10 - - - io.metersphere - mybatis-tools - 3.0.0 - - - - - - diff --git a/backend/services/load-test/src/main/java/io/metersphere/load/service/LoadTestService.java b/backend/services/load-test/src/main/java/io/metersphere/load/service/LoadTestService.java deleted file mode 100644 index 052b570bef30..000000000000 --- a/backend/services/load-test/src/main/java/io/metersphere/load/service/LoadTestService.java +++ /dev/null @@ -1,5 +0,0 @@ -package io.metersphere.load.service; - -public interface LoadTestService { - String run(); -} diff --git a/backend/services/load-test/src/main/resources/loadGeneratorConfig.xml b/backend/services/load-test/src/main/resources/loadGeneratorConfig.xml deleted file mode 100644 index 0ac27e1503a1..000000000000 --- a/backend/services/load-test/src/main/resources/loadGeneratorConfig.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - diff --git a/backend/services/pom.xml b/backend/services/pom.xml index 888271b4a6d7..bca82e8ed69f 100644 --- a/backend/services/pom.xml +++ b/backend/services/pom.xml @@ -17,7 +17,6 @@ api-testbug-managementcase-management - load-testproject-managementsystem-settingtest-plan diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/controller/ProjectApplicationController.java b/backend/services/project-management/src/main/java/io/metersphere/project/controller/ProjectApplicationController.java index 9396fc6c6683..2ce3a51c9211 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/controller/ProjectApplicationController.java +++ b/backend/services/project-management/src/main/java/io/metersphere/project/controller/ProjectApplicationController.java @@ -25,6 +25,7 @@ import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; @@ -88,7 +89,7 @@ public Map getUI(@Validated @RequestBody ProjectApplicationReque @Operation(summary = "UI测试-获取资源池列表") @RequiresPermissions(PermissionConstants.PROJECT_APPLICATION_UI_READ) public List getUiPoolOptions(@PathVariable String projectId) { - return projectService.getPoolOptions(projectId, ApplicationScope.UI_TEST); + return new ArrayList<>(); } diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/service/NoticeTemplateService.java b/backend/services/project-management/src/main/java/io/metersphere/project/service/NoticeTemplateService.java index 9af5ac6887e4..ddba734d6b05 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/service/NoticeTemplateService.java +++ b/backend/services/project-management/src/main/java/io/metersphere/project/service/NoticeTemplateService.java @@ -1,7 +1,6 @@ package io.metersphere.project.service; import io.metersphere.functional.domain.CaseReview; -import io.metersphere.load.domain.LoadTest; import io.metersphere.plan.domain.TestPlan; import io.metersphere.project.dto.MessageTemplateFieldDTO; import io.metersphere.project.dto.MessageTemplateResultDTO; @@ -86,11 +85,6 @@ public List getDomainTemplateFields(String projectId, S // 该方法提供了统一的内置通知模板字段; {操作人, 关注人, 触发方式} addOptionDto(messageTemplateFieldDTOList, allFields, null); } - case NoticeConstants.TaskType.LOAD_TEST_TASK -> { - Field[] allFields = FieldUtils.getAllFields(LoadTest.class); - addOptionDto(messageTemplateFieldDTOList, allFields, "load_"); - //TODO:获取报告 - } case NoticeConstants.TaskType.SCHEDULE_TASK -> { Field[] allFields = FieldUtils.getAllFields(Schedule.class); addOptionDto(messageTemplateFieldDTOList, allFields, "schedule_"); diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectService.java b/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectService.java index cfd2428eecd5..eebd0466a2c4 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectService.java +++ b/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectService.java @@ -186,14 +186,6 @@ public List getPoolOptions(String projectId, String type) { criteria.andApiTestEqualTo(true); yield testResourcePoolMapper.selectByExample(example); } - case ApplicationScope.UI_TEST -> { - criteria.andUiTestEqualTo(true); - yield testResourcePoolMapper.selectByExample(example); - } - case ApplicationScope.LOAD_TEST -> { - criteria.andLoadTestEqualTo(true); - yield testResourcePoolMapper.selectByExample(example); - } default -> new ArrayList<>(); }; return testResourcePools.stream().map(testResourcePool -> diff --git a/backend/services/project-management/src/test/java/io/metersphere/project/controller/NoticeTemplateControllerTests.java b/backend/services/project-management/src/test/java/io/metersphere/project/controller/NoticeTemplateControllerTests.java index f8fc0253c112..6568e130200a 100644 --- a/backend/services/project-management/src/test/java/io/metersphere/project/controller/NoticeTemplateControllerTests.java +++ b/backend/services/project-management/src/test/java/io/metersphere/project/controller/NoticeTemplateControllerTests.java @@ -3,12 +3,11 @@ import io.metersphere.project.dto.MessageTemplateFieldDTO; import io.metersphere.project.dto.MessageTemplateResultDTO; import io.metersphere.sdk.constants.SessionConstants; -import io.metersphere.system.dto.sdk.OptionDTO; import io.metersphere.sdk.util.JSON; import io.metersphere.system.base.BaseTest; import io.metersphere.system.controller.handler.ResultHolder; +import io.metersphere.system.dto.sdk.OptionDTO; import io.metersphere.system.notice.constants.NoticeConstants; -import org.apache.commons.collections.CollectionUtils; import org.junit.jupiter.api.*; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; @@ -47,11 +46,6 @@ public void getTemplateFieldsSuccess() throws Exception { ResultHolder resultHolder = JSON.parseObject(contentAsString, ResultHolder.class); MessageTemplateResultDTO messageTemplateResultDTO = JSON.parseObject(JSON.toJSONString(resultHolder.getData()), MessageTemplateResultDTO.class); List projectList = messageTemplateResultDTO.getFieldList(); - if (s.equals(NoticeConstants.TaskType.LOAD_REPORT_TASK)) { - Assertions.assertTrue(CollectionUtils.isEmpty(projectList)); - } else { - Assertions.assertTrue(CollectionUtils.isNotEmpty(projectList)); - } } } @@ -62,7 +56,6 @@ private static void getTypeList(List typeList) { typeList.add(NoticeConstants.TaskType.CASE_REVIEW_TASK); typeList.add(NoticeConstants.TaskType.FUNCTIONAL_CASE_TASK); typeList.add(NoticeConstants.TaskType.BUG_TASK); - typeList.add(NoticeConstants.TaskType.LOAD_TEST_TASK); typeList.add(NoticeConstants.TaskType.JENKINS_TASK); typeList.add(NoticeConstants.TaskType.SCHEDULE_TASK); } diff --git a/backend/services/project-management/src/test/java/io/metersphere/project/controller/ProjectControllerTests.java b/backend/services/project-management/src/test/java/io/metersphere/project/controller/ProjectControllerTests.java index 0b26f342b101..577a418834b4 100644 --- a/backend/services/project-management/src/test/java/io/metersphere/project/controller/ProjectControllerTests.java +++ b/backend/services/project-management/src/test/java/io/metersphere/project/controller/ProjectControllerTests.java @@ -400,14 +400,8 @@ public void testUpdateProjectError() throws Exception { @Order(9) public void testGetPoolOptions() throws Exception { MvcResult mvcResult = this.responseGet(getPoolOptions + ApplicationScope.API_TEST + "/" + DEFAULT_PROJECT_ID); - mvcResult = this.responseGet(getPoolOptions + ApplicationScope.UI_TEST + "/" + DEFAULT_PROJECT_ID); - mvcResult = this.responseGet(getPoolOptions + ApplicationScope.LOAD_TEST + "/" + DEFAULT_PROJECT_ID); mvcResult = this.responseGet(getPoolOptions + "test" + "/" + DEFAULT_PROJECT_ID); mvcResult = this.responseGet(getPoolOptions + ApplicationScope.API_TEST + "/" + "projectId"); - mvcResult = this.responseGet(getPoolOptions + ApplicationScope.UI_TEST + "/" + "projectId"); - mvcResult = this.responseGet(getPoolOptions + ApplicationScope.LOAD_TEST + "/" + "projectId"); - //项目不存在 - this.responseGet(getPoolOptions + ApplicationScope.LOAD_TEST + "/" + "projectId20", status().is5xxServerError()); //权限校验 requestGetPermissionTest(PermissionConstants.PROJECT_BASE_INFO_READ, getPoolOptions + "api_test" + "/" + DEFAULT_PROJECT_ID); diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/config/interceptor/LoadTestInterceptor.java b/backend/services/system-setting/src/main/java/io/metersphere/system/config/interceptor/LoadTestInterceptor.java deleted file mode 100644 index 07673b45bec5..000000000000 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/config/interceptor/LoadTestInterceptor.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.metersphere.system.config.interceptor; - -import io.metersphere.load.domain.*; -import io.metersphere.sdk.util.CompressUtils; -import io.metersphere.system.utils.MybatisInterceptorConfig; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -import java.util.ArrayList; -import java.util.List; - -@Configuration -public class LoadTestInterceptor { - @Bean - public List loadTestCompressConfigs() { - List configList = new ArrayList<>(); - - configList.add(new MybatisInterceptorConfig(LoadTestBlob.class, "loadConfiguration", CompressUtils.class, "zip", "unzip")); - configList.add(new MybatisInterceptorConfig(LoadTestBlob.class, "advancedConfiguration", CompressUtils.class, "zip", "unzip")); - configList.add(new MybatisInterceptorConfig(LoadTestBlob.class, "envInfo", CompressUtils.class, "zip", "unzip")); - - configList.add(new MybatisInterceptorConfig(LoadTestReportBlob.class, "loadConfiguration", CompressUtils.class, "zip", "unzip")); - configList.add(new MybatisInterceptorConfig(LoadTestReportBlob.class, "jmxContent", CompressUtils.class, "zip", "unzip")); - configList.add(new MybatisInterceptorConfig(LoadTestReportBlob.class, "advancedConfiguration", CompressUtils.class, "zip", "unzip")); - configList.add(new MybatisInterceptorConfig(LoadTestReportBlob.class, "envInfo", CompressUtils.class, "zip", "unzip")); - - configList.add(new MybatisInterceptorConfig(LoadTestReportLog.class, "content", CompressUtils.class, "zip", "unzip")); - - configList.add(new MybatisInterceptorConfig(LoadTestReportResult.class, "reportValue", CompressUtils.class, "zip", "unzip")); - - configList.add(new MybatisInterceptorConfig(LoadTestReportResultPart.class, "reportValue", CompressUtils.class, "zip", "unzip")); - - configList.add(new MybatisInterceptorConfig(LoadTestReportResultRealtime.class, "reportValue", CompressUtils.class, "zip", "unzip")); - - - return configList; - } -} diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/notice/constants/NoticeConstants.java b/backend/services/system-setting/src/main/java/io/metersphere/system/notice/constants/NoticeConstants.java index 72411aa6474c..42fd6780a6ff 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/notice/constants/NoticeConstants.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/notice/constants/NoticeConstants.java @@ -32,12 +32,6 @@ interface TaskType { @Schema(description = "message.report_task") String API_REPORT_TASK = "API_REPORT_TASK"; - //性能测试模块的任务 - @Schema(description = "message.load_test_task") - String LOAD_TEST_TASK = "LOAD_TEST_TASK"; - @Schema(description = "message.report_task") - String LOAD_REPORT_TASK = "LOAD_REPORT_TASK"; - //jenkins任务 @Schema(description = "message.jenkins_task") String JENKINS_TASK = "JENKINS_TASK"; diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/notice/sender/AbstractNoticeSender.java b/backend/services/system-setting/src/main/java/io/metersphere/system/notice/sender/AbstractNoticeSender.java index 43bd672419f4..92516f0da0e1 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/notice/sender/AbstractNoticeSender.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/notice/sender/AbstractNoticeSender.java @@ -13,11 +13,6 @@ import io.metersphere.functional.mapper.CaseReviewMapper; import io.metersphere.functional.mapper.FunctionalCaseFollowerMapper; import io.metersphere.functional.mapper.FunctionalCaseMapper; -import io.metersphere.load.domain.LoadTest; -import io.metersphere.load.domain.LoadTestFollower; -import io.metersphere.load.domain.LoadTestFollowerExample; -import io.metersphere.load.mapper.LoadTestFollowerMapper; -import io.metersphere.load.mapper.LoadTestMapper; import io.metersphere.plan.domain.TestPlan; import io.metersphere.plan.domain.TestPlanFollower; import io.metersphere.plan.domain.TestPlanFollowerExample; @@ -68,10 +63,6 @@ public abstract class AbstractNoticeSender implements NoticeSender { @Resource private ApiDefinitionMapper apiDefinitionMapper; @Resource - private LoadTestFollowerMapper loadTestFollowerMapper; - @Resource - private LoadTestMapper loadTestMapper; - @Resource private CaseReviewFollowerMapper caseReviewFollowerMapper; @Resource private CaseReviewMapper caseReviewMapper; @@ -213,12 +204,6 @@ private Receiver handleCreateUser(MessageDetail messageDetail, NoticeModel notic receiver = new Receiver(apiDefinition.getCreateUser(), NotificationConstants.Type.SYSTEM_NOTICE.name()); } } - case NoticeConstants.TaskType.LOAD_TEST_TASK -> { - LoadTest loadTest = loadTestMapper.selectByPrimaryKey(id); - if (loadTest != null) { - receiver = new Receiver(loadTest.getCreateUser(), NotificationConstants.Type.SYSTEM_NOTICE.name()); - } - } case NoticeConstants.TaskType.FUNCTIONAL_CASE_TASK -> { FunctionalCase functionalCase = functionalCaseMapper.selectByPrimaryKey(id); if (functionalCase != null) { @@ -297,15 +282,6 @@ private List handleFollows(MessageDetail messageDetail, NoticeModel no .map(t -> new Receiver(t.getUserId(), NotificationConstants.Type.SYSTEM_NOTICE.name())) .collect(Collectors.toList()); } - case NoticeConstants.TaskType.LOAD_TEST_TASK -> { - LoadTestFollowerExample loadTestFollowerExample = new LoadTestFollowerExample(); - loadTestFollowerExample.createCriteria().andTestIdEqualTo(id); - List loadTestFollowers = loadTestFollowerMapper.selectByExample(loadTestFollowerExample); - receivers = loadTestFollowers - .stream() - .map(t -> new Receiver(t.getUserId(), NotificationConstants.Type.SYSTEM_NOTICE.name())) - .collect(Collectors.toList()); - } case NoticeConstants.TaskType.FUNCTIONAL_CASE_TASK -> { FunctionalCaseFollowerExample functionalCaseFollowerExample = new FunctionalCaseFollowerExample(); functionalCaseFollowerExample.createCriteria().andCaseIdEqualTo(id); diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/notice/utils/MessageTemplateUtils.java b/backend/services/system-setting/src/main/java/io/metersphere/system/notice/utils/MessageTemplateUtils.java index aa93aa57a570..fbed97aee951 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/notice/utils/MessageTemplateUtils.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/notice/utils/MessageTemplateUtils.java @@ -1,7 +1,6 @@ package io.metersphere.system.notice.utils; import io.metersphere.functional.domain.CaseReview; -import io.metersphere.load.domain.LoadTest; import io.metersphere.plan.domain.TestPlan; import io.metersphere.sdk.constants.TemplateScene; import io.metersphere.sdk.util.CommonBeanFactory; @@ -149,7 +148,6 @@ public static Field[] getDomainTemplateFields(String taskType) { case NoticeConstants.TaskType.CASE_REVIEW_TASK -> FieldUtils.getAllFields(CaseReview.class); case NoticeConstants.TaskType.FUNCTIONAL_CASE_TASK -> FieldUtils.getAllFields(FunctionalCaseMessageDTO.class); case NoticeConstants.TaskType.BUG_TASK -> FieldUtils.getAllFields(BugMessageDTO.class); - case NoticeConstants.TaskType.LOAD_TEST_TASK -> FieldUtils.getAllFields(LoadTest.class); case NoticeConstants.TaskType.SCHEDULE_TASK -> FieldUtils.getAllFields(Schedule.class); default -> new Field[0]; }; @@ -247,7 +245,6 @@ private static void setMap(String taskType, Field[] domainTemplateFields, Map putDomainName(domainTemplateFields, map, "test_plan_"); case NoticeConstants.TaskType.CASE_REVIEW_TASK -> putDomainName(domainTemplateFields, map, "case_review_"); case NoticeConstants.TaskType.BUG_TASK -> putDomainName(domainTemplateFields, map, "bug_"); - case NoticeConstants.TaskType.LOAD_TEST_TASK -> putDomainName(domainTemplateFields, map, "load_"); case NoticeConstants.TaskType.SCHEDULE_TASK -> putDomainName(domainTemplateFields, map, "schedule_"); default -> {} } diff --git a/backend/services/system-setting/src/test/java/io/metersphere/system/controller/CommonNoticeSendServiceTests.java b/backend/services/system-setting/src/test/java/io/metersphere/system/controller/CommonNoticeSendServiceTests.java index 24216331b69b..444d2d16bfb2 100644 --- a/backend/services/system-setting/src/test/java/io/metersphere/system/controller/CommonNoticeSendServiceTests.java +++ b/backend/services/system-setting/src/test/java/io/metersphere/system/controller/CommonNoticeSendServiceTests.java @@ -11,7 +11,6 @@ import io.metersphere.functional.mapper.CaseReviewMapper; import io.metersphere.functional.mapper.FunctionalCaseCustomFieldMapper; import io.metersphere.functional.mapper.FunctionalCaseMapper; -import io.metersphere.load.domain.LoadTest; import io.metersphere.plan.domain.TestPlan; import io.metersphere.plan.mapper.TestPlanMapper; import io.metersphere.sdk.util.BeanUtils; @@ -278,58 +277,6 @@ public void CaseReviewTaskNoticeSuccess() { } - @Test - @Order(6) - public void LoadTestTaskTaskNoticeSuccess() { - String loadTestTask = NoticeConstants.TaskType.LOAD_TEST_TASK; - - ListeventList = new ArrayList<>(); - getTypeList(eventList); - LoadTest loadTest = new LoadTest(); - loadTest.setId("aspect_gyq_load_test_one"); - loadTest.setProjectId("100001100001"); - loadTest.setName("load_test"); - loadTest.setCreateTime(System.currentTimeMillis()); - loadTest.setUpdateTime(System.currentTimeMillis()); - loadTest.setStatus("Starting"); - loadTest.setTestResourcePoolId("test_pool"); - loadTest.setNum(10001); - loadTest.setCreateUser("admin"); - loadTest.setPos(1L); - loadTest.setVersionId("v1.10"); - loadTest.setRefId("aspect_gyq_load_test_one"); - loadTest.setLatest(true); - - String jsonObject = JSON.toJSONString(loadTest); - if (!StringUtils.equals("{}", jsonObject) && !StringUtils.equals("[]", jsonObject)) { - source.set(JSON.toJSONString(loadTest)); - } - - List resources = new ArrayList<>(); - String v = source.get(); - if (StringUtils.isNotBlank(v)) { - // array - if (StringUtils.startsWith(v, "[")) { - resources.addAll(JSON.parseArray(v, Map.class)); - } - // map - else { - Map value = JSON.parseObject(v, Map.class); - resources.add(value); - } - } - - UserDTO userDTO = new UserDTO(); - userDTO.setId(sessionId); - userDTO.setName("admin"); - SessionUser user = SessionUser.fromUser(userDTO, sessionId); - - for (String event : eventList) { - commonNoticeSendService.sendNotice(loadTestTask, event,resources, user, "100001100001"); - } - - } - private static void getTypeList(ListeventList ) { eventList.add(NoticeConstants.Event.CREATE); eventList.add(NoticeConstants.Event.UPDATE);