From 283009b94695d09758e043a1eee1555f3bebadfe Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 25 Apr 2024 16:48:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=8E=BB=E6=8E=89=E6=9A=82=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E8=A7=84=E5=88=92=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 +- backend/app/pom.xml | 10 - .../ui/domain/UiCustomCommand.java | 195 -- .../ui/domain/UiCustomCommandBlob.java | 98 - .../ui/domain/UiCustomCommandBlobExample.java | 270 --- .../ui/domain/UiCustomCommandExample.java | 1740 ---------------- .../ui/domain/UiCustomCommandModule.java | 127 -- .../domain/UiCustomCommandModuleExample.java | 790 -------- .../ui/domain/UiCustomVariable.java | 127 -- .../ui/domain/UiCustomVariableExample.java | 730 ------- .../io/metersphere/ui/domain/UiElement.java | 165 -- .../ui/domain/UiElementCommandReference.java | 114 -- .../UiElementCommandReferenceExample.java | 550 ----- .../ui/domain/UiElementExample.java | 1270 ------------ .../ui/domain/UiElementModule.java | 127 -- .../ui/domain/UiElementModuleExample.java | 790 -------- .../ui/domain/UiElementScenarioReference.java | 114 -- .../UiElementScenarioReferenceExample.java | 550 ----- .../io/metersphere/ui/domain/UiScenario.java | 199 -- .../metersphere/ui/domain/UiScenarioBlob.java | 98 - .../ui/domain/UiScenarioBlobExample.java | 270 --- .../ui/domain/UiScenarioExample.java | 1800 ----------------- .../ui/domain/UiScenarioFollower.java | 96 - .../ui/domain/UiScenarioFollowerExample.java | 340 ---- .../ui/domain/UiScenarioModule.java | 127 -- .../ui/domain/UiScenarioModuleExample.java | 790 -------- .../ui/domain/UiScenarioReference.java | 116 -- .../ui/domain/UiScenarioReferenceExample.java | 610 ------ .../ui/domain/UiScenarioReport.java | 167 -- .../ui/domain/UiScenarioReportDetail.java | 134 -- .../domain/UiScenarioReportDetailExample.java | 720 ------- .../domain/UiScenarioReportEnvironment.java | 98 - .../UiScenarioReportEnvironmentExample.java | 410 ---- .../ui/domain/UiScenarioReportExample.java | 1280 ------------ .../ui/domain/UiScenarioReportLog.java | 105 - .../ui/domain/UiScenarioReportLogExample.java | 400 ---- .../ui/domain/UiScenarioReportStructure.java | 105 - .../UiScenarioReportStructureExample.java | 400 ---- .../ui/domain/UiScenarioVariable.java | 112 - .../ui/domain/UiScenarioVariableExample.java | 550 ----- .../ui/mapper/UiCustomCommandBlobMapper.java | 38 - .../ui/mapper/UiCustomCommandBlobMapper.xml | 243 --- .../ui/mapper/UiCustomCommandMapper.java | 34 - .../ui/mapper/UiCustomCommandMapper.xml | 595 ------ .../mapper/UiCustomCommandModuleMapper.java | 34 - .../ui/mapper/UiCustomCommandModuleMapper.xml | 328 --- .../ui/mapper/UiCustomVariableMapper.java | 34 - .../ui/mapper/UiCustomVariableMapper.xml | 306 --- .../UiElementCommandReferenceMapper.java | 34 - .../UiElementCommandReferenceMapper.xml | 249 --- .../ui/mapper/UiElementMapper.java | 34 - .../metersphere/ui/mapper/UiElementMapper.xml | 462 ----- .../ui/mapper/UiElementModuleMapper.java | 34 - .../ui/mapper/UiElementModuleMapper.xml | 328 --- .../UiElementScenarioReferenceMapper.java | 34 - .../UiElementScenarioReferenceMapper.xml | 249 --- .../ui/mapper/UiScenarioBlobMapper.java | 38 - .../ui/mapper/UiScenarioBlobMapper.xml | 243 --- .../ui/mapper/UiScenarioFollowerMapper.java | 28 - .../ui/mapper/UiScenarioFollowerMapper.xml | 173 -- .../ui/mapper/UiScenarioMapper.java | 34 - .../ui/mapper/UiScenarioMapper.xml | 616 ------ .../ui/mapper/UiScenarioModuleMapper.java | 34 - .../ui/mapper/UiScenarioModuleMapper.xml | 328 --- .../ui/mapper/UiScenarioReferenceMapper.java | 34 - .../ui/mapper/UiScenarioReferenceMapper.xml | 270 --- .../mapper/UiScenarioReportDetailMapper.java | 40 - .../mapper/UiScenarioReportDetailMapper.xml | 396 ---- .../UiScenarioReportEnvironmentMapper.java | 34 - .../UiScenarioReportEnvironmentMapper.xml | 213 -- .../ui/mapper/UiScenarioReportLogMapper.java | 40 - .../ui/mapper/UiScenarioReportLogMapper.xml | 269 --- .../ui/mapper/UiScenarioReportMapper.java | 34 - .../ui/mapper/UiScenarioReportMapper.xml | 463 ----- .../UiScenarioReportStructureMapper.java | 40 - .../UiScenarioReportStructureMapper.xml | 269 --- .../ui/mapper/UiScenarioVariableMapper.java | 34 - .../ui/mapper/UiScenarioVariableMapper.xml | 249 --- backend/services/pom.xml | 2 - .../service/NoticeTemplateService.java | 7 - .../NoticeTemplateControllerTests.java | 5 - .../config/interceptor/UiInterceptor.java | 33 - .../notice/constants/NoticeConstants.java | 6 - .../notice/utils/MessageTemplateUtils.java | 3 - backend/services/ui-test/pom.xml | 61 - .../ui/service/UiScenarioService.java | 5 - .../src/main/resources/uiGeneratorConfig.xml | 92 - backend/services/workstation/pom.xml | 35 - pom.xml | 3 - 89 files changed, 1 insertion(+), 23862 deletions(-) delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommand.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlob.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlobExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModule.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModuleExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomVariable.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomVariableExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElement.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReference.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReferenceExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementModule.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementModuleExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementScenarioReference.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementScenarioReferenceExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenario.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlob.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlobExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollower.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollowerExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioModule.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioModuleExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReference.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReferenceExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReport.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetail.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetailExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportEnvironment.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportEnvironmentExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportLog.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportLogExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportStructure.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportStructureExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioVariable.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioVariableExample.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandBlobMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandBlobMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandModuleMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandModuleMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomVariableMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomVariableMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementCommandReferenceMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementCommandReferenceMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementModuleMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementModuleMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementScenarioReferenceMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementScenarioReferenceMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioBlobMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioBlobMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioFollowerMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioFollowerMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioModuleMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioModuleMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReferenceMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReferenceMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportDetailMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportDetailMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportEnvironmentMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportEnvironmentMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportLogMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportLogMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportStructureMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportStructureMapper.xml delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioVariableMapper.java delete mode 100644 backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioVariableMapper.xml delete mode 100644 backend/services/system-setting/src/main/java/io/metersphere/system/config/interceptor/UiInterceptor.java delete mode 100644 backend/services/ui-test/pom.xml delete mode 100644 backend/services/ui-test/src/main/java/io/metersphere/ui/service/UiScenarioService.java delete mode 100644 backend/services/ui-test/src/main/resources/uiGeneratorConfig.xml delete mode 100644 backend/services/workstation/pom.xml diff --git a/Jenkinsfile b/Jenkinsfile index 67055e498e..1097184b0b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -107,7 +107,7 @@ pipeline { LOCAL_REPOSITORY=$(./mvnw help:evaluate -Dexpression=settings.localRepository --settings ./settings.xml -q -DforceStdout) # echo $LOCAL_REPOSITORY - libraries=('metersphere-api-test-impl' 'metersphere-ui-test-impl' 'metersphere-load-test-impl' 'general-xpack-impl') + libraries=('metersphere-api-test-impl' 'metersphere-load-test-impl' 'general-xpack-impl') for library in "${libraries[@]}"; do cp -rf $LOCAL_REPOSITORY/io/metersphere/$library/${REVISION}/$library-${REVISION}.jar backend/app/target/dependency/BOOT-INF/lib/ diff --git a/backend/app/pom.xml b/backend/app/pom.xml index 1c42d0eaa3..7baad4ebb5 100644 --- a/backend/app/pom.xml +++ b/backend/app/pom.xml @@ -49,16 +49,6 @@ metersphere-case-management ${revision} - - io.metersphere - metersphere-ui-test - ${revision} - - - io.metersphere - metersphere-workstation - ${revision} - io.metersphere metersphere-bug-management diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommand.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommand.java deleted file mode 100644 index 09ed222138..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommand.java +++ /dev/null @@ -1,195 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiCustomCommand implements Serializable { - @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_custom_command.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command.project_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_custom_command.project_id.length_range}", groups = {Created.class, Updated.class}) - private String projectId; - - @Schema(description = "标签") - private String tags; - - @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command.module_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_custom_command.module_id.length_range}", groups = {Created.class, Updated.class}) - private String moduleId; - - @Schema(description = "模块路径", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command.module_path.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 1000, message = "{ui_custom_command.module_path.length_range}", groups = {Created.class, Updated.class}) - private String modulePath; - - @Schema(description = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command.name.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 255, message = "{ui_custom_command.name.length_range}", groups = {Created.class, Updated.class}) - private String name; - - @Schema(description = "用例等级") - private String level; - - @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command.status.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 100, message = "{ui_custom_command.status.length_range}", groups = {Created.class, Updated.class}) - private String status; - - @Schema(description = "责任人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command.principal.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_custom_command.principal.length_range}", groups = {Created.class, Updated.class}) - private String principal; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "更新时间") - private Long updateTime; - - @Schema(description = "最后执行结果") - private String lastResult; - - @Schema(description = "num") - private Integer num; - - @Schema(description = "删除状态") - private Boolean deleted; - - @Schema(description = "自定义num") - private String customNum; - - @Schema(description = "创建人") - private String createUser; - - @Schema(description = "删除时间") - private Long deleteTime; - - @Schema(description = "删除人") - private String deleteUser; - - @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_custom_command.pos.not_blank}", groups = {Created.class}) - private Long pos; - - @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command.version_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_custom_command.version_id.length_range}", groups = {Created.class, Updated.class}) - private String versionId; - - @Schema(description = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command.ref_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_custom_command.ref_id.length_range}", groups = {Created.class, Updated.class}) - private String refId; - - @Schema(description = "是否为最新版本 0:否,1:是") - private Boolean latest; - - @Schema(description = "描述") - private String description; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - projectId("project_id", "projectId", "VARCHAR", false), - tags("tags", "tags", "VARCHAR", false), - moduleId("module_id", "moduleId", "VARCHAR", false), - modulePath("module_path", "modulePath", "VARCHAR", false), - name("name", "name", "VARCHAR", true), - level("level", "level", "VARCHAR", true), - status("status", "status", "VARCHAR", true), - principal("principal", "principal", "VARCHAR", false), - createTime("create_time", "createTime", "BIGINT", false), - updateTime("update_time", "updateTime", "BIGINT", false), - lastResult("last_result", "lastResult", "VARCHAR", false), - num("num", "num", "INTEGER", false), - deleted("deleted", "deleted", "BIT", false), - customNum("custom_num", "customNum", "VARCHAR", false), - createUser("create_user", "createUser", "VARCHAR", false), - deleteTime("delete_time", "deleteTime", "BIGINT", false), - deleteUser("delete_user", "deleteUser", "VARCHAR", false), - pos("pos", "pos", "BIGINT", false), - versionId("version_id", "versionId", "VARCHAR", false), - refId("ref_id", "refId", "VARCHAR", false), - latest("latest", "latest", "BIT", false), - description("description", "description", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlob.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlob.java deleted file mode 100644 index 57371ea28d..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlob.java +++ /dev/null @@ -1,98 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiCustomCommandBlob implements Serializable { - @Schema(description = "指令ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command_blob.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_custom_command_blob.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "场景定义") - private byte[] scenarioDefinition; - - @Schema(description = "自定义结构") - private byte[] commandViewStruct; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - scenarioDefinition("scenario_definition", "scenarioDefinition", "LONGVARBINARY", false), - commandViewStruct("command_view_struct", "commandViewStruct", "LONGVARBINARY", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlobExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlobExample.java deleted file mode 100644 index 0130ff316c..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandBlobExample.java +++ /dev/null @@ -1,270 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiCustomCommandBlobExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiCustomCommandBlobExample() { - 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/ui/domain/UiCustomCommandExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandExample.java deleted file mode 100644 index 10ccfe18fb..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandExample.java +++ /dev/null @@ -1,1740 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiCustomCommandExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiCustomCommandExample() { - 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 andTagsIsNull() { - addCriterion("tags is null"); - return (Criteria) this; - } - - public Criteria andTagsIsNotNull() { - addCriterion("tags is not null"); - return (Criteria) this; - } - - public Criteria andTagsEqualTo(String value) { - addCriterion("tags =", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsNotEqualTo(String value) { - addCriterion("tags <>", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsGreaterThan(String value) { - addCriterion("tags >", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsGreaterThanOrEqualTo(String value) { - addCriterion("tags >=", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsLessThan(String value) { - addCriterion("tags <", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsLessThanOrEqualTo(String value) { - addCriterion("tags <=", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsLike(String value) { - addCriterion("tags like", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsNotLike(String value) { - addCriterion("tags not like", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsIn(List values) { - addCriterion("tags in", values, "tags"); - return (Criteria) this; - } - - public Criteria andTagsNotIn(List values) { - addCriterion("tags not in", values, "tags"); - return (Criteria) this; - } - - public Criteria andTagsBetween(String value1, String value2) { - addCriterion("tags between", value1, value2, "tags"); - return (Criteria) this; - } - - public Criteria andTagsNotBetween(String value1, String value2) { - addCriterion("tags not between", value1, value2, "tags"); - return (Criteria) this; - } - - public Criteria andModuleIdIsNull() { - addCriterion("module_id is null"); - return (Criteria) this; - } - - public Criteria andModuleIdIsNotNull() { - addCriterion("module_id is not null"); - return (Criteria) this; - } - - public Criteria andModuleIdEqualTo(String value) { - addCriterion("module_id =", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotEqualTo(String value) { - addCriterion("module_id <>", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdGreaterThan(String value) { - addCriterion("module_id >", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdGreaterThanOrEqualTo(String value) { - addCriterion("module_id >=", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdLessThan(String value) { - addCriterion("module_id <", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdLessThanOrEqualTo(String value) { - addCriterion("module_id <=", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdLike(String value) { - addCriterion("module_id like", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotLike(String value) { - addCriterion("module_id not like", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdIn(List values) { - addCriterion("module_id in", values, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotIn(List values) { - addCriterion("module_id not in", values, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdBetween(String value1, String value2) { - addCriterion("module_id between", value1, value2, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotBetween(String value1, String value2) { - addCriterion("module_id not between", value1, value2, "moduleId"); - return (Criteria) this; - } - - public Criteria andModulePathIsNull() { - addCriterion("module_path is null"); - return (Criteria) this; - } - - public Criteria andModulePathIsNotNull() { - addCriterion("module_path is not null"); - return (Criteria) this; - } - - public Criteria andModulePathEqualTo(String value) { - addCriterion("module_path =", value, "modulePath"); - return (Criteria) this; - } - - public Criteria andModulePathNotEqualTo(String value) { - addCriterion("module_path <>", value, "modulePath"); - return (Criteria) this; - } - - public Criteria andModulePathGreaterThan(String value) { - addCriterion("module_path >", value, "modulePath"); - return (Criteria) this; - } - - public Criteria andModulePathGreaterThanOrEqualTo(String value) { - addCriterion("module_path >=", value, "modulePath"); - return (Criteria) this; - } - - public Criteria andModulePathLessThan(String value) { - addCriterion("module_path <", value, "modulePath"); - return (Criteria) this; - } - - public Criteria andModulePathLessThanOrEqualTo(String value) { - addCriterion("module_path <=", value, "modulePath"); - return (Criteria) this; - } - - public Criteria andModulePathLike(String value) { - addCriterion("module_path like", value, "modulePath"); - return (Criteria) this; - } - - public Criteria andModulePathNotLike(String value) { - addCriterion("module_path not like", value, "modulePath"); - return (Criteria) this; - } - - public Criteria andModulePathIn(List values) { - addCriterion("module_path in", values, "modulePath"); - return (Criteria) this; - } - - public Criteria andModulePathNotIn(List values) { - addCriterion("module_path not in", values, "modulePath"); - return (Criteria) this; - } - - public Criteria andModulePathBetween(String value1, String value2) { - addCriterion("module_path between", value1, value2, "modulePath"); - return (Criteria) this; - } - - public Criteria andModulePathNotBetween(String value1, String value2) { - addCriterion("module_path not between", value1, value2, "modulePath"); - 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 andLevelIsNull() { - addCriterion("`level` is null"); - return (Criteria) this; - } - - public Criteria andLevelIsNotNull() { - addCriterion("`level` is not null"); - return (Criteria) this; - } - - public Criteria andLevelEqualTo(String value) { - addCriterion("`level` =", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotEqualTo(String value) { - addCriterion("`level` <>", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelGreaterThan(String value) { - addCriterion("`level` >", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelGreaterThanOrEqualTo(String value) { - addCriterion("`level` >=", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLessThan(String value) { - addCriterion("`level` <", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLessThanOrEqualTo(String value) { - addCriterion("`level` <=", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLike(String value) { - addCriterion("`level` like", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotLike(String value) { - addCriterion("`level` not like", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelIn(List values) { - addCriterion("`level` in", values, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotIn(List values) { - addCriterion("`level` not in", values, "level"); - return (Criteria) this; - } - - public Criteria andLevelBetween(String value1, String value2) { - addCriterion("`level` between", value1, value2, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotBetween(String value1, String value2) { - addCriterion("`level` not between", value1, value2, "level"); - 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 andPrincipalIsNull() { - addCriterion("principal is null"); - return (Criteria) this; - } - - public Criteria andPrincipalIsNotNull() { - addCriterion("principal is not null"); - return (Criteria) this; - } - - public Criteria andPrincipalEqualTo(String value) { - addCriterion("principal =", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalNotEqualTo(String value) { - addCriterion("principal <>", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalGreaterThan(String value) { - addCriterion("principal >", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalGreaterThanOrEqualTo(String value) { - addCriterion("principal >=", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalLessThan(String value) { - addCriterion("principal <", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalLessThanOrEqualTo(String value) { - addCriterion("principal <=", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalLike(String value) { - addCriterion("principal like", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalNotLike(String value) { - addCriterion("principal not like", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalIn(List values) { - addCriterion("principal in", values, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalNotIn(List values) { - addCriterion("principal not in", values, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalBetween(String value1, String value2) { - addCriterion("principal between", value1, value2, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalNotBetween(String value1, String value2) { - addCriterion("principal not between", value1, value2, "principal"); - 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 andLastResultIsNull() { - addCriterion("last_result is null"); - return (Criteria) this; - } - - public Criteria andLastResultIsNotNull() { - addCriterion("last_result is not null"); - return (Criteria) this; - } - - public Criteria andLastResultEqualTo(String value) { - addCriterion("last_result =", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultNotEqualTo(String value) { - addCriterion("last_result <>", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultGreaterThan(String value) { - addCriterion("last_result >", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultGreaterThanOrEqualTo(String value) { - addCriterion("last_result >=", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultLessThan(String value) { - addCriterion("last_result <", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultLessThanOrEqualTo(String value) { - addCriterion("last_result <=", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultLike(String value) { - addCriterion("last_result like", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultNotLike(String value) { - addCriterion("last_result not like", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultIn(List values) { - addCriterion("last_result in", values, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultNotIn(List values) { - addCriterion("last_result not in", values, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultBetween(String value1, String value2) { - addCriterion("last_result between", value1, value2, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultNotBetween(String value1, String value2) { - addCriterion("last_result not between", value1, value2, "lastResult"); - 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 andDeletedIsNull() { - addCriterion("deleted is null"); - return (Criteria) this; - } - - public Criteria andDeletedIsNotNull() { - addCriterion("deleted is not null"); - return (Criteria) this; - } - - public Criteria andDeletedEqualTo(Boolean value) { - addCriterion("deleted =", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedNotEqualTo(Boolean value) { - addCriterion("deleted <>", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedGreaterThan(Boolean value) { - addCriterion("deleted >", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) { - addCriterion("deleted >=", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedLessThan(Boolean value) { - addCriterion("deleted <", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedLessThanOrEqualTo(Boolean value) { - addCriterion("deleted <=", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedIn(List values) { - addCriterion("deleted in", values, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedNotIn(List values) { - addCriterion("deleted not in", values, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedBetween(Boolean value1, Boolean value2) { - addCriterion("deleted between", value1, value2, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) { - addCriterion("deleted not between", value1, value2, "deleted"); - return (Criteria) this; - } - - public Criteria andCustomNumIsNull() { - addCriterion("custom_num is null"); - return (Criteria) this; - } - - public Criteria andCustomNumIsNotNull() { - addCriterion("custom_num is not null"); - return (Criteria) this; - } - - public Criteria andCustomNumEqualTo(String value) { - addCriterion("custom_num =", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumNotEqualTo(String value) { - addCriterion("custom_num <>", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumGreaterThan(String value) { - addCriterion("custom_num >", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumGreaterThanOrEqualTo(String value) { - addCriterion("custom_num >=", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumLessThan(String value) { - addCriterion("custom_num <", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumLessThanOrEqualTo(String value) { - addCriterion("custom_num <=", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumLike(String value) { - addCriterion("custom_num like", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumNotLike(String value) { - addCriterion("custom_num not like", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumIn(List values) { - addCriterion("custom_num in", values, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumNotIn(List values) { - addCriterion("custom_num not in", values, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumBetween(String value1, String value2) { - addCriterion("custom_num between", value1, value2, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumNotBetween(String value1, String value2) { - addCriterion("custom_num not between", value1, value2, "customNum"); - 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 andDeleteTimeIsNull() { - addCriterion("delete_time is null"); - return (Criteria) this; - } - - public Criteria andDeleteTimeIsNotNull() { - addCriterion("delete_time is not null"); - return (Criteria) this; - } - - public Criteria andDeleteTimeEqualTo(Long value) { - addCriterion("delete_time =", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeNotEqualTo(Long value) { - addCriterion("delete_time <>", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeGreaterThan(Long value) { - addCriterion("delete_time >", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeGreaterThanOrEqualTo(Long value) { - addCriterion("delete_time >=", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeLessThan(Long value) { - addCriterion("delete_time <", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeLessThanOrEqualTo(Long value) { - addCriterion("delete_time <=", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeIn(List values) { - addCriterion("delete_time in", values, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeNotIn(List values) { - addCriterion("delete_time not in", values, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeBetween(Long value1, Long value2) { - addCriterion("delete_time between", value1, value2, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeNotBetween(Long value1, Long value2) { - addCriterion("delete_time not between", value1, value2, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteUserIsNull() { - addCriterion("delete_user is null"); - return (Criteria) this; - } - - public Criteria andDeleteUserIsNotNull() { - addCriterion("delete_user is not null"); - return (Criteria) this; - } - - public Criteria andDeleteUserEqualTo(String value) { - addCriterion("delete_user =", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserNotEqualTo(String value) { - addCriterion("delete_user <>", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserGreaterThan(String value) { - addCriterion("delete_user >", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserGreaterThanOrEqualTo(String value) { - addCriterion("delete_user >=", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserLessThan(String value) { - addCriterion("delete_user <", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserLessThanOrEqualTo(String value) { - addCriterion("delete_user <=", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserLike(String value) { - addCriterion("delete_user like", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserNotLike(String value) { - addCriterion("delete_user not like", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserIn(List values) { - addCriterion("delete_user in", values, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserNotIn(List values) { - addCriterion("delete_user not in", values, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserBetween(String value1, String value2) { - addCriterion("delete_user between", value1, value2, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserNotBetween(String value1, String value2) { - addCriterion("delete_user not between", value1, value2, "deleteUser"); - 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 Criteria andDescriptionIsNull() { - addCriterion("description is null"); - return (Criteria) this; - } - - public Criteria andDescriptionIsNotNull() { - addCriterion("description is not null"); - return (Criteria) this; - } - - public Criteria andDescriptionEqualTo(String value) { - addCriterion("description =", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotEqualTo(String value) { - addCriterion("description <>", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionGreaterThan(String value) { - addCriterion("description >", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionGreaterThanOrEqualTo(String value) { - addCriterion("description >=", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLessThan(String value) { - addCriterion("description <", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLessThanOrEqualTo(String value) { - addCriterion("description <=", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLike(String value) { - addCriterion("description like", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotLike(String value) { - addCriterion("description not like", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionIn(List values) { - addCriterion("description in", values, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotIn(List values) { - addCriterion("description not in", values, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionBetween(String value1, String value2) { - addCriterion("description between", value1, value2, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotBetween(String value1, String value2) { - addCriterion("description not between", value1, value2, "description"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModule.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModule.java deleted file mode 100644 index 7c50e8bc39..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModule.java +++ /dev/null @@ -1,127 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiCustomCommandModule implements Serializable { - @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command_module.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_custom_command_module.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command_module.project_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_custom_command_module.project_id.length_range}", groups = {Created.class, Updated.class}) - private String projectId; - - @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_command_module.name.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 255, message = "{ui_custom_command_module.name.length_range}", groups = {Created.class, Updated.class}) - private String name; - - @Schema(description = "父级ID") - private String parentId; - - @Schema(description = "模块等级") - private Integer level; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "更新时间") - private Long updateTime; - - @Schema(description = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_custom_command_module.pos.not_blank}", groups = {Created.class}) - private Double pos; - - @Schema(description = "创建人") - private String createUser; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - projectId("project_id", "projectId", "VARCHAR", false), - name("name", "name", "VARCHAR", true), - parentId("parent_id", "parentId", "VARCHAR", false), - level("level", "level", "INTEGER", true), - createTime("create_time", "createTime", "BIGINT", false), - updateTime("update_time", "updateTime", "BIGINT", false), - pos("pos", "pos", "DOUBLE", false), - createUser("create_user", "createUser", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModuleExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModuleExample.java deleted file mode 100644 index f492d052c3..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomCommandModuleExample.java +++ /dev/null @@ -1,790 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiCustomCommandModuleExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiCustomCommandModuleExample() { - 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 andParentIdIsNull() { - addCriterion("parent_id is null"); - return (Criteria) this; - } - - public Criteria andParentIdIsNotNull() { - addCriterion("parent_id is not null"); - return (Criteria) this; - } - - public Criteria andParentIdEqualTo(String value) { - addCriterion("parent_id =", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotEqualTo(String value) { - addCriterion("parent_id <>", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdGreaterThan(String value) { - addCriterion("parent_id >", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdGreaterThanOrEqualTo(String value) { - addCriterion("parent_id >=", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdLessThan(String value) { - addCriterion("parent_id <", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdLessThanOrEqualTo(String value) { - addCriterion("parent_id <=", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdLike(String value) { - addCriterion("parent_id like", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotLike(String value) { - addCriterion("parent_id not like", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdIn(List values) { - addCriterion("parent_id in", values, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotIn(List values) { - addCriterion("parent_id not in", values, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdBetween(String value1, String value2) { - addCriterion("parent_id between", value1, value2, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotBetween(String value1, String value2) { - addCriterion("parent_id not between", value1, value2, "parentId"); - return (Criteria) this; - } - - public Criteria andLevelIsNull() { - addCriterion("`level` is null"); - return (Criteria) this; - } - - public Criteria andLevelIsNotNull() { - addCriterion("`level` is not null"); - return (Criteria) this; - } - - public Criteria andLevelEqualTo(Integer value) { - addCriterion("`level` =", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotEqualTo(Integer value) { - addCriterion("`level` <>", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelGreaterThan(Integer value) { - addCriterion("`level` >", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelGreaterThanOrEqualTo(Integer value) { - addCriterion("`level` >=", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLessThan(Integer value) { - addCriterion("`level` <", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLessThanOrEqualTo(Integer value) { - addCriterion("`level` <=", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelIn(List values) { - addCriterion("`level` in", values, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotIn(List values) { - addCriterion("`level` not in", values, "level"); - return (Criteria) this; - } - - public Criteria andLevelBetween(Integer value1, Integer value2) { - addCriterion("`level` between", value1, value2, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotBetween(Integer value1, Integer value2) { - addCriterion("`level` not between", value1, value2, "level"); - 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 andPosIsNull() { - addCriterion("pos is null"); - return (Criteria) this; - } - - public Criteria andPosIsNotNull() { - addCriterion("pos is not null"); - return (Criteria) this; - } - - public Criteria andPosEqualTo(Double value) { - addCriterion("pos =", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosNotEqualTo(Double value) { - addCriterion("pos <>", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosGreaterThan(Double value) { - addCriterion("pos >", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosGreaterThanOrEqualTo(Double value) { - addCriterion("pos >=", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosLessThan(Double value) { - addCriterion("pos <", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosLessThanOrEqualTo(Double 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(Double value1, Double value2) { - addCriterion("pos between", value1, value2, "pos"); - return (Criteria) this; - } - - public Criteria andPosNotBetween(Double value1, Double value2) { - addCriterion("pos not between", value1, value2, "pos"); - 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 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/ui/domain/UiCustomVariable.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomVariable.java deleted file mode 100644 index f3be07743e..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomVariable.java +++ /dev/null @@ -1,127 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiCustomVariable implements Serializable { - @Schema(description = "指令ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_variable.resource_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_custom_variable.resource_id.length_range}", groups = {Created.class, Updated.class}) - private String resourceId; - - @Schema(description = "变量类型", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_variable.type.not_blank}", groups = {Created.class, Updated.class}) - @Size(min = 1, max = 100, message = "{ui_custom_variable.type.length_range}", groups = {Created.class, Updated.class}) - private String type; - - @Schema(description = "变量值", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_variable.value.not_blank}", groups = {Created.class, Updated.class}) - @Size(min = 1, max = 1000, message = "{ui_custom_variable.value.length_range}", groups = {Created.class, Updated.class}) - private String value; - - @Schema(description = "变量名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_custom_variable.name.not_blank}", groups = {Created.class, Updated.class}) - @Size(min = 1, max = 255, message = "{ui_custom_variable.name.length_range}", groups = {Created.class, Updated.class}) - private String name; - - @Schema(description = "描述") - private String description; - - @Schema(description = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_custom_variable.deleted.not_blank}", groups = {Created.class, Updated.class}) - private Boolean deleted; - - @Schema(description = "是否是出参", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_custom_variable.out_put.not_blank}", groups = {Created.class, Updated.class}) - private Boolean outPut; - - @Schema(description = "启用禁用") - @NotNull(message = "{ui_custom_variable.enable.not_blank}", groups = {Created.class, Updated.class}) - private Boolean enable; - - private static final long serialVersionUID = 1L; - - public enum Column { - resourceId("resource_id", "resourceId", "VARCHAR", false), - type("type", "type", "VARCHAR", true), - value("value", "value", "VARCHAR", true), - name("name", "name", "VARCHAR", true), - description("description", "description", "VARCHAR", false), - deleted("deleted", "deleted", "BIT", false), - outPut("out_put", "outPut", "BIT", false), - enable("enable", "enable", "BIT", true); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomVariableExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomVariableExample.java deleted file mode 100644 index c25b3f6f94..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiCustomVariableExample.java +++ /dev/null @@ -1,730 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiCustomVariableExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiCustomVariableExample() { - 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 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 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 andValueIsNull() { - addCriterion("`value` is null"); - return (Criteria) this; - } - - public Criteria andValueIsNotNull() { - addCriterion("`value` is not null"); - return (Criteria) this; - } - - public Criteria andValueEqualTo(String value) { - addCriterion("`value` =", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotEqualTo(String value) { - addCriterion("`value` <>", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThan(String value) { - addCriterion("`value` >", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThanOrEqualTo(String value) { - addCriterion("`value` >=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThan(String value) { - addCriterion("`value` <", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThanOrEqualTo(String value) { - addCriterion("`value` <=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLike(String value) { - addCriterion("`value` like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotLike(String value) { - addCriterion("`value` not like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueIn(List values) { - addCriterion("`value` in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueNotIn(List values) { - addCriterion("`value` not in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueBetween(String value1, String value2) { - addCriterion("`value` between", value1, value2, "value"); - return (Criteria) this; - } - - public Criteria andValueNotBetween(String value1, String value2) { - addCriterion("`value` not between", value1, value2, "value"); - 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 andDeletedIsNull() { - addCriterion("deleted is null"); - return (Criteria) this; - } - - public Criteria andDeletedIsNotNull() { - addCriterion("deleted is not null"); - return (Criteria) this; - } - - public Criteria andDeletedEqualTo(Boolean value) { - addCriterion("deleted =", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedNotEqualTo(Boolean value) { - addCriterion("deleted <>", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedGreaterThan(Boolean value) { - addCriterion("deleted >", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) { - addCriterion("deleted >=", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedLessThan(Boolean value) { - addCriterion("deleted <", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedLessThanOrEqualTo(Boolean value) { - addCriterion("deleted <=", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedIn(List values) { - addCriterion("deleted in", values, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedNotIn(List values) { - addCriterion("deleted not in", values, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedBetween(Boolean value1, Boolean value2) { - addCriterion("deleted between", value1, value2, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) { - addCriterion("deleted not between", value1, value2, "deleted"); - return (Criteria) this; - } - - public Criteria andOutPutIsNull() { - addCriterion("out_put is null"); - return (Criteria) this; - } - - public Criteria andOutPutIsNotNull() { - addCriterion("out_put is not null"); - return (Criteria) this; - } - - public Criteria andOutPutEqualTo(Boolean value) { - addCriterion("out_put =", value, "outPut"); - return (Criteria) this; - } - - public Criteria andOutPutNotEqualTo(Boolean value) { - addCriterion("out_put <>", value, "outPut"); - return (Criteria) this; - } - - public Criteria andOutPutGreaterThan(Boolean value) { - addCriterion("out_put >", value, "outPut"); - return (Criteria) this; - } - - public Criteria andOutPutGreaterThanOrEqualTo(Boolean value) { - addCriterion("out_put >=", value, "outPut"); - return (Criteria) this; - } - - public Criteria andOutPutLessThan(Boolean value) { - addCriterion("out_put <", value, "outPut"); - return (Criteria) this; - } - - public Criteria andOutPutLessThanOrEqualTo(Boolean value) { - addCriterion("out_put <=", value, "outPut"); - return (Criteria) this; - } - - public Criteria andOutPutIn(List values) { - addCriterion("out_put in", values, "outPut"); - return (Criteria) this; - } - - public Criteria andOutPutNotIn(List values) { - addCriterion("out_put not in", values, "outPut"); - return (Criteria) this; - } - - public Criteria andOutPutBetween(Boolean value1, Boolean value2) { - addCriterion("out_put between", value1, value2, "outPut"); - return (Criteria) this; - } - - public Criteria andOutPutNotBetween(Boolean value1, Boolean value2) { - addCriterion("out_put not between", value1, value2, "outPut"); - return (Criteria) this; - } - - public Criteria andEnableIsNull() { - addCriterion("`enable` is null"); - return (Criteria) this; - } - - public Criteria andEnableIsNotNull() { - addCriterion("`enable` is not null"); - return (Criteria) this; - } - - public Criteria andEnableEqualTo(Boolean value) { - addCriterion("`enable` =", value, "enable"); - return (Criteria) this; - } - - public Criteria andEnableNotEqualTo(Boolean value) { - addCriterion("`enable` <>", value, "enable"); - return (Criteria) this; - } - - public Criteria andEnableGreaterThan(Boolean value) { - addCriterion("`enable` >", value, "enable"); - return (Criteria) this; - } - - public Criteria andEnableGreaterThanOrEqualTo(Boolean value) { - addCriterion("`enable` >=", value, "enable"); - return (Criteria) this; - } - - public Criteria andEnableLessThan(Boolean value) { - addCriterion("`enable` <", value, "enable"); - return (Criteria) this; - } - - public Criteria andEnableLessThanOrEqualTo(Boolean value) { - addCriterion("`enable` <=", value, "enable"); - return (Criteria) this; - } - - public Criteria andEnableIn(List values) { - addCriterion("`enable` in", values, "enable"); - return (Criteria) this; - } - - public Criteria andEnableNotIn(List values) { - addCriterion("`enable` not in", values, "enable"); - return (Criteria) this; - } - - public Criteria andEnableBetween(Boolean value1, Boolean value2) { - addCriterion("`enable` between", value1, value2, "enable"); - return (Criteria) this; - } - - public Criteria andEnableNotBetween(Boolean value1, Boolean value2) { - addCriterion("`enable` not between", value1, value2, "enable"); - 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/ui/domain/UiElement.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElement.java deleted file mode 100644 index a3e16b013e..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElement.java +++ /dev/null @@ -1,165 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiElement implements Serializable { - @Schema(description = "元素id", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_element.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "元素num") - private Integer num; - - @Schema(description = "元素所属模块id", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element.module_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element.module_id.length_range}", groups = {Created.class, Updated.class}) - private String moduleId; - - @Schema(description = "项目id", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element.project_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element.project_id.length_range}", groups = {Created.class, Updated.class}) - private String projectId; - - @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element.name.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 255, message = "{ui_element.name.length_range}", groups = {Created.class, Updated.class}) - private String name; - - @Schema(description = "定位类型", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element.location_type.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 30, message = "{ui_element.location_type.length_range}", groups = {Created.class, Updated.class}) - private String locationType; - - @Schema(description = "元素定位", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element.location.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 300, message = "{ui_element.location.length_range}", groups = {Created.class, Updated.class}) - private String location; - - @Schema(description = "创建人") - private String createUser; - - @Schema(description = "更新人") - private String updateUser; - - @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element.version_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element.version_id.length_range}", groups = {Created.class, Updated.class}) - private String versionId; - - @Schema(description = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element.ref_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element.ref_id.length_range}", groups = {Created.class, Updated.class}) - private String refId; - - @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_element.pos.not_blank}", groups = {Created.class}) - private Long pos; - - @Schema(description = "是否为最新版本 0:否,1:是") - private Boolean latest; - - @Schema(description = "元素描述") - private String description; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "更新时间") - private Long updateTime; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - num("num", "num", "INTEGER", false), - moduleId("module_id", "moduleId", "VARCHAR", false), - projectId("project_id", "projectId", "VARCHAR", false), - name("name", "name", "VARCHAR", true), - locationType("location_type", "locationType", "VARCHAR", false), - location("location", "location", "VARCHAR", true), - createUser("create_user", "createUser", "VARCHAR", false), - updateUser("update_user", "updateUser", "VARCHAR", false), - versionId("version_id", "versionId", "VARCHAR", false), - refId("ref_id", "refId", "VARCHAR", false), - pos("pos", "pos", "BIGINT", false), - latest("latest", "latest", "BIT", false), - description("description", "description", "VARCHAR", false), - createTime("create_time", "createTime", "BIGINT", false), - updateTime("update_time", "updateTime", "BIGINT", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReference.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReference.java deleted file mode 100644 index 4104758300..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReference.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiElementCommandReference implements Serializable { - @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_command_reference.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_element_command_reference.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "元素ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_command_reference.element_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element_command_reference.element_id.length_range}", groups = {Created.class, Updated.class}) - private String elementId; - - @Schema(description = "元素模块ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_command_reference.element_module_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element_command_reference.element_module_id.length_range}", groups = {Created.class, Updated.class}) - private String elementModuleId; - - @Schema(description = "指令ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_command_reference.command_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element_command_reference.command_id.length_range}", groups = {Created.class, Updated.class}) - private String commandId; - - @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_command_reference.project_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element_command_reference.project_id.length_range}", groups = {Created.class, Updated.class}) - private String projectId; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - elementId("element_id", "elementId", "VARCHAR", false), - elementModuleId("element_module_id", "elementModuleId", "VARCHAR", false), - commandId("command_id", "commandId", "VARCHAR", false), - projectId("project_id", "projectId", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReferenceExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReferenceExample.java deleted file mode 100644 index 82c0915ebb..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementCommandReferenceExample.java +++ /dev/null @@ -1,550 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiElementCommandReferenceExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiElementCommandReferenceExample() { - 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 andElementIdIsNull() { - addCriterion("element_id is null"); - return (Criteria) this; - } - - public Criteria andElementIdIsNotNull() { - addCriterion("element_id is not null"); - return (Criteria) this; - } - - public Criteria andElementIdEqualTo(String value) { - addCriterion("element_id =", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdNotEqualTo(String value) { - addCriterion("element_id <>", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdGreaterThan(String value) { - addCriterion("element_id >", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdGreaterThanOrEqualTo(String value) { - addCriterion("element_id >=", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdLessThan(String value) { - addCriterion("element_id <", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdLessThanOrEqualTo(String value) { - addCriterion("element_id <=", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdLike(String value) { - addCriterion("element_id like", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdNotLike(String value) { - addCriterion("element_id not like", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdIn(List values) { - addCriterion("element_id in", values, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdNotIn(List values) { - addCriterion("element_id not in", values, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdBetween(String value1, String value2) { - addCriterion("element_id between", value1, value2, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdNotBetween(String value1, String value2) { - addCriterion("element_id not between", value1, value2, "elementId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdIsNull() { - addCriterion("element_module_id is null"); - return (Criteria) this; - } - - public Criteria andElementModuleIdIsNotNull() { - addCriterion("element_module_id is not null"); - return (Criteria) this; - } - - public Criteria andElementModuleIdEqualTo(String value) { - addCriterion("element_module_id =", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdNotEqualTo(String value) { - addCriterion("element_module_id <>", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdGreaterThan(String value) { - addCriterion("element_module_id >", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdGreaterThanOrEqualTo(String value) { - addCriterion("element_module_id >=", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdLessThan(String value) { - addCriterion("element_module_id <", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdLessThanOrEqualTo(String value) { - addCriterion("element_module_id <=", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdLike(String value) { - addCriterion("element_module_id like", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdNotLike(String value) { - addCriterion("element_module_id not like", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdIn(List values) { - addCriterion("element_module_id in", values, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdNotIn(List values) { - addCriterion("element_module_id not in", values, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdBetween(String value1, String value2) { - addCriterion("element_module_id between", value1, value2, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdNotBetween(String value1, String value2) { - addCriterion("element_module_id not between", value1, value2, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andCommandIdIsNull() { - addCriterion("command_id is null"); - return (Criteria) this; - } - - public Criteria andCommandIdIsNotNull() { - addCriterion("command_id is not null"); - return (Criteria) this; - } - - public Criteria andCommandIdEqualTo(String value) { - addCriterion("command_id =", value, "commandId"); - return (Criteria) this; - } - - public Criteria andCommandIdNotEqualTo(String value) { - addCriterion("command_id <>", value, "commandId"); - return (Criteria) this; - } - - public Criteria andCommandIdGreaterThan(String value) { - addCriterion("command_id >", value, "commandId"); - return (Criteria) this; - } - - public Criteria andCommandIdGreaterThanOrEqualTo(String value) { - addCriterion("command_id >=", value, "commandId"); - return (Criteria) this; - } - - public Criteria andCommandIdLessThan(String value) { - addCriterion("command_id <", value, "commandId"); - return (Criteria) this; - } - - public Criteria andCommandIdLessThanOrEqualTo(String value) { - addCriterion("command_id <=", value, "commandId"); - return (Criteria) this; - } - - public Criteria andCommandIdLike(String value) { - addCriterion("command_id like", value, "commandId"); - return (Criteria) this; - } - - public Criteria andCommandIdNotLike(String value) { - addCriterion("command_id not like", value, "commandId"); - return (Criteria) this; - } - - public Criteria andCommandIdIn(List values) { - addCriterion("command_id in", values, "commandId"); - return (Criteria) this; - } - - public Criteria andCommandIdNotIn(List values) { - addCriterion("command_id not in", values, "commandId"); - return (Criteria) this; - } - - public Criteria andCommandIdBetween(String value1, String value2) { - addCriterion("command_id between", value1, value2, "commandId"); - return (Criteria) this; - } - - public Criteria andCommandIdNotBetween(String value1, String value2) { - addCriterion("command_id not between", value1, value2, "commandId"); - 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 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/ui/domain/UiElementExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementExample.java deleted file mode 100644 index 3f92ead6af..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementExample.java +++ /dev/null @@ -1,1270 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiElementExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiElementExample() { - 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 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 andModuleIdIsNull() { - addCriterion("module_id is null"); - return (Criteria) this; - } - - public Criteria andModuleIdIsNotNull() { - addCriterion("module_id is not null"); - return (Criteria) this; - } - - public Criteria andModuleIdEqualTo(String value) { - addCriterion("module_id =", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotEqualTo(String value) { - addCriterion("module_id <>", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdGreaterThan(String value) { - addCriterion("module_id >", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdGreaterThanOrEqualTo(String value) { - addCriterion("module_id >=", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdLessThan(String value) { - addCriterion("module_id <", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdLessThanOrEqualTo(String value) { - addCriterion("module_id <=", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdLike(String value) { - addCriterion("module_id like", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotLike(String value) { - addCriterion("module_id not like", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdIn(List values) { - addCriterion("module_id in", values, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotIn(List values) { - addCriterion("module_id not in", values, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdBetween(String value1, String value2) { - addCriterion("module_id between", value1, value2, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotBetween(String value1, String value2) { - addCriterion("module_id not between", value1, value2, "moduleId"); - 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 andLocationTypeIsNull() { - addCriterion("location_type is null"); - return (Criteria) this; - } - - public Criteria andLocationTypeIsNotNull() { - addCriterion("location_type is not null"); - return (Criteria) this; - } - - public Criteria andLocationTypeEqualTo(String value) { - addCriterion("location_type =", value, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationTypeNotEqualTo(String value) { - addCriterion("location_type <>", value, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationTypeGreaterThan(String value) { - addCriterion("location_type >", value, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationTypeGreaterThanOrEqualTo(String value) { - addCriterion("location_type >=", value, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationTypeLessThan(String value) { - addCriterion("location_type <", value, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationTypeLessThanOrEqualTo(String value) { - addCriterion("location_type <=", value, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationTypeLike(String value) { - addCriterion("location_type like", value, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationTypeNotLike(String value) { - addCriterion("location_type not like", value, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationTypeIn(List values) { - addCriterion("location_type in", values, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationTypeNotIn(List values) { - addCriterion("location_type not in", values, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationTypeBetween(String value1, String value2) { - addCriterion("location_type between", value1, value2, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationTypeNotBetween(String value1, String value2) { - addCriterion("location_type not between", value1, value2, "locationType"); - return (Criteria) this; - } - - public Criteria andLocationIsNull() { - addCriterion("`location` is null"); - return (Criteria) this; - } - - public Criteria andLocationIsNotNull() { - addCriterion("`location` is not null"); - return (Criteria) this; - } - - public Criteria andLocationEqualTo(String value) { - addCriterion("`location` =", value, "location"); - return (Criteria) this; - } - - public Criteria andLocationNotEqualTo(String value) { - addCriterion("`location` <>", value, "location"); - return (Criteria) this; - } - - public Criteria andLocationGreaterThan(String value) { - addCriterion("`location` >", value, "location"); - return (Criteria) this; - } - - public Criteria andLocationGreaterThanOrEqualTo(String value) { - addCriterion("`location` >=", value, "location"); - return (Criteria) this; - } - - public Criteria andLocationLessThan(String value) { - addCriterion("`location` <", value, "location"); - return (Criteria) this; - } - - public Criteria andLocationLessThanOrEqualTo(String value) { - addCriterion("`location` <=", value, "location"); - return (Criteria) this; - } - - public Criteria andLocationLike(String value) { - addCriterion("`location` like", value, "location"); - return (Criteria) this; - } - - public Criteria andLocationNotLike(String value) { - addCriterion("`location` not like", value, "location"); - return (Criteria) this; - } - - public Criteria andLocationIn(List values) { - addCriterion("`location` in", values, "location"); - return (Criteria) this; - } - - public Criteria andLocationNotIn(List values) { - addCriterion("`location` not in", values, "location"); - return (Criteria) this; - } - - public Criteria andLocationBetween(String value1, String value2) { - addCriterion("`location` between", value1, value2, "location"); - return (Criteria) this; - } - - public Criteria andLocationNotBetween(String value1, String value2) { - addCriterion("`location` not between", value1, value2, "location"); - 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 andUpdateUserIsNull() { - addCriterion("update_user is null"); - return (Criteria) this; - } - - public Criteria andUpdateUserIsNotNull() { - addCriterion("update_user is not null"); - return (Criteria) this; - } - - public Criteria andUpdateUserEqualTo(String value) { - addCriterion("update_user =", value, "updateUser"); - return (Criteria) this; - } - - public Criteria andUpdateUserNotEqualTo(String value) { - addCriterion("update_user <>", value, "updateUser"); - return (Criteria) this; - } - - public Criteria andUpdateUserGreaterThan(String value) { - addCriterion("update_user >", value, "updateUser"); - return (Criteria) this; - } - - public Criteria andUpdateUserGreaterThanOrEqualTo(String value) { - addCriterion("update_user >=", value, "updateUser"); - return (Criteria) this; - } - - public Criteria andUpdateUserLessThan(String value) { - addCriterion("update_user <", value, "updateUser"); - return (Criteria) this; - } - - public Criteria andUpdateUserLessThanOrEqualTo(String value) { - addCriterion("update_user <=", value, "updateUser"); - return (Criteria) this; - } - - public Criteria andUpdateUserLike(String value) { - addCriterion("update_user like", value, "updateUser"); - return (Criteria) this; - } - - public Criteria andUpdateUserNotLike(String value) { - addCriterion("update_user not like", value, "updateUser"); - return (Criteria) this; - } - - public Criteria andUpdateUserIn(List values) { - addCriterion("update_user in", values, "updateUser"); - return (Criteria) this; - } - - public Criteria andUpdateUserNotIn(List values) { - addCriterion("update_user not in", values, "updateUser"); - return (Criteria) this; - } - - public Criteria andUpdateUserBetween(String value1, String value2) { - addCriterion("update_user between", value1, value2, "updateUser"); - return (Criteria) this; - } - - public Criteria andUpdateUserNotBetween(String value1, String value2) { - addCriterion("update_user not between", value1, value2, "updateUser"); - return (Criteria) this; - } - - public Criteria 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 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 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 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 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/ui/domain/UiElementModule.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementModule.java deleted file mode 100644 index c2c17d0795..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementModule.java +++ /dev/null @@ -1,127 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiElementModule implements Serializable { - @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_module.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_element_module.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_module.project_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element_module.project_id.length_range}", groups = {Created.class, Updated.class}) - private String projectId; - - @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_module.name.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 255, message = "{ui_element_module.name.length_range}", groups = {Created.class, Updated.class}) - private String name; - - @Schema(description = "父级ID") - private String parentId; - - @Schema(description = "模块等级") - private Integer level; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "更新时间") - private Long updateTime; - - @Schema(description = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_element_module.pos.not_blank}", groups = {Created.class}) - private Double pos; - - @Schema(description = "创建人") - private String createUser; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - projectId("project_id", "projectId", "VARCHAR", false), - name("name", "name", "VARCHAR", true), - parentId("parent_id", "parentId", "VARCHAR", false), - level("level", "level", "INTEGER", true), - createTime("create_time", "createTime", "BIGINT", false), - updateTime("update_time", "updateTime", "BIGINT", false), - pos("pos", "pos", "DOUBLE", false), - createUser("create_user", "createUser", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementModuleExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementModuleExample.java deleted file mode 100644 index d06b641af0..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementModuleExample.java +++ /dev/null @@ -1,790 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiElementModuleExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiElementModuleExample() { - 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 andParentIdIsNull() { - addCriterion("parent_id is null"); - return (Criteria) this; - } - - public Criteria andParentIdIsNotNull() { - addCriterion("parent_id is not null"); - return (Criteria) this; - } - - public Criteria andParentIdEqualTo(String value) { - addCriterion("parent_id =", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotEqualTo(String value) { - addCriterion("parent_id <>", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdGreaterThan(String value) { - addCriterion("parent_id >", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdGreaterThanOrEqualTo(String value) { - addCriterion("parent_id >=", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdLessThan(String value) { - addCriterion("parent_id <", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdLessThanOrEqualTo(String value) { - addCriterion("parent_id <=", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdLike(String value) { - addCriterion("parent_id like", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotLike(String value) { - addCriterion("parent_id not like", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdIn(List values) { - addCriterion("parent_id in", values, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotIn(List values) { - addCriterion("parent_id not in", values, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdBetween(String value1, String value2) { - addCriterion("parent_id between", value1, value2, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotBetween(String value1, String value2) { - addCriterion("parent_id not between", value1, value2, "parentId"); - return (Criteria) this; - } - - public Criteria andLevelIsNull() { - addCriterion("`level` is null"); - return (Criteria) this; - } - - public Criteria andLevelIsNotNull() { - addCriterion("`level` is not null"); - return (Criteria) this; - } - - public Criteria andLevelEqualTo(Integer value) { - addCriterion("`level` =", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotEqualTo(Integer value) { - addCriterion("`level` <>", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelGreaterThan(Integer value) { - addCriterion("`level` >", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelGreaterThanOrEqualTo(Integer value) { - addCriterion("`level` >=", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLessThan(Integer value) { - addCriterion("`level` <", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLessThanOrEqualTo(Integer value) { - addCriterion("`level` <=", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelIn(List values) { - addCriterion("`level` in", values, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotIn(List values) { - addCriterion("`level` not in", values, "level"); - return (Criteria) this; - } - - public Criteria andLevelBetween(Integer value1, Integer value2) { - addCriterion("`level` between", value1, value2, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotBetween(Integer value1, Integer value2) { - addCriterion("`level` not between", value1, value2, "level"); - 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 andPosIsNull() { - addCriterion("pos is null"); - return (Criteria) this; - } - - public Criteria andPosIsNotNull() { - addCriterion("pos is not null"); - return (Criteria) this; - } - - public Criteria andPosEqualTo(Double value) { - addCriterion("pos =", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosNotEqualTo(Double value) { - addCriterion("pos <>", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosGreaterThan(Double value) { - addCriterion("pos >", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosGreaterThanOrEqualTo(Double value) { - addCriterion("pos >=", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosLessThan(Double value) { - addCriterion("pos <", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosLessThanOrEqualTo(Double 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(Double value1, Double value2) { - addCriterion("pos between", value1, value2, "pos"); - return (Criteria) this; - } - - public Criteria andPosNotBetween(Double value1, Double value2) { - addCriterion("pos not between", value1, value2, "pos"); - 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 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/ui/domain/UiElementScenarioReference.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementScenarioReference.java deleted file mode 100644 index 9e13c9e10f..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementScenarioReference.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiElementScenarioReference implements Serializable { - @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_scenario_reference.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_element_scenario_reference.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "元素ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_scenario_reference.element_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element_scenario_reference.element_id.length_range}", groups = {Created.class, Updated.class}) - private String elementId; - - @Schema(description = "元素模块ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_scenario_reference.element_module_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element_scenario_reference.element_module_id.length_range}", groups = {Created.class, Updated.class}) - private String elementModuleId; - - @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_scenario_reference.scenario_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element_scenario_reference.scenario_id.length_range}", groups = {Created.class, Updated.class}) - private String scenarioId; - - @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_element_scenario_reference.project_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_element_scenario_reference.project_id.length_range}", groups = {Created.class, Updated.class}) - private String projectId; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - elementId("element_id", "elementId", "VARCHAR", false), - elementModuleId("element_module_id", "elementModuleId", "VARCHAR", false), - scenarioId("scenario_id", "scenarioId", "VARCHAR", false), - projectId("project_id", "projectId", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementScenarioReferenceExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementScenarioReferenceExample.java deleted file mode 100644 index ce307037fb..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiElementScenarioReferenceExample.java +++ /dev/null @@ -1,550 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiElementScenarioReferenceExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiElementScenarioReferenceExample() { - 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 andElementIdIsNull() { - addCriterion("element_id is null"); - return (Criteria) this; - } - - public Criteria andElementIdIsNotNull() { - addCriterion("element_id is not null"); - return (Criteria) this; - } - - public Criteria andElementIdEqualTo(String value) { - addCriterion("element_id =", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdNotEqualTo(String value) { - addCriterion("element_id <>", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdGreaterThan(String value) { - addCriterion("element_id >", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdGreaterThanOrEqualTo(String value) { - addCriterion("element_id >=", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdLessThan(String value) { - addCriterion("element_id <", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdLessThanOrEqualTo(String value) { - addCriterion("element_id <=", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdLike(String value) { - addCriterion("element_id like", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdNotLike(String value) { - addCriterion("element_id not like", value, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdIn(List values) { - addCriterion("element_id in", values, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdNotIn(List values) { - addCriterion("element_id not in", values, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdBetween(String value1, String value2) { - addCriterion("element_id between", value1, value2, "elementId"); - return (Criteria) this; - } - - public Criteria andElementIdNotBetween(String value1, String value2) { - addCriterion("element_id not between", value1, value2, "elementId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdIsNull() { - addCriterion("element_module_id is null"); - return (Criteria) this; - } - - public Criteria andElementModuleIdIsNotNull() { - addCriterion("element_module_id is not null"); - return (Criteria) this; - } - - public Criteria andElementModuleIdEqualTo(String value) { - addCriterion("element_module_id =", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdNotEqualTo(String value) { - addCriterion("element_module_id <>", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdGreaterThan(String value) { - addCriterion("element_module_id >", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdGreaterThanOrEqualTo(String value) { - addCriterion("element_module_id >=", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdLessThan(String value) { - addCriterion("element_module_id <", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdLessThanOrEqualTo(String value) { - addCriterion("element_module_id <=", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdLike(String value) { - addCriterion("element_module_id like", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdNotLike(String value) { - addCriterion("element_module_id not like", value, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdIn(List values) { - addCriterion("element_module_id in", values, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdNotIn(List values) { - addCriterion("element_module_id not in", values, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdBetween(String value1, String value2) { - addCriterion("element_module_id between", value1, value2, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andElementModuleIdNotBetween(String value1, String value2) { - addCriterion("element_module_id not between", value1, value2, "elementModuleId"); - return (Criteria) this; - } - - public Criteria andScenarioIdIsNull() { - addCriterion("scenario_id is null"); - return (Criteria) this; - } - - public Criteria andScenarioIdIsNotNull() { - addCriterion("scenario_id is not null"); - return (Criteria) this; - } - - public Criteria andScenarioIdEqualTo(String value) { - addCriterion("scenario_id =", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotEqualTo(String value) { - addCriterion("scenario_id <>", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdGreaterThan(String value) { - addCriterion("scenario_id >", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdGreaterThanOrEqualTo(String value) { - addCriterion("scenario_id >=", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdLessThan(String value) { - addCriterion("scenario_id <", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdLessThanOrEqualTo(String value) { - addCriterion("scenario_id <=", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdLike(String value) { - addCriterion("scenario_id like", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotLike(String value) { - addCriterion("scenario_id not like", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdIn(List values) { - addCriterion("scenario_id in", values, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotIn(List values) { - addCriterion("scenario_id not in", values, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdBetween(String value1, String value2) { - addCriterion("scenario_id between", value1, value2, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotBetween(String value1, String value2) { - addCriterion("scenario_id not between", value1, value2, "scenarioId"); - 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 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/ui/domain/UiScenario.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenario.java deleted file mode 100644 index 325a1192cd..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenario.java +++ /dev/null @@ -1,199 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiScenario implements Serializable { - @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_scenario.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario.project_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario.project_id.length_range}", groups = {Created.class, Updated.class}) - private String projectId; - - @Schema(description = "标签") - private String tags; - - @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario.module_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario.module_id.length_range}", groups = {Created.class, Updated.class}) - private String moduleId; - - @Schema(description = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario.name.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 255, message = "{ui_scenario.name.length_range}", groups = {Created.class, Updated.class}) - private String name; - - @Schema(description = "用例等级", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario.level.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 100, message = "{ui_scenario.level.length_range}", groups = {Created.class, Updated.class}) - private String level; - - @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario.status.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 100, message = "{ui_scenario.status.length_range}", groups = {Created.class, Updated.class}) - private String status; - - @Schema(description = "责任人", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario.principal.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario.principal.length_range}", groups = {Created.class, Updated.class}) - private String principal; - - @Schema(description = "步骤总数") - private Integer stepTotal; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "更新时间") - private Long updateTime; - - @Schema(description = "最后执行结果") - private String lastResult; - - @Schema(description = "最后执行结果的报告ID") - private String reportId; - - @Schema(description = "num") - private Integer num; - - @Schema(description = "删除状态") - private Boolean deleted; - - @Schema(description = "自定义num") - private String customNum; - - @Schema(description = "创建人") - private String createUser; - - @Schema(description = "删除时间") - private Long deleteTime; - - @Schema(description = "删除人") - private String deleteUser; - - @Schema(description = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_scenario.pos.not_blank}", groups = {Created.class}) - private Long pos; - - @Schema(description = "版本ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario.version_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario.version_id.length_range}", groups = {Created.class, Updated.class}) - private String versionId; - - @Schema(description = "指向初始版本ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario.ref_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario.ref_id.length_range}", groups = {Created.class, Updated.class}) - private String refId; - - @Schema(description = "是否为最新版本 0:否,1:是") - private Boolean latest; - - @Schema(description = "描述") - private String description; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - projectId("project_id", "projectId", "VARCHAR", false), - tags("tags", "tags", "VARCHAR", false), - moduleId("module_id", "moduleId", "VARCHAR", false), - name("name", "name", "VARCHAR", true), - level("level", "level", "VARCHAR", true), - status("status", "status", "VARCHAR", true), - principal("principal", "principal", "VARCHAR", false), - stepTotal("step_total", "stepTotal", "INTEGER", false), - createTime("create_time", "createTime", "BIGINT", false), - updateTime("update_time", "updateTime", "BIGINT", false), - lastResult("last_result", "lastResult", "VARCHAR", false), - reportId("report_id", "reportId", "VARCHAR", false), - num("num", "num", "INTEGER", false), - deleted("deleted", "deleted", "BIT", false), - customNum("custom_num", "customNum", "VARCHAR", false), - createUser("create_user", "createUser", "VARCHAR", false), - deleteTime("delete_time", "deleteTime", "BIGINT", false), - deleteUser("delete_user", "deleteUser", "VARCHAR", false), - pos("pos", "pos", "BIGINT", false), - versionId("version_id", "versionId", "VARCHAR", false), - refId("ref_id", "refId", "VARCHAR", false), - latest("latest", "latest", "BIT", false), - description("description", "description", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlob.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlob.java deleted file mode 100644 index 67b8fd65b0..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlob.java +++ /dev/null @@ -1,98 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiScenarioBlob implements Serializable { - @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_blob.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_blob.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "场景定义") - private byte[] scenarioDefinition; - - @Schema(description = "环境") - private byte[] environmentJson; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - scenarioDefinition("scenario_definition", "scenarioDefinition", "LONGVARBINARY", false), - environmentJson("environment_json", "environmentJson", "LONGVARBINARY", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlobExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlobExample.java deleted file mode 100644 index 583204a49f..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioBlobExample.java +++ /dev/null @@ -1,270 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiScenarioBlobExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiScenarioBlobExample() { - 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/ui/domain/UiScenarioExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioExample.java deleted file mode 100644 index 33583cc6c4..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioExample.java +++ /dev/null @@ -1,1800 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiScenarioExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiScenarioExample() { - 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 andTagsIsNull() { - addCriterion("tags is null"); - return (Criteria) this; - } - - public Criteria andTagsIsNotNull() { - addCriterion("tags is not null"); - return (Criteria) this; - } - - public Criteria andTagsEqualTo(String value) { - addCriterion("tags =", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsNotEqualTo(String value) { - addCriterion("tags <>", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsGreaterThan(String value) { - addCriterion("tags >", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsGreaterThanOrEqualTo(String value) { - addCriterion("tags >=", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsLessThan(String value) { - addCriterion("tags <", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsLessThanOrEqualTo(String value) { - addCriterion("tags <=", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsLike(String value) { - addCriterion("tags like", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsNotLike(String value) { - addCriterion("tags not like", value, "tags"); - return (Criteria) this; - } - - public Criteria andTagsIn(List values) { - addCriterion("tags in", values, "tags"); - return (Criteria) this; - } - - public Criteria andTagsNotIn(List values) { - addCriterion("tags not in", values, "tags"); - return (Criteria) this; - } - - public Criteria andTagsBetween(String value1, String value2) { - addCriterion("tags between", value1, value2, "tags"); - return (Criteria) this; - } - - public Criteria andTagsNotBetween(String value1, String value2) { - addCriterion("tags not between", value1, value2, "tags"); - return (Criteria) this; - } - - public Criteria andModuleIdIsNull() { - addCriterion("module_id is null"); - return (Criteria) this; - } - - public Criteria andModuleIdIsNotNull() { - addCriterion("module_id is not null"); - return (Criteria) this; - } - - public Criteria andModuleIdEqualTo(String value) { - addCriterion("module_id =", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotEqualTo(String value) { - addCriterion("module_id <>", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdGreaterThan(String value) { - addCriterion("module_id >", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdGreaterThanOrEqualTo(String value) { - addCriterion("module_id >=", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdLessThan(String value) { - addCriterion("module_id <", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdLessThanOrEqualTo(String value) { - addCriterion("module_id <=", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdLike(String value) { - addCriterion("module_id like", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotLike(String value) { - addCriterion("module_id not like", value, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdIn(List values) { - addCriterion("module_id in", values, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotIn(List values) { - addCriterion("module_id not in", values, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdBetween(String value1, String value2) { - addCriterion("module_id between", value1, value2, "moduleId"); - return (Criteria) this; - } - - public Criteria andModuleIdNotBetween(String value1, String value2) { - addCriterion("module_id not between", value1, value2, "moduleId"); - 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 andLevelIsNull() { - addCriterion("`level` is null"); - return (Criteria) this; - } - - public Criteria andLevelIsNotNull() { - addCriterion("`level` is not null"); - return (Criteria) this; - } - - public Criteria andLevelEqualTo(String value) { - addCriterion("`level` =", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotEqualTo(String value) { - addCriterion("`level` <>", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelGreaterThan(String value) { - addCriterion("`level` >", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelGreaterThanOrEqualTo(String value) { - addCriterion("`level` >=", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLessThan(String value) { - addCriterion("`level` <", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLessThanOrEqualTo(String value) { - addCriterion("`level` <=", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLike(String value) { - addCriterion("`level` like", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotLike(String value) { - addCriterion("`level` not like", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelIn(List values) { - addCriterion("`level` in", values, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotIn(List values) { - addCriterion("`level` not in", values, "level"); - return (Criteria) this; - } - - public Criteria andLevelBetween(String value1, String value2) { - addCriterion("`level` between", value1, value2, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotBetween(String value1, String value2) { - addCriterion("`level` not between", value1, value2, "level"); - 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 andPrincipalIsNull() { - addCriterion("principal is null"); - return (Criteria) this; - } - - public Criteria andPrincipalIsNotNull() { - addCriterion("principal is not null"); - return (Criteria) this; - } - - public Criteria andPrincipalEqualTo(String value) { - addCriterion("principal =", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalNotEqualTo(String value) { - addCriterion("principal <>", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalGreaterThan(String value) { - addCriterion("principal >", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalGreaterThanOrEqualTo(String value) { - addCriterion("principal >=", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalLessThan(String value) { - addCriterion("principal <", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalLessThanOrEqualTo(String value) { - addCriterion("principal <=", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalLike(String value) { - addCriterion("principal like", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalNotLike(String value) { - addCriterion("principal not like", value, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalIn(List values) { - addCriterion("principal in", values, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalNotIn(List values) { - addCriterion("principal not in", values, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalBetween(String value1, String value2) { - addCriterion("principal between", value1, value2, "principal"); - return (Criteria) this; - } - - public Criteria andPrincipalNotBetween(String value1, String value2) { - addCriterion("principal not between", value1, value2, "principal"); - return (Criteria) this; - } - - public Criteria andStepTotalIsNull() { - addCriterion("step_total is null"); - return (Criteria) this; - } - - public Criteria andStepTotalIsNotNull() { - addCriterion("step_total is not null"); - return (Criteria) this; - } - - public Criteria andStepTotalEqualTo(Integer value) { - addCriterion("step_total =", value, "stepTotal"); - return (Criteria) this; - } - - public Criteria andStepTotalNotEqualTo(Integer value) { - addCriterion("step_total <>", value, "stepTotal"); - return (Criteria) this; - } - - public Criteria andStepTotalGreaterThan(Integer value) { - addCriterion("step_total >", value, "stepTotal"); - return (Criteria) this; - } - - public Criteria andStepTotalGreaterThanOrEqualTo(Integer value) { - addCriterion("step_total >=", value, "stepTotal"); - return (Criteria) this; - } - - public Criteria andStepTotalLessThan(Integer value) { - addCriterion("step_total <", value, "stepTotal"); - return (Criteria) this; - } - - public Criteria andStepTotalLessThanOrEqualTo(Integer value) { - addCriterion("step_total <=", value, "stepTotal"); - return (Criteria) this; - } - - public Criteria andStepTotalIn(List values) { - addCriterion("step_total in", values, "stepTotal"); - return (Criteria) this; - } - - public Criteria andStepTotalNotIn(List values) { - addCriterion("step_total not in", values, "stepTotal"); - return (Criteria) this; - } - - public Criteria andStepTotalBetween(Integer value1, Integer value2) { - addCriterion("step_total between", value1, value2, "stepTotal"); - return (Criteria) this; - } - - public Criteria andStepTotalNotBetween(Integer value1, Integer value2) { - addCriterion("step_total not between", value1, value2, "stepTotal"); - 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 andLastResultIsNull() { - addCriterion("last_result is null"); - return (Criteria) this; - } - - public Criteria andLastResultIsNotNull() { - addCriterion("last_result is not null"); - return (Criteria) this; - } - - public Criteria andLastResultEqualTo(String value) { - addCriterion("last_result =", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultNotEqualTo(String value) { - addCriterion("last_result <>", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultGreaterThan(String value) { - addCriterion("last_result >", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultGreaterThanOrEqualTo(String value) { - addCriterion("last_result >=", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultLessThan(String value) { - addCriterion("last_result <", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultLessThanOrEqualTo(String value) { - addCriterion("last_result <=", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultLike(String value) { - addCriterion("last_result like", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultNotLike(String value) { - addCriterion("last_result not like", value, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultIn(List values) { - addCriterion("last_result in", values, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultNotIn(List values) { - addCriterion("last_result not in", values, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultBetween(String value1, String value2) { - addCriterion("last_result between", value1, value2, "lastResult"); - return (Criteria) this; - } - - public Criteria andLastResultNotBetween(String value1, String value2) { - addCriterion("last_result not between", value1, value2, "lastResult"); - 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 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 andDeletedIsNull() { - addCriterion("deleted is null"); - return (Criteria) this; - } - - public Criteria andDeletedIsNotNull() { - addCriterion("deleted is not null"); - return (Criteria) this; - } - - public Criteria andDeletedEqualTo(Boolean value) { - addCriterion("deleted =", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedNotEqualTo(Boolean value) { - addCriterion("deleted <>", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedGreaterThan(Boolean value) { - addCriterion("deleted >", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) { - addCriterion("deleted >=", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedLessThan(Boolean value) { - addCriterion("deleted <", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedLessThanOrEqualTo(Boolean value) { - addCriterion("deleted <=", value, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedIn(List values) { - addCriterion("deleted in", values, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedNotIn(List values) { - addCriterion("deleted not in", values, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedBetween(Boolean value1, Boolean value2) { - addCriterion("deleted between", value1, value2, "deleted"); - return (Criteria) this; - } - - public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) { - addCriterion("deleted not between", value1, value2, "deleted"); - return (Criteria) this; - } - - public Criteria andCustomNumIsNull() { - addCriterion("custom_num is null"); - return (Criteria) this; - } - - public Criteria andCustomNumIsNotNull() { - addCriterion("custom_num is not null"); - return (Criteria) this; - } - - public Criteria andCustomNumEqualTo(String value) { - addCriterion("custom_num =", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumNotEqualTo(String value) { - addCriterion("custom_num <>", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumGreaterThan(String value) { - addCriterion("custom_num >", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumGreaterThanOrEqualTo(String value) { - addCriterion("custom_num >=", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumLessThan(String value) { - addCriterion("custom_num <", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumLessThanOrEqualTo(String value) { - addCriterion("custom_num <=", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumLike(String value) { - addCriterion("custom_num like", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumNotLike(String value) { - addCriterion("custom_num not like", value, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumIn(List values) { - addCriterion("custom_num in", values, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumNotIn(List values) { - addCriterion("custom_num not in", values, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumBetween(String value1, String value2) { - addCriterion("custom_num between", value1, value2, "customNum"); - return (Criteria) this; - } - - public Criteria andCustomNumNotBetween(String value1, String value2) { - addCriterion("custom_num not between", value1, value2, "customNum"); - 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 andDeleteTimeIsNull() { - addCriterion("delete_time is null"); - return (Criteria) this; - } - - public Criteria andDeleteTimeIsNotNull() { - addCriterion("delete_time is not null"); - return (Criteria) this; - } - - public Criteria andDeleteTimeEqualTo(Long value) { - addCriterion("delete_time =", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeNotEqualTo(Long value) { - addCriterion("delete_time <>", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeGreaterThan(Long value) { - addCriterion("delete_time >", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeGreaterThanOrEqualTo(Long value) { - addCriterion("delete_time >=", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeLessThan(Long value) { - addCriterion("delete_time <", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeLessThanOrEqualTo(Long value) { - addCriterion("delete_time <=", value, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeIn(List values) { - addCriterion("delete_time in", values, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeNotIn(List values) { - addCriterion("delete_time not in", values, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeBetween(Long value1, Long value2) { - addCriterion("delete_time between", value1, value2, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteTimeNotBetween(Long value1, Long value2) { - addCriterion("delete_time not between", value1, value2, "deleteTime"); - return (Criteria) this; - } - - public Criteria andDeleteUserIsNull() { - addCriterion("delete_user is null"); - return (Criteria) this; - } - - public Criteria andDeleteUserIsNotNull() { - addCriterion("delete_user is not null"); - return (Criteria) this; - } - - public Criteria andDeleteUserEqualTo(String value) { - addCriterion("delete_user =", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserNotEqualTo(String value) { - addCriterion("delete_user <>", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserGreaterThan(String value) { - addCriterion("delete_user >", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserGreaterThanOrEqualTo(String value) { - addCriterion("delete_user >=", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserLessThan(String value) { - addCriterion("delete_user <", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserLessThanOrEqualTo(String value) { - addCriterion("delete_user <=", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserLike(String value) { - addCriterion("delete_user like", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserNotLike(String value) { - addCriterion("delete_user not like", value, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserIn(List values) { - addCriterion("delete_user in", values, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserNotIn(List values) { - addCriterion("delete_user not in", values, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserBetween(String value1, String value2) { - addCriterion("delete_user between", value1, value2, "deleteUser"); - return (Criteria) this; - } - - public Criteria andDeleteUserNotBetween(String value1, String value2) { - addCriterion("delete_user not between", value1, value2, "deleteUser"); - 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 Criteria andDescriptionIsNull() { - addCriterion("description is null"); - return (Criteria) this; - } - - public Criteria andDescriptionIsNotNull() { - addCriterion("description is not null"); - return (Criteria) this; - } - - public Criteria andDescriptionEqualTo(String value) { - addCriterion("description =", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotEqualTo(String value) { - addCriterion("description <>", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionGreaterThan(String value) { - addCriterion("description >", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionGreaterThanOrEqualTo(String value) { - addCriterion("description >=", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLessThan(String value) { - addCriterion("description <", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLessThanOrEqualTo(String value) { - addCriterion("description <=", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLike(String value) { - addCriterion("description like", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotLike(String value) { - addCriterion("description not like", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionIn(List values) { - addCriterion("description in", values, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotIn(List values) { - addCriterion("description not in", values, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionBetween(String value1, String value2) { - addCriterion("description between", value1, value2, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotBetween(String value1, String value2) { - addCriterion("description not between", value1, value2, "description"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollower.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollower.java deleted file mode 100644 index 4f2bc6358a..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollower.java +++ /dev/null @@ -1,96 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiScenarioFollower implements Serializable { - @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_follower.scenario_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_follower.scenario_id.length_range}", groups = {Created.class, Updated.class}) - private String scenarioId; - - @Schema(description = "关注人ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_follower.user_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_follower.user_id.length_range}", groups = {Created.class, Updated.class}) - private String userId; - - private static final long serialVersionUID = 1L; - - public enum Column { - scenarioId("scenario_id", "scenarioId", "VARCHAR", false), - userId("user_id", "userId", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollowerExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollowerExample.java deleted file mode 100644 index 3816af6b0c..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioFollowerExample.java +++ /dev/null @@ -1,340 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiScenarioFollowerExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiScenarioFollowerExample() { - 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 andScenarioIdIsNull() { - addCriterion("scenario_id is null"); - return (Criteria) this; - } - - public Criteria andScenarioIdIsNotNull() { - addCriterion("scenario_id is not null"); - return (Criteria) this; - } - - public Criteria andScenarioIdEqualTo(String value) { - addCriterion("scenario_id =", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotEqualTo(String value) { - addCriterion("scenario_id <>", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdGreaterThan(String value) { - addCriterion("scenario_id >", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdGreaterThanOrEqualTo(String value) { - addCriterion("scenario_id >=", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdLessThan(String value) { - addCriterion("scenario_id <", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdLessThanOrEqualTo(String value) { - addCriterion("scenario_id <=", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdLike(String value) { - addCriterion("scenario_id like", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotLike(String value) { - addCriterion("scenario_id not like", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdIn(List values) { - addCriterion("scenario_id in", values, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotIn(List values) { - addCriterion("scenario_id not in", values, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdBetween(String value1, String value2) { - addCriterion("scenario_id between", value1, value2, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotBetween(String value1, String value2) { - addCriterion("scenario_id not between", value1, value2, "scenarioId"); - 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/ui/domain/UiScenarioModule.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioModule.java deleted file mode 100644 index 8493f7c501..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioModule.java +++ /dev/null @@ -1,127 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiScenarioModule implements Serializable { - @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_module.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_module.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_module.project_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_module.project_id.length_range}", groups = {Created.class, Updated.class}) - private String projectId; - - @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_module.name.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 255, message = "{ui_scenario_module.name.length_range}", groups = {Created.class, Updated.class}) - private String name; - - @Schema(description = "父级ID") - private String parentId; - - @Schema(description = "模块等级") - private Integer level; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "更新时间") - private Long updateTime; - - @Schema(description = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_scenario_module.pos.not_blank}", groups = {Created.class}) - private Double pos; - - @Schema(description = "创建人") - private String createUser; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - projectId("project_id", "projectId", "VARCHAR", false), - name("name", "name", "VARCHAR", true), - parentId("parent_id", "parentId", "VARCHAR", false), - level("level", "level", "INTEGER", true), - createTime("create_time", "createTime", "BIGINT", false), - updateTime("update_time", "updateTime", "BIGINT", false), - pos("pos", "pos", "DOUBLE", false), - createUser("create_user", "createUser", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioModuleExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioModuleExample.java deleted file mode 100644 index 8911ef62dc..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioModuleExample.java +++ /dev/null @@ -1,790 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiScenarioModuleExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiScenarioModuleExample() { - 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 andParentIdIsNull() { - addCriterion("parent_id is null"); - return (Criteria) this; - } - - public Criteria andParentIdIsNotNull() { - addCriterion("parent_id is not null"); - return (Criteria) this; - } - - public Criteria andParentIdEqualTo(String value) { - addCriterion("parent_id =", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotEqualTo(String value) { - addCriterion("parent_id <>", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdGreaterThan(String value) { - addCriterion("parent_id >", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdGreaterThanOrEqualTo(String value) { - addCriterion("parent_id >=", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdLessThan(String value) { - addCriterion("parent_id <", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdLessThanOrEqualTo(String value) { - addCriterion("parent_id <=", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdLike(String value) { - addCriterion("parent_id like", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotLike(String value) { - addCriterion("parent_id not like", value, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdIn(List values) { - addCriterion("parent_id in", values, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotIn(List values) { - addCriterion("parent_id not in", values, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdBetween(String value1, String value2) { - addCriterion("parent_id between", value1, value2, "parentId"); - return (Criteria) this; - } - - public Criteria andParentIdNotBetween(String value1, String value2) { - addCriterion("parent_id not between", value1, value2, "parentId"); - return (Criteria) this; - } - - public Criteria andLevelIsNull() { - addCriterion("`level` is null"); - return (Criteria) this; - } - - public Criteria andLevelIsNotNull() { - addCriterion("`level` is not null"); - return (Criteria) this; - } - - public Criteria andLevelEqualTo(Integer value) { - addCriterion("`level` =", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotEqualTo(Integer value) { - addCriterion("`level` <>", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelGreaterThan(Integer value) { - addCriterion("`level` >", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelGreaterThanOrEqualTo(Integer value) { - addCriterion("`level` >=", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLessThan(Integer value) { - addCriterion("`level` <", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelLessThanOrEqualTo(Integer value) { - addCriterion("`level` <=", value, "level"); - return (Criteria) this; - } - - public Criteria andLevelIn(List values) { - addCriterion("`level` in", values, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotIn(List values) { - addCriterion("`level` not in", values, "level"); - return (Criteria) this; - } - - public Criteria andLevelBetween(Integer value1, Integer value2) { - addCriterion("`level` between", value1, value2, "level"); - return (Criteria) this; - } - - public Criteria andLevelNotBetween(Integer value1, Integer value2) { - addCriterion("`level` not between", value1, value2, "level"); - 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 andPosIsNull() { - addCriterion("pos is null"); - return (Criteria) this; - } - - public Criteria andPosIsNotNull() { - addCriterion("pos is not null"); - return (Criteria) this; - } - - public Criteria andPosEqualTo(Double value) { - addCriterion("pos =", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosNotEqualTo(Double value) { - addCriterion("pos <>", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosGreaterThan(Double value) { - addCriterion("pos >", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosGreaterThanOrEqualTo(Double value) { - addCriterion("pos >=", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosLessThan(Double value) { - addCriterion("pos <", value, "pos"); - return (Criteria) this; - } - - public Criteria andPosLessThanOrEqualTo(Double 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(Double value1, Double value2) { - addCriterion("pos between", value1, value2, "pos"); - return (Criteria) this; - } - - public Criteria andPosNotBetween(Double value1, Double value2) { - addCriterion("pos not between", value1, value2, "pos"); - 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 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/ui/domain/UiScenarioReference.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReference.java deleted file mode 100644 index 2671b0cb3b..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReference.java +++ /dev/null @@ -1,116 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiScenarioReference implements Serializable { - @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_reference.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_reference.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_reference.ui_scenario_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_reference.ui_scenario_id.length_range}", groups = {Created.class, Updated.class}) - private String uiScenarioId; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "创建人") - private String createUser; - - @Schema(description = "被引用的ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_reference.reference_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_reference.reference_id.length_range}", groups = {Created.class, Updated.class}) - private String referenceId; - - @Schema(description = "引用的数据类型(场景,指令)", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_reference.data_type.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 20, message = "{ui_scenario_reference.data_type.length_range}", groups = {Created.class, Updated.class}) - private String dataType; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - uiScenarioId("ui_scenario_id", "uiScenarioId", "VARCHAR", false), - createTime("create_time", "createTime", "BIGINT", false), - createUser("create_user", "createUser", "VARCHAR", false), - referenceId("reference_id", "referenceId", "VARCHAR", false), - dataType("data_type", "dataType", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReferenceExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReferenceExample.java deleted file mode 100644 index 497e0d1f41..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReferenceExample.java +++ /dev/null @@ -1,610 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiScenarioReferenceExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiScenarioReferenceExample() { - 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 andUiScenarioIdIsNull() { - addCriterion("ui_scenario_id is null"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdIsNotNull() { - addCriterion("ui_scenario_id is not null"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdEqualTo(String value) { - addCriterion("ui_scenario_id =", value, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdNotEqualTo(String value) { - addCriterion("ui_scenario_id <>", value, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdGreaterThan(String value) { - addCriterion("ui_scenario_id >", value, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdGreaterThanOrEqualTo(String value) { - addCriterion("ui_scenario_id >=", value, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdLessThan(String value) { - addCriterion("ui_scenario_id <", value, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdLessThanOrEqualTo(String value) { - addCriterion("ui_scenario_id <=", value, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdLike(String value) { - addCriterion("ui_scenario_id like", value, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdNotLike(String value) { - addCriterion("ui_scenario_id not like", value, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdIn(List values) { - addCriterion("ui_scenario_id in", values, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdNotIn(List values) { - addCriterion("ui_scenario_id not in", values, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdBetween(String value1, String value2) { - addCriterion("ui_scenario_id between", value1, value2, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andUiScenarioIdNotBetween(String value1, String value2) { - addCriterion("ui_scenario_id not between", value1, value2, "uiScenarioId"); - return (Criteria) this; - } - - public Criteria andCreateTimeIsNull() { - addCriterion("create_time is null"); - return (Criteria) this; - } - - public Criteria andCreateTimeIsNotNull() { - addCriterion("create_time is not null"); - return (Criteria) this; - } - - public Criteria andCreateTimeEqualTo(Long value) { - addCriterion("create_time =", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeNotEqualTo(Long value) { - addCriterion("create_time <>", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeGreaterThan(Long value) { - addCriterion("create_time >", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { - addCriterion("create_time >=", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeLessThan(Long value) { - addCriterion("create_time <", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeLessThanOrEqualTo(Long value) { - addCriterion("create_time <=", value, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeIn(List values) { - addCriterion("create_time in", values, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeNotIn(List values) { - addCriterion("create_time not in", values, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeBetween(Long value1, Long value2) { - addCriterion("create_time between", value1, value2, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateTimeNotBetween(Long value1, Long value2) { - addCriterion("create_time not between", value1, value2, "createTime"); - return (Criteria) this; - } - - public Criteria andCreateUserIsNull() { - addCriterion("create_user is null"); - return (Criteria) this; - } - - public Criteria andCreateUserIsNotNull() { - addCriterion("create_user is not null"); - return (Criteria) this; - } - - public Criteria andCreateUserEqualTo(String value) { - addCriterion("create_user =", value, "createUser"); - return (Criteria) this; - } - - public Criteria andCreateUserNotEqualTo(String value) { - addCriterion("create_user <>", value, "createUser"); - return (Criteria) this; - } - - public Criteria andCreateUserGreaterThan(String value) { - addCriterion("create_user >", value, "createUser"); - return (Criteria) this; - } - - public Criteria andCreateUserGreaterThanOrEqualTo(String value) { - addCriterion("create_user >=", value, "createUser"); - return (Criteria) this; - } - - public Criteria andCreateUserLessThan(String value) { - addCriterion("create_user <", value, "createUser"); - return (Criteria) this; - } - - public Criteria andCreateUserLessThanOrEqualTo(String value) { - addCriterion("create_user <=", value, "createUser"); - return (Criteria) this; - } - - public Criteria andCreateUserLike(String value) { - addCriterion("create_user like", value, "createUser"); - return (Criteria) this; - } - - public Criteria andCreateUserNotLike(String value) { - addCriterion("create_user not like", value, "createUser"); - return (Criteria) this; - } - - public Criteria andCreateUserIn(List values) { - addCriterion("create_user in", values, "createUser"); - return (Criteria) this; - } - - public Criteria andCreateUserNotIn(List values) { - addCriterion("create_user not in", values, "createUser"); - return (Criteria) this; - } - - public Criteria andCreateUserBetween(String value1, String value2) { - addCriterion("create_user between", value1, value2, "createUser"); - return (Criteria) this; - } - - public Criteria andCreateUserNotBetween(String value1, String value2) { - addCriterion("create_user not between", value1, value2, "createUser"); - return (Criteria) this; - } - - public Criteria andReferenceIdIsNull() { - addCriterion("reference_id is null"); - return (Criteria) this; - } - - public Criteria andReferenceIdIsNotNull() { - addCriterion("reference_id is not null"); - return (Criteria) this; - } - - public Criteria andReferenceIdEqualTo(String value) { - addCriterion("reference_id =", value, "referenceId"); - return (Criteria) this; - } - - public Criteria andReferenceIdNotEqualTo(String value) { - addCriterion("reference_id <>", value, "referenceId"); - return (Criteria) this; - } - - public Criteria andReferenceIdGreaterThan(String value) { - addCriterion("reference_id >", value, "referenceId"); - return (Criteria) this; - } - - public Criteria andReferenceIdGreaterThanOrEqualTo(String value) { - addCriterion("reference_id >=", value, "referenceId"); - return (Criteria) this; - } - - public Criteria andReferenceIdLessThan(String value) { - addCriterion("reference_id <", value, "referenceId"); - return (Criteria) this; - } - - public Criteria andReferenceIdLessThanOrEqualTo(String value) { - addCriterion("reference_id <=", value, "referenceId"); - return (Criteria) this; - } - - public Criteria andReferenceIdLike(String value) { - addCriterion("reference_id like", value, "referenceId"); - return (Criteria) this; - } - - public Criteria andReferenceIdNotLike(String value) { - addCriterion("reference_id not like", value, "referenceId"); - return (Criteria) this; - } - - public Criteria andReferenceIdIn(List values) { - addCriterion("reference_id in", values, "referenceId"); - return (Criteria) this; - } - - public Criteria andReferenceIdNotIn(List values) { - addCriterion("reference_id not in", values, "referenceId"); - return (Criteria) this; - } - - public Criteria andReferenceIdBetween(String value1, String value2) { - addCriterion("reference_id between", value1, value2, "referenceId"); - return (Criteria) this; - } - - public Criteria andReferenceIdNotBetween(String value1, String value2) { - addCriterion("reference_id not between", value1, value2, "referenceId"); - return (Criteria) this; - } - - public Criteria andDataTypeIsNull() { - addCriterion("data_type is null"); - return (Criteria) this; - } - - public Criteria andDataTypeIsNotNull() { - addCriterion("data_type is not null"); - return (Criteria) this; - } - - public Criteria andDataTypeEqualTo(String value) { - addCriterion("data_type =", value, "dataType"); - return (Criteria) this; - } - - public Criteria andDataTypeNotEqualTo(String value) { - addCriterion("data_type <>", value, "dataType"); - return (Criteria) this; - } - - public Criteria andDataTypeGreaterThan(String value) { - addCriterion("data_type >", value, "dataType"); - return (Criteria) this; - } - - public Criteria andDataTypeGreaterThanOrEqualTo(String value) { - addCriterion("data_type >=", value, "dataType"); - return (Criteria) this; - } - - public Criteria andDataTypeLessThan(String value) { - addCriterion("data_type <", value, "dataType"); - return (Criteria) this; - } - - public Criteria andDataTypeLessThanOrEqualTo(String value) { - addCriterion("data_type <=", value, "dataType"); - return (Criteria) this; - } - - public Criteria andDataTypeLike(String value) { - addCriterion("data_type like", value, "dataType"); - return (Criteria) this; - } - - public Criteria andDataTypeNotLike(String value) { - addCriterion("data_type not like", value, "dataType"); - return (Criteria) this; - } - - public Criteria andDataTypeIn(List values) { - addCriterion("data_type in", values, "dataType"); - return (Criteria) this; - } - - public Criteria andDataTypeNotIn(List values) { - addCriterion("data_type not in", values, "dataType"); - return (Criteria) this; - } - - public Criteria andDataTypeBetween(String value1, String value2) { - addCriterion("data_type between", value1, value2, "dataType"); - return (Criteria) this; - } - - public Criteria andDataTypeNotBetween(String value1, String value2) { - addCriterion("data_type not between", value1, value2, "dataType"); - 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/ui/domain/UiScenarioReport.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReport.java deleted file mode 100644 index 20dec0f7e7..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReport.java +++ /dev/null @@ -1,167 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiScenarioReport implements Serializable { - @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report.project_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report.project_id.length_range}", groups = {Created.class, Updated.class}) - private String projectId; - - @Schema(description = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report.name.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 255, message = "{ui_scenario_report.name.length_range}", groups = {Created.class, Updated.class}) - private String name; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "更新时间") - private Long updateTime; - - @Schema(description = "报告状态", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report.status.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 64, message = "{ui_scenario_report.status.length_range}", groups = {Created.class, Updated.class}) - private String status; - - @Schema(description = "触发模式(手动,定时,批量,测试计划)", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report.trigger_mode.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 64, message = "{ui_scenario_report.trigger_mode.length_range}", groups = {Created.class, Updated.class}) - private String triggerMode; - - @Schema(description = "执行类型(并行,串行)") - private String executeType; - - @Schema(description = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report.scenario_name.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 255, message = "{ui_scenario_report.scenario_name.length_range}", groups = {Created.class, Updated.class}) - private String scenarioName; - - @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report.scenario_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report.scenario_id.length_range}", groups = {Created.class, Updated.class}) - private String scenarioId; - - @Schema(description = "创建人") - private String createUser; - - @Schema(description = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report.pool_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report.pool_id.length_range}", groups = {Created.class, Updated.class}) - private String poolId; - - @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_scenario_report.end_time.not_blank}", groups = {Created.class}) - private Long endTime; - - @Schema(description = "报告类型(集合,独立)") - private Boolean integrated; - - @Schema(description = "关联的测试计划报告ID(可以为空)") - private String relevanceTestPlanReportId; - - @Schema(description = "报告生成来源(生成报告,后端调试,本地调试)", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report.report_source.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 64, message = "{ui_scenario_report.report_source.length_range}", groups = {Created.class, Updated.class}) - private String reportSource; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - projectId("project_id", "projectId", "VARCHAR", false), - name("name", "name", "VARCHAR", true), - createTime("create_time", "createTime", "BIGINT", false), - updateTime("update_time", "updateTime", "BIGINT", false), - status("status", "status", "VARCHAR", true), - triggerMode("trigger_mode", "triggerMode", "VARCHAR", false), - executeType("execute_type", "executeType", "VARCHAR", false), - scenarioName("scenario_name", "scenarioName", "VARCHAR", false), - scenarioId("scenario_id", "scenarioId", "VARCHAR", false), - createUser("create_user", "createUser", "VARCHAR", false), - poolId("pool_id", "poolId", "VARCHAR", false), - endTime("end_time", "endTime", "BIGINT", false), - integrated("integrated", "integrated", "BIT", false), - relevanceTestPlanReportId("relevance_test_plan_report_id", "relevanceTestPlanReportId", "VARCHAR", false), - reportSource("report_source", "reportSource", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetail.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetail.java deleted file mode 100644 index 28712041d2..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetail.java +++ /dev/null @@ -1,134 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiScenarioReportDetail implements Serializable { - @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report_detail.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report_detail.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "资源id(场景,接口)", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report_detail.resource_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report_detail.resource_id.length_range}", groups = {Created.class, Updated.class}) - private String resourceId; - - @Schema(description = "报告 id", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report_detail.report_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report_detail.report_id.length_range}", groups = {Created.class, Updated.class}) - private String reportId; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report_detail.status.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 100, message = "{ui_scenario_report_detail.status.length_range}", groups = {Created.class, Updated.class}) - private String status; - - @Schema(description = "请求时间", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_scenario_report_detail.request_time.not_blank}", groups = {Created.class}) - private Long requestTime; - - @Schema(description = "总断言数") - private Long totalAssertions; - - @Schema(description = "失败断言数") - private Long passAssertions; - - @Schema(description = "执行结果", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_scenario_report_detail.content.not_blank}", groups = {Created.class}) - private byte[] content; - - @Schema(description = "记录截图断言等结果") - private byte[] baseInfo; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - resourceId("resource_id", "resourceId", "VARCHAR", false), - reportId("report_id", "reportId", "VARCHAR", false), - createTime("create_time", "createTime", "BIGINT", false), - status("status", "status", "VARCHAR", true), - requestTime("request_time", "requestTime", "BIGINT", false), - totalAssertions("total_assertions", "totalAssertions", "BIGINT", false), - passAssertions("pass_assertions", "passAssertions", "BIGINT", false), - content("content", "content", "LONGVARBINARY", false), - baseInfo("base_info", "baseInfo", "LONGVARBINARY", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetailExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetailExample.java deleted file mode 100644 index 831f179479..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportDetailExample.java +++ /dev/null @@ -1,720 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiScenarioReportDetailExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiScenarioReportDetailExample() { - 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 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 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 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 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 andRequestTimeIsNull() { - addCriterion("request_time is null"); - return (Criteria) this; - } - - public Criteria andRequestTimeIsNotNull() { - addCriterion("request_time is not null"); - return (Criteria) this; - } - - public Criteria andRequestTimeEqualTo(Long value) { - addCriterion("request_time =", value, "requestTime"); - return (Criteria) this; - } - - public Criteria andRequestTimeNotEqualTo(Long value) { - addCriterion("request_time <>", value, "requestTime"); - return (Criteria) this; - } - - public Criteria andRequestTimeGreaterThan(Long value) { - addCriterion("request_time >", value, "requestTime"); - return (Criteria) this; - } - - public Criteria andRequestTimeGreaterThanOrEqualTo(Long value) { - addCriterion("request_time >=", value, "requestTime"); - return (Criteria) this; - } - - public Criteria andRequestTimeLessThan(Long value) { - addCriterion("request_time <", value, "requestTime"); - return (Criteria) this; - } - - public Criteria andRequestTimeLessThanOrEqualTo(Long value) { - addCriterion("request_time <=", value, "requestTime"); - return (Criteria) this; - } - - public Criteria andRequestTimeIn(List values) { - addCriterion("request_time in", values, "requestTime"); - return (Criteria) this; - } - - public Criteria andRequestTimeNotIn(List values) { - addCriterion("request_time not in", values, "requestTime"); - return (Criteria) this; - } - - public Criteria andRequestTimeBetween(Long value1, Long value2) { - addCriterion("request_time between", value1, value2, "requestTime"); - return (Criteria) this; - } - - public Criteria andRequestTimeNotBetween(Long value1, Long value2) { - addCriterion("request_time not between", value1, value2, "requestTime"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsIsNull() { - addCriterion("total_assertions is null"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsIsNotNull() { - addCriterion("total_assertions is not null"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsEqualTo(Long value) { - addCriterion("total_assertions =", value, "totalAssertions"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsNotEqualTo(Long value) { - addCriterion("total_assertions <>", value, "totalAssertions"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsGreaterThan(Long value) { - addCriterion("total_assertions >", value, "totalAssertions"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsGreaterThanOrEqualTo(Long value) { - addCriterion("total_assertions >=", value, "totalAssertions"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsLessThan(Long value) { - addCriterion("total_assertions <", value, "totalAssertions"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsLessThanOrEqualTo(Long value) { - addCriterion("total_assertions <=", value, "totalAssertions"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsIn(List values) { - addCriterion("total_assertions in", values, "totalAssertions"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsNotIn(List values) { - addCriterion("total_assertions not in", values, "totalAssertions"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsBetween(Long value1, Long value2) { - addCriterion("total_assertions between", value1, value2, "totalAssertions"); - return (Criteria) this; - } - - public Criteria andTotalAssertionsNotBetween(Long value1, Long value2) { - addCriterion("total_assertions not between", value1, value2, "totalAssertions"); - return (Criteria) this; - } - - public Criteria andPassAssertionsIsNull() { - addCriterion("pass_assertions is null"); - return (Criteria) this; - } - - public Criteria andPassAssertionsIsNotNull() { - addCriterion("pass_assertions is not null"); - return (Criteria) this; - } - - public Criteria andPassAssertionsEqualTo(Long value) { - addCriterion("pass_assertions =", value, "passAssertions"); - return (Criteria) this; - } - - public Criteria andPassAssertionsNotEqualTo(Long value) { - addCriterion("pass_assertions <>", value, "passAssertions"); - return (Criteria) this; - } - - public Criteria andPassAssertionsGreaterThan(Long value) { - addCriterion("pass_assertions >", value, "passAssertions"); - return (Criteria) this; - } - - public Criteria andPassAssertionsGreaterThanOrEqualTo(Long value) { - addCriterion("pass_assertions >=", value, "passAssertions"); - return (Criteria) this; - } - - public Criteria andPassAssertionsLessThan(Long value) { - addCriterion("pass_assertions <", value, "passAssertions"); - return (Criteria) this; - } - - public Criteria andPassAssertionsLessThanOrEqualTo(Long value) { - addCriterion("pass_assertions <=", value, "passAssertions"); - return (Criteria) this; - } - - public Criteria andPassAssertionsIn(List values) { - addCriterion("pass_assertions in", values, "passAssertions"); - return (Criteria) this; - } - - public Criteria andPassAssertionsNotIn(List values) { - addCriterion("pass_assertions not in", values, "passAssertions"); - return (Criteria) this; - } - - public Criteria andPassAssertionsBetween(Long value1, Long value2) { - addCriterion("pass_assertions between", value1, value2, "passAssertions"); - return (Criteria) this; - } - - public Criteria andPassAssertionsNotBetween(Long value1, Long value2) { - addCriterion("pass_assertions not between", value1, value2, "passAssertions"); - 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/ui/domain/UiScenarioReportEnvironment.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportEnvironment.java deleted file mode 100644 index db6e06ec08..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportEnvironment.java +++ /dev/null @@ -1,98 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiScenarioReportEnvironment implements Serializable { - @Schema(description = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report_environment.report_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report_environment.report_id.length_range}", groups = {Created.class, Updated.class}) - private String reportId; - - @Schema(description = "项目ID") - private String projectId; - - @Schema(description = "环境ID") - private String environmentId; - - private static final long serialVersionUID = 1L; - - public enum Column { - reportId("report_id", "reportId", "VARCHAR", false), - projectId("project_id", "projectId", "VARCHAR", false), - environmentId("environment_id", "environmentId", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportEnvironmentExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportEnvironmentExample.java deleted file mode 100644 index fef20108b4..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportEnvironmentExample.java +++ /dev/null @@ -1,410 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiScenarioReportEnvironmentExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiScenarioReportEnvironmentExample() { - 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 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 andEnvironmentIdIsNull() { - addCriterion("environment_id is null"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdIsNotNull() { - addCriterion("environment_id is not null"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdEqualTo(String value) { - addCriterion("environment_id =", value, "environmentId"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdNotEqualTo(String value) { - addCriterion("environment_id <>", value, "environmentId"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdGreaterThan(String value) { - addCriterion("environment_id >", value, "environmentId"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdGreaterThanOrEqualTo(String value) { - addCriterion("environment_id >=", value, "environmentId"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdLessThan(String value) { - addCriterion("environment_id <", value, "environmentId"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdLessThanOrEqualTo(String value) { - addCriterion("environment_id <=", value, "environmentId"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdLike(String value) { - addCriterion("environment_id like", value, "environmentId"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdNotLike(String value) { - addCriterion("environment_id not like", value, "environmentId"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdIn(List values) { - addCriterion("environment_id in", values, "environmentId"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdNotIn(List values) { - addCriterion("environment_id not in", values, "environmentId"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdBetween(String value1, String value2) { - addCriterion("environment_id between", value1, value2, "environmentId"); - return (Criteria) this; - } - - public Criteria andEnvironmentIdNotBetween(String value1, String value2) { - addCriterion("environment_id not between", value1, value2, "environmentId"); - 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/ui/domain/UiScenarioReportExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportExample.java deleted file mode 100644 index c859b4c5c0..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportExample.java +++ /dev/null @@ -1,1280 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiScenarioReportExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiScenarioReportExample() { - 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 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 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 andExecuteTypeIsNull() { - addCriterion("execute_type is null"); - return (Criteria) this; - } - - public Criteria andExecuteTypeIsNotNull() { - addCriterion("execute_type is not null"); - return (Criteria) this; - } - - public Criteria andExecuteTypeEqualTo(String value) { - addCriterion("execute_type =", value, "executeType"); - return (Criteria) this; - } - - public Criteria andExecuteTypeNotEqualTo(String value) { - addCriterion("execute_type <>", value, "executeType"); - return (Criteria) this; - } - - public Criteria andExecuteTypeGreaterThan(String value) { - addCriterion("execute_type >", value, "executeType"); - return (Criteria) this; - } - - public Criteria andExecuteTypeGreaterThanOrEqualTo(String value) { - addCriterion("execute_type >=", value, "executeType"); - return (Criteria) this; - } - - public Criteria andExecuteTypeLessThan(String value) { - addCriterion("execute_type <", value, "executeType"); - return (Criteria) this; - } - - public Criteria andExecuteTypeLessThanOrEqualTo(String value) { - addCriterion("execute_type <=", value, "executeType"); - return (Criteria) this; - } - - public Criteria andExecuteTypeLike(String value) { - addCriterion("execute_type like", value, "executeType"); - return (Criteria) this; - } - - public Criteria andExecuteTypeNotLike(String value) { - addCriterion("execute_type not like", value, "executeType"); - return (Criteria) this; - } - - public Criteria andExecuteTypeIn(List values) { - addCriterion("execute_type in", values, "executeType"); - return (Criteria) this; - } - - public Criteria andExecuteTypeNotIn(List values) { - addCriterion("execute_type not in", values, "executeType"); - return (Criteria) this; - } - - public Criteria andExecuteTypeBetween(String value1, String value2) { - addCriterion("execute_type between", value1, value2, "executeType"); - return (Criteria) this; - } - - public Criteria andExecuteTypeNotBetween(String value1, String value2) { - addCriterion("execute_type not between", value1, value2, "executeType"); - return (Criteria) this; - } - - public Criteria andScenarioNameIsNull() { - addCriterion("scenario_name is null"); - return (Criteria) this; - } - - public Criteria andScenarioNameIsNotNull() { - addCriterion("scenario_name is not null"); - return (Criteria) this; - } - - public Criteria andScenarioNameEqualTo(String value) { - addCriterion("scenario_name =", value, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioNameNotEqualTo(String value) { - addCriterion("scenario_name <>", value, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioNameGreaterThan(String value) { - addCriterion("scenario_name >", value, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioNameGreaterThanOrEqualTo(String value) { - addCriterion("scenario_name >=", value, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioNameLessThan(String value) { - addCriterion("scenario_name <", value, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioNameLessThanOrEqualTo(String value) { - addCriterion("scenario_name <=", value, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioNameLike(String value) { - addCriterion("scenario_name like", value, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioNameNotLike(String value) { - addCriterion("scenario_name not like", value, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioNameIn(List values) { - addCriterion("scenario_name in", values, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioNameNotIn(List values) { - addCriterion("scenario_name not in", values, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioNameBetween(String value1, String value2) { - addCriterion("scenario_name between", value1, value2, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioNameNotBetween(String value1, String value2) { - addCriterion("scenario_name not between", value1, value2, "scenarioName"); - return (Criteria) this; - } - - public Criteria andScenarioIdIsNull() { - addCriterion("scenario_id is null"); - return (Criteria) this; - } - - public Criteria andScenarioIdIsNotNull() { - addCriterion("scenario_id is not null"); - return (Criteria) this; - } - - public Criteria andScenarioIdEqualTo(String value) { - addCriterion("scenario_id =", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotEqualTo(String value) { - addCriterion("scenario_id <>", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdGreaterThan(String value) { - addCriterion("scenario_id >", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdGreaterThanOrEqualTo(String value) { - addCriterion("scenario_id >=", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdLessThan(String value) { - addCriterion("scenario_id <", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdLessThanOrEqualTo(String value) { - addCriterion("scenario_id <=", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdLike(String value) { - addCriterion("scenario_id like", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotLike(String value) { - addCriterion("scenario_id not like", value, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdIn(List values) { - addCriterion("scenario_id in", values, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotIn(List values) { - addCriterion("scenario_id not in", values, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdBetween(String value1, String value2) { - addCriterion("scenario_id between", value1, value2, "scenarioId"); - return (Criteria) this; - } - - public Criteria andScenarioIdNotBetween(String value1, String value2) { - addCriterion("scenario_id not between", value1, value2, "scenarioId"); - 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 andPoolIdIsNull() { - addCriterion("pool_id is null"); - return (Criteria) this; - } - - public Criteria andPoolIdIsNotNull() { - addCriterion("pool_id is not null"); - return (Criteria) this; - } - - public Criteria andPoolIdEqualTo(String value) { - addCriterion("pool_id =", value, "poolId"); - return (Criteria) this; - } - - public Criteria andPoolIdNotEqualTo(String value) { - addCriterion("pool_id <>", value, "poolId"); - return (Criteria) this; - } - - public Criteria andPoolIdGreaterThan(String value) { - addCriterion("pool_id >", value, "poolId"); - return (Criteria) this; - } - - public Criteria andPoolIdGreaterThanOrEqualTo(String value) { - addCriterion("pool_id >=", value, "poolId"); - return (Criteria) this; - } - - public Criteria andPoolIdLessThan(String value) { - addCriterion("pool_id <", value, "poolId"); - return (Criteria) this; - } - - public Criteria andPoolIdLessThanOrEqualTo(String value) { - addCriterion("pool_id <=", value, "poolId"); - return (Criteria) this; - } - - public Criteria andPoolIdLike(String value) { - addCriterion("pool_id like", value, "poolId"); - return (Criteria) this; - } - - public Criteria andPoolIdNotLike(String value) { - addCriterion("pool_id not like", value, "poolId"); - return (Criteria) this; - } - - public Criteria andPoolIdIn(List values) { - addCriterion("pool_id in", values, "poolId"); - return (Criteria) this; - } - - public Criteria andPoolIdNotIn(List values) { - addCriterion("pool_id not in", values, "poolId"); - return (Criteria) this; - } - - public Criteria andPoolIdBetween(String value1, String value2) { - addCriterion("pool_id between", value1, value2, "poolId"); - return (Criteria) this; - } - - public Criteria andPoolIdNotBetween(String value1, String value2) { - addCriterion("pool_id not between", value1, value2, "poolId"); - return (Criteria) this; - } - - public Criteria andEndTimeIsNull() { - addCriterion("end_time is null"); - return (Criteria) this; - } - - public Criteria andEndTimeIsNotNull() { - addCriterion("end_time is not null"); - return (Criteria) this; - } - - public Criteria andEndTimeEqualTo(Long value) { - addCriterion("end_time =", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeNotEqualTo(Long value) { - addCriterion("end_time <>", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeGreaterThan(Long value) { - addCriterion("end_time >", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeGreaterThanOrEqualTo(Long value) { - addCriterion("end_time >=", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeLessThan(Long value) { - addCriterion("end_time <", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeLessThanOrEqualTo(Long value) { - addCriterion("end_time <=", value, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeIn(List values) { - addCriterion("end_time in", values, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeNotIn(List values) { - addCriterion("end_time not in", values, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeBetween(Long value1, Long value2) { - addCriterion("end_time between", value1, value2, "endTime"); - return (Criteria) this; - } - - public Criteria andEndTimeNotBetween(Long value1, Long value2) { - addCriterion("end_time not between", value1, value2, "endTime"); - return (Criteria) this; - } - - public Criteria andIntegratedIsNull() { - addCriterion("integrated is null"); - return (Criteria) this; - } - - public Criteria andIntegratedIsNotNull() { - addCriterion("integrated is not null"); - return (Criteria) this; - } - - public Criteria andIntegratedEqualTo(Boolean value) { - addCriterion("integrated =", value, "integrated"); - return (Criteria) this; - } - - public Criteria andIntegratedNotEqualTo(Boolean value) { - addCriterion("integrated <>", value, "integrated"); - return (Criteria) this; - } - - public Criteria andIntegratedGreaterThan(Boolean value) { - addCriterion("integrated >", value, "integrated"); - return (Criteria) this; - } - - public Criteria andIntegratedGreaterThanOrEqualTo(Boolean value) { - addCriterion("integrated >=", value, "integrated"); - return (Criteria) this; - } - - public Criteria andIntegratedLessThan(Boolean value) { - addCriterion("integrated <", value, "integrated"); - return (Criteria) this; - } - - public Criteria andIntegratedLessThanOrEqualTo(Boolean value) { - addCriterion("integrated <=", value, "integrated"); - return (Criteria) this; - } - - public Criteria andIntegratedIn(List values) { - addCriterion("integrated in", values, "integrated"); - return (Criteria) this; - } - - public Criteria andIntegratedNotIn(List values) { - addCriterion("integrated not in", values, "integrated"); - return (Criteria) this; - } - - public Criteria andIntegratedBetween(Boolean value1, Boolean value2) { - addCriterion("integrated between", value1, value2, "integrated"); - return (Criteria) this; - } - - public Criteria andIntegratedNotBetween(Boolean value1, Boolean value2) { - addCriterion("integrated not between", value1, value2, "integrated"); - 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 Criteria andReportSourceIsNull() { - addCriterion("report_source is null"); - return (Criteria) this; - } - - public Criteria andReportSourceIsNotNull() { - addCriterion("report_source is not null"); - return (Criteria) this; - } - - public Criteria andReportSourceEqualTo(String value) { - addCriterion("report_source =", value, "reportSource"); - return (Criteria) this; - } - - public Criteria andReportSourceNotEqualTo(String value) { - addCriterion("report_source <>", value, "reportSource"); - return (Criteria) this; - } - - public Criteria andReportSourceGreaterThan(String value) { - addCriterion("report_source >", value, "reportSource"); - return (Criteria) this; - } - - public Criteria andReportSourceGreaterThanOrEqualTo(String value) { - addCriterion("report_source >=", value, "reportSource"); - return (Criteria) this; - } - - public Criteria andReportSourceLessThan(String value) { - addCriterion("report_source <", value, "reportSource"); - return (Criteria) this; - } - - public Criteria andReportSourceLessThanOrEqualTo(String value) { - addCriterion("report_source <=", value, "reportSource"); - return (Criteria) this; - } - - public Criteria andReportSourceLike(String value) { - addCriterion("report_source like", value, "reportSource"); - return (Criteria) this; - } - - public Criteria andReportSourceNotLike(String value) { - addCriterion("report_source not like", value, "reportSource"); - return (Criteria) this; - } - - public Criteria andReportSourceIn(List values) { - addCriterion("report_source in", values, "reportSource"); - return (Criteria) this; - } - - public Criteria andReportSourceNotIn(List values) { - addCriterion("report_source not in", values, "reportSource"); - return (Criteria) this; - } - - public Criteria andReportSourceBetween(String value1, String value2) { - addCriterion("report_source between", value1, value2, "reportSource"); - return (Criteria) this; - } - - public Criteria andReportSourceNotBetween(String value1, String value2) { - addCriterion("report_source not between", value1, value2, "reportSource"); - 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/ui/domain/UiScenarioReportLog.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportLog.java deleted file mode 100644 index d5afc0755d..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportLog.java +++ /dev/null @@ -1,105 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiScenarioReportLog implements Serializable { - @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report_log.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report_log.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report_log.report_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report_log.report_id.length_range}", groups = {Created.class, Updated.class}) - private String reportId; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "执行日志", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_scenario_report_log.console.not_blank}", groups = {Created.class}) - private byte[] console; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - reportId("report_id", "reportId", "VARCHAR", false), - createTime("create_time", "createTime", "BIGINT", false), - console("console", "console", "LONGVARBINARY", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportLogExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportLogExample.java deleted file mode 100644 index e7f1f56fb9..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportLogExample.java +++ /dev/null @@ -1,400 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiScenarioReportLogExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiScenarioReportLogExample() { - 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 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 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/ui/domain/UiScenarioReportStructure.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportStructure.java deleted file mode 100644 index e3ec3e97b7..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportStructure.java +++ /dev/null @@ -1,105 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiScenarioReportStructure implements Serializable { - @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report_structure.id.not_blank}", groups = {Updated.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report_structure.id.length_range}", groups = {Created.class, Updated.class}) - private String id; - - @Schema(description = "请求资源 id", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_report_structure.report_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_report_structure.report_id.length_range}", groups = {Created.class, Updated.class}) - private String reportId; - - @Schema(description = "创建时间") - private Long createTime; - - @Schema(description = "资源步骤结构树", requiredMode = Schema.RequiredMode.REQUIRED) - @NotNull(message = "{ui_scenario_report_structure.resource_tree.not_blank}", groups = {Created.class}) - private byte[] resourceTree; - - private static final long serialVersionUID = 1L; - - public enum Column { - id("id", "id", "VARCHAR", false), - reportId("report_id", "reportId", "VARCHAR", false), - createTime("create_time", "createTime", "BIGINT", false), - resourceTree("resource_tree", "resourceTree", "LONGVARBINARY", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportStructureExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportStructureExample.java deleted file mode 100644 index e267e212b6..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioReportStructureExample.java +++ /dev/null @@ -1,400 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiScenarioReportStructureExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiScenarioReportStructureExample() { - 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 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 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/ui/domain/UiScenarioVariable.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioVariable.java deleted file mode 100644 index 2585f0e971..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioVariable.java +++ /dev/null @@ -1,112 +0,0 @@ -package io.metersphere.ui.domain; - -import io.metersphere.validation.groups.*; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.constraints.*; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Arrays; -import lombok.Data; - -@Data -public class UiScenarioVariable implements Serializable { - @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_variable.resource_id.not_blank}", groups = {Created.class}) - @Size(min = 1, max = 50, message = "{ui_scenario_variable.resource_id.length_range}", groups = {Created.class, Updated.class}) - private String resourceId; - - @Schema(description = "变量类型", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_variable.type.not_blank}", groups = {Created.class, Updated.class}) - @Size(min = 1, max = 100, message = "{ui_scenario_variable.type.length_range}", groups = {Created.class, Updated.class}) - private String type; - - @Schema(description = "变量值", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_variable.value.not_blank}", groups = {Created.class, Updated.class}) - @Size(min = 1, max = 1000, message = "{ui_scenario_variable.value.length_range}", groups = {Created.class, Updated.class}) - private String value; - - @Schema(description = "变量名称", requiredMode = Schema.RequiredMode.REQUIRED) - @NotBlank(message = "{ui_scenario_variable.name.not_blank}", groups = {Created.class, Updated.class}) - @Size(min = 1, max = 255, message = "{ui_scenario_variable.name.length_range}", groups = {Created.class, Updated.class}) - private String name; - - @Schema(description = "描述") - private String description; - - private static final long serialVersionUID = 1L; - - public enum Column { - resourceId("resource_id", "resourceId", "VARCHAR", false), - type("type", "type", "VARCHAR", true), - value("value", "value", "VARCHAR", true), - name("name", "name", "VARCHAR", true), - description("description", "description", "VARCHAR", false); - - private static final String BEGINNING_DELIMITER = "`"; - - private static final String ENDING_DELIMITER = "`"; - - private final String column; - - private final boolean isColumnNameDelimited; - - private final String javaProperty; - - private final String jdbcType; - - public String value() { - return this.column; - } - - public String getValue() { - return this.column; - } - - public String getJavaProperty() { - return this.javaProperty; - } - - public String getJdbcType() { - return this.jdbcType; - } - - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - public static Column[] all() { - return Column.values(); - } - - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - - public String getAliasedEscapedColumnName() { - return this.getEscapedColumnName(); - } - } -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioVariableExample.java b/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioVariableExample.java deleted file mode 100644 index d00cc90890..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/domain/UiScenarioVariableExample.java +++ /dev/null @@ -1,550 +0,0 @@ -package io.metersphere.ui.domain; - -import java.util.ArrayList; -import java.util.List; - -public class UiScenarioVariableExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UiScenarioVariableExample() { - 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 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 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 andValueIsNull() { - addCriterion("`value` is null"); - return (Criteria) this; - } - - public Criteria andValueIsNotNull() { - addCriterion("`value` is not null"); - return (Criteria) this; - } - - public Criteria andValueEqualTo(String value) { - addCriterion("`value` =", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotEqualTo(String value) { - addCriterion("`value` <>", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThan(String value) { - addCriterion("`value` >", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThanOrEqualTo(String value) { - addCriterion("`value` >=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThan(String value) { - addCriterion("`value` <", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThanOrEqualTo(String value) { - addCriterion("`value` <=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLike(String value) { - addCriterion("`value` like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotLike(String value) { - addCriterion("`value` not like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueIn(List values) { - addCriterion("`value` in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueNotIn(List values) { - addCriterion("`value` not in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueBetween(String value1, String value2) { - addCriterion("`value` between", value1, value2, "value"); - return (Criteria) this; - } - - public Criteria andValueNotBetween(String value1, String value2) { - addCriterion("`value` not between", value1, value2, "value"); - 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 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/ui/mapper/UiCustomCommandBlobMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandBlobMapper.java deleted file mode 100644 index 2758086c26..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandBlobMapper.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiCustomCommandBlob; -import io.metersphere.ui.domain.UiCustomCommandBlobExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiCustomCommandBlobMapper { - long countByExample(UiCustomCommandBlobExample example); - - int deleteByExample(UiCustomCommandBlobExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiCustomCommandBlob record); - - int insertSelective(UiCustomCommandBlob record); - - List selectByExampleWithBLOBs(UiCustomCommandBlobExample example); - - List selectByExample(UiCustomCommandBlobExample example); - - UiCustomCommandBlob selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiCustomCommandBlob record, @Param("example") UiCustomCommandBlobExample example); - - int updateByExampleWithBLOBs(@Param("record") UiCustomCommandBlob record, @Param("example") UiCustomCommandBlobExample example); - - int updateByExample(@Param("record") UiCustomCommandBlob record, @Param("example") UiCustomCommandBlobExample example); - - int updateByPrimaryKeySelective(UiCustomCommandBlob record); - - int updateByPrimaryKeyWithBLOBs(UiCustomCommandBlob record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiCustomCommandBlob.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandBlobMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandBlobMapper.xml deleted file mode 100644 index 650be0502a..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandBlobMapper.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 - - - scenario_definition, command_view_struct - - - - - - delete from ui_custom_command_blob - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_custom_command_blob - - - - - - insert into ui_custom_command_blob (id, scenario_definition, command_view_struct - ) - values (#{id,jdbcType=VARCHAR}, #{scenarioDefinition,jdbcType=LONGVARBINARY}, #{commandViewStruct,jdbcType=LONGVARBINARY} - ) - - - insert into ui_custom_command_blob - - - id, - - - scenario_definition, - - - command_view_struct, - - - - - #{id,jdbcType=VARCHAR}, - - - #{scenarioDefinition,jdbcType=LONGVARBINARY}, - - - #{commandViewStruct,jdbcType=LONGVARBINARY}, - - - - - - update ui_custom_command_blob - - - id = #{record.id,jdbcType=VARCHAR}, - - - scenario_definition = #{record.scenarioDefinition,jdbcType=LONGVARBINARY}, - - - command_view_struct = #{record.commandViewStruct,jdbcType=LONGVARBINARY}, - - - - - - - - update ui_custom_command_blob - set id = #{record.id,jdbcType=VARCHAR}, - scenario_definition = #{record.scenarioDefinition,jdbcType=LONGVARBINARY}, - command_view_struct = #{record.commandViewStruct,jdbcType=LONGVARBINARY} - - - - - - update ui_custom_command_blob - set id = #{record.id,jdbcType=VARCHAR} - - - - - - update ui_custom_command_blob - - - scenario_definition = #{scenarioDefinition,jdbcType=LONGVARBINARY}, - - - command_view_struct = #{commandViewStruct,jdbcType=LONGVARBINARY}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_custom_command_blob - set scenario_definition = #{scenarioDefinition,jdbcType=LONGVARBINARY}, - command_view_struct = #{commandViewStruct,jdbcType=LONGVARBINARY} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_custom_command_blob - (id, scenario_definition, command_view_struct) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.scenarioDefinition,jdbcType=LONGVARBINARY}, - #{item.commandViewStruct,jdbcType=LONGVARBINARY}) - - - - insert into ui_custom_command_blob ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.scenarioDefinition,jdbcType=LONGVARBINARY} - - - #{item.commandViewStruct,jdbcType=LONGVARBINARY} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandMapper.java deleted file mode 100644 index 27bbb3bc95..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiCustomCommand; -import io.metersphere.ui.domain.UiCustomCommandExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiCustomCommandMapper { - long countByExample(UiCustomCommandExample example); - - int deleteByExample(UiCustomCommandExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiCustomCommand record); - - int insertSelective(UiCustomCommand record); - - List selectByExample(UiCustomCommandExample example); - - UiCustomCommand selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiCustomCommand record, @Param("example") UiCustomCommandExample example); - - int updateByExample(@Param("record") UiCustomCommand record, @Param("example") UiCustomCommandExample example); - - int updateByPrimaryKeySelective(UiCustomCommand record); - - int updateByPrimaryKey(UiCustomCommand record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiCustomCommand.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandMapper.xml deleted file mode 100644 index 625f5c8be6..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandMapper.xml +++ /dev/null @@ -1,595 +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, tags, module_id, module_path, `name`, `level`, `status`, principal, - create_time, update_time, last_result, num, deleted, custom_num, create_user, delete_time, - delete_user, pos, version_id, ref_id, latest, description - - - - - delete from ui_custom_command - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_custom_command - - - - - - insert into ui_custom_command (id, project_id, tags, - module_id, module_path, `name`, - `level`, `status`, principal, - create_time, update_time, last_result, - num, deleted, custom_num, - create_user, delete_time, delete_user, - pos, version_id, ref_id, - latest, description) - values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{tags,jdbcType=VARCHAR}, - #{moduleId,jdbcType=VARCHAR}, #{modulePath,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{level,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{principal,jdbcType=VARCHAR}, - #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT}, #{lastResult,jdbcType=VARCHAR}, - #{num,jdbcType=INTEGER}, #{deleted,jdbcType=BIT}, #{customNum,jdbcType=VARCHAR}, - #{createUser,jdbcType=VARCHAR}, #{deleteTime,jdbcType=BIGINT}, #{deleteUser,jdbcType=VARCHAR}, - #{pos,jdbcType=BIGINT}, #{versionId,jdbcType=VARCHAR}, #{refId,jdbcType=VARCHAR}, - #{latest,jdbcType=BIT}, #{description,jdbcType=VARCHAR}) - - - insert into ui_custom_command - - - id, - - - project_id, - - - tags, - - - module_id, - - - module_path, - - - `name`, - - - `level`, - - - `status`, - - - principal, - - - create_time, - - - update_time, - - - last_result, - - - num, - - - deleted, - - - custom_num, - - - create_user, - - - delete_time, - - - delete_user, - - - pos, - - - version_id, - - - ref_id, - - - latest, - - - description, - - - - - #{id,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - #{tags,jdbcType=VARCHAR}, - - - #{moduleId,jdbcType=VARCHAR}, - - - #{modulePath,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{level,jdbcType=VARCHAR}, - - - #{status,jdbcType=VARCHAR}, - - - #{principal,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=BIGINT}, - - - #{updateTime,jdbcType=BIGINT}, - - - #{lastResult,jdbcType=VARCHAR}, - - - #{num,jdbcType=INTEGER}, - - - #{deleted,jdbcType=BIT}, - - - #{customNum,jdbcType=VARCHAR}, - - - #{createUser,jdbcType=VARCHAR}, - - - #{deleteTime,jdbcType=BIGINT}, - - - #{deleteUser,jdbcType=VARCHAR}, - - - #{pos,jdbcType=BIGINT}, - - - #{versionId,jdbcType=VARCHAR}, - - - #{refId,jdbcType=VARCHAR}, - - - #{latest,jdbcType=BIT}, - - - #{description,jdbcType=VARCHAR}, - - - - - - update ui_custom_command - - - id = #{record.id,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - tags = #{record.tags,jdbcType=VARCHAR}, - - - module_id = #{record.moduleId,jdbcType=VARCHAR}, - - - module_path = #{record.modulePath,jdbcType=VARCHAR}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - `level` = #{record.level,jdbcType=VARCHAR}, - - - `status` = #{record.status,jdbcType=VARCHAR}, - - - principal = #{record.principal,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - update_time = #{record.updateTime,jdbcType=BIGINT}, - - - last_result = #{record.lastResult,jdbcType=VARCHAR}, - - - num = #{record.num,jdbcType=INTEGER}, - - - deleted = #{record.deleted,jdbcType=BIT}, - - - custom_num = #{record.customNum,jdbcType=VARCHAR}, - - - create_user = #{record.createUser,jdbcType=VARCHAR}, - - - delete_time = #{record.deleteTime,jdbcType=BIGINT}, - - - delete_user = #{record.deleteUser,jdbcType=VARCHAR}, - - - pos = #{record.pos,jdbcType=BIGINT}, - - - version_id = #{record.versionId,jdbcType=VARCHAR}, - - - ref_id = #{record.refId,jdbcType=VARCHAR}, - - - latest = #{record.latest,jdbcType=BIT}, - - - description = #{record.description,jdbcType=VARCHAR}, - - - - - - - - update ui_custom_command - set id = #{record.id,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR}, - tags = #{record.tags,jdbcType=VARCHAR}, - module_id = #{record.moduleId,jdbcType=VARCHAR}, - module_path = #{record.modulePath,jdbcType=VARCHAR}, - `name` = #{record.name,jdbcType=VARCHAR}, - `level` = #{record.level,jdbcType=VARCHAR}, - `status` = #{record.status,jdbcType=VARCHAR}, - principal = #{record.principal,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT}, - update_time = #{record.updateTime,jdbcType=BIGINT}, - last_result = #{record.lastResult,jdbcType=VARCHAR}, - num = #{record.num,jdbcType=INTEGER}, - deleted = #{record.deleted,jdbcType=BIT}, - custom_num = #{record.customNum,jdbcType=VARCHAR}, - create_user = #{record.createUser,jdbcType=VARCHAR}, - delete_time = #{record.deleteTime,jdbcType=BIGINT}, - delete_user = #{record.deleteUser,jdbcType=VARCHAR}, - pos = #{record.pos,jdbcType=BIGINT}, - version_id = #{record.versionId,jdbcType=VARCHAR}, - ref_id = #{record.refId,jdbcType=VARCHAR}, - latest = #{record.latest,jdbcType=BIT}, - description = #{record.description,jdbcType=VARCHAR} - - - - - - update ui_custom_command - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - tags = #{tags,jdbcType=VARCHAR}, - - - module_id = #{moduleId,jdbcType=VARCHAR}, - - - module_path = #{modulePath,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - `level` = #{level,jdbcType=VARCHAR}, - - - `status` = #{status,jdbcType=VARCHAR}, - - - principal = #{principal,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - update_time = #{updateTime,jdbcType=BIGINT}, - - - last_result = #{lastResult,jdbcType=VARCHAR}, - - - num = #{num,jdbcType=INTEGER}, - - - deleted = #{deleted,jdbcType=BIT}, - - - custom_num = #{customNum,jdbcType=VARCHAR}, - - - create_user = #{createUser,jdbcType=VARCHAR}, - - - delete_time = #{deleteTime,jdbcType=BIGINT}, - - - delete_user = #{deleteUser,jdbcType=VARCHAR}, - - - pos = #{pos,jdbcType=BIGINT}, - - - version_id = #{versionId,jdbcType=VARCHAR}, - - - ref_id = #{refId,jdbcType=VARCHAR}, - - - latest = #{latest,jdbcType=BIT}, - - - description = #{description,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_custom_command - set project_id = #{projectId,jdbcType=VARCHAR}, - tags = #{tags,jdbcType=VARCHAR}, - module_id = #{moduleId,jdbcType=VARCHAR}, - module_path = #{modulePath,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - `level` = #{level,jdbcType=VARCHAR}, - `status` = #{status,jdbcType=VARCHAR}, - principal = #{principal,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, - update_time = #{updateTime,jdbcType=BIGINT}, - last_result = #{lastResult,jdbcType=VARCHAR}, - num = #{num,jdbcType=INTEGER}, - deleted = #{deleted,jdbcType=BIT}, - custom_num = #{customNum,jdbcType=VARCHAR}, - create_user = #{createUser,jdbcType=VARCHAR}, - delete_time = #{deleteTime,jdbcType=BIGINT}, - delete_user = #{deleteUser,jdbcType=VARCHAR}, - pos = #{pos,jdbcType=BIGINT}, - version_id = #{versionId,jdbcType=VARCHAR}, - ref_id = #{refId,jdbcType=VARCHAR}, - latest = #{latest,jdbcType=BIT}, - description = #{description,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_custom_command - (id, project_id, tags, module_id, module_path, `name`, `level`, `status`, principal, - create_time, update_time, last_result, num, deleted, custom_num, create_user, delete_time, - delete_user, pos, version_id, ref_id, latest, description) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR}, #{item.tags,jdbcType=VARCHAR}, - #{item.moduleId,jdbcType=VARCHAR}, #{item.modulePath,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, - #{item.level,jdbcType=VARCHAR}, #{item.status,jdbcType=VARCHAR}, #{item.principal,jdbcType=VARCHAR}, - #{item.createTime,jdbcType=BIGINT}, #{item.updateTime,jdbcType=BIGINT}, #{item.lastResult,jdbcType=VARCHAR}, - #{item.num,jdbcType=INTEGER}, #{item.deleted,jdbcType=BIT}, #{item.customNum,jdbcType=VARCHAR}, - #{item.createUser,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=BIGINT}, #{item.deleteUser,jdbcType=VARCHAR}, - #{item.pos,jdbcType=BIGINT}, #{item.versionId,jdbcType=VARCHAR}, #{item.refId,jdbcType=VARCHAR}, - #{item.latest,jdbcType=BIT}, #{item.description,jdbcType=VARCHAR}) - - - - insert into ui_custom_command ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=VARCHAR} - - - #{item.tags,jdbcType=VARCHAR} - - - #{item.moduleId,jdbcType=VARCHAR} - - - #{item.modulePath,jdbcType=VARCHAR} - - - #{item.name,jdbcType=VARCHAR} - - - #{item.level,jdbcType=VARCHAR} - - - #{item.status,jdbcType=VARCHAR} - - - #{item.principal,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=BIGINT} - - - #{item.updateTime,jdbcType=BIGINT} - - - #{item.lastResult,jdbcType=VARCHAR} - - - #{item.num,jdbcType=INTEGER} - - - #{item.deleted,jdbcType=BIT} - - - #{item.customNum,jdbcType=VARCHAR} - - - #{item.createUser,jdbcType=VARCHAR} - - - #{item.deleteTime,jdbcType=BIGINT} - - - #{item.deleteUser,jdbcType=VARCHAR} - - - #{item.pos,jdbcType=BIGINT} - - - #{item.versionId,jdbcType=VARCHAR} - - - #{item.refId,jdbcType=VARCHAR} - - - #{item.latest,jdbcType=BIT} - - - #{item.description,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandModuleMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandModuleMapper.java deleted file mode 100644 index 78cf1cdacf..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandModuleMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiCustomCommandModule; -import io.metersphere.ui.domain.UiCustomCommandModuleExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiCustomCommandModuleMapper { - long countByExample(UiCustomCommandModuleExample example); - - int deleteByExample(UiCustomCommandModuleExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiCustomCommandModule record); - - int insertSelective(UiCustomCommandModule record); - - List selectByExample(UiCustomCommandModuleExample example); - - UiCustomCommandModule selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiCustomCommandModule record, @Param("example") UiCustomCommandModuleExample example); - - int updateByExample(@Param("record") UiCustomCommandModule record, @Param("example") UiCustomCommandModuleExample example); - - int updateByPrimaryKeySelective(UiCustomCommandModule record); - - int updateByPrimaryKey(UiCustomCommandModule record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiCustomCommandModule.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandModuleMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandModuleMapper.xml deleted file mode 100644 index 625d40e08f..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomCommandModuleMapper.xml +++ /dev/null @@ -1,328 +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`, parent_id, `level`, create_time, update_time, pos, create_user - - - - - delete from ui_custom_command_module - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_custom_command_module - - - - - - insert into ui_custom_command_module (id, project_id, `name`, - parent_id, `level`, create_time, - update_time, pos, create_user - ) - values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{parentId,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT}, - #{updateTime,jdbcType=BIGINT}, #{pos,jdbcType=DOUBLE}, #{createUser,jdbcType=VARCHAR} - ) - - - insert into ui_custom_command_module - - - id, - - - project_id, - - - `name`, - - - parent_id, - - - `level`, - - - create_time, - - - update_time, - - - pos, - - - create_user, - - - - - #{id,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{parentId,jdbcType=VARCHAR}, - - - #{level,jdbcType=INTEGER}, - - - #{createTime,jdbcType=BIGINT}, - - - #{updateTime,jdbcType=BIGINT}, - - - #{pos,jdbcType=DOUBLE}, - - - #{createUser,jdbcType=VARCHAR}, - - - - - - update ui_custom_command_module - - - id = #{record.id,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - parent_id = #{record.parentId,jdbcType=VARCHAR}, - - - `level` = #{record.level,jdbcType=INTEGER}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - update_time = #{record.updateTime,jdbcType=BIGINT}, - - - pos = #{record.pos,jdbcType=DOUBLE}, - - - create_user = #{record.createUser,jdbcType=VARCHAR}, - - - - - - - - update ui_custom_command_module - set id = #{record.id,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR}, - `name` = #{record.name,jdbcType=VARCHAR}, - parent_id = #{record.parentId,jdbcType=VARCHAR}, - `level` = #{record.level,jdbcType=INTEGER}, - create_time = #{record.createTime,jdbcType=BIGINT}, - update_time = #{record.updateTime,jdbcType=BIGINT}, - pos = #{record.pos,jdbcType=DOUBLE}, - create_user = #{record.createUser,jdbcType=VARCHAR} - - - - - - update ui_custom_command_module - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - parent_id = #{parentId,jdbcType=VARCHAR}, - - - `level` = #{level,jdbcType=INTEGER}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - update_time = #{updateTime,jdbcType=BIGINT}, - - - pos = #{pos,jdbcType=DOUBLE}, - - - create_user = #{createUser,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_custom_command_module - set project_id = #{projectId,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - parent_id = #{parentId,jdbcType=VARCHAR}, - `level` = #{level,jdbcType=INTEGER}, - create_time = #{createTime,jdbcType=BIGINT}, - update_time = #{updateTime,jdbcType=BIGINT}, - pos = #{pos,jdbcType=DOUBLE}, - create_user = #{createUser,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_custom_command_module - (id, project_id, `name`, parent_id, `level`, create_time, update_time, pos, create_user - ) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, - #{item.parentId,jdbcType=VARCHAR}, #{item.level,jdbcType=INTEGER}, #{item.createTime,jdbcType=BIGINT}, - #{item.updateTime,jdbcType=BIGINT}, #{item.pos,jdbcType=DOUBLE}, #{item.createUser,jdbcType=VARCHAR} - ) - - - - insert into ui_custom_command_module ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=VARCHAR} - - - #{item.name,jdbcType=VARCHAR} - - - #{item.parentId,jdbcType=VARCHAR} - - - #{item.level,jdbcType=INTEGER} - - - #{item.createTime,jdbcType=BIGINT} - - - #{item.updateTime,jdbcType=BIGINT} - - - #{item.pos,jdbcType=DOUBLE} - - - #{item.createUser,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomVariableMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomVariableMapper.java deleted file mode 100644 index 339d1c9a12..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomVariableMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiCustomVariable; -import io.metersphere.ui.domain.UiCustomVariableExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiCustomVariableMapper { - long countByExample(UiCustomVariableExample example); - - int deleteByExample(UiCustomVariableExample example); - - int deleteByPrimaryKey(String resourceId); - - int insert(UiCustomVariable record); - - int insertSelective(UiCustomVariable record); - - List selectByExample(UiCustomVariableExample example); - - UiCustomVariable selectByPrimaryKey(String resourceId); - - int updateByExampleSelective(@Param("record") UiCustomVariable record, @Param("example") UiCustomVariableExample example); - - int updateByExample(@Param("record") UiCustomVariable record, @Param("example") UiCustomVariableExample example); - - int updateByPrimaryKeySelective(UiCustomVariable record); - - int updateByPrimaryKey(UiCustomVariable record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiCustomVariable.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomVariableMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomVariableMapper.xml deleted file mode 100644 index 45ad32355f..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiCustomVariableMapper.xml +++ /dev/null @@ -1,306 +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} - - - - - - - - - - - resource_id, `type`, `value`, `name`, description, deleted, out_put, `enable` - - - - - delete from ui_custom_variable - where resource_id = #{resourceId,jdbcType=VARCHAR} - - - delete from ui_custom_variable - - - - - - insert into ui_custom_variable (resource_id, `type`, `value`, - `name`, description, deleted, - out_put, `enable`) - values (#{resourceId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR}, - #{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{deleted,jdbcType=BIT}, - #{outPut,jdbcType=BIT}, #{enable,jdbcType=BIT}) - - - insert into ui_custom_variable - - - resource_id, - - - `type`, - - - `value`, - - - `name`, - - - description, - - - deleted, - - - out_put, - - - `enable`, - - - - - #{resourceId,jdbcType=VARCHAR}, - - - #{type,jdbcType=VARCHAR}, - - - #{value,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{description,jdbcType=VARCHAR}, - - - #{deleted,jdbcType=BIT}, - - - #{outPut,jdbcType=BIT}, - - - #{enable,jdbcType=BIT}, - - - - - - update ui_custom_variable - - - resource_id = #{record.resourceId,jdbcType=VARCHAR}, - - - `type` = #{record.type,jdbcType=VARCHAR}, - - - `value` = #{record.value,jdbcType=VARCHAR}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - description = #{record.description,jdbcType=VARCHAR}, - - - deleted = #{record.deleted,jdbcType=BIT}, - - - out_put = #{record.outPut,jdbcType=BIT}, - - - `enable` = #{record.enable,jdbcType=BIT}, - - - - - - - - update ui_custom_variable - set resource_id = #{record.resourceId,jdbcType=VARCHAR}, - `type` = #{record.type,jdbcType=VARCHAR}, - `value` = #{record.value,jdbcType=VARCHAR}, - `name` = #{record.name,jdbcType=VARCHAR}, - description = #{record.description,jdbcType=VARCHAR}, - deleted = #{record.deleted,jdbcType=BIT}, - out_put = #{record.outPut,jdbcType=BIT}, - `enable` = #{record.enable,jdbcType=BIT} - - - - - - update ui_custom_variable - - - `type` = #{type,jdbcType=VARCHAR}, - - - `value` = #{value,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - description = #{description,jdbcType=VARCHAR}, - - - deleted = #{deleted,jdbcType=BIT}, - - - out_put = #{outPut,jdbcType=BIT}, - - - `enable` = #{enable,jdbcType=BIT}, - - - where resource_id = #{resourceId,jdbcType=VARCHAR} - - - update ui_custom_variable - set `type` = #{type,jdbcType=VARCHAR}, - `value` = #{value,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - description = #{description,jdbcType=VARCHAR}, - deleted = #{deleted,jdbcType=BIT}, - out_put = #{outPut,jdbcType=BIT}, - `enable` = #{enable,jdbcType=BIT} - where resource_id = #{resourceId,jdbcType=VARCHAR} - - - insert into ui_custom_variable - (resource_id, `type`, `value`, `name`, description, deleted, out_put, `enable`) - values - - (#{item.resourceId,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR}, #{item.value,jdbcType=VARCHAR}, - #{item.name,jdbcType=VARCHAR}, #{item.description,jdbcType=VARCHAR}, #{item.deleted,jdbcType=BIT}, - #{item.outPut,jdbcType=BIT}, #{item.enable,jdbcType=BIT}) - - - - insert into ui_custom_variable ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.resourceId,jdbcType=VARCHAR} - - - #{item.type,jdbcType=VARCHAR} - - - #{item.value,jdbcType=VARCHAR} - - - #{item.name,jdbcType=VARCHAR} - - - #{item.description,jdbcType=VARCHAR} - - - #{item.deleted,jdbcType=BIT} - - - #{item.outPut,jdbcType=BIT} - - - #{item.enable,jdbcType=BIT} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementCommandReferenceMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementCommandReferenceMapper.java deleted file mode 100644 index 4ece5af1c0..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementCommandReferenceMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiElementCommandReference; -import io.metersphere.ui.domain.UiElementCommandReferenceExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiElementCommandReferenceMapper { - long countByExample(UiElementCommandReferenceExample example); - - int deleteByExample(UiElementCommandReferenceExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiElementCommandReference record); - - int insertSelective(UiElementCommandReference record); - - List selectByExample(UiElementCommandReferenceExample example); - - UiElementCommandReference selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiElementCommandReference record, @Param("example") UiElementCommandReferenceExample example); - - int updateByExample(@Param("record") UiElementCommandReference record, @Param("example") UiElementCommandReferenceExample example); - - int updateByPrimaryKeySelective(UiElementCommandReference record); - - int updateByPrimaryKey(UiElementCommandReference record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiElementCommandReference.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementCommandReferenceMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementCommandReferenceMapper.xml deleted file mode 100644 index b1bd68469a..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementCommandReferenceMapper.xml +++ /dev/null @@ -1,249 +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, element_id, element_module_id, command_id, project_id - - - - - delete from ui_element_command_reference - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_element_command_reference - - - - - - insert into ui_element_command_reference (id, element_id, element_module_id, - command_id, project_id) - values (#{id,jdbcType=VARCHAR}, #{elementId,jdbcType=VARCHAR}, #{elementModuleId,jdbcType=VARCHAR}, - #{commandId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}) - - - insert into ui_element_command_reference - - - id, - - - element_id, - - - element_module_id, - - - command_id, - - - project_id, - - - - - #{id,jdbcType=VARCHAR}, - - - #{elementId,jdbcType=VARCHAR}, - - - #{elementModuleId,jdbcType=VARCHAR}, - - - #{commandId,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - - - - update ui_element_command_reference - - - id = #{record.id,jdbcType=VARCHAR}, - - - element_id = #{record.elementId,jdbcType=VARCHAR}, - - - element_module_id = #{record.elementModuleId,jdbcType=VARCHAR}, - - - command_id = #{record.commandId,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - - - - - - update ui_element_command_reference - set id = #{record.id,jdbcType=VARCHAR}, - element_id = #{record.elementId,jdbcType=VARCHAR}, - element_module_id = #{record.elementModuleId,jdbcType=VARCHAR}, - command_id = #{record.commandId,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR} - - - - - - update ui_element_command_reference - - - element_id = #{elementId,jdbcType=VARCHAR}, - - - element_module_id = #{elementModuleId,jdbcType=VARCHAR}, - - - command_id = #{commandId,jdbcType=VARCHAR}, - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_element_command_reference - set element_id = #{elementId,jdbcType=VARCHAR}, - element_module_id = #{elementModuleId,jdbcType=VARCHAR}, - command_id = #{commandId,jdbcType=VARCHAR}, - project_id = #{projectId,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_element_command_reference - (id, element_id, element_module_id, command_id, project_id) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.elementId,jdbcType=VARCHAR}, #{item.elementModuleId,jdbcType=VARCHAR}, - #{item.commandId,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR}) - - - - insert into ui_element_command_reference ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.elementId,jdbcType=VARCHAR} - - - #{item.elementModuleId,jdbcType=VARCHAR} - - - #{item.commandId,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementMapper.java deleted file mode 100644 index 11e290d465..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiElement; -import io.metersphere.ui.domain.UiElementExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiElementMapper { - long countByExample(UiElementExample example); - - int deleteByExample(UiElementExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiElement record); - - int insertSelective(UiElement record); - - List selectByExample(UiElementExample example); - - UiElement selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiElement record, @Param("example") UiElementExample example); - - int updateByExample(@Param("record") UiElement record, @Param("example") UiElementExample example); - - int updateByPrimaryKeySelective(UiElement record); - - int updateByPrimaryKey(UiElement record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiElement.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementMapper.xml deleted file mode 100644 index aa76500a9b..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementMapper.xml +++ /dev/null @@ -1,462 +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, num, module_id, project_id, `name`, location_type, `location`, create_user, update_user, - version_id, ref_id, pos, latest, description, create_time, update_time - - - - - delete from ui_element - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_element - - - - - - insert into ui_element (id, num, module_id, - project_id, `name`, location_type, - `location`, create_user, update_user, - version_id, ref_id, pos, - latest, description, create_time, - update_time) - values (#{id,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, #{moduleId,jdbcType=VARCHAR}, - #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{locationType,jdbcType=VARCHAR}, - #{location,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{updateUser,jdbcType=VARCHAR}, - #{versionId,jdbcType=VARCHAR}, #{refId,jdbcType=VARCHAR}, #{pos,jdbcType=BIGINT}, - #{latest,jdbcType=BIT}, #{description,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, - #{updateTime,jdbcType=BIGINT}) - - - insert into ui_element - - - id, - - - num, - - - module_id, - - - project_id, - - - `name`, - - - location_type, - - - `location`, - - - create_user, - - - update_user, - - - version_id, - - - ref_id, - - - pos, - - - latest, - - - description, - - - create_time, - - - update_time, - - - - - #{id,jdbcType=VARCHAR}, - - - #{num,jdbcType=INTEGER}, - - - #{moduleId,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{locationType,jdbcType=VARCHAR}, - - - #{location,jdbcType=VARCHAR}, - - - #{createUser,jdbcType=VARCHAR}, - - - #{updateUser,jdbcType=VARCHAR}, - - - #{versionId,jdbcType=VARCHAR}, - - - #{refId,jdbcType=VARCHAR}, - - - #{pos,jdbcType=BIGINT}, - - - #{latest,jdbcType=BIT}, - - - #{description,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=BIGINT}, - - - #{updateTime,jdbcType=BIGINT}, - - - - - - update ui_element - - - id = #{record.id,jdbcType=VARCHAR}, - - - num = #{record.num,jdbcType=INTEGER}, - - - module_id = #{record.moduleId,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - location_type = #{record.locationType,jdbcType=VARCHAR}, - - - `location` = #{record.location,jdbcType=VARCHAR}, - - - create_user = #{record.createUser,jdbcType=VARCHAR}, - - - update_user = #{record.updateUser,jdbcType=VARCHAR}, - - - version_id = #{record.versionId,jdbcType=VARCHAR}, - - - ref_id = #{record.refId,jdbcType=VARCHAR}, - - - pos = #{record.pos,jdbcType=BIGINT}, - - - latest = #{record.latest,jdbcType=BIT}, - - - description = #{record.description,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - update_time = #{record.updateTime,jdbcType=BIGINT}, - - - - - - - - update ui_element - set id = #{record.id,jdbcType=VARCHAR}, - num = #{record.num,jdbcType=INTEGER}, - module_id = #{record.moduleId,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR}, - `name` = #{record.name,jdbcType=VARCHAR}, - location_type = #{record.locationType,jdbcType=VARCHAR}, - `location` = #{record.location,jdbcType=VARCHAR}, - create_user = #{record.createUser,jdbcType=VARCHAR}, - update_user = #{record.updateUser,jdbcType=VARCHAR}, - version_id = #{record.versionId,jdbcType=VARCHAR}, - ref_id = #{record.refId,jdbcType=VARCHAR}, - pos = #{record.pos,jdbcType=BIGINT}, - latest = #{record.latest,jdbcType=BIT}, - description = #{record.description,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT}, - update_time = #{record.updateTime,jdbcType=BIGINT} - - - - - - update ui_element - - - num = #{num,jdbcType=INTEGER}, - - - module_id = #{moduleId,jdbcType=VARCHAR}, - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - location_type = #{locationType,jdbcType=VARCHAR}, - - - `location` = #{location,jdbcType=VARCHAR}, - - - create_user = #{createUser,jdbcType=VARCHAR}, - - - update_user = #{updateUser,jdbcType=VARCHAR}, - - - version_id = #{versionId,jdbcType=VARCHAR}, - - - ref_id = #{refId,jdbcType=VARCHAR}, - - - pos = #{pos,jdbcType=BIGINT}, - - - latest = #{latest,jdbcType=BIT}, - - - description = #{description,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - update_time = #{updateTime,jdbcType=BIGINT}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_element - set num = #{num,jdbcType=INTEGER}, - module_id = #{moduleId,jdbcType=VARCHAR}, - project_id = #{projectId,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - location_type = #{locationType,jdbcType=VARCHAR}, - `location` = #{location,jdbcType=VARCHAR}, - create_user = #{createUser,jdbcType=VARCHAR}, - update_user = #{updateUser,jdbcType=VARCHAR}, - version_id = #{versionId,jdbcType=VARCHAR}, - ref_id = #{refId,jdbcType=VARCHAR}, - pos = #{pos,jdbcType=BIGINT}, - latest = #{latest,jdbcType=BIT}, - description = #{description,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, - update_time = #{updateTime,jdbcType=BIGINT} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_element - (id, num, module_id, project_id, `name`, location_type, `location`, create_user, - update_user, version_id, ref_id, pos, latest, description, create_time, update_time - ) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.num,jdbcType=INTEGER}, #{item.moduleId,jdbcType=VARCHAR}, - #{item.projectId,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, #{item.locationType,jdbcType=VARCHAR}, - #{item.location,jdbcType=VARCHAR}, #{item.createUser,jdbcType=VARCHAR}, #{item.updateUser,jdbcType=VARCHAR}, - #{item.versionId,jdbcType=VARCHAR}, #{item.refId,jdbcType=VARCHAR}, #{item.pos,jdbcType=BIGINT}, - #{item.latest,jdbcType=BIT}, #{item.description,jdbcType=VARCHAR}, #{item.createTime,jdbcType=BIGINT}, - #{item.updateTime,jdbcType=BIGINT}) - - - - insert into ui_element ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.num,jdbcType=INTEGER} - - - #{item.moduleId,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=VARCHAR} - - - #{item.name,jdbcType=VARCHAR} - - - #{item.locationType,jdbcType=VARCHAR} - - - #{item.location,jdbcType=VARCHAR} - - - #{item.createUser,jdbcType=VARCHAR} - - - #{item.updateUser,jdbcType=VARCHAR} - - - #{item.versionId,jdbcType=VARCHAR} - - - #{item.refId,jdbcType=VARCHAR} - - - #{item.pos,jdbcType=BIGINT} - - - #{item.latest,jdbcType=BIT} - - - #{item.description,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=BIGINT} - - - #{item.updateTime,jdbcType=BIGINT} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementModuleMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementModuleMapper.java deleted file mode 100644 index 54cf2cf141..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementModuleMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiElementModule; -import io.metersphere.ui.domain.UiElementModuleExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiElementModuleMapper { - long countByExample(UiElementModuleExample example); - - int deleteByExample(UiElementModuleExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiElementModule record); - - int insertSelective(UiElementModule record); - - List selectByExample(UiElementModuleExample example); - - UiElementModule selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiElementModule record, @Param("example") UiElementModuleExample example); - - int updateByExample(@Param("record") UiElementModule record, @Param("example") UiElementModuleExample example); - - int updateByPrimaryKeySelective(UiElementModule record); - - int updateByPrimaryKey(UiElementModule record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiElementModule.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementModuleMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementModuleMapper.xml deleted file mode 100644 index 8ac45b9fec..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementModuleMapper.xml +++ /dev/null @@ -1,328 +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`, parent_id, `level`, create_time, update_time, pos, create_user - - - - - delete from ui_element_module - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_element_module - - - - - - insert into ui_element_module (id, project_id, `name`, - parent_id, `level`, create_time, - update_time, pos, create_user - ) - values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{parentId,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT}, - #{updateTime,jdbcType=BIGINT}, #{pos,jdbcType=DOUBLE}, #{createUser,jdbcType=VARCHAR} - ) - - - insert into ui_element_module - - - id, - - - project_id, - - - `name`, - - - parent_id, - - - `level`, - - - create_time, - - - update_time, - - - pos, - - - create_user, - - - - - #{id,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{parentId,jdbcType=VARCHAR}, - - - #{level,jdbcType=INTEGER}, - - - #{createTime,jdbcType=BIGINT}, - - - #{updateTime,jdbcType=BIGINT}, - - - #{pos,jdbcType=DOUBLE}, - - - #{createUser,jdbcType=VARCHAR}, - - - - - - update ui_element_module - - - id = #{record.id,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - parent_id = #{record.parentId,jdbcType=VARCHAR}, - - - `level` = #{record.level,jdbcType=INTEGER}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - update_time = #{record.updateTime,jdbcType=BIGINT}, - - - pos = #{record.pos,jdbcType=DOUBLE}, - - - create_user = #{record.createUser,jdbcType=VARCHAR}, - - - - - - - - update ui_element_module - set id = #{record.id,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR}, - `name` = #{record.name,jdbcType=VARCHAR}, - parent_id = #{record.parentId,jdbcType=VARCHAR}, - `level` = #{record.level,jdbcType=INTEGER}, - create_time = #{record.createTime,jdbcType=BIGINT}, - update_time = #{record.updateTime,jdbcType=BIGINT}, - pos = #{record.pos,jdbcType=DOUBLE}, - create_user = #{record.createUser,jdbcType=VARCHAR} - - - - - - update ui_element_module - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - parent_id = #{parentId,jdbcType=VARCHAR}, - - - `level` = #{level,jdbcType=INTEGER}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - update_time = #{updateTime,jdbcType=BIGINT}, - - - pos = #{pos,jdbcType=DOUBLE}, - - - create_user = #{createUser,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_element_module - set project_id = #{projectId,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - parent_id = #{parentId,jdbcType=VARCHAR}, - `level` = #{level,jdbcType=INTEGER}, - create_time = #{createTime,jdbcType=BIGINT}, - update_time = #{updateTime,jdbcType=BIGINT}, - pos = #{pos,jdbcType=DOUBLE}, - create_user = #{createUser,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_element_module - (id, project_id, `name`, parent_id, `level`, create_time, update_time, pos, create_user - ) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, - #{item.parentId,jdbcType=VARCHAR}, #{item.level,jdbcType=INTEGER}, #{item.createTime,jdbcType=BIGINT}, - #{item.updateTime,jdbcType=BIGINT}, #{item.pos,jdbcType=DOUBLE}, #{item.createUser,jdbcType=VARCHAR} - ) - - - - insert into ui_element_module ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=VARCHAR} - - - #{item.name,jdbcType=VARCHAR} - - - #{item.parentId,jdbcType=VARCHAR} - - - #{item.level,jdbcType=INTEGER} - - - #{item.createTime,jdbcType=BIGINT} - - - #{item.updateTime,jdbcType=BIGINT} - - - #{item.pos,jdbcType=DOUBLE} - - - #{item.createUser,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementScenarioReferenceMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementScenarioReferenceMapper.java deleted file mode 100644 index e7fbb2bb35..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementScenarioReferenceMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiElementScenarioReference; -import io.metersphere.ui.domain.UiElementScenarioReferenceExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiElementScenarioReferenceMapper { - long countByExample(UiElementScenarioReferenceExample example); - - int deleteByExample(UiElementScenarioReferenceExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiElementScenarioReference record); - - int insertSelective(UiElementScenarioReference record); - - List selectByExample(UiElementScenarioReferenceExample example); - - UiElementScenarioReference selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiElementScenarioReference record, @Param("example") UiElementScenarioReferenceExample example); - - int updateByExample(@Param("record") UiElementScenarioReference record, @Param("example") UiElementScenarioReferenceExample example); - - int updateByPrimaryKeySelective(UiElementScenarioReference record); - - int updateByPrimaryKey(UiElementScenarioReference record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiElementScenarioReference.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementScenarioReferenceMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementScenarioReferenceMapper.xml deleted file mode 100644 index effe18d538..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiElementScenarioReferenceMapper.xml +++ /dev/null @@ -1,249 +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, element_id, element_module_id, scenario_id, project_id - - - - - delete from ui_element_scenario_reference - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_element_scenario_reference - - - - - - insert into ui_element_scenario_reference (id, element_id, element_module_id, - scenario_id, project_id) - values (#{id,jdbcType=VARCHAR}, #{elementId,jdbcType=VARCHAR}, #{elementModuleId,jdbcType=VARCHAR}, - #{scenarioId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}) - - - insert into ui_element_scenario_reference - - - id, - - - element_id, - - - element_module_id, - - - scenario_id, - - - project_id, - - - - - #{id,jdbcType=VARCHAR}, - - - #{elementId,jdbcType=VARCHAR}, - - - #{elementModuleId,jdbcType=VARCHAR}, - - - #{scenarioId,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - - - - update ui_element_scenario_reference - - - id = #{record.id,jdbcType=VARCHAR}, - - - element_id = #{record.elementId,jdbcType=VARCHAR}, - - - element_module_id = #{record.elementModuleId,jdbcType=VARCHAR}, - - - scenario_id = #{record.scenarioId,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - - - - - - update ui_element_scenario_reference - set id = #{record.id,jdbcType=VARCHAR}, - element_id = #{record.elementId,jdbcType=VARCHAR}, - element_module_id = #{record.elementModuleId,jdbcType=VARCHAR}, - scenario_id = #{record.scenarioId,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR} - - - - - - update ui_element_scenario_reference - - - element_id = #{elementId,jdbcType=VARCHAR}, - - - element_module_id = #{elementModuleId,jdbcType=VARCHAR}, - - - scenario_id = #{scenarioId,jdbcType=VARCHAR}, - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_element_scenario_reference - set element_id = #{elementId,jdbcType=VARCHAR}, - element_module_id = #{elementModuleId,jdbcType=VARCHAR}, - scenario_id = #{scenarioId,jdbcType=VARCHAR}, - project_id = #{projectId,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_element_scenario_reference - (id, element_id, element_module_id, scenario_id, project_id) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.elementId,jdbcType=VARCHAR}, #{item.elementModuleId,jdbcType=VARCHAR}, - #{item.scenarioId,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR}) - - - - insert into ui_element_scenario_reference ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.elementId,jdbcType=VARCHAR} - - - #{item.elementModuleId,jdbcType=VARCHAR} - - - #{item.scenarioId,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioBlobMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioBlobMapper.java deleted file mode 100644 index 3a5cf44bda..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioBlobMapper.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiScenarioBlob; -import io.metersphere.ui.domain.UiScenarioBlobExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiScenarioBlobMapper { - long countByExample(UiScenarioBlobExample example); - - int deleteByExample(UiScenarioBlobExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiScenarioBlob record); - - int insertSelective(UiScenarioBlob record); - - List selectByExampleWithBLOBs(UiScenarioBlobExample example); - - List selectByExample(UiScenarioBlobExample example); - - UiScenarioBlob selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiScenarioBlob record, @Param("example") UiScenarioBlobExample example); - - int updateByExampleWithBLOBs(@Param("record") UiScenarioBlob record, @Param("example") UiScenarioBlobExample example); - - int updateByExample(@Param("record") UiScenarioBlob record, @Param("example") UiScenarioBlobExample example); - - int updateByPrimaryKeySelective(UiScenarioBlob record); - - int updateByPrimaryKeyWithBLOBs(UiScenarioBlob record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiScenarioBlob.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioBlobMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioBlobMapper.xml deleted file mode 100644 index c9411d4cfc..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioBlobMapper.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 - - - scenario_definition, environment_json - - - - - - delete from ui_scenario_blob - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_scenario_blob - - - - - - insert into ui_scenario_blob (id, scenario_definition, environment_json - ) - values (#{id,jdbcType=VARCHAR}, #{scenarioDefinition,jdbcType=LONGVARBINARY}, #{environmentJson,jdbcType=LONGVARBINARY} - ) - - - insert into ui_scenario_blob - - - id, - - - scenario_definition, - - - environment_json, - - - - - #{id,jdbcType=VARCHAR}, - - - #{scenarioDefinition,jdbcType=LONGVARBINARY}, - - - #{environmentJson,jdbcType=LONGVARBINARY}, - - - - - - update ui_scenario_blob - - - id = #{record.id,jdbcType=VARCHAR}, - - - scenario_definition = #{record.scenarioDefinition,jdbcType=LONGVARBINARY}, - - - environment_json = #{record.environmentJson,jdbcType=LONGVARBINARY}, - - - - - - - - update ui_scenario_blob - set id = #{record.id,jdbcType=VARCHAR}, - scenario_definition = #{record.scenarioDefinition,jdbcType=LONGVARBINARY}, - environment_json = #{record.environmentJson,jdbcType=LONGVARBINARY} - - - - - - update ui_scenario_blob - set id = #{record.id,jdbcType=VARCHAR} - - - - - - update ui_scenario_blob - - - scenario_definition = #{scenarioDefinition,jdbcType=LONGVARBINARY}, - - - environment_json = #{environmentJson,jdbcType=LONGVARBINARY}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_scenario_blob - set scenario_definition = #{scenarioDefinition,jdbcType=LONGVARBINARY}, - environment_json = #{environmentJson,jdbcType=LONGVARBINARY} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_scenario_blob - (id, scenario_definition, environment_json) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.scenarioDefinition,jdbcType=LONGVARBINARY}, - #{item.environmentJson,jdbcType=LONGVARBINARY}) - - - - insert into ui_scenario_blob ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.scenarioDefinition,jdbcType=LONGVARBINARY} - - - #{item.environmentJson,jdbcType=LONGVARBINARY} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioFollowerMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioFollowerMapper.java deleted file mode 100644 index cd6202e3f1..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioFollowerMapper.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiScenarioFollower; -import io.metersphere.ui.domain.UiScenarioFollowerExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiScenarioFollowerMapper { - long countByExample(UiScenarioFollowerExample example); - - int deleteByExample(UiScenarioFollowerExample example); - - int deleteByPrimaryKey(@Param("scenarioId") String scenarioId, @Param("userId") String userId); - - int insert(UiScenarioFollower record); - - int insertSelective(UiScenarioFollower record); - - List selectByExample(UiScenarioFollowerExample example); - - int updateByExampleSelective(@Param("record") UiScenarioFollower record, @Param("example") UiScenarioFollowerExample example); - - int updateByExample(@Param("record") UiScenarioFollower record, @Param("example") UiScenarioFollowerExample example); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiScenarioFollower.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioFollowerMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioFollowerMapper.xml deleted file mode 100644 index e377f48c3c..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioFollowerMapper.xml +++ /dev/null @@ -1,173 +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} - - - - - - - - - - - scenario_id, user_id - - - - delete from ui_scenario_follower - where scenario_id = #{scenarioId,jdbcType=VARCHAR} - and user_id = #{userId,jdbcType=VARCHAR} - - - delete from ui_scenario_follower - - - - - - insert into ui_scenario_follower (scenario_id, user_id) - values (#{scenarioId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}) - - - insert into ui_scenario_follower - - - scenario_id, - - - user_id, - - - - - #{scenarioId,jdbcType=VARCHAR}, - - - #{userId,jdbcType=VARCHAR}, - - - - - - update ui_scenario_follower - - - scenario_id = #{record.scenarioId,jdbcType=VARCHAR}, - - - user_id = #{record.userId,jdbcType=VARCHAR}, - - - - - - - - update ui_scenario_follower - set scenario_id = #{record.scenarioId,jdbcType=VARCHAR}, - user_id = #{record.userId,jdbcType=VARCHAR} - - - - - - insert into ui_scenario_follower - (scenario_id, user_id) - values - - (#{item.scenarioId,jdbcType=VARCHAR}, #{item.userId,jdbcType=VARCHAR}) - - - - insert into ui_scenario_follower ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.scenarioId,jdbcType=VARCHAR} - - - #{item.userId,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioMapper.java deleted file mode 100644 index f1ba903c27..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiScenario; -import io.metersphere.ui.domain.UiScenarioExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiScenarioMapper { - long countByExample(UiScenarioExample example); - - int deleteByExample(UiScenarioExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiScenario record); - - int insertSelective(UiScenario record); - - List selectByExample(UiScenarioExample example); - - UiScenario selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiScenario record, @Param("example") UiScenarioExample example); - - int updateByExample(@Param("record") UiScenario record, @Param("example") UiScenarioExample example); - - int updateByPrimaryKeySelective(UiScenario record); - - int updateByPrimaryKey(UiScenario record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiScenario.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioMapper.xml deleted file mode 100644 index 76544a19ab..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioMapper.xml +++ /dev/null @@ -1,616 +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, tags, module_id, `name`, `level`, `status`, principal, step_total, - create_time, update_time, last_result, report_id, num, deleted, custom_num, create_user, - delete_time, delete_user, pos, version_id, ref_id, latest, description - - - - - delete from ui_scenario - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_scenario - - - - - - insert into ui_scenario (id, project_id, tags, - module_id, `name`, `level`, - `status`, principal, step_total, - create_time, update_time, last_result, - report_id, num, deleted, - custom_num, create_user, delete_time, - delete_user, pos, version_id, - ref_id, latest, description - ) - values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{tags,jdbcType=VARCHAR}, - #{moduleId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{level,jdbcType=VARCHAR}, - #{status,jdbcType=VARCHAR}, #{principal,jdbcType=VARCHAR}, #{stepTotal,jdbcType=INTEGER}, - #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT}, #{lastResult,jdbcType=VARCHAR}, - #{reportId,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, #{deleted,jdbcType=BIT}, - #{customNum,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{deleteTime,jdbcType=BIGINT}, - #{deleteUser,jdbcType=VARCHAR}, #{pos,jdbcType=BIGINT}, #{versionId,jdbcType=VARCHAR}, - #{refId,jdbcType=VARCHAR}, #{latest,jdbcType=BIT}, #{description,jdbcType=VARCHAR} - ) - - - insert into ui_scenario - - - id, - - - project_id, - - - tags, - - - module_id, - - - `name`, - - - `level`, - - - `status`, - - - principal, - - - step_total, - - - create_time, - - - update_time, - - - last_result, - - - report_id, - - - num, - - - deleted, - - - custom_num, - - - create_user, - - - delete_time, - - - delete_user, - - - pos, - - - version_id, - - - ref_id, - - - latest, - - - description, - - - - - #{id,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - #{tags,jdbcType=VARCHAR}, - - - #{moduleId,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{level,jdbcType=VARCHAR}, - - - #{status,jdbcType=VARCHAR}, - - - #{principal,jdbcType=VARCHAR}, - - - #{stepTotal,jdbcType=INTEGER}, - - - #{createTime,jdbcType=BIGINT}, - - - #{updateTime,jdbcType=BIGINT}, - - - #{lastResult,jdbcType=VARCHAR}, - - - #{reportId,jdbcType=VARCHAR}, - - - #{num,jdbcType=INTEGER}, - - - #{deleted,jdbcType=BIT}, - - - #{customNum,jdbcType=VARCHAR}, - - - #{createUser,jdbcType=VARCHAR}, - - - #{deleteTime,jdbcType=BIGINT}, - - - #{deleteUser,jdbcType=VARCHAR}, - - - #{pos,jdbcType=BIGINT}, - - - #{versionId,jdbcType=VARCHAR}, - - - #{refId,jdbcType=VARCHAR}, - - - #{latest,jdbcType=BIT}, - - - #{description,jdbcType=VARCHAR}, - - - - - - update ui_scenario - - - id = #{record.id,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - tags = #{record.tags,jdbcType=VARCHAR}, - - - module_id = #{record.moduleId,jdbcType=VARCHAR}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - `level` = #{record.level,jdbcType=VARCHAR}, - - - `status` = #{record.status,jdbcType=VARCHAR}, - - - principal = #{record.principal,jdbcType=VARCHAR}, - - - step_total = #{record.stepTotal,jdbcType=INTEGER}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - update_time = #{record.updateTime,jdbcType=BIGINT}, - - - last_result = #{record.lastResult,jdbcType=VARCHAR}, - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - num = #{record.num,jdbcType=INTEGER}, - - - deleted = #{record.deleted,jdbcType=BIT}, - - - custom_num = #{record.customNum,jdbcType=VARCHAR}, - - - create_user = #{record.createUser,jdbcType=VARCHAR}, - - - delete_time = #{record.deleteTime,jdbcType=BIGINT}, - - - delete_user = #{record.deleteUser,jdbcType=VARCHAR}, - - - pos = #{record.pos,jdbcType=BIGINT}, - - - version_id = #{record.versionId,jdbcType=VARCHAR}, - - - ref_id = #{record.refId,jdbcType=VARCHAR}, - - - latest = #{record.latest,jdbcType=BIT}, - - - description = #{record.description,jdbcType=VARCHAR}, - - - - - - - - update ui_scenario - set id = #{record.id,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR}, - tags = #{record.tags,jdbcType=VARCHAR}, - module_id = #{record.moduleId,jdbcType=VARCHAR}, - `name` = #{record.name,jdbcType=VARCHAR}, - `level` = #{record.level,jdbcType=VARCHAR}, - `status` = #{record.status,jdbcType=VARCHAR}, - principal = #{record.principal,jdbcType=VARCHAR}, - step_total = #{record.stepTotal,jdbcType=INTEGER}, - create_time = #{record.createTime,jdbcType=BIGINT}, - update_time = #{record.updateTime,jdbcType=BIGINT}, - last_result = #{record.lastResult,jdbcType=VARCHAR}, - report_id = #{record.reportId,jdbcType=VARCHAR}, - num = #{record.num,jdbcType=INTEGER}, - deleted = #{record.deleted,jdbcType=BIT}, - custom_num = #{record.customNum,jdbcType=VARCHAR}, - create_user = #{record.createUser,jdbcType=VARCHAR}, - delete_time = #{record.deleteTime,jdbcType=BIGINT}, - delete_user = #{record.deleteUser,jdbcType=VARCHAR}, - pos = #{record.pos,jdbcType=BIGINT}, - version_id = #{record.versionId,jdbcType=VARCHAR}, - ref_id = #{record.refId,jdbcType=VARCHAR}, - latest = #{record.latest,jdbcType=BIT}, - description = #{record.description,jdbcType=VARCHAR} - - - - - - update ui_scenario - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - tags = #{tags,jdbcType=VARCHAR}, - - - module_id = #{moduleId,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - `level` = #{level,jdbcType=VARCHAR}, - - - `status` = #{status,jdbcType=VARCHAR}, - - - principal = #{principal,jdbcType=VARCHAR}, - - - step_total = #{stepTotal,jdbcType=INTEGER}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - update_time = #{updateTime,jdbcType=BIGINT}, - - - last_result = #{lastResult,jdbcType=VARCHAR}, - - - report_id = #{reportId,jdbcType=VARCHAR}, - - - num = #{num,jdbcType=INTEGER}, - - - deleted = #{deleted,jdbcType=BIT}, - - - custom_num = #{customNum,jdbcType=VARCHAR}, - - - create_user = #{createUser,jdbcType=VARCHAR}, - - - delete_time = #{deleteTime,jdbcType=BIGINT}, - - - delete_user = #{deleteUser,jdbcType=VARCHAR}, - - - pos = #{pos,jdbcType=BIGINT}, - - - version_id = #{versionId,jdbcType=VARCHAR}, - - - ref_id = #{refId,jdbcType=VARCHAR}, - - - latest = #{latest,jdbcType=BIT}, - - - description = #{description,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_scenario - set project_id = #{projectId,jdbcType=VARCHAR}, - tags = #{tags,jdbcType=VARCHAR}, - module_id = #{moduleId,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - `level` = #{level,jdbcType=VARCHAR}, - `status` = #{status,jdbcType=VARCHAR}, - principal = #{principal,jdbcType=VARCHAR}, - step_total = #{stepTotal,jdbcType=INTEGER}, - create_time = #{createTime,jdbcType=BIGINT}, - update_time = #{updateTime,jdbcType=BIGINT}, - last_result = #{lastResult,jdbcType=VARCHAR}, - report_id = #{reportId,jdbcType=VARCHAR}, - num = #{num,jdbcType=INTEGER}, - deleted = #{deleted,jdbcType=BIT}, - custom_num = #{customNum,jdbcType=VARCHAR}, - create_user = #{createUser,jdbcType=VARCHAR}, - delete_time = #{deleteTime,jdbcType=BIGINT}, - delete_user = #{deleteUser,jdbcType=VARCHAR}, - pos = #{pos,jdbcType=BIGINT}, - version_id = #{versionId,jdbcType=VARCHAR}, - ref_id = #{refId,jdbcType=VARCHAR}, - latest = #{latest,jdbcType=BIT}, - description = #{description,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_scenario - (id, project_id, tags, module_id, `name`, `level`, `status`, principal, step_total, - create_time, update_time, last_result, report_id, num, deleted, custom_num, create_user, - delete_time, delete_user, pos, version_id, ref_id, latest, description) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR}, #{item.tags,jdbcType=VARCHAR}, - #{item.moduleId,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, #{item.level,jdbcType=VARCHAR}, - #{item.status,jdbcType=VARCHAR}, #{item.principal,jdbcType=VARCHAR}, #{item.stepTotal,jdbcType=INTEGER}, - #{item.createTime,jdbcType=BIGINT}, #{item.updateTime,jdbcType=BIGINT}, #{item.lastResult,jdbcType=VARCHAR}, - #{item.reportId,jdbcType=VARCHAR}, #{item.num,jdbcType=INTEGER}, #{item.deleted,jdbcType=BIT}, - #{item.customNum,jdbcType=VARCHAR}, #{item.createUser,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=BIGINT}, - #{item.deleteUser,jdbcType=VARCHAR}, #{item.pos,jdbcType=BIGINT}, #{item.versionId,jdbcType=VARCHAR}, - #{item.refId,jdbcType=VARCHAR}, #{item.latest,jdbcType=BIT}, #{item.description,jdbcType=VARCHAR} - ) - - - - insert into ui_scenario ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=VARCHAR} - - - #{item.tags,jdbcType=VARCHAR} - - - #{item.moduleId,jdbcType=VARCHAR} - - - #{item.name,jdbcType=VARCHAR} - - - #{item.level,jdbcType=VARCHAR} - - - #{item.status,jdbcType=VARCHAR} - - - #{item.principal,jdbcType=VARCHAR} - - - #{item.stepTotal,jdbcType=INTEGER} - - - #{item.createTime,jdbcType=BIGINT} - - - #{item.updateTime,jdbcType=BIGINT} - - - #{item.lastResult,jdbcType=VARCHAR} - - - #{item.reportId,jdbcType=VARCHAR} - - - #{item.num,jdbcType=INTEGER} - - - #{item.deleted,jdbcType=BIT} - - - #{item.customNum,jdbcType=VARCHAR} - - - #{item.createUser,jdbcType=VARCHAR} - - - #{item.deleteTime,jdbcType=BIGINT} - - - #{item.deleteUser,jdbcType=VARCHAR} - - - #{item.pos,jdbcType=BIGINT} - - - #{item.versionId,jdbcType=VARCHAR} - - - #{item.refId,jdbcType=VARCHAR} - - - #{item.latest,jdbcType=BIT} - - - #{item.description,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioModuleMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioModuleMapper.java deleted file mode 100644 index cfee0ff5ca..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioModuleMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiScenarioModule; -import io.metersphere.ui.domain.UiScenarioModuleExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiScenarioModuleMapper { - long countByExample(UiScenarioModuleExample example); - - int deleteByExample(UiScenarioModuleExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiScenarioModule record); - - int insertSelective(UiScenarioModule record); - - List selectByExample(UiScenarioModuleExample example); - - UiScenarioModule selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiScenarioModule record, @Param("example") UiScenarioModuleExample example); - - int updateByExample(@Param("record") UiScenarioModule record, @Param("example") UiScenarioModuleExample example); - - int updateByPrimaryKeySelective(UiScenarioModule record); - - int updateByPrimaryKey(UiScenarioModule record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiScenarioModule.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioModuleMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioModuleMapper.xml deleted file mode 100644 index e61b07be11..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioModuleMapper.xml +++ /dev/null @@ -1,328 +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`, parent_id, `level`, create_time, update_time, pos, create_user - - - - - delete from ui_scenario_module - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_scenario_module - - - - - - insert into ui_scenario_module (id, project_id, `name`, - parent_id, `level`, create_time, - update_time, pos, create_user - ) - values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{parentId,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT}, - #{updateTime,jdbcType=BIGINT}, #{pos,jdbcType=DOUBLE}, #{createUser,jdbcType=VARCHAR} - ) - - - insert into ui_scenario_module - - - id, - - - project_id, - - - `name`, - - - parent_id, - - - `level`, - - - create_time, - - - update_time, - - - pos, - - - create_user, - - - - - #{id,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{parentId,jdbcType=VARCHAR}, - - - #{level,jdbcType=INTEGER}, - - - #{createTime,jdbcType=BIGINT}, - - - #{updateTime,jdbcType=BIGINT}, - - - #{pos,jdbcType=DOUBLE}, - - - #{createUser,jdbcType=VARCHAR}, - - - - - - update ui_scenario_module - - - id = #{record.id,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - parent_id = #{record.parentId,jdbcType=VARCHAR}, - - - `level` = #{record.level,jdbcType=INTEGER}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - update_time = #{record.updateTime,jdbcType=BIGINT}, - - - pos = #{record.pos,jdbcType=DOUBLE}, - - - create_user = #{record.createUser,jdbcType=VARCHAR}, - - - - - - - - update ui_scenario_module - set id = #{record.id,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR}, - `name` = #{record.name,jdbcType=VARCHAR}, - parent_id = #{record.parentId,jdbcType=VARCHAR}, - `level` = #{record.level,jdbcType=INTEGER}, - create_time = #{record.createTime,jdbcType=BIGINT}, - update_time = #{record.updateTime,jdbcType=BIGINT}, - pos = #{record.pos,jdbcType=DOUBLE}, - create_user = #{record.createUser,jdbcType=VARCHAR} - - - - - - update ui_scenario_module - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - parent_id = #{parentId,jdbcType=VARCHAR}, - - - `level` = #{level,jdbcType=INTEGER}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - update_time = #{updateTime,jdbcType=BIGINT}, - - - pos = #{pos,jdbcType=DOUBLE}, - - - create_user = #{createUser,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_scenario_module - set project_id = #{projectId,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - parent_id = #{parentId,jdbcType=VARCHAR}, - `level` = #{level,jdbcType=INTEGER}, - create_time = #{createTime,jdbcType=BIGINT}, - update_time = #{updateTime,jdbcType=BIGINT}, - pos = #{pos,jdbcType=DOUBLE}, - create_user = #{createUser,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_scenario_module - (id, project_id, `name`, parent_id, `level`, create_time, update_time, pos, create_user - ) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, - #{item.parentId,jdbcType=VARCHAR}, #{item.level,jdbcType=INTEGER}, #{item.createTime,jdbcType=BIGINT}, - #{item.updateTime,jdbcType=BIGINT}, #{item.pos,jdbcType=DOUBLE}, #{item.createUser,jdbcType=VARCHAR} - ) - - - - insert into ui_scenario_module ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=VARCHAR} - - - #{item.name,jdbcType=VARCHAR} - - - #{item.parentId,jdbcType=VARCHAR} - - - #{item.level,jdbcType=INTEGER} - - - #{item.createTime,jdbcType=BIGINT} - - - #{item.updateTime,jdbcType=BIGINT} - - - #{item.pos,jdbcType=DOUBLE} - - - #{item.createUser,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReferenceMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReferenceMapper.java deleted file mode 100644 index e4a287ffc9..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReferenceMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiScenarioReference; -import io.metersphere.ui.domain.UiScenarioReferenceExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiScenarioReferenceMapper { - long countByExample(UiScenarioReferenceExample example); - - int deleteByExample(UiScenarioReferenceExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiScenarioReference record); - - int insertSelective(UiScenarioReference record); - - List selectByExample(UiScenarioReferenceExample example); - - UiScenarioReference selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiScenarioReference record, @Param("example") UiScenarioReferenceExample example); - - int updateByExample(@Param("record") UiScenarioReference record, @Param("example") UiScenarioReferenceExample example); - - int updateByPrimaryKeySelective(UiScenarioReference record); - - int updateByPrimaryKey(UiScenarioReference record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiScenarioReference.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReferenceMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReferenceMapper.xml deleted file mode 100644 index e1018eb628..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReferenceMapper.xml +++ /dev/null @@ -1,270 +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, ui_scenario_id, create_time, create_user, reference_id, data_type - - - - - delete from ui_scenario_reference - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_scenario_reference - - - - - - insert into ui_scenario_reference (id, ui_scenario_id, create_time, - create_user, reference_id, data_type - ) - values (#{id,jdbcType=VARCHAR}, #{uiScenarioId,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, - #{createUser,jdbcType=VARCHAR}, #{referenceId,jdbcType=VARCHAR}, #{dataType,jdbcType=VARCHAR} - ) - - - insert into ui_scenario_reference - - - id, - - - ui_scenario_id, - - - create_time, - - - create_user, - - - reference_id, - - - data_type, - - - - - #{id,jdbcType=VARCHAR}, - - - #{uiScenarioId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=BIGINT}, - - - #{createUser,jdbcType=VARCHAR}, - - - #{referenceId,jdbcType=VARCHAR}, - - - #{dataType,jdbcType=VARCHAR}, - - - - - - update ui_scenario_reference - - - id = #{record.id,jdbcType=VARCHAR}, - - - ui_scenario_id = #{record.uiScenarioId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - create_user = #{record.createUser,jdbcType=VARCHAR}, - - - reference_id = #{record.referenceId,jdbcType=VARCHAR}, - - - data_type = #{record.dataType,jdbcType=VARCHAR}, - - - - - - - - update ui_scenario_reference - set id = #{record.id,jdbcType=VARCHAR}, - ui_scenario_id = #{record.uiScenarioId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT}, - create_user = #{record.createUser,jdbcType=VARCHAR}, - reference_id = #{record.referenceId,jdbcType=VARCHAR}, - data_type = #{record.dataType,jdbcType=VARCHAR} - - - - - - update ui_scenario_reference - - - ui_scenario_id = #{uiScenarioId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - create_user = #{createUser,jdbcType=VARCHAR}, - - - reference_id = #{referenceId,jdbcType=VARCHAR}, - - - data_type = #{dataType,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_scenario_reference - set ui_scenario_id = #{uiScenarioId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, - create_user = #{createUser,jdbcType=VARCHAR}, - reference_id = #{referenceId,jdbcType=VARCHAR}, - data_type = #{dataType,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_scenario_reference - (id, ui_scenario_id, create_time, create_user, reference_id, data_type) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.uiScenarioId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=BIGINT}, - #{item.createUser,jdbcType=VARCHAR}, #{item.referenceId,jdbcType=VARCHAR}, #{item.dataType,jdbcType=VARCHAR} - ) - - - - insert into ui_scenario_reference ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.uiScenarioId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=BIGINT} - - - #{item.createUser,jdbcType=VARCHAR} - - - #{item.referenceId,jdbcType=VARCHAR} - - - #{item.dataType,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportDetailMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportDetailMapper.java deleted file mode 100644 index 1e107be44f..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportDetailMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiScenarioReportDetail; -import io.metersphere.ui.domain.UiScenarioReportDetailExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiScenarioReportDetailMapper { - long countByExample(UiScenarioReportDetailExample example); - - int deleteByExample(UiScenarioReportDetailExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiScenarioReportDetail record); - - int insertSelective(UiScenarioReportDetail record); - - List selectByExampleWithBLOBs(UiScenarioReportDetailExample example); - - List selectByExample(UiScenarioReportDetailExample example); - - UiScenarioReportDetail selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiScenarioReportDetail record, @Param("example") UiScenarioReportDetailExample example); - - int updateByExampleWithBLOBs(@Param("record") UiScenarioReportDetail record, @Param("example") UiScenarioReportDetailExample example); - - int updateByExample(@Param("record") UiScenarioReportDetail record, @Param("example") UiScenarioReportDetailExample example); - - int updateByPrimaryKeySelective(UiScenarioReportDetail record); - - int updateByPrimaryKeyWithBLOBs(UiScenarioReportDetail record); - - int updateByPrimaryKey(UiScenarioReportDetail record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiScenarioReportDetail.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportDetailMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportDetailMapper.xml deleted file mode 100644 index e3d0edf5bc..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportDetailMapper.xml +++ /dev/null @@ -1,396 +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, resource_id, report_id, create_time, `status`, request_time, total_assertions, - pass_assertions - - - content, base_info - - - - - - delete from ui_scenario_report_detail - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_scenario_report_detail - - - - - - insert into ui_scenario_report_detail (id, resource_id, report_id, - create_time, `status`, request_time, - total_assertions, pass_assertions, content, - base_info) - values (#{id,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, - #{createTime,jdbcType=BIGINT}, #{status,jdbcType=VARCHAR}, #{requestTime,jdbcType=BIGINT}, - #{totalAssertions,jdbcType=BIGINT}, #{passAssertions,jdbcType=BIGINT}, #{content,jdbcType=LONGVARBINARY}, - #{baseInfo,jdbcType=LONGVARBINARY}) - - - insert into ui_scenario_report_detail - - - id, - - - resource_id, - - - report_id, - - - create_time, - - - `status`, - - - request_time, - - - total_assertions, - - - pass_assertions, - - - content, - - - base_info, - - - - - #{id,jdbcType=VARCHAR}, - - - #{resourceId,jdbcType=VARCHAR}, - - - #{reportId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=BIGINT}, - - - #{status,jdbcType=VARCHAR}, - - - #{requestTime,jdbcType=BIGINT}, - - - #{totalAssertions,jdbcType=BIGINT}, - - - #{passAssertions,jdbcType=BIGINT}, - - - #{content,jdbcType=LONGVARBINARY}, - - - #{baseInfo,jdbcType=LONGVARBINARY}, - - - - - - update ui_scenario_report_detail - - - id = #{record.id,jdbcType=VARCHAR}, - - - resource_id = #{record.resourceId,jdbcType=VARCHAR}, - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - `status` = #{record.status,jdbcType=VARCHAR}, - - - request_time = #{record.requestTime,jdbcType=BIGINT}, - - - total_assertions = #{record.totalAssertions,jdbcType=BIGINT}, - - - pass_assertions = #{record.passAssertions,jdbcType=BIGINT}, - - - content = #{record.content,jdbcType=LONGVARBINARY}, - - - base_info = #{record.baseInfo,jdbcType=LONGVARBINARY}, - - - - - - - - update ui_scenario_report_detail - set id = #{record.id,jdbcType=VARCHAR}, - resource_id = #{record.resourceId,jdbcType=VARCHAR}, - report_id = #{record.reportId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT}, - `status` = #{record.status,jdbcType=VARCHAR}, - request_time = #{record.requestTime,jdbcType=BIGINT}, - total_assertions = #{record.totalAssertions,jdbcType=BIGINT}, - pass_assertions = #{record.passAssertions,jdbcType=BIGINT}, - content = #{record.content,jdbcType=LONGVARBINARY}, - base_info = #{record.baseInfo,jdbcType=LONGVARBINARY} - - - - - - update ui_scenario_report_detail - set id = #{record.id,jdbcType=VARCHAR}, - resource_id = #{record.resourceId,jdbcType=VARCHAR}, - report_id = #{record.reportId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT}, - `status` = #{record.status,jdbcType=VARCHAR}, - request_time = #{record.requestTime,jdbcType=BIGINT}, - total_assertions = #{record.totalAssertions,jdbcType=BIGINT}, - pass_assertions = #{record.passAssertions,jdbcType=BIGINT} - - - - - - update ui_scenario_report_detail - - - resource_id = #{resourceId,jdbcType=VARCHAR}, - - - report_id = #{reportId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - `status` = #{status,jdbcType=VARCHAR}, - - - request_time = #{requestTime,jdbcType=BIGINT}, - - - total_assertions = #{totalAssertions,jdbcType=BIGINT}, - - - pass_assertions = #{passAssertions,jdbcType=BIGINT}, - - - content = #{content,jdbcType=LONGVARBINARY}, - - - base_info = #{baseInfo,jdbcType=LONGVARBINARY}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_scenario_report_detail - set resource_id = #{resourceId,jdbcType=VARCHAR}, - report_id = #{reportId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, - `status` = #{status,jdbcType=VARCHAR}, - request_time = #{requestTime,jdbcType=BIGINT}, - total_assertions = #{totalAssertions,jdbcType=BIGINT}, - pass_assertions = #{passAssertions,jdbcType=BIGINT}, - content = #{content,jdbcType=LONGVARBINARY}, - base_info = #{baseInfo,jdbcType=LONGVARBINARY} - where id = #{id,jdbcType=VARCHAR} - - - update ui_scenario_report_detail - set resource_id = #{resourceId,jdbcType=VARCHAR}, - report_id = #{reportId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, - `status` = #{status,jdbcType=VARCHAR}, - request_time = #{requestTime,jdbcType=BIGINT}, - total_assertions = #{totalAssertions,jdbcType=BIGINT}, - pass_assertions = #{passAssertions,jdbcType=BIGINT} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_scenario_report_detail - (id, resource_id, report_id, create_time, `status`, request_time, total_assertions, - pass_assertions, content, base_info) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.resourceId,jdbcType=VARCHAR}, #{item.reportId,jdbcType=VARCHAR}, - #{item.createTime,jdbcType=BIGINT}, #{item.status,jdbcType=VARCHAR}, #{item.requestTime,jdbcType=BIGINT}, - #{item.totalAssertions,jdbcType=BIGINT}, #{item.passAssertions,jdbcType=BIGINT}, - #{item.content,jdbcType=LONGVARBINARY}, #{item.baseInfo,jdbcType=LONGVARBINARY} - ) - - - - insert into ui_scenario_report_detail ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.resourceId,jdbcType=VARCHAR} - - - #{item.reportId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=BIGINT} - - - #{item.status,jdbcType=VARCHAR} - - - #{item.requestTime,jdbcType=BIGINT} - - - #{item.totalAssertions,jdbcType=BIGINT} - - - #{item.passAssertions,jdbcType=BIGINT} - - - #{item.content,jdbcType=LONGVARBINARY} - - - #{item.baseInfo,jdbcType=LONGVARBINARY} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportEnvironmentMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportEnvironmentMapper.java deleted file mode 100644 index 53ae2a5ce0..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportEnvironmentMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiScenarioReportEnvironment; -import io.metersphere.ui.domain.UiScenarioReportEnvironmentExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiScenarioReportEnvironmentMapper { - long countByExample(UiScenarioReportEnvironmentExample example); - - int deleteByExample(UiScenarioReportEnvironmentExample example); - - int deleteByPrimaryKey(String reportId); - - int insert(UiScenarioReportEnvironment record); - - int insertSelective(UiScenarioReportEnvironment record); - - List selectByExample(UiScenarioReportEnvironmentExample example); - - UiScenarioReportEnvironment selectByPrimaryKey(String reportId); - - int updateByExampleSelective(@Param("record") UiScenarioReportEnvironment record, @Param("example") UiScenarioReportEnvironmentExample example); - - int updateByExample(@Param("record") UiScenarioReportEnvironment record, @Param("example") UiScenarioReportEnvironmentExample example); - - int updateByPrimaryKeySelective(UiScenarioReportEnvironment record); - - int updateByPrimaryKey(UiScenarioReportEnvironment record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiScenarioReportEnvironment.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportEnvironmentMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportEnvironmentMapper.xml deleted file mode 100644 index a7f99433d9..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportEnvironmentMapper.xml +++ /dev/null @@ -1,213 +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, project_id, environment_id - - - - - delete from ui_scenario_report_environment - where report_id = #{reportId,jdbcType=VARCHAR} - - - delete from ui_scenario_report_environment - - - - - - insert into ui_scenario_report_environment (report_id, project_id, environment_id - ) - values (#{reportId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{environmentId,jdbcType=VARCHAR} - ) - - - insert into ui_scenario_report_environment - - - report_id, - - - project_id, - - - environment_id, - - - - - #{reportId,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - #{environmentId,jdbcType=VARCHAR}, - - - - - - update ui_scenario_report_environment - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - environment_id = #{record.environmentId,jdbcType=VARCHAR}, - - - - - - - - update ui_scenario_report_environment - set report_id = #{record.reportId,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR}, - environment_id = #{record.environmentId,jdbcType=VARCHAR} - - - - - - update ui_scenario_report_environment - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - environment_id = #{environmentId,jdbcType=VARCHAR}, - - - where report_id = #{reportId,jdbcType=VARCHAR} - - - update ui_scenario_report_environment - set project_id = #{projectId,jdbcType=VARCHAR}, - environment_id = #{environmentId,jdbcType=VARCHAR} - where report_id = #{reportId,jdbcType=VARCHAR} - - - insert into ui_scenario_report_environment - (report_id, project_id, environment_id) - values - - (#{item.reportId,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR}, #{item.environmentId,jdbcType=VARCHAR} - ) - - - - insert into ui_scenario_report_environment ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.reportId,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=VARCHAR} - - - #{item.environmentId,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportLogMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportLogMapper.java deleted file mode 100644 index aa78a60dc9..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportLogMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiScenarioReportLog; -import io.metersphere.ui.domain.UiScenarioReportLogExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiScenarioReportLogMapper { - long countByExample(UiScenarioReportLogExample example); - - int deleteByExample(UiScenarioReportLogExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiScenarioReportLog record); - - int insertSelective(UiScenarioReportLog record); - - List selectByExampleWithBLOBs(UiScenarioReportLogExample example); - - List selectByExample(UiScenarioReportLogExample example); - - UiScenarioReportLog selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiScenarioReportLog record, @Param("example") UiScenarioReportLogExample example); - - int updateByExampleWithBLOBs(@Param("record") UiScenarioReportLog record, @Param("example") UiScenarioReportLogExample example); - - int updateByExample(@Param("record") UiScenarioReportLog record, @Param("example") UiScenarioReportLogExample example); - - int updateByPrimaryKeySelective(UiScenarioReportLog record); - - int updateByPrimaryKeyWithBLOBs(UiScenarioReportLog record); - - int updateByPrimaryKey(UiScenarioReportLog record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiScenarioReportLog.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportLogMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportLogMapper.xml deleted file mode 100644 index 8da3667607..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportLogMapper.xml +++ /dev/null @@ -1,269 +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, create_time - - - console - - - - - - delete from ui_scenario_report_log - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_scenario_report_log - - - - - - insert into ui_scenario_report_log (id, report_id, create_time, - console) - values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, - #{console,jdbcType=LONGVARBINARY}) - - - insert into ui_scenario_report_log - - - id, - - - report_id, - - - create_time, - - - console, - - - - - #{id,jdbcType=VARCHAR}, - - - #{reportId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=BIGINT}, - - - #{console,jdbcType=LONGVARBINARY}, - - - - - - update ui_scenario_report_log - - - id = #{record.id,jdbcType=VARCHAR}, - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - console = #{record.console,jdbcType=LONGVARBINARY}, - - - - - - - - update ui_scenario_report_log - set id = #{record.id,jdbcType=VARCHAR}, - report_id = #{record.reportId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT}, - console = #{record.console,jdbcType=LONGVARBINARY} - - - - - - update ui_scenario_report_log - set id = #{record.id,jdbcType=VARCHAR}, - report_id = #{record.reportId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT} - - - - - - update ui_scenario_report_log - - - report_id = #{reportId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - console = #{console,jdbcType=LONGVARBINARY}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_scenario_report_log - set report_id = #{reportId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, - console = #{console,jdbcType=LONGVARBINARY} - where id = #{id,jdbcType=VARCHAR} - - - update ui_scenario_report_log - set report_id = #{reportId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_scenario_report_log - (id, report_id, create_time, console) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.reportId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=BIGINT}, - #{item.console,jdbcType=LONGVARBINARY}) - - - - insert into ui_scenario_report_log ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.reportId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=BIGINT} - - - #{item.console,jdbcType=LONGVARBINARY} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportMapper.java deleted file mode 100644 index b4bcf41269..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiScenarioReport; -import io.metersphere.ui.domain.UiScenarioReportExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiScenarioReportMapper { - long countByExample(UiScenarioReportExample example); - - int deleteByExample(UiScenarioReportExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiScenarioReport record); - - int insertSelective(UiScenarioReport record); - - List selectByExample(UiScenarioReportExample example); - - UiScenarioReport selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiScenarioReport record, @Param("example") UiScenarioReportExample example); - - int updateByExample(@Param("record") UiScenarioReport record, @Param("example") UiScenarioReportExample example); - - int updateByPrimaryKeySelective(UiScenarioReport record); - - int updateByPrimaryKey(UiScenarioReport record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiScenarioReport.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportMapper.xml deleted file mode 100644 index 7cd11a00ce..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportMapper.xml +++ /dev/null @@ -1,463 +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`, create_time, update_time, `status`, trigger_mode, execute_type, - scenario_name, scenario_id, create_user, pool_id, end_time, integrated, relevance_test_plan_report_id, - report_source - - - - - delete from ui_scenario_report - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_scenario_report - - - - - - insert into ui_scenario_report (id, project_id, `name`, - create_time, update_time, `status`, - trigger_mode, execute_type, scenario_name, - scenario_id, create_user, pool_id, - end_time, integrated, relevance_test_plan_report_id, - report_source) - values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT}, #{status,jdbcType=VARCHAR}, - #{triggerMode,jdbcType=VARCHAR}, #{executeType,jdbcType=VARCHAR}, #{scenarioName,jdbcType=VARCHAR}, - #{scenarioId,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{poolId,jdbcType=VARCHAR}, - #{endTime,jdbcType=BIGINT}, #{integrated,jdbcType=BIT}, #{relevanceTestPlanReportId,jdbcType=VARCHAR}, - #{reportSource,jdbcType=VARCHAR}) - - - insert into ui_scenario_report - - - id, - - - project_id, - - - `name`, - - - create_time, - - - update_time, - - - `status`, - - - trigger_mode, - - - execute_type, - - - scenario_name, - - - scenario_id, - - - create_user, - - - pool_id, - - - end_time, - - - integrated, - - - relevance_test_plan_report_id, - - - report_source, - - - - - #{id,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=BIGINT}, - - - #{updateTime,jdbcType=BIGINT}, - - - #{status,jdbcType=VARCHAR}, - - - #{triggerMode,jdbcType=VARCHAR}, - - - #{executeType,jdbcType=VARCHAR}, - - - #{scenarioName,jdbcType=VARCHAR}, - - - #{scenarioId,jdbcType=VARCHAR}, - - - #{createUser,jdbcType=VARCHAR}, - - - #{poolId,jdbcType=VARCHAR}, - - - #{endTime,jdbcType=BIGINT}, - - - #{integrated,jdbcType=BIT}, - - - #{relevanceTestPlanReportId,jdbcType=VARCHAR}, - - - #{reportSource,jdbcType=VARCHAR}, - - - - - - update ui_scenario_report - - - id = #{record.id,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=VARCHAR}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - update_time = #{record.updateTime,jdbcType=BIGINT}, - - - `status` = #{record.status,jdbcType=VARCHAR}, - - - trigger_mode = #{record.triggerMode,jdbcType=VARCHAR}, - - - execute_type = #{record.executeType,jdbcType=VARCHAR}, - - - scenario_name = #{record.scenarioName,jdbcType=VARCHAR}, - - - scenario_id = #{record.scenarioId,jdbcType=VARCHAR}, - - - create_user = #{record.createUser,jdbcType=VARCHAR}, - - - pool_id = #{record.poolId,jdbcType=VARCHAR}, - - - end_time = #{record.endTime,jdbcType=BIGINT}, - - - integrated = #{record.integrated,jdbcType=BIT}, - - - relevance_test_plan_report_id = #{record.relevanceTestPlanReportId,jdbcType=VARCHAR}, - - - report_source = #{record.reportSource,jdbcType=VARCHAR}, - - - - - - - - update ui_scenario_report - set id = #{record.id,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=VARCHAR}, - `name` = #{record.name,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT}, - update_time = #{record.updateTime,jdbcType=BIGINT}, - `status` = #{record.status,jdbcType=VARCHAR}, - trigger_mode = #{record.triggerMode,jdbcType=VARCHAR}, - execute_type = #{record.executeType,jdbcType=VARCHAR}, - scenario_name = #{record.scenarioName,jdbcType=VARCHAR}, - scenario_id = #{record.scenarioId,jdbcType=VARCHAR}, - create_user = #{record.createUser,jdbcType=VARCHAR}, - pool_id = #{record.poolId,jdbcType=VARCHAR}, - end_time = #{record.endTime,jdbcType=BIGINT}, - integrated = #{record.integrated,jdbcType=BIT}, - relevance_test_plan_report_id = #{record.relevanceTestPlanReportId,jdbcType=VARCHAR}, - report_source = #{record.reportSource,jdbcType=VARCHAR} - - - - - - update ui_scenario_report - - - project_id = #{projectId,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - update_time = #{updateTime,jdbcType=BIGINT}, - - - `status` = #{status,jdbcType=VARCHAR}, - - - trigger_mode = #{triggerMode,jdbcType=VARCHAR}, - - - execute_type = #{executeType,jdbcType=VARCHAR}, - - - scenario_name = #{scenarioName,jdbcType=VARCHAR}, - - - scenario_id = #{scenarioId,jdbcType=VARCHAR}, - - - create_user = #{createUser,jdbcType=VARCHAR}, - - - pool_id = #{poolId,jdbcType=VARCHAR}, - - - end_time = #{endTime,jdbcType=BIGINT}, - - - integrated = #{integrated,jdbcType=BIT}, - - - relevance_test_plan_report_id = #{relevanceTestPlanReportId,jdbcType=VARCHAR}, - - - report_source = #{reportSource,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_scenario_report - set project_id = #{projectId,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, - update_time = #{updateTime,jdbcType=BIGINT}, - `status` = #{status,jdbcType=VARCHAR}, - trigger_mode = #{triggerMode,jdbcType=VARCHAR}, - execute_type = #{executeType,jdbcType=VARCHAR}, - scenario_name = #{scenarioName,jdbcType=VARCHAR}, - scenario_id = #{scenarioId,jdbcType=VARCHAR}, - create_user = #{createUser,jdbcType=VARCHAR}, - pool_id = #{poolId,jdbcType=VARCHAR}, - end_time = #{endTime,jdbcType=BIGINT}, - integrated = #{integrated,jdbcType=BIT}, - relevance_test_plan_report_id = #{relevanceTestPlanReportId,jdbcType=VARCHAR}, - report_source = #{reportSource,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_scenario_report - (id, project_id, `name`, create_time, update_time, `status`, trigger_mode, execute_type, - scenario_name, scenario_id, create_user, pool_id, end_time, integrated, relevance_test_plan_report_id, - report_source) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, - #{item.createTime,jdbcType=BIGINT}, #{item.updateTime,jdbcType=BIGINT}, #{item.status,jdbcType=VARCHAR}, - #{item.triggerMode,jdbcType=VARCHAR}, #{item.executeType,jdbcType=VARCHAR}, #{item.scenarioName,jdbcType=VARCHAR}, - #{item.scenarioId,jdbcType=VARCHAR}, #{item.createUser,jdbcType=VARCHAR}, #{item.poolId,jdbcType=VARCHAR}, - #{item.endTime,jdbcType=BIGINT}, #{item.integrated,jdbcType=BIT}, #{item.relevanceTestPlanReportId,jdbcType=VARCHAR}, - #{item.reportSource,jdbcType=VARCHAR}) - - - - insert into ui_scenario_report ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=VARCHAR} - - - #{item.name,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=BIGINT} - - - #{item.updateTime,jdbcType=BIGINT} - - - #{item.status,jdbcType=VARCHAR} - - - #{item.triggerMode,jdbcType=VARCHAR} - - - #{item.executeType,jdbcType=VARCHAR} - - - #{item.scenarioName,jdbcType=VARCHAR} - - - #{item.scenarioId,jdbcType=VARCHAR} - - - #{item.createUser,jdbcType=VARCHAR} - - - #{item.poolId,jdbcType=VARCHAR} - - - #{item.endTime,jdbcType=BIGINT} - - - #{item.integrated,jdbcType=BIT} - - - #{item.relevanceTestPlanReportId,jdbcType=VARCHAR} - - - #{item.reportSource,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportStructureMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportStructureMapper.java deleted file mode 100644 index f9a7edf4ee..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportStructureMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiScenarioReportStructure; -import io.metersphere.ui.domain.UiScenarioReportStructureExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiScenarioReportStructureMapper { - long countByExample(UiScenarioReportStructureExample example); - - int deleteByExample(UiScenarioReportStructureExample example); - - int deleteByPrimaryKey(String id); - - int insert(UiScenarioReportStructure record); - - int insertSelective(UiScenarioReportStructure record); - - List selectByExampleWithBLOBs(UiScenarioReportStructureExample example); - - List selectByExample(UiScenarioReportStructureExample example); - - UiScenarioReportStructure selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") UiScenarioReportStructure record, @Param("example") UiScenarioReportStructureExample example); - - int updateByExampleWithBLOBs(@Param("record") UiScenarioReportStructure record, @Param("example") UiScenarioReportStructureExample example); - - int updateByExample(@Param("record") UiScenarioReportStructure record, @Param("example") UiScenarioReportStructureExample example); - - int updateByPrimaryKeySelective(UiScenarioReportStructure record); - - int updateByPrimaryKeyWithBLOBs(UiScenarioReportStructure record); - - int updateByPrimaryKey(UiScenarioReportStructure record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiScenarioReportStructure.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportStructureMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportStructureMapper.xml deleted file mode 100644 index 191b73db03..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioReportStructureMapper.xml +++ /dev/null @@ -1,269 +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, create_time - - - resource_tree - - - - - - delete from ui_scenario_report_structure - where id = #{id,jdbcType=VARCHAR} - - - delete from ui_scenario_report_structure - - - - - - insert into ui_scenario_report_structure (id, report_id, create_time, - resource_tree) - values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, - #{resourceTree,jdbcType=LONGVARBINARY}) - - - insert into ui_scenario_report_structure - - - id, - - - report_id, - - - create_time, - - - resource_tree, - - - - - #{id,jdbcType=VARCHAR}, - - - #{reportId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=BIGINT}, - - - #{resourceTree,jdbcType=LONGVARBINARY}, - - - - - - update ui_scenario_report_structure - - - id = #{record.id,jdbcType=VARCHAR}, - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=BIGINT}, - - - resource_tree = #{record.resourceTree,jdbcType=LONGVARBINARY}, - - - - - - - - update ui_scenario_report_structure - set id = #{record.id,jdbcType=VARCHAR}, - report_id = #{record.reportId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT}, - resource_tree = #{record.resourceTree,jdbcType=LONGVARBINARY} - - - - - - update ui_scenario_report_structure - set id = #{record.id,jdbcType=VARCHAR}, - report_id = #{record.reportId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=BIGINT} - - - - - - update ui_scenario_report_structure - - - report_id = #{reportId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=BIGINT}, - - - resource_tree = #{resourceTree,jdbcType=LONGVARBINARY}, - - - where id = #{id,jdbcType=VARCHAR} - - - update ui_scenario_report_structure - set report_id = #{reportId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, - resource_tree = #{resourceTree,jdbcType=LONGVARBINARY} - where id = #{id,jdbcType=VARCHAR} - - - update ui_scenario_report_structure - set report_id = #{reportId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT} - where id = #{id,jdbcType=VARCHAR} - - - insert into ui_scenario_report_structure - (id, report_id, create_time, resource_tree) - values - - (#{item.id,jdbcType=VARCHAR}, #{item.reportId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=BIGINT}, - #{item.resourceTree,jdbcType=LONGVARBINARY}) - - - - insert into ui_scenario_report_structure ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=VARCHAR} - - - #{item.reportId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=BIGINT} - - - #{item.resourceTree,jdbcType=LONGVARBINARY} - - - ) - - - \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioVariableMapper.java b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioVariableMapper.java deleted file mode 100644 index ff632c383b..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioVariableMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.metersphere.ui.mapper; - -import io.metersphere.ui.domain.UiScenarioVariable; -import io.metersphere.ui.domain.UiScenarioVariableExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UiScenarioVariableMapper { - long countByExample(UiScenarioVariableExample example); - - int deleteByExample(UiScenarioVariableExample example); - - int deleteByPrimaryKey(String resourceId); - - int insert(UiScenarioVariable record); - - int insertSelective(UiScenarioVariable record); - - List selectByExample(UiScenarioVariableExample example); - - UiScenarioVariable selectByPrimaryKey(String resourceId); - - int updateByExampleSelective(@Param("record") UiScenarioVariable record, @Param("example") UiScenarioVariableExample example); - - int updateByExample(@Param("record") UiScenarioVariable record, @Param("example") UiScenarioVariableExample example); - - int updateByPrimaryKeySelective(UiScenarioVariable record); - - int updateByPrimaryKey(UiScenarioVariable record); - - int batchInsert(@Param("list") List list); - - int batchInsertSelective(@Param("list") List list, @Param("selective") UiScenarioVariable.Column ... selective); -} \ No newline at end of file diff --git a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioVariableMapper.xml b/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioVariableMapper.xml deleted file mode 100644 index 98e777a1ae..0000000000 --- a/backend/framework/domain/src/main/java/io/metersphere/ui/mapper/UiScenarioVariableMapper.xml +++ /dev/null @@ -1,249 +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} - - - - - - - - - - - resource_id, `type`, `value`, `name`, description - - - - - delete from ui_scenario_variable - where resource_id = #{resourceId,jdbcType=VARCHAR} - - - delete from ui_scenario_variable - - - - - - insert into ui_scenario_variable (resource_id, `type`, `value`, - `name`, description) - values (#{resourceId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR}, - #{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}) - - - insert into ui_scenario_variable - - - resource_id, - - - `type`, - - - `value`, - - - `name`, - - - description, - - - - - #{resourceId,jdbcType=VARCHAR}, - - - #{type,jdbcType=VARCHAR}, - - - #{value,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{description,jdbcType=VARCHAR}, - - - - - - update ui_scenario_variable - - - resource_id = #{record.resourceId,jdbcType=VARCHAR}, - - - `type` = #{record.type,jdbcType=VARCHAR}, - - - `value` = #{record.value,jdbcType=VARCHAR}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - description = #{record.description,jdbcType=VARCHAR}, - - - - - - - - update ui_scenario_variable - set resource_id = #{record.resourceId,jdbcType=VARCHAR}, - `type` = #{record.type,jdbcType=VARCHAR}, - `value` = #{record.value,jdbcType=VARCHAR}, - `name` = #{record.name,jdbcType=VARCHAR}, - description = #{record.description,jdbcType=VARCHAR} - - - - - - update ui_scenario_variable - - - `type` = #{type,jdbcType=VARCHAR}, - - - `value` = #{value,jdbcType=VARCHAR}, - - - `name` = #{name,jdbcType=VARCHAR}, - - - description = #{description,jdbcType=VARCHAR}, - - - where resource_id = #{resourceId,jdbcType=VARCHAR} - - - update ui_scenario_variable - set `type` = #{type,jdbcType=VARCHAR}, - `value` = #{value,jdbcType=VARCHAR}, - `name` = #{name,jdbcType=VARCHAR}, - description = #{description,jdbcType=VARCHAR} - where resource_id = #{resourceId,jdbcType=VARCHAR} - - - insert into ui_scenario_variable - (resource_id, `type`, `value`, `name`, description) - values - - (#{item.resourceId,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR}, #{item.value,jdbcType=VARCHAR}, - #{item.name,jdbcType=VARCHAR}, #{item.description,jdbcType=VARCHAR}) - - - - insert into ui_scenario_variable ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.resourceId,jdbcType=VARCHAR} - - - #{item.type,jdbcType=VARCHAR} - - - #{item.value,jdbcType=VARCHAR} - - - #{item.name,jdbcType=VARCHAR} - - - #{item.description,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/backend/services/pom.xml b/backend/services/pom.xml index 943c3ff719..888271b4a6 100644 --- a/backend/services/pom.xml +++ b/backend/services/pom.xml @@ -21,8 +21,6 @@ project-management system-setting test-plan - ui-test - workstation 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 fff622bc69..9af5ac6887 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 @@ -18,7 +18,6 @@ import io.metersphere.system.dto.sdk.*; import io.metersphere.system.mapper.CustomFieldMapper; import io.metersphere.system.notice.constants.NoticeConstants; import io.metersphere.system.notice.utils.MessageTemplateUtils; -import io.metersphere.ui.domain.UiScenario; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.annotation.Resource; import org.apache.commons.lang3.StringUtils; @@ -87,12 +86,6 @@ public class NoticeTemplateService { // 该方法提供了统一的内置通知模板字段; {操作人, 关注人, 触发方式} addOptionDto(messageTemplateFieldDTOList, allFields, null); } - case NoticeConstants.TaskType.UI_SCENARIO_TASK -> { - Field[] allFields = FieldUtils.getAllFields(UiScenario.class); - addOptionDto(messageTemplateFieldDTOList, allFields, "ui_"); - addCustomFiled(messageTemplateFieldDTOList, projectId, TemplateScene.UI.toString()); - //TODO:获取报告 - } case NoticeConstants.TaskType.LOAD_TEST_TASK -> { Field[] allFields = FieldUtils.getAllFields(LoadTest.class); addOptionDto(messageTemplateFieldDTOList, allFields, "load_"); 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 716ac8febd..f8fc0253c1 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 @@ -62,7 +62,6 @@ public class NoticeTemplateControllerTests extends BaseTest { typeList.add(NoticeConstants.TaskType.CASE_REVIEW_TASK); typeList.add(NoticeConstants.TaskType.FUNCTIONAL_CASE_TASK); typeList.add(NoticeConstants.TaskType.BUG_TASK); - typeList.add(NoticeConstants.TaskType.UI_SCENARIO_TASK); typeList.add(NoticeConstants.TaskType.LOAD_TEST_TASK); typeList.add(NoticeConstants.TaskType.JENKINS_TASK); typeList.add(NoticeConstants.TaskType.SCHEDULE_TASK); @@ -100,10 +99,6 @@ public class NoticeTemplateControllerTests extends BaseTest { List collect = projectList.stream().map(OptionDTO::getId).toList(); Assertions.assertFalse(collect.contains("level")); } - if (s.equals(NoticeConstants.TaskType.UI_SCENARIO_TASK)) { - List collect = projectList.stream().map(OptionDTO::getId).toList(); - Assertions.assertFalse(collect.contains("age")); - } } } diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/config/interceptor/UiInterceptor.java b/backend/services/system-setting/src/main/java/io/metersphere/system/config/interceptor/UiInterceptor.java deleted file mode 100644 index bc9e5cc607..0000000000 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/config/interceptor/UiInterceptor.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.metersphere.system.config.interceptor; - -import io.metersphere.sdk.util.CompressUtils; -import io.metersphere.system.utils.MybatisInterceptorConfig; -import io.metersphere.ui.domain.*; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -import java.util.ArrayList; -import java.util.List; - -@Configuration -public class UiInterceptor { - @Bean - public List uiCompressConfigs() { - List configList = new ArrayList<>(); - - configList.add(new MybatisInterceptorConfig(UiCustomCommandBlob.class, "scenarioDefinition", CompressUtils.class, "zip", "unzip")); - configList.add(new MybatisInterceptorConfig(UiCustomCommandBlob.class, "commandViewStruct", CompressUtils.class, "zip", "unzip")); - - configList.add(new MybatisInterceptorConfig(UiScenarioBlob.class, "scenarioDefinition", CompressUtils.class, "zip", "unzip")); - configList.add(new MybatisInterceptorConfig(UiScenarioBlob.class, "environmentJson", CompressUtils.class, "zip", "unzip")); - - configList.add(new MybatisInterceptorConfig(UiScenarioReportDetail.class, "content", CompressUtils.class, "zip", "unzip")); - configList.add(new MybatisInterceptorConfig(UiScenarioReportDetail.class, "baseInfo", CompressUtils.class, "zip", "unzip")); - - configList.add(new MybatisInterceptorConfig(UiScenarioReportLog.class, "console", CompressUtils.class, "zip", "unzip")); - - configList.add(new MybatisInterceptorConfig(UiScenarioReportStructure.class, "resourceTree", 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 765bebdbb5..72411aa647 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 @@ public interface NoticeConstants { @Schema(description = "message.report_task") String API_REPORT_TASK = "API_REPORT_TASK"; - //UI测试模块的任务 - @Schema(description = "message.ui_scenario_task") - String UI_SCENARIO_TASK = "UI_SCENARIO_TASK"; - @Schema(description = "message.report_task") - String UI_REPORT_TASK = "UI_REPORT_TASK"; - //性能测试模块的任务 @Schema(description = "message.load_test_task") String LOAD_TEST_TASK = "LOAD_TEST_TASK"; 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 f17fce45db..aa93aa57a5 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 @@ -16,7 +16,6 @@ import io.metersphere.system.dto.sdk.ApiScenarioMessageDTO; import io.metersphere.system.dto.sdk.FunctionalCaseMessageDTO; import io.metersphere.system.mapper.UserMapper; import io.metersphere.system.notice.constants.NoticeConstants; -import io.metersphere.ui.domain.UiScenario; import io.swagger.v3.oas.annotations.media.Schema; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; @@ -150,7 +149,6 @@ public class MessageTemplateUtils { 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.UI_SCENARIO_TASK -> FieldUtils.getAllFields(UiScenario.class); case NoticeConstants.TaskType.LOAD_TEST_TASK -> FieldUtils.getAllFields(LoadTest.class); case NoticeConstants.TaskType.SCHEDULE_TASK -> FieldUtils.getAllFields(Schedule.class); default -> new Field[0]; @@ -249,7 +247,6 @@ public class MessageTemplateUtils { case NoticeConstants.TaskType.TEST_PLAN_TASK -> 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.UI_SCENARIO_TASK -> putDomainName(domainTemplateFields, map, "ui_"); 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/ui-test/pom.xml b/backend/services/ui-test/pom.xml deleted file mode 100644 index 0615c8116c..0000000000 --- a/backend/services/ui-test/pom.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - 4.0.0 - - io.metersphere - services - ${revision} - - metersphere-ui-test - ${revision} - ui-test - - - - - io.metersphere - metersphere-sdk - ${revision} - - - io.metersphere - metersphere-domain - ${revision} - - - - - - - - org.mybatis.generator - mybatis-generator-maven-plugin - 1.3.7 - - true - true - src/main/resources/uiGeneratorConfig.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/ui-test/src/main/java/io/metersphere/ui/service/UiScenarioService.java b/backend/services/ui-test/src/main/java/io/metersphere/ui/service/UiScenarioService.java deleted file mode 100644 index 21960ee4c6..0000000000 --- a/backend/services/ui-test/src/main/java/io/metersphere/ui/service/UiScenarioService.java +++ /dev/null @@ -1,5 +0,0 @@ -package io.metersphere.ui.service; - -public interface UiScenarioService { - String run(); -} diff --git a/backend/services/ui-test/src/main/resources/uiGeneratorConfig.xml b/backend/services/ui-test/src/main/resources/uiGeneratorConfig.xml deleted file mode 100644 index d8be0949a3..0000000000 --- a/backend/services/ui-test/src/main/resources/uiGeneratorConfig.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - diff --git a/backend/services/workstation/pom.xml b/backend/services/workstation/pom.xml deleted file mode 100644 index 716faa89b8..0000000000 --- a/backend/services/workstation/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - 4.0.0 - - io.metersphere - services - ${revision} - - metersphere-workstation - ${revision} - workstation - - - - - io.metersphere - metersphere-sdk - ${revision} - - - io.metersphere - metersphere-system-setting - ${revision} - - - io.metersphere - metersphere-project-management - ${revision} - - - - - - diff --git a/pom.xml b/pom.xml index f060f08a70..23559d0e8e 100644 --- a/pom.xml +++ b/pom.xml @@ -55,9 +55,6 @@ 3.0.201.0.03.3.4 - 4.18.1 - 4.18.1 - 1.35.01.9.43.2.130.1.2