feat(接口测试): 添加报告各种统计指标

This commit is contained in:
fit2-zhao 2024-01-15 16:04:47 +08:00 committed by Craftsman
parent 5dfa9e7c75
commit fa4eb4d326
25 changed files with 3482 additions and 1750 deletions

View File

@ -53,6 +53,9 @@ public class ApiDebug implements Serializable {
@Schema(description = "修改人")
private String updateUser;
@Schema(description = "")
private Long pos;
private static final long serialVersionUID = 1L;
public enum Column {
@ -66,7 +69,8 @@ public class ApiDebug implements Serializable {
createTime("create_time", "createTime", "BIGINT", false),
createUser("create_user", "createUser", "VARCHAR", false),
updateTime("update_time", "updateTime", "BIGINT", false),
updateUser("update_user", "updateUser", "VARCHAR", false);
updateUser("update_user", "updateUser", "VARCHAR", false),
pos("pos", "pos", "BIGINT", false);
private static final String BEGINNING_DELIMITER = "`";

View File

@ -853,6 +853,66 @@ public class ApiDebugExample {
addCriterion("update_user not between", value1, value2, "updateUser");
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<Long> values) {
addCriterion("pos in", values, "pos");
return (Criteria) this;
}
public Criteria andPosNotIn(List<Long> values) {
addCriterion("pos not in", values, "pos");
return (Criteria) this;
}
public Criteria andPosBetween(Long value1, Long value2) {
addCriterion("pos between", value1, value2, "pos");
return (Criteria) this;
}
public Criteria andPosNotBetween(Long value1, Long value2) {
addCriterion("pos not between", value1, value2, "pos");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

View File

@ -1,17 +1,13 @@
package io.metersphere.api.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import jakarta.validation.constraints.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import lombok.Data;
@Data
public class ApiDefinition implements Serializable {
@ -45,7 +41,7 @@ public class ApiDefinition implements Serializable {
private Long num;
@Schema(description = "标签")
private List<String> tags;
private java.util.List<String> tags;
@Schema(description = "自定义排序", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_definition.pos.not_blank}", groups = {Created.class})
@ -169,7 +165,7 @@ public class ApiDefinition implements Serializable {
return this.getEscapedColumnName() + " ASC";
}
public static Column[] excludes(Column... excludes) {
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));

View File

@ -1,16 +1,13 @@
package io.metersphere.api.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import jakarta.validation.constraints.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import lombok.Data;
@Data
public class ApiDefinitionMock implements Serializable {
@ -34,7 +31,7 @@ public class ApiDefinitionMock implements Serializable {
private String name;
@Schema(description = "自定义标签")
private List<String> tags;
private java.util.List<String> tags;
@Schema(description = "启用/禁用")
private Boolean enable;
@ -111,7 +108,7 @@ public class ApiDefinitionMock implements Serializable {
return this.getEscapedColumnName() + " ASC";
}
public static Column[] excludes(Column... excludes) {
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));

View File

@ -10,91 +10,159 @@ import lombok.Data;
@Data
public class ApiReport implements Serializable {
@Schema(description = "接口结果报告pk", requiredMode = Schema.RequiredMode.REQUIRED)
@Schema(description = "场景报告pk", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_report.id.not_blank}", groups = {Updated.class})
@Size(min = 1, max = 50, message = "{api_report.id.length_range}", groups = {Created.class, Updated.class})
private String id;
@Schema(description = "接口报告名称", requiredMode = Schema.RequiredMode.REQUIRED)
@Schema(description = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_report.name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 200, message = "{api_report.name.length_range}", groups = {Created.class, Updated.class})
@Size(min = 1, max = 255, message = "{api_report.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(description = "资源fk/api_definition_id/api_test_case_id", requiredMode = Schema.RequiredMode.REQUIRED)
@Schema(description = "场景资源fk/api_definition_id/api_test_case_id", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_report.resource_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_report.resource_id.length_range}", groups = {Created.class, Updated.class})
private String resourceId;
@Schema(description = "创建时间")
private Long createTime;
@Schema(description = "修改时间")
private Long updateTime;
@Schema(description = "创建人fk")
@Schema(description = "创建人")
private String createUser;
@Schema(description = "删除时间")
private Long deleteTime;
@Schema(description = "删除人")
private String deleteUser;
@Schema(description = "删除标识", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.deleted.not_blank}", groups = {Created.class})
private Boolean deleted;
@Schema(description = "修改人")
private String updateUser;
@Schema(description = "删除状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.deleted.not_blank}", groups = {Created.class})
private Boolean deleted;
@Schema(description = "更新时间")
private Long updateTime;
@Schema(description = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED)
@Schema(description = "开始时间/同创建时间一致", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.start_time.not_blank}", groups = {Created.class})
private Long startTime;
@Schema(description = "结束时间/报告执行完成", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.end_time.not_blank}", groups = {Created.class})
private Long endTime;
@Schema(description = "请求总耗时", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.request_duration.not_blank}", groups = {Created.class})
private Long requestDuration;
@Schema(description = "报告状态/SUCCESS/ERROR", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_report.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_report.status.length_range}", groups = {Created.class, Updated.class})
@Size(min = 1, max = 20, message = "{api_report.status.length_range}", groups = {Created.class, Updated.class})
private String status;
@Schema(description = "执行模块/API/CASE/API_PLAN", requiredMode = Schema.RequiredMode.REQUIRED)
@Schema(description = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_report.trigger_mode.not_blank}", groups = {Created.class})
@Size(min = 1, max = 20, message = "{api_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
private String triggerMode;
@Schema(description = "执行模式", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_report.run_mode.not_blank}", groups = {Created.class})
@Size(min = 1, max = 20, message = "{api_report.run_mode.length_range}", groups = {Created.class, Updated.class})
private String runMode;
@Schema(description = "资源池fk", requiredMode = Schema.RequiredMode.REQUIRED)
@Schema(description = "资源池", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_report.pool_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_report.pool_id.length_range}", groups = {Created.class, Updated.class})
private String poolId;
@Schema(description = "触发模式/手动/批量/定时任务/JENKINS", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_report.trigger_mode.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_report.trigger_mode.length_range}", groups = {Created.class, Updated.class})
private String triggerMode;
@Schema(description = "版本fk")
private String versionId;
@Schema(description = "是否是集成报告", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.integrated.not_blank}", groups = {Created.class})
private Boolean integrated;
@Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_report.project_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_report.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(description = "是否为集成报告,默认否", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.integrated.not_blank}", groups = {Created.class})
private Boolean integrated;
@Schema(description = "环境id")
@Schema(description = "环境")
private String environmentId;
@Schema(description = "失败数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.error_count.not_blank}", groups = {Created.class})
private Long errorCount;
@Schema(description = "误报数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.fake_error_count.not_blank}", groups = {Created.class})
private Long fakeErrorCount;
@Schema(description = "未执行数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.pending_count.not_blank}", groups = {Created.class})
private Long pendingCount;
@Schema(description = "成功数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.success_count.not_blank}", groups = {Created.class})
private Long successCount;
@Schema(description = "总断言数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.assertion_count.not_blank}", groups = {Created.class})
private Long assertionCount;
@Schema(description = "失败断言数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.pass_assertions_count.not_blank}", groups = {Created.class})
private Long passAssertionsCount;
@Schema(description = "请求执行率", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.request_execution_rate.not_blank}", groups = {Created.class})
private Long requestExecutionRate;
@Schema(description = "请求通过率", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.request_approval_rate.not_blank}", groups = {Created.class})
private Long requestApprovalRate;
@Schema(description = "断言通过率", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report.assertion_pass_rate.not_blank}", groups = {Created.class})
private Long assertionPassRate;
@Schema(description = "脚本标识")
private String scriptIdentifier;
private static final long serialVersionUID = 1L;
public enum Column {
id("id", "id", "VARCHAR", false),
name("name", "name", "VARCHAR", true),
resourceId("resource_id", "resourceId", "VARCHAR", false),
createTime("create_time", "createTime", "BIGINT", false),
updateTime("update_time", "updateTime", "BIGINT", false),
createUser("create_user", "createUser", "VARCHAR", false),
updateUser("update_user", "updateUser", "VARCHAR", false),
deleteTime("delete_time", "deleteTime", "BIGINT", false),
deleteUser("delete_user", "deleteUser", "VARCHAR", false),
deleted("deleted", "deleted", "BIT", false),
updateUser("update_user", "updateUser", "VARCHAR", false),
updateTime("update_time", "updateTime", "BIGINT", false),
startTime("start_time", "startTime", "BIGINT", false),
endTime("end_time", "endTime", "BIGINT", false),
requestDuration("request_duration", "requestDuration", "BIGINT", false),
status("status", "status", "VARCHAR", true),
triggerMode("trigger_mode", "triggerMode", "VARCHAR", false),
runMode("run_mode", "runMode", "VARCHAR", false),
poolId("pool_id", "poolId", "VARCHAR", false),
triggerMode("trigger_mode", "triggerMode", "VARCHAR", false),
versionId("version_id", "versionId", "VARCHAR", false),
projectId("project_id", "projectId", "VARCHAR", false),
integrated("integrated", "integrated", "BIT", false),
environmentId("environment_id", "environmentId", "VARCHAR", false);
projectId("project_id", "projectId", "VARCHAR", false),
environmentId("environment_id", "environmentId", "VARCHAR", false),
errorCount("error_count", "errorCount", "BIGINT", false),
fakeErrorCount("fake_error_count", "fakeErrorCount", "BIGINT", false),
pendingCount("pending_count", "pendingCount", "BIGINT", false),
successCount("success_count", "successCount", "BIGINT", false),
assertionCount("assertion_count", "assertionCount", "BIGINT", false),
passAssertionsCount("pass_assertions_count", "passAssertionsCount", "BIGINT", false),
requestExecutionRate("request_execution_rate", "requestExecutionRate", "BIGINT", false),
requestApprovalRate("request_approval_rate", "requestApprovalRate", "BIGINT", false),
assertionPassRate("assertion_pass_rate", "assertionPassRate", "BIGINT", false),
scriptIdentifier("script_identifier", "scriptIdentifier", "VARCHAR", false);
private static final String BEGINNING_DELIMITER = "`";

View File

@ -25,39 +25,31 @@ public class ApiReportDetail implements Serializable {
@Size(min = 1, max = 50, message = "{api_report_detail.resource_id.length_range}", groups = {Created.class, Updated.class})
private String resourceId;
@Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report_detail.start_time.not_blank}", groups = {Created.class})
private Long startTime;
@Schema(description = "结果状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_report_detail.status.not_blank}", groups = {Created.class})
@Size(min = 1, max = 20, message = "{api_report_detail.status.length_range}", groups = {Created.class, Updated.class})
private String status;
@Schema(description = "单个请求步骤时间")
private Long requestTime;
@Schema(description = "总断言数")
private Long assertionsTotal;
@Schema(description = "失败断言数")
private Long passAssertionsTotal;
@Schema(description = "误报编号")
@Schema(description = "误报编号/误报状态独有")
private String fakeCode;
@Schema(description = "请求名称")
private String requestName;
@Schema(description = "项目fk")
private String projectId;
@Schema(description = "失败总数")
private Integer errorTotal;
@Schema(description = "请求耗时", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report_detail.request_time.not_blank}", groups = {Created.class})
private Long requestTime;
@Schema(description = "请求响应码")
private String code;
@Schema(description = "响应内容大小", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_report_detail.response_size.not_blank}", groups = {Created.class})
private Long responseSize;
@Schema(description = "脚本标识")
private String scriptIdentifier;
@Schema(description = "结果内容详情")
private byte[] content;
@ -67,16 +59,13 @@ public class ApiReportDetail implements Serializable {
id("id", "id", "VARCHAR", false),
reportId("report_id", "reportId", "VARCHAR", false),
resourceId("resource_id", "resourceId", "VARCHAR", false),
startTime("start_time", "startTime", "BIGINT", false),
status("status", "status", "VARCHAR", true),
requestTime("request_time", "requestTime", "BIGINT", false),
assertionsTotal("assertions_total", "assertionsTotal", "BIGINT", false),
passAssertionsTotal("pass_assertions_total", "passAssertionsTotal", "BIGINT", false),
fakeCode("fake_code", "fakeCode", "VARCHAR", false),
requestName("request_name", "requestName", "VARCHAR", false),
projectId("project_id", "projectId", "VARCHAR", false),
errorTotal("error_total", "errorTotal", "INTEGER", false),
requestTime("request_time", "requestTime", "BIGINT", false),
code("code", "code", "VARCHAR", false),
responseSize("response_size", "responseSize", "BIGINT", false),
scriptIdentifier("script_identifier", "scriptIdentifier", "VARCHAR", false),
content("content", "content", "LONGVARBINARY", false);
private static final String BEGINNING_DELIMITER = "`";

View File

@ -314,66 +314,6 @@ public class ApiReportDetailExample {
return (Criteria) this;
}
public Criteria andStartTimeIsNull() {
addCriterion("start_time is null");
return (Criteria) this;
}
public Criteria andStartTimeIsNotNull() {
addCriterion("start_time is not null");
return (Criteria) this;
}
public Criteria andStartTimeEqualTo(Long value) {
addCriterion("start_time =", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotEqualTo(Long value) {
addCriterion("start_time <>", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThan(Long value) {
addCriterion("start_time >", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThanOrEqualTo(Long value) {
addCriterion("start_time >=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThan(Long value) {
addCriterion("start_time <", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThanOrEqualTo(Long value) {
addCriterion("start_time <=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeIn(List<Long> values) {
addCriterion("start_time in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotIn(List<Long> values) {
addCriterion("start_time not in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeBetween(Long value1, Long value2) {
addCriterion("start_time between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotBetween(Long value1, Long value2) {
addCriterion("start_time not between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;
@ -444,186 +384,6 @@ public class ApiReportDetailExample {
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<Long> values) {
addCriterion("request_time in", values, "requestTime");
return (Criteria) this;
}
public Criteria andRequestTimeNotIn(List<Long> 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 andAssertionsTotalIsNull() {
addCriterion("assertions_total is null");
return (Criteria) this;
}
public Criteria andAssertionsTotalIsNotNull() {
addCriterion("assertions_total is not null");
return (Criteria) this;
}
public Criteria andAssertionsTotalEqualTo(Long value) {
addCriterion("assertions_total =", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalNotEqualTo(Long value) {
addCriterion("assertions_total <>", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalGreaterThan(Long value) {
addCriterion("assertions_total >", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalGreaterThanOrEqualTo(Long value) {
addCriterion("assertions_total >=", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalLessThan(Long value) {
addCriterion("assertions_total <", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalLessThanOrEqualTo(Long value) {
addCriterion("assertions_total <=", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalIn(List<Long> values) {
addCriterion("assertions_total in", values, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalNotIn(List<Long> values) {
addCriterion("assertions_total not in", values, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalBetween(Long value1, Long value2) {
addCriterion("assertions_total between", value1, value2, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalNotBetween(Long value1, Long value2) {
addCriterion("assertions_total not between", value1, value2, "assertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalIsNull() {
addCriterion("pass_assertions_total is null");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalIsNotNull() {
addCriterion("pass_assertions_total is not null");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalEqualTo(Long value) {
addCriterion("pass_assertions_total =", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalNotEqualTo(Long value) {
addCriterion("pass_assertions_total <>", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalGreaterThan(Long value) {
addCriterion("pass_assertions_total >", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalGreaterThanOrEqualTo(Long value) {
addCriterion("pass_assertions_total >=", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalLessThan(Long value) {
addCriterion("pass_assertions_total <", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalLessThanOrEqualTo(Long value) {
addCriterion("pass_assertions_total <=", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalIn(List<Long> values) {
addCriterion("pass_assertions_total in", values, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalNotIn(List<Long> values) {
addCriterion("pass_assertions_total not in", values, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalBetween(Long value1, Long value2) {
addCriterion("pass_assertions_total between", value1, value2, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalNotBetween(Long value1, Long value2) {
addCriterion("pass_assertions_total not between", value1, value2, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andFakeCodeIsNull() {
addCriterion("fake_code is null");
return (Criteria) this;
@ -764,133 +524,63 @@ public class ApiReportDetailExample {
return (Criteria) this;
}
public Criteria andProjectIdIsNull() {
addCriterion("project_id is null");
public Criteria andRequestTimeIsNull() {
addCriterion("request_time is null");
return (Criteria) this;
}
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
public Criteria andRequestTimeIsNotNull() {
addCriterion("request_time is not null");
return (Criteria) this;
}
public Criteria andProjectIdEqualTo(String value) {
addCriterion("project_id =", value, "projectId");
public Criteria andRequestTimeEqualTo(Long value) {
addCriterion("request_time =", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdNotEqualTo(String value) {
addCriterion("project_id <>", value, "projectId");
public Criteria andRequestTimeNotEqualTo(Long value) {
addCriterion("request_time <>", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThan(String value) {
addCriterion("project_id >", value, "projectId");
public Criteria andRequestTimeGreaterThan(Long value) {
addCriterion("request_time >", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThanOrEqualTo(String value) {
addCriterion("project_id >=", value, "projectId");
public Criteria andRequestTimeGreaterThanOrEqualTo(Long value) {
addCriterion("request_time >=", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdLessThan(String value) {
addCriterion("project_id <", value, "projectId");
public Criteria andRequestTimeLessThan(Long value) {
addCriterion("request_time <", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdLessThanOrEqualTo(String value) {
addCriterion("project_id <=", value, "projectId");
public Criteria andRequestTimeLessThanOrEqualTo(Long value) {
addCriterion("request_time <=", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdLike(String value) {
addCriterion("project_id like", value, "projectId");
public Criteria andRequestTimeIn(List<Long> values) {
addCriterion("request_time in", values, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdNotLike(String value) {
addCriterion("project_id not like", value, "projectId");
public Criteria andRequestTimeNotIn(List<Long> values) {
addCriterion("request_time not in", values, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdIn(List<String> values) {
addCriterion("project_id in", values, "projectId");
public Criteria andRequestTimeBetween(Long value1, Long value2) {
addCriterion("request_time between", value1, value2, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdNotIn(List<String> 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 andErrorTotalIsNull() {
addCriterion("error_total is null");
return (Criteria) this;
}
public Criteria andErrorTotalIsNotNull() {
addCriterion("error_total is not null");
return (Criteria) this;
}
public Criteria andErrorTotalEqualTo(Integer value) {
addCriterion("error_total =", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalNotEqualTo(Integer value) {
addCriterion("error_total <>", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalGreaterThan(Integer value) {
addCriterion("error_total >", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalGreaterThanOrEqualTo(Integer value) {
addCriterion("error_total >=", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalLessThan(Integer value) {
addCriterion("error_total <", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalLessThanOrEqualTo(Integer value) {
addCriterion("error_total <=", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalIn(List<Integer> values) {
addCriterion("error_total in", values, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalNotIn(List<Integer> values) {
addCriterion("error_total not in", values, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalBetween(Integer value1, Integer value2) {
addCriterion("error_total between", value1, value2, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalNotBetween(Integer value1, Integer value2) {
addCriterion("error_total not between", value1, value2, "errorTotal");
public Criteria andRequestTimeNotBetween(Long value1, Long value2) {
addCriterion("request_time not between", value1, value2, "requestTime");
return (Criteria) this;
}
@ -963,6 +653,136 @@ public class ApiReportDetailExample {
addCriterion("code not between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andResponseSizeIsNull() {
addCriterion("response_size is null");
return (Criteria) this;
}
public Criteria andResponseSizeIsNotNull() {
addCriterion("response_size is not null");
return (Criteria) this;
}
public Criteria andResponseSizeEqualTo(Long value) {
addCriterion("response_size =", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeNotEqualTo(Long value) {
addCriterion("response_size <>", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeGreaterThan(Long value) {
addCriterion("response_size >", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeGreaterThanOrEqualTo(Long value) {
addCriterion("response_size >=", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeLessThan(Long value) {
addCriterion("response_size <", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeLessThanOrEqualTo(Long value) {
addCriterion("response_size <=", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeIn(List<Long> values) {
addCriterion("response_size in", values, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeNotIn(List<Long> values) {
addCriterion("response_size not in", values, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeBetween(Long value1, Long value2) {
addCriterion("response_size between", value1, value2, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeNotBetween(Long value1, Long value2) {
addCriterion("response_size not between", value1, value2, "responseSize");
return (Criteria) this;
}
public Criteria andScriptIdentifierIsNull() {
addCriterion("script_identifier is null");
return (Criteria) this;
}
public Criteria andScriptIdentifierIsNotNull() {
addCriterion("script_identifier is not null");
return (Criteria) this;
}
public Criteria andScriptIdentifierEqualTo(String value) {
addCriterion("script_identifier =", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotEqualTo(String value) {
addCriterion("script_identifier <>", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierGreaterThan(String value) {
addCriterion("script_identifier >", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierGreaterThanOrEqualTo(String value) {
addCriterion("script_identifier >=", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierLessThan(String value) {
addCriterion("script_identifier <", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierLessThanOrEqualTo(String value) {
addCriterion("script_identifier <=", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierLike(String value) {
addCriterion("script_identifier like", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotLike(String value) {
addCriterion("script_identifier not like", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierIn(List<String> values) {
addCriterion("script_identifier in", values, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotIn(List<String> values) {
addCriterion("script_identifier not in", values, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierBetween(String value1, String value2) {
addCriterion("script_identifier between", value1, value2, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotBetween(String value1, String value2) {
addCriterion("script_identifier not between", value1, value2, "scriptIdentifier");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

View File

@ -56,13 +56,18 @@ public class ApiScenario implements Serializable {
@NotNull(message = "{api_scenario.pos.not_blank}", groups = {Created.class})
private Long pos;
@Schema(description = "版本fk")
@Schema(description = "版本fk", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_scenario.version_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_scenario.version_id.length_range}", groups = {Created.class, Updated.class})
private String versionId;
@Schema(description = "引用资源fk")
@Schema(description = "引用资源fk", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_scenario.ref_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_scenario.ref_id.length_range}", groups = {Created.class, Updated.class})
private String refId;
@Schema(description = "是否为最新版本 0:否1:是")
@Schema(description = "是否为最新版本 0:否1:是", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario.latest.not_blank}", groups = {Created.class})
private Boolean latest;
@Schema(description = "项目fk", requiredMode = Schema.RequiredMode.REQUIRED)
@ -70,7 +75,9 @@ public class ApiScenario implements Serializable {
@Size(min = 1, max = 50, message = "{api_scenario.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(description = "场景模块fk")
@Schema(description = "场景模块fk", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_scenario.module_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_scenario.module_id.length_range}", groups = {Created.class, Updated.class})
private String moduleId;
@Schema(description = "描述信息")

View File

@ -20,8 +20,10 @@ public class ApiScenarioReport implements Serializable {
@Size(min = 1, max = 255, message = "{api_scenario_report.name.length_range}", groups = {Created.class, Updated.class})
private String name;
@Schema(description = "创建时间")
private Long createTime;
@Schema(description = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_scenario_report.scenario_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_scenario_report.scenario_id.length_range}", groups = {Created.class, Updated.class})
private String scenarioId;
@Schema(description = "创建人")
private String createUser;
@ -42,8 +44,17 @@ public class ApiScenarioReport implements Serializable {
@Schema(description = "更新时间")
private Long updateTime;
@Schema(description = "通过率")
private Long passRate;
@Schema(description = "开始时间/同创建时间一致", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.start_time.not_blank}", groups = {Created.class})
private Long startTime;
@Schema(description = "结束时间/报告执行完成", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.end_time.not_blank}", groups = {Created.class})
private Long endTime;
@Schema(description = "请求总耗时", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.request_duration.not_blank}", groups = {Created.class})
private Long requestDuration;
@Schema(description = "报告状态/SUCCESS/ERROR", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_scenario_report.status.not_blank}", groups = {Created.class})
@ -77,27 +88,63 @@ public class ApiScenarioReport implements Serializable {
@Size(min = 1, max = 50, message = "{api_scenario_report.project_id.length_range}", groups = {Created.class, Updated.class})
private String projectId;
@Schema(description = "场景fk", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_scenario_report.scenario_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_scenario_report.scenario_id.length_range}", groups = {Created.class, Updated.class})
private String scenarioId;
@Schema(description = "环境")
private String environmentId;
@Schema(description = "失败数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.error_count.not_blank}", groups = {Created.class})
private Long errorCount;
@Schema(description = "误报数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.fake_error_count.not_blank}", groups = {Created.class})
private Long fakeErrorCount;
@Schema(description = "未执行数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.pending_count.not_blank}", groups = {Created.class})
private Long pendingCount;
@Schema(description = "成功数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.success_count.not_blank}", groups = {Created.class})
private Long successCount;
@Schema(description = "总断言数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.assertion_count.not_blank}", groups = {Created.class})
private Long assertionCount;
@Schema(description = "失败断言数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.pass_assertions_count.not_blank}", groups = {Created.class})
private Long passAssertionsCount;
@Schema(description = "请求执行率", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.request_execution_rate.not_blank}", groups = {Created.class})
private Long requestExecutionRate;
@Schema(description = "请求通过率", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.request_approval_rate.not_blank}", groups = {Created.class})
private Long requestApprovalRate;
@Schema(description = "断言通过率", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report.assertion_pass_rate.not_blank}", groups = {Created.class})
private Long assertionPassRate;
@Schema(description = "脚本标识")
private String scriptIdentifier;
private static final long serialVersionUID = 1L;
public enum Column {
id("id", "id", "VARCHAR", false),
name("name", "name", "VARCHAR", true),
createTime("create_time", "createTime", "BIGINT", false),
scenarioId("scenario_id", "scenarioId", "VARCHAR", false),
createUser("create_user", "createUser", "VARCHAR", false),
deleteTime("delete_time", "deleteTime", "BIGINT", false),
deleteUser("delete_user", "deleteUser", "VARCHAR", false),
deleted("deleted", "deleted", "BIT", false),
updateUser("update_user", "updateUser", "VARCHAR", false),
updateTime("update_time", "updateTime", "BIGINT", false),
passRate("pass_rate", "passRate", "BIGINT", false),
startTime("start_time", "startTime", "BIGINT", false),
endTime("end_time", "endTime", "BIGINT", false),
requestDuration("request_duration", "requestDuration", "BIGINT", false),
status("status", "status", "VARCHAR", true),
triggerMode("trigger_mode", "triggerMode", "VARCHAR", false),
runMode("run_mode", "runMode", "VARCHAR", false),
@ -105,8 +152,17 @@ public class ApiScenarioReport implements Serializable {
versionId("version_id", "versionId", "VARCHAR", false),
integrated("integrated", "integrated", "BIT", false),
projectId("project_id", "projectId", "VARCHAR", false),
scenarioId("scenario_id", "scenarioId", "VARCHAR", false),
environmentId("environment_id", "environmentId", "VARCHAR", false);
environmentId("environment_id", "environmentId", "VARCHAR", false),
errorCount("error_count", "errorCount", "BIGINT", false),
fakeErrorCount("fake_error_count", "fakeErrorCount", "BIGINT", false),
pendingCount("pending_count", "pendingCount", "BIGINT", false),
successCount("success_count", "successCount", "BIGINT", false),
assertionCount("assertion_count", "assertionCount", "BIGINT", false),
passAssertionsCount("pass_assertions_count", "passAssertionsCount", "BIGINT", false),
requestExecutionRate("request_execution_rate", "requestExecutionRate", "BIGINT", false),
requestApprovalRate("request_approval_rate", "requestApprovalRate", "BIGINT", false),
assertionPassRate("assertion_pass_rate", "assertionPassRate", "BIGINT", false),
scriptIdentifier("script_identifier", "scriptIdentifier", "VARCHAR", false);
private static final String BEGINNING_DELIMITER = "`";

View File

@ -21,40 +21,33 @@ public class ApiScenarioReportDetail implements Serializable {
private String reportId;
@Schema(description = "场景中各个步骤请求唯一标识", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_scenario_report_detail.resource_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_scenario_report_detail.resource_id.length_range}", groups = {Created.class, Updated.class})
private String resourceId;
@Schema(description = "开始时间")
private Long startTime;
@NotBlank(message = "{api_scenario_report_detail.report_step_id.not_blank}", groups = {Created.class})
@Size(min = 1, max = 50, message = "{api_scenario_report_detail.report_step_id.length_range}", groups = {Created.class, Updated.class})
private String reportStepId;
@Schema(description = "结果状态")
private String status;
@Schema(description = "单个请求步骤时间")
private Long requestTime;
@Schema(description = "总断言数")
private Long assertionsTotal;
@Schema(description = "失败断言数")
private Long passAssertionsTotal;
@Schema(description = "误报编号")
@Schema(description = "误报编号/误报状态独有")
private String fakeCode;
@Schema(description = "请求名称")
private String requestName;
@Schema(description = "项目fk")
private String projectId;
@Schema(description = "失败总数")
private Integer errorTotal;
@Schema(description = "请求耗时", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report_detail.request_time.not_blank}", groups = {Created.class})
private Long requestTime;
@Schema(description = "请求响应码")
private String code;
@Schema(description = "响应内容大小", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "{api_scenario_report_detail.response_size.not_blank}", groups = {Created.class})
private Long responseSize;
@Schema(description = "脚本标识")
private String scriptIdentifier;
@Schema(description = "执行结果")
private byte[] content;
@ -63,17 +56,14 @@ public class ApiScenarioReportDetail implements Serializable {
public enum Column {
id("id", "id", "VARCHAR", false),
reportId("report_id", "reportId", "VARCHAR", false),
resourceId("resource_id", "resourceId", "VARCHAR", false),
startTime("start_time", "startTime", "BIGINT", false),
reportStepId("report_step_id", "reportStepId", "VARCHAR", false),
status("status", "status", "VARCHAR", true),
requestTime("request_time", "requestTime", "BIGINT", false),
assertionsTotal("assertions_total", "assertionsTotal", "BIGINT", false),
passAssertionsTotal("pass_assertions_total", "passAssertionsTotal", "BIGINT", false),
fakeCode("fake_code", "fakeCode", "VARCHAR", false),
requestName("request_name", "requestName", "VARCHAR", false),
projectId("project_id", "projectId", "VARCHAR", false),
errorTotal("error_total", "errorTotal", "INTEGER", false),
requestTime("request_time", "requestTime", "BIGINT", false),
code("code", "code", "VARCHAR", false),
responseSize("response_size", "responseSize", "BIGINT", false),
scriptIdentifier("script_identifier", "scriptIdentifier", "VARCHAR", false),
content("content", "content", "LONGVARBINARY", false);
private static final String BEGINNING_DELIMITER = "`";

View File

@ -244,133 +244,73 @@ public class ApiScenarioReportDetailExample {
return (Criteria) this;
}
public Criteria andResourceIdIsNull() {
addCriterion("resource_id is null");
public Criteria andReportStepIdIsNull() {
addCriterion("report_step_id is null");
return (Criteria) this;
}
public Criteria andResourceIdIsNotNull() {
addCriterion("resource_id is not null");
public Criteria andReportStepIdIsNotNull() {
addCriterion("report_step_id is not null");
return (Criteria) this;
}
public Criteria andResourceIdEqualTo(String value) {
addCriterion("resource_id =", value, "resourceId");
public Criteria andReportStepIdEqualTo(String value) {
addCriterion("report_step_id =", value, "reportStepId");
return (Criteria) this;
}
public Criteria andResourceIdNotEqualTo(String value) {
addCriterion("resource_id <>", value, "resourceId");
public Criteria andReportStepIdNotEqualTo(String value) {
addCriterion("report_step_id <>", value, "reportStepId");
return (Criteria) this;
}
public Criteria andResourceIdGreaterThan(String value) {
addCriterion("resource_id >", value, "resourceId");
public Criteria andReportStepIdGreaterThan(String value) {
addCriterion("report_step_id >", value, "reportStepId");
return (Criteria) this;
}
public Criteria andResourceIdGreaterThanOrEqualTo(String value) {
addCriterion("resource_id >=", value, "resourceId");
public Criteria andReportStepIdGreaterThanOrEqualTo(String value) {
addCriterion("report_step_id >=", value, "reportStepId");
return (Criteria) this;
}
public Criteria andResourceIdLessThan(String value) {
addCriterion("resource_id <", value, "resourceId");
public Criteria andReportStepIdLessThan(String value) {
addCriterion("report_step_id <", value, "reportStepId");
return (Criteria) this;
}
public Criteria andResourceIdLessThanOrEqualTo(String value) {
addCriterion("resource_id <=", value, "resourceId");
public Criteria andReportStepIdLessThanOrEqualTo(String value) {
addCriterion("report_step_id <=", value, "reportStepId");
return (Criteria) this;
}
public Criteria andResourceIdLike(String value) {
addCriterion("resource_id like", value, "resourceId");
public Criteria andReportStepIdLike(String value) {
addCriterion("report_step_id like", value, "reportStepId");
return (Criteria) this;
}
public Criteria andResourceIdNotLike(String value) {
addCriterion("resource_id not like", value, "resourceId");
public Criteria andReportStepIdNotLike(String value) {
addCriterion("report_step_id not like", value, "reportStepId");
return (Criteria) this;
}
public Criteria andResourceIdIn(List<String> values) {
addCriterion("resource_id in", values, "resourceId");
public Criteria andReportStepIdIn(List<String> values) {
addCriterion("report_step_id in", values, "reportStepId");
return (Criteria) this;
}
public Criteria andResourceIdNotIn(List<String> values) {
addCriterion("resource_id not in", values, "resourceId");
public Criteria andReportStepIdNotIn(List<String> values) {
addCriterion("report_step_id not in", values, "reportStepId");
return (Criteria) this;
}
public Criteria andResourceIdBetween(String value1, String value2) {
addCriterion("resource_id between", value1, value2, "resourceId");
public Criteria andReportStepIdBetween(String value1, String value2) {
addCriterion("report_step_id between", value1, value2, "reportStepId");
return (Criteria) this;
}
public Criteria andResourceIdNotBetween(String value1, String value2) {
addCriterion("resource_id not between", value1, value2, "resourceId");
return (Criteria) this;
}
public Criteria andStartTimeIsNull() {
addCriterion("start_time is null");
return (Criteria) this;
}
public Criteria andStartTimeIsNotNull() {
addCriterion("start_time is not null");
return (Criteria) this;
}
public Criteria andStartTimeEqualTo(Long value) {
addCriterion("start_time =", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotEqualTo(Long value) {
addCriterion("start_time <>", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThan(Long value) {
addCriterion("start_time >", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThanOrEqualTo(Long value) {
addCriterion("start_time >=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThan(Long value) {
addCriterion("start_time <", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThanOrEqualTo(Long value) {
addCriterion("start_time <=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeIn(List<Long> values) {
addCriterion("start_time in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotIn(List<Long> values) {
addCriterion("start_time not in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeBetween(Long value1, Long value2) {
addCriterion("start_time between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotBetween(Long value1, Long value2) {
addCriterion("start_time not between", value1, value2, "startTime");
public Criteria andReportStepIdNotBetween(String value1, String value2) {
addCriterion("report_step_id not between", value1, value2, "reportStepId");
return (Criteria) this;
}
@ -444,186 +384,6 @@ public class ApiScenarioReportDetailExample {
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<Long> values) {
addCriterion("request_time in", values, "requestTime");
return (Criteria) this;
}
public Criteria andRequestTimeNotIn(List<Long> 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 andAssertionsTotalIsNull() {
addCriterion("assertions_total is null");
return (Criteria) this;
}
public Criteria andAssertionsTotalIsNotNull() {
addCriterion("assertions_total is not null");
return (Criteria) this;
}
public Criteria andAssertionsTotalEqualTo(Long value) {
addCriterion("assertions_total =", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalNotEqualTo(Long value) {
addCriterion("assertions_total <>", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalGreaterThan(Long value) {
addCriterion("assertions_total >", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalGreaterThanOrEqualTo(Long value) {
addCriterion("assertions_total >=", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalLessThan(Long value) {
addCriterion("assertions_total <", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalLessThanOrEqualTo(Long value) {
addCriterion("assertions_total <=", value, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalIn(List<Long> values) {
addCriterion("assertions_total in", values, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalNotIn(List<Long> values) {
addCriterion("assertions_total not in", values, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalBetween(Long value1, Long value2) {
addCriterion("assertions_total between", value1, value2, "assertionsTotal");
return (Criteria) this;
}
public Criteria andAssertionsTotalNotBetween(Long value1, Long value2) {
addCriterion("assertions_total not between", value1, value2, "assertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalIsNull() {
addCriterion("pass_assertions_total is null");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalIsNotNull() {
addCriterion("pass_assertions_total is not null");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalEqualTo(Long value) {
addCriterion("pass_assertions_total =", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalNotEqualTo(Long value) {
addCriterion("pass_assertions_total <>", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalGreaterThan(Long value) {
addCriterion("pass_assertions_total >", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalGreaterThanOrEqualTo(Long value) {
addCriterion("pass_assertions_total >=", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalLessThan(Long value) {
addCriterion("pass_assertions_total <", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalLessThanOrEqualTo(Long value) {
addCriterion("pass_assertions_total <=", value, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalIn(List<Long> values) {
addCriterion("pass_assertions_total in", values, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalNotIn(List<Long> values) {
addCriterion("pass_assertions_total not in", values, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalBetween(Long value1, Long value2) {
addCriterion("pass_assertions_total between", value1, value2, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andPassAssertionsTotalNotBetween(Long value1, Long value2) {
addCriterion("pass_assertions_total not between", value1, value2, "passAssertionsTotal");
return (Criteria) this;
}
public Criteria andFakeCodeIsNull() {
addCriterion("fake_code is null");
return (Criteria) this;
@ -764,133 +524,63 @@ public class ApiScenarioReportDetailExample {
return (Criteria) this;
}
public Criteria andProjectIdIsNull() {
addCriterion("project_id is null");
public Criteria andRequestTimeIsNull() {
addCriterion("request_time is null");
return (Criteria) this;
}
public Criteria andProjectIdIsNotNull() {
addCriterion("project_id is not null");
public Criteria andRequestTimeIsNotNull() {
addCriterion("request_time is not null");
return (Criteria) this;
}
public Criteria andProjectIdEqualTo(String value) {
addCriterion("project_id =", value, "projectId");
public Criteria andRequestTimeEqualTo(Long value) {
addCriterion("request_time =", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdNotEqualTo(String value) {
addCriterion("project_id <>", value, "projectId");
public Criteria andRequestTimeNotEqualTo(Long value) {
addCriterion("request_time <>", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThan(String value) {
addCriterion("project_id >", value, "projectId");
public Criteria andRequestTimeGreaterThan(Long value) {
addCriterion("request_time >", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdGreaterThanOrEqualTo(String value) {
addCriterion("project_id >=", value, "projectId");
public Criteria andRequestTimeGreaterThanOrEqualTo(Long value) {
addCriterion("request_time >=", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdLessThan(String value) {
addCriterion("project_id <", value, "projectId");
public Criteria andRequestTimeLessThan(Long value) {
addCriterion("request_time <", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdLessThanOrEqualTo(String value) {
addCriterion("project_id <=", value, "projectId");
public Criteria andRequestTimeLessThanOrEqualTo(Long value) {
addCriterion("request_time <=", value, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdLike(String value) {
addCriterion("project_id like", value, "projectId");
public Criteria andRequestTimeIn(List<Long> values) {
addCriterion("request_time in", values, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdNotLike(String value) {
addCriterion("project_id not like", value, "projectId");
public Criteria andRequestTimeNotIn(List<Long> values) {
addCriterion("request_time not in", values, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdIn(List<String> values) {
addCriterion("project_id in", values, "projectId");
public Criteria andRequestTimeBetween(Long value1, Long value2) {
addCriterion("request_time between", value1, value2, "requestTime");
return (Criteria) this;
}
public Criteria andProjectIdNotIn(List<String> 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 andErrorTotalIsNull() {
addCriterion("error_total is null");
return (Criteria) this;
}
public Criteria andErrorTotalIsNotNull() {
addCriterion("error_total is not null");
return (Criteria) this;
}
public Criteria andErrorTotalEqualTo(Integer value) {
addCriterion("error_total =", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalNotEqualTo(Integer value) {
addCriterion("error_total <>", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalGreaterThan(Integer value) {
addCriterion("error_total >", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalGreaterThanOrEqualTo(Integer value) {
addCriterion("error_total >=", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalLessThan(Integer value) {
addCriterion("error_total <", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalLessThanOrEqualTo(Integer value) {
addCriterion("error_total <=", value, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalIn(List<Integer> values) {
addCriterion("error_total in", values, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalNotIn(List<Integer> values) {
addCriterion("error_total not in", values, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalBetween(Integer value1, Integer value2) {
addCriterion("error_total between", value1, value2, "errorTotal");
return (Criteria) this;
}
public Criteria andErrorTotalNotBetween(Integer value1, Integer value2) {
addCriterion("error_total not between", value1, value2, "errorTotal");
public Criteria andRequestTimeNotBetween(Long value1, Long value2) {
addCriterion("request_time not between", value1, value2, "requestTime");
return (Criteria) this;
}
@ -963,6 +653,136 @@ public class ApiScenarioReportDetailExample {
addCriterion("code not between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andResponseSizeIsNull() {
addCriterion("response_size is null");
return (Criteria) this;
}
public Criteria andResponseSizeIsNotNull() {
addCriterion("response_size is not null");
return (Criteria) this;
}
public Criteria andResponseSizeEqualTo(Long value) {
addCriterion("response_size =", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeNotEqualTo(Long value) {
addCriterion("response_size <>", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeGreaterThan(Long value) {
addCriterion("response_size >", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeGreaterThanOrEqualTo(Long value) {
addCriterion("response_size >=", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeLessThan(Long value) {
addCriterion("response_size <", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeLessThanOrEqualTo(Long value) {
addCriterion("response_size <=", value, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeIn(List<Long> values) {
addCriterion("response_size in", values, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeNotIn(List<Long> values) {
addCriterion("response_size not in", values, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeBetween(Long value1, Long value2) {
addCriterion("response_size between", value1, value2, "responseSize");
return (Criteria) this;
}
public Criteria andResponseSizeNotBetween(Long value1, Long value2) {
addCriterion("response_size not between", value1, value2, "responseSize");
return (Criteria) this;
}
public Criteria andScriptIdentifierIsNull() {
addCriterion("script_identifier is null");
return (Criteria) this;
}
public Criteria andScriptIdentifierIsNotNull() {
addCriterion("script_identifier is not null");
return (Criteria) this;
}
public Criteria andScriptIdentifierEqualTo(String value) {
addCriterion("script_identifier =", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotEqualTo(String value) {
addCriterion("script_identifier <>", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierGreaterThan(String value) {
addCriterion("script_identifier >", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierGreaterThanOrEqualTo(String value) {
addCriterion("script_identifier >=", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierLessThan(String value) {
addCriterion("script_identifier <", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierLessThanOrEqualTo(String value) {
addCriterion("script_identifier <=", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierLike(String value) {
addCriterion("script_identifier like", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotLike(String value) {
addCriterion("script_identifier not like", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierIn(List<String> values) {
addCriterion("script_identifier in", values, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotIn(List<String> values) {
addCriterion("script_identifier not in", values, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierBetween(String value1, String value2) {
addCriterion("script_identifier between", value1, value2, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotBetween(String value1, String value2) {
addCriterion("script_identifier not between", value1, value2, "scriptIdentifier");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

View File

@ -244,63 +244,73 @@ public class ApiScenarioReportExample {
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
public Criteria andScenarioIdIsNull() {
addCriterion("scenario_id is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
public Criteria andScenarioIdIsNotNull() {
addCriterion("scenario_id is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Long value) {
addCriterion("create_time =", value, "createTime");
public Criteria andScenarioIdEqualTo(String value) {
addCriterion("scenario_id =", value, "scenarioId");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Long value) {
addCriterion("create_time <>", value, "createTime");
public Criteria andScenarioIdNotEqualTo(String value) {
addCriterion("scenario_id <>", value, "scenarioId");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Long value) {
addCriterion("create_time >", value, "createTime");
public Criteria andScenarioIdGreaterThan(String value) {
addCriterion("scenario_id >", value, "scenarioId");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("create_time >=", value, "createTime");
public Criteria andScenarioIdGreaterThanOrEqualTo(String value) {
addCriterion("scenario_id >=", value, "scenarioId");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Long value) {
addCriterion("create_time <", value, "createTime");
public Criteria andScenarioIdLessThan(String value) {
addCriterion("scenario_id <", value, "scenarioId");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
addCriterion("create_time <=", value, "createTime");
public Criteria andScenarioIdLessThanOrEqualTo(String value) {
addCriterion("scenario_id <=", value, "scenarioId");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Long> values) {
addCriterion("create_time in", values, "createTime");
public Criteria andScenarioIdLike(String value) {
addCriterion("scenario_id like", value, "scenarioId");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Long> values) {
addCriterion("create_time not in", values, "createTime");
public Criteria andScenarioIdNotLike(String value) {
addCriterion("scenario_id not like", value, "scenarioId");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Long value1, Long value2) {
addCriterion("create_time between", value1, value2, "createTime");
public Criteria andScenarioIdIn(List<String> values) {
addCriterion("scenario_id in", values, "scenarioId");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
addCriterion("create_time not between", value1, value2, "createTime");
public Criteria andScenarioIdNotIn(List<String> 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;
}
@ -694,63 +704,183 @@ public class ApiScenarioReportExample {
return (Criteria) this;
}
public Criteria andPassRateIsNull() {
addCriterion("pass_rate is null");
public Criteria andStartTimeIsNull() {
addCriterion("start_time is null");
return (Criteria) this;
}
public Criteria andPassRateIsNotNull() {
addCriterion("pass_rate is not null");
public Criteria andStartTimeIsNotNull() {
addCriterion("start_time is not null");
return (Criteria) this;
}
public Criteria andPassRateEqualTo(Long value) {
addCriterion("pass_rate =", value, "passRate");
public Criteria andStartTimeEqualTo(Long value) {
addCriterion("start_time =", value, "startTime");
return (Criteria) this;
}
public Criteria andPassRateNotEqualTo(Long value) {
addCriterion("pass_rate <>", value, "passRate");
public Criteria andStartTimeNotEqualTo(Long value) {
addCriterion("start_time <>", value, "startTime");
return (Criteria) this;
}
public Criteria andPassRateGreaterThan(Long value) {
addCriterion("pass_rate >", value, "passRate");
public Criteria andStartTimeGreaterThan(Long value) {
addCriterion("start_time >", value, "startTime");
return (Criteria) this;
}
public Criteria andPassRateGreaterThanOrEqualTo(Long value) {
addCriterion("pass_rate >=", value, "passRate");
public Criteria andStartTimeGreaterThanOrEqualTo(Long value) {
addCriterion("start_time >=", value, "startTime");
return (Criteria) this;
}
public Criteria andPassRateLessThan(Long value) {
addCriterion("pass_rate <", value, "passRate");
public Criteria andStartTimeLessThan(Long value) {
addCriterion("start_time <", value, "startTime");
return (Criteria) this;
}
public Criteria andPassRateLessThanOrEqualTo(Long value) {
addCriterion("pass_rate <=", value, "passRate");
public Criteria andStartTimeLessThanOrEqualTo(Long value) {
addCriterion("start_time <=", value, "startTime");
return (Criteria) this;
}
public Criteria andPassRateIn(List<Long> values) {
addCriterion("pass_rate in", values, "passRate");
public Criteria andStartTimeIn(List<Long> values) {
addCriterion("start_time in", values, "startTime");
return (Criteria) this;
}
public Criteria andPassRateNotIn(List<Long> values) {
addCriterion("pass_rate not in", values, "passRate");
public Criteria andStartTimeNotIn(List<Long> values) {
addCriterion("start_time not in", values, "startTime");
return (Criteria) this;
}
public Criteria andPassRateBetween(Long value1, Long value2) {
addCriterion("pass_rate between", value1, value2, "passRate");
public Criteria andStartTimeBetween(Long value1, Long value2) {
addCriterion("start_time between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andPassRateNotBetween(Long value1, Long value2) {
addCriterion("pass_rate not between", value1, value2, "passRate");
public Criteria andStartTimeNotBetween(Long value1, Long value2) {
addCriterion("start_time not between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andEndTimeIsNull() {
addCriterion("end_time is null");
return (Criteria) this;
}
public Criteria andEndTimeIsNotNull() {
addCriterion("end_time is not null");
return (Criteria) this;
}
public Criteria andEndTimeEqualTo(Long value) {
addCriterion("end_time =", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotEqualTo(Long value) {
addCriterion("end_time <>", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThan(Long value) {
addCriterion("end_time >", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeGreaterThanOrEqualTo(Long value) {
addCriterion("end_time >=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThan(Long value) {
addCriterion("end_time <", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeLessThanOrEqualTo(Long value) {
addCriterion("end_time <=", value, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeIn(List<Long> values) {
addCriterion("end_time in", values, "endTime");
return (Criteria) this;
}
public Criteria andEndTimeNotIn(List<Long> 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 andRequestDurationIsNull() {
addCriterion("request_duration is null");
return (Criteria) this;
}
public Criteria andRequestDurationIsNotNull() {
addCriterion("request_duration is not null");
return (Criteria) this;
}
public Criteria andRequestDurationEqualTo(Long value) {
addCriterion("request_duration =", value, "requestDuration");
return (Criteria) this;
}
public Criteria andRequestDurationNotEqualTo(Long value) {
addCriterion("request_duration <>", value, "requestDuration");
return (Criteria) this;
}
public Criteria andRequestDurationGreaterThan(Long value) {
addCriterion("request_duration >", value, "requestDuration");
return (Criteria) this;
}
public Criteria andRequestDurationGreaterThanOrEqualTo(Long value) {
addCriterion("request_duration >=", value, "requestDuration");
return (Criteria) this;
}
public Criteria andRequestDurationLessThan(Long value) {
addCriterion("request_duration <", value, "requestDuration");
return (Criteria) this;
}
public Criteria andRequestDurationLessThanOrEqualTo(Long value) {
addCriterion("request_duration <=", value, "requestDuration");
return (Criteria) this;
}
public Criteria andRequestDurationIn(List<Long> values) {
addCriterion("request_duration in", values, "requestDuration");
return (Criteria) this;
}
public Criteria andRequestDurationNotIn(List<Long> values) {
addCriterion("request_duration not in", values, "requestDuration");
return (Criteria) this;
}
public Criteria andRequestDurationBetween(Long value1, Long value2) {
addCriterion("request_duration between", value1, value2, "requestDuration");
return (Criteria) this;
}
public Criteria andRequestDurationNotBetween(Long value1, Long value2) {
addCriterion("request_duration not between", value1, value2, "requestDuration");
return (Criteria) this;
}
@ -1234,76 +1364,6 @@ public class ApiScenarioReportExample {
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<String> values) {
addCriterion("scenario_id in", values, "scenarioId");
return (Criteria) this;
}
public Criteria andScenarioIdNotIn(List<String> 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 andEnvironmentIdIsNull() {
addCriterion("environment_id is null");
return (Criteria) this;
@ -1373,6 +1433,616 @@ public class ApiScenarioReportExample {
addCriterion("environment_id not between", value1, value2, "environmentId");
return (Criteria) this;
}
public Criteria andErrorCountIsNull() {
addCriterion("error_count is null");
return (Criteria) this;
}
public Criteria andErrorCountIsNotNull() {
addCriterion("error_count is not null");
return (Criteria) this;
}
public Criteria andErrorCountEqualTo(Long value) {
addCriterion("error_count =", value, "errorCount");
return (Criteria) this;
}
public Criteria andErrorCountNotEqualTo(Long value) {
addCriterion("error_count <>", value, "errorCount");
return (Criteria) this;
}
public Criteria andErrorCountGreaterThan(Long value) {
addCriterion("error_count >", value, "errorCount");
return (Criteria) this;
}
public Criteria andErrorCountGreaterThanOrEqualTo(Long value) {
addCriterion("error_count >=", value, "errorCount");
return (Criteria) this;
}
public Criteria andErrorCountLessThan(Long value) {
addCriterion("error_count <", value, "errorCount");
return (Criteria) this;
}
public Criteria andErrorCountLessThanOrEqualTo(Long value) {
addCriterion("error_count <=", value, "errorCount");
return (Criteria) this;
}
public Criteria andErrorCountIn(List<Long> values) {
addCriterion("error_count in", values, "errorCount");
return (Criteria) this;
}
public Criteria andErrorCountNotIn(List<Long> values) {
addCriterion("error_count not in", values, "errorCount");
return (Criteria) this;
}
public Criteria andErrorCountBetween(Long value1, Long value2) {
addCriterion("error_count between", value1, value2, "errorCount");
return (Criteria) this;
}
public Criteria andErrorCountNotBetween(Long value1, Long value2) {
addCriterion("error_count not between", value1, value2, "errorCount");
return (Criteria) this;
}
public Criteria andFakeErrorCountIsNull() {
addCriterion("fake_error_count is null");
return (Criteria) this;
}
public Criteria andFakeErrorCountIsNotNull() {
addCriterion("fake_error_count is not null");
return (Criteria) this;
}
public Criteria andFakeErrorCountEqualTo(Long value) {
addCriterion("fake_error_count =", value, "fakeErrorCount");
return (Criteria) this;
}
public Criteria andFakeErrorCountNotEqualTo(Long value) {
addCriterion("fake_error_count <>", value, "fakeErrorCount");
return (Criteria) this;
}
public Criteria andFakeErrorCountGreaterThan(Long value) {
addCriterion("fake_error_count >", value, "fakeErrorCount");
return (Criteria) this;
}
public Criteria andFakeErrorCountGreaterThanOrEqualTo(Long value) {
addCriterion("fake_error_count >=", value, "fakeErrorCount");
return (Criteria) this;
}
public Criteria andFakeErrorCountLessThan(Long value) {
addCriterion("fake_error_count <", value, "fakeErrorCount");
return (Criteria) this;
}
public Criteria andFakeErrorCountLessThanOrEqualTo(Long value) {
addCriterion("fake_error_count <=", value, "fakeErrorCount");
return (Criteria) this;
}
public Criteria andFakeErrorCountIn(List<Long> values) {
addCriterion("fake_error_count in", values, "fakeErrorCount");
return (Criteria) this;
}
public Criteria andFakeErrorCountNotIn(List<Long> values) {
addCriterion("fake_error_count not in", values, "fakeErrorCount");
return (Criteria) this;
}
public Criteria andFakeErrorCountBetween(Long value1, Long value2) {
addCriterion("fake_error_count between", value1, value2, "fakeErrorCount");
return (Criteria) this;
}
public Criteria andFakeErrorCountNotBetween(Long value1, Long value2) {
addCriterion("fake_error_count not between", value1, value2, "fakeErrorCount");
return (Criteria) this;
}
public Criteria andPendingCountIsNull() {
addCriterion("pending_count is null");
return (Criteria) this;
}
public Criteria andPendingCountIsNotNull() {
addCriterion("pending_count is not null");
return (Criteria) this;
}
public Criteria andPendingCountEqualTo(Long value) {
addCriterion("pending_count =", value, "pendingCount");
return (Criteria) this;
}
public Criteria andPendingCountNotEqualTo(Long value) {
addCriterion("pending_count <>", value, "pendingCount");
return (Criteria) this;
}
public Criteria andPendingCountGreaterThan(Long value) {
addCriterion("pending_count >", value, "pendingCount");
return (Criteria) this;
}
public Criteria andPendingCountGreaterThanOrEqualTo(Long value) {
addCriterion("pending_count >=", value, "pendingCount");
return (Criteria) this;
}
public Criteria andPendingCountLessThan(Long value) {
addCriterion("pending_count <", value, "pendingCount");
return (Criteria) this;
}
public Criteria andPendingCountLessThanOrEqualTo(Long value) {
addCriterion("pending_count <=", value, "pendingCount");
return (Criteria) this;
}
public Criteria andPendingCountIn(List<Long> values) {
addCriterion("pending_count in", values, "pendingCount");
return (Criteria) this;
}
public Criteria andPendingCountNotIn(List<Long> values) {
addCriterion("pending_count not in", values, "pendingCount");
return (Criteria) this;
}
public Criteria andPendingCountBetween(Long value1, Long value2) {
addCriterion("pending_count between", value1, value2, "pendingCount");
return (Criteria) this;
}
public Criteria andPendingCountNotBetween(Long value1, Long value2) {
addCriterion("pending_count not between", value1, value2, "pendingCount");
return (Criteria) this;
}
public Criteria andSuccessCountIsNull() {
addCriterion("success_count is null");
return (Criteria) this;
}
public Criteria andSuccessCountIsNotNull() {
addCriterion("success_count is not null");
return (Criteria) this;
}
public Criteria andSuccessCountEqualTo(Long value) {
addCriterion("success_count =", value, "successCount");
return (Criteria) this;
}
public Criteria andSuccessCountNotEqualTo(Long value) {
addCriterion("success_count <>", value, "successCount");
return (Criteria) this;
}
public Criteria andSuccessCountGreaterThan(Long value) {
addCriterion("success_count >", value, "successCount");
return (Criteria) this;
}
public Criteria andSuccessCountGreaterThanOrEqualTo(Long value) {
addCriterion("success_count >=", value, "successCount");
return (Criteria) this;
}
public Criteria andSuccessCountLessThan(Long value) {
addCriterion("success_count <", value, "successCount");
return (Criteria) this;
}
public Criteria andSuccessCountLessThanOrEqualTo(Long value) {
addCriterion("success_count <=", value, "successCount");
return (Criteria) this;
}
public Criteria andSuccessCountIn(List<Long> values) {
addCriterion("success_count in", values, "successCount");
return (Criteria) this;
}
public Criteria andSuccessCountNotIn(List<Long> values) {
addCriterion("success_count not in", values, "successCount");
return (Criteria) this;
}
public Criteria andSuccessCountBetween(Long value1, Long value2) {
addCriterion("success_count between", value1, value2, "successCount");
return (Criteria) this;
}
public Criteria andSuccessCountNotBetween(Long value1, Long value2) {
addCriterion("success_count not between", value1, value2, "successCount");
return (Criteria) this;
}
public Criteria andAssertionCountIsNull() {
addCriterion("assertion_count is null");
return (Criteria) this;
}
public Criteria andAssertionCountIsNotNull() {
addCriterion("assertion_count is not null");
return (Criteria) this;
}
public Criteria andAssertionCountEqualTo(Long value) {
addCriterion("assertion_count =", value, "assertionCount");
return (Criteria) this;
}
public Criteria andAssertionCountNotEqualTo(Long value) {
addCriterion("assertion_count <>", value, "assertionCount");
return (Criteria) this;
}
public Criteria andAssertionCountGreaterThan(Long value) {
addCriterion("assertion_count >", value, "assertionCount");
return (Criteria) this;
}
public Criteria andAssertionCountGreaterThanOrEqualTo(Long value) {
addCriterion("assertion_count >=", value, "assertionCount");
return (Criteria) this;
}
public Criteria andAssertionCountLessThan(Long value) {
addCriterion("assertion_count <", value, "assertionCount");
return (Criteria) this;
}
public Criteria andAssertionCountLessThanOrEqualTo(Long value) {
addCriterion("assertion_count <=", value, "assertionCount");
return (Criteria) this;
}
public Criteria andAssertionCountIn(List<Long> values) {
addCriterion("assertion_count in", values, "assertionCount");
return (Criteria) this;
}
public Criteria andAssertionCountNotIn(List<Long> values) {
addCriterion("assertion_count not in", values, "assertionCount");
return (Criteria) this;
}
public Criteria andAssertionCountBetween(Long value1, Long value2) {
addCriterion("assertion_count between", value1, value2, "assertionCount");
return (Criteria) this;
}
public Criteria andAssertionCountNotBetween(Long value1, Long value2) {
addCriterion("assertion_count not between", value1, value2, "assertionCount");
return (Criteria) this;
}
public Criteria andPassAssertionsCountIsNull() {
addCriterion("pass_assertions_count is null");
return (Criteria) this;
}
public Criteria andPassAssertionsCountIsNotNull() {
addCriterion("pass_assertions_count is not null");
return (Criteria) this;
}
public Criteria andPassAssertionsCountEqualTo(Long value) {
addCriterion("pass_assertions_count =", value, "passAssertionsCount");
return (Criteria) this;
}
public Criteria andPassAssertionsCountNotEqualTo(Long value) {
addCriterion("pass_assertions_count <>", value, "passAssertionsCount");
return (Criteria) this;
}
public Criteria andPassAssertionsCountGreaterThan(Long value) {
addCriterion("pass_assertions_count >", value, "passAssertionsCount");
return (Criteria) this;
}
public Criteria andPassAssertionsCountGreaterThanOrEqualTo(Long value) {
addCriterion("pass_assertions_count >=", value, "passAssertionsCount");
return (Criteria) this;
}
public Criteria andPassAssertionsCountLessThan(Long value) {
addCriterion("pass_assertions_count <", value, "passAssertionsCount");
return (Criteria) this;
}
public Criteria andPassAssertionsCountLessThanOrEqualTo(Long value) {
addCriterion("pass_assertions_count <=", value, "passAssertionsCount");
return (Criteria) this;
}
public Criteria andPassAssertionsCountIn(List<Long> values) {
addCriterion("pass_assertions_count in", values, "passAssertionsCount");
return (Criteria) this;
}
public Criteria andPassAssertionsCountNotIn(List<Long> values) {
addCriterion("pass_assertions_count not in", values, "passAssertionsCount");
return (Criteria) this;
}
public Criteria andPassAssertionsCountBetween(Long value1, Long value2) {
addCriterion("pass_assertions_count between", value1, value2, "passAssertionsCount");
return (Criteria) this;
}
public Criteria andPassAssertionsCountNotBetween(Long value1, Long value2) {
addCriterion("pass_assertions_count not between", value1, value2, "passAssertionsCount");
return (Criteria) this;
}
public Criteria andRequestExecutionRateIsNull() {
addCriterion("request_execution_rate is null");
return (Criteria) this;
}
public Criteria andRequestExecutionRateIsNotNull() {
addCriterion("request_execution_rate is not null");
return (Criteria) this;
}
public Criteria andRequestExecutionRateEqualTo(Long value) {
addCriterion("request_execution_rate =", value, "requestExecutionRate");
return (Criteria) this;
}
public Criteria andRequestExecutionRateNotEqualTo(Long value) {
addCriterion("request_execution_rate <>", value, "requestExecutionRate");
return (Criteria) this;
}
public Criteria andRequestExecutionRateGreaterThan(Long value) {
addCriterion("request_execution_rate >", value, "requestExecutionRate");
return (Criteria) this;
}
public Criteria andRequestExecutionRateGreaterThanOrEqualTo(Long value) {
addCriterion("request_execution_rate >=", value, "requestExecutionRate");
return (Criteria) this;
}
public Criteria andRequestExecutionRateLessThan(Long value) {
addCriterion("request_execution_rate <", value, "requestExecutionRate");
return (Criteria) this;
}
public Criteria andRequestExecutionRateLessThanOrEqualTo(Long value) {
addCriterion("request_execution_rate <=", value, "requestExecutionRate");
return (Criteria) this;
}
public Criteria andRequestExecutionRateIn(List<Long> values) {
addCriterion("request_execution_rate in", values, "requestExecutionRate");
return (Criteria) this;
}
public Criteria andRequestExecutionRateNotIn(List<Long> values) {
addCriterion("request_execution_rate not in", values, "requestExecutionRate");
return (Criteria) this;
}
public Criteria andRequestExecutionRateBetween(Long value1, Long value2) {
addCriterion("request_execution_rate between", value1, value2, "requestExecutionRate");
return (Criteria) this;
}
public Criteria andRequestExecutionRateNotBetween(Long value1, Long value2) {
addCriterion("request_execution_rate not between", value1, value2, "requestExecutionRate");
return (Criteria) this;
}
public Criteria andRequestApprovalRateIsNull() {
addCriterion("request_approval_rate is null");
return (Criteria) this;
}
public Criteria andRequestApprovalRateIsNotNull() {
addCriterion("request_approval_rate is not null");
return (Criteria) this;
}
public Criteria andRequestApprovalRateEqualTo(Long value) {
addCriterion("request_approval_rate =", value, "requestApprovalRate");
return (Criteria) this;
}
public Criteria andRequestApprovalRateNotEqualTo(Long value) {
addCriterion("request_approval_rate <>", value, "requestApprovalRate");
return (Criteria) this;
}
public Criteria andRequestApprovalRateGreaterThan(Long value) {
addCriterion("request_approval_rate >", value, "requestApprovalRate");
return (Criteria) this;
}
public Criteria andRequestApprovalRateGreaterThanOrEqualTo(Long value) {
addCriterion("request_approval_rate >=", value, "requestApprovalRate");
return (Criteria) this;
}
public Criteria andRequestApprovalRateLessThan(Long value) {
addCriterion("request_approval_rate <", value, "requestApprovalRate");
return (Criteria) this;
}
public Criteria andRequestApprovalRateLessThanOrEqualTo(Long value) {
addCriterion("request_approval_rate <=", value, "requestApprovalRate");
return (Criteria) this;
}
public Criteria andRequestApprovalRateIn(List<Long> values) {
addCriterion("request_approval_rate in", values, "requestApprovalRate");
return (Criteria) this;
}
public Criteria andRequestApprovalRateNotIn(List<Long> values) {
addCriterion("request_approval_rate not in", values, "requestApprovalRate");
return (Criteria) this;
}
public Criteria andRequestApprovalRateBetween(Long value1, Long value2) {
addCriterion("request_approval_rate between", value1, value2, "requestApprovalRate");
return (Criteria) this;
}
public Criteria andRequestApprovalRateNotBetween(Long value1, Long value2) {
addCriterion("request_approval_rate not between", value1, value2, "requestApprovalRate");
return (Criteria) this;
}
public Criteria andAssertionPassRateIsNull() {
addCriterion("assertion_pass_rate is null");
return (Criteria) this;
}
public Criteria andAssertionPassRateIsNotNull() {
addCriterion("assertion_pass_rate is not null");
return (Criteria) this;
}
public Criteria andAssertionPassRateEqualTo(Long value) {
addCriterion("assertion_pass_rate =", value, "assertionPassRate");
return (Criteria) this;
}
public Criteria andAssertionPassRateNotEqualTo(Long value) {
addCriterion("assertion_pass_rate <>", value, "assertionPassRate");
return (Criteria) this;
}
public Criteria andAssertionPassRateGreaterThan(Long value) {
addCriterion("assertion_pass_rate >", value, "assertionPassRate");
return (Criteria) this;
}
public Criteria andAssertionPassRateGreaterThanOrEqualTo(Long value) {
addCriterion("assertion_pass_rate >=", value, "assertionPassRate");
return (Criteria) this;
}
public Criteria andAssertionPassRateLessThan(Long value) {
addCriterion("assertion_pass_rate <", value, "assertionPassRate");
return (Criteria) this;
}
public Criteria andAssertionPassRateLessThanOrEqualTo(Long value) {
addCriterion("assertion_pass_rate <=", value, "assertionPassRate");
return (Criteria) this;
}
public Criteria andAssertionPassRateIn(List<Long> values) {
addCriterion("assertion_pass_rate in", values, "assertionPassRate");
return (Criteria) this;
}
public Criteria andAssertionPassRateNotIn(List<Long> values) {
addCriterion("assertion_pass_rate not in", values, "assertionPassRate");
return (Criteria) this;
}
public Criteria andAssertionPassRateBetween(Long value1, Long value2) {
addCriterion("assertion_pass_rate between", value1, value2, "assertionPassRate");
return (Criteria) this;
}
public Criteria andAssertionPassRateNotBetween(Long value1, Long value2) {
addCriterion("assertion_pass_rate not between", value1, value2, "assertionPassRate");
return (Criteria) this;
}
public Criteria andScriptIdentifierIsNull() {
addCriterion("script_identifier is null");
return (Criteria) this;
}
public Criteria andScriptIdentifierIsNotNull() {
addCriterion("script_identifier is not null");
return (Criteria) this;
}
public Criteria andScriptIdentifierEqualTo(String value) {
addCriterion("script_identifier =", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotEqualTo(String value) {
addCriterion("script_identifier <>", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierGreaterThan(String value) {
addCriterion("script_identifier >", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierGreaterThanOrEqualTo(String value) {
addCriterion("script_identifier >=", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierLessThan(String value) {
addCriterion("script_identifier <", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierLessThanOrEqualTo(String value) {
addCriterion("script_identifier <=", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierLike(String value) {
addCriterion("script_identifier like", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotLike(String value) {
addCriterion("script_identifier not like", value, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierIn(List<String> values) {
addCriterion("script_identifier in", values, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotIn(List<String> values) {
addCriterion("script_identifier not in", values, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierBetween(String value1, String value2) {
addCriterion("script_identifier between", value1, value2, "scriptIdentifier");
return (Criteria) this;
}
public Criteria andScriptIdentifierNotBetween(String value1, String value2) {
addCriterion("script_identifier not between", value1, value2, "scriptIdentifier");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

View File

@ -1,17 +1,13 @@
package io.metersphere.api.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import jakarta.validation.constraints.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import lombok.Data;
@Data
public class ApiTestCase implements Serializable {
@ -34,7 +30,7 @@ public class ApiTestCase implements Serializable {
private Long num;
@Schema(description = "标签")
private List<String> tags;
private java.util.List<String> tags;
@Schema(description = "用例状态", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{api_test_case.status.not_blank}", groups = {Created.class})
@ -158,7 +154,7 @@ public class ApiTestCase implements Serializable {
return this.getEscapedColumnName() + " ASC";
}
public static Column[] excludes(Column... excludes) {
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));

View File

@ -13,6 +13,7 @@
<result column="create_user" jdbcType="VARCHAR" property="createUser" />
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
<result column="update_user" jdbcType="VARCHAR" property="updateUser" />
<result column="pos" jdbcType="BIGINT" property="pos" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -74,7 +75,7 @@
</sql>
<sql id="Base_Column_List">
id, `name`, protocol, `method`, `path`, project_id, module_id, create_time, create_user,
update_time, update_user
update_time, update_user, pos
</sql>
<select id="selectByExample" parameterType="io.metersphere.api.domain.ApiDebugExample" resultMap="BaseResultMap">
select
@ -110,11 +111,13 @@
insert into api_debug (id, `name`, protocol,
`method`, `path`, project_id,
module_id, create_time, create_user,
update_time, update_user)
update_time, update_user, pos
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{protocol,jdbcType=VARCHAR},
#{method,jdbcType=VARCHAR}, #{path,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{moduleId,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{createUser,jdbcType=VARCHAR},
#{updateTime,jdbcType=BIGINT}, #{updateUser,jdbcType=VARCHAR})
#{updateTime,jdbcType=BIGINT}, #{updateUser,jdbcType=VARCHAR}, #{pos,jdbcType=BIGINT}
)
</insert>
<insert id="insertSelective" parameterType="io.metersphere.api.domain.ApiDebug">
insert into api_debug
@ -152,6 +155,9 @@
<if test="updateUser != null">
update_user,
</if>
<if test="pos != null">
pos,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -187,6 +193,9 @@
<if test="updateUser != null">
#{updateUser,jdbcType=VARCHAR},
</if>
<if test="pos != null">
#{pos,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.api.domain.ApiDebugExample" resultType="java.lang.Long">
@ -231,6 +240,9 @@
<if test="record.updateUser != null">
update_user = #{record.updateUser,jdbcType=VARCHAR},
</if>
<if test="record.pos != null">
pos = #{record.pos,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -248,7 +260,8 @@
create_time = #{record.createTime,jdbcType=BIGINT},
create_user = #{record.createUser,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=BIGINT},
update_user = #{record.updateUser,jdbcType=VARCHAR}
update_user = #{record.updateUser,jdbcType=VARCHAR},
pos = #{record.pos,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -286,6 +299,9 @@
<if test="updateUser != null">
update_user = #{updateUser,jdbcType=VARCHAR},
</if>
<if test="pos != null">
pos = #{pos,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
@ -300,19 +316,21 @@
create_time = #{createTime,jdbcType=BIGINT},
create_user = #{createUser,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=BIGINT},
update_user = #{updateUser,jdbcType=VARCHAR}
update_user = #{updateUser,jdbcType=VARCHAR},
pos = #{pos,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
<insert id="batchInsert" parameterType="map">
insert into api_debug
(id, `name`, protocol, `method`, `path`, project_id, module_id, create_time, create_user,
update_time, update_user)
update_time, update_user, pos)
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, #{item.protocol,jdbcType=VARCHAR},
#{item.method,jdbcType=VARCHAR}, #{item.path,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR},
#{item.moduleId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=BIGINT}, #{item.createUser,jdbcType=VARCHAR},
#{item.updateTime,jdbcType=BIGINT}, #{item.updateUser,jdbcType=VARCHAR})
#{item.updateTime,jdbcType=BIGINT}, #{item.updateUser,jdbcType=VARCHAR}, #{item.pos,jdbcType=BIGINT}
)
</foreach>
</insert>
<insert id="batchInsertSelective" parameterType="map">
@ -358,6 +376,9 @@
<if test="'update_user'.toString() == column.value">
#{item.updateUser,jdbcType=VARCHAR}
</if>
<if test="'pos'.toString() == column.value">
#{item.pos,jdbcType=BIGINT}
</if>
</foreach>
)
</foreach>

View File

@ -5,16 +5,13 @@
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="report_id" jdbcType="VARCHAR" property="reportId" />
<result column="resource_id" jdbcType="VARCHAR" property="resourceId" />
<result column="start_time" jdbcType="BIGINT" property="startTime" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="request_time" jdbcType="BIGINT" property="requestTime" />
<result column="assertions_total" jdbcType="BIGINT" property="assertionsTotal" />
<result column="pass_assertions_total" jdbcType="BIGINT" property="passAssertionsTotal" />
<result column="fake_code" jdbcType="VARCHAR" property="fakeCode" />
<result column="request_name" jdbcType="VARCHAR" property="requestName" />
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
<result column="error_total" jdbcType="INTEGER" property="errorTotal" />
<result column="request_time" jdbcType="BIGINT" property="requestTime" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="response_size" jdbcType="BIGINT" property="responseSize" />
<result column="script_identifier" jdbcType="VARCHAR" property="scriptIdentifier" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.api.domain.ApiReportDetail">
<result column="content" jdbcType="LONGVARBINARY" property="content" />
@ -78,8 +75,8 @@
</where>
</sql>
<sql id="Base_Column_List">
id, report_id, resource_id, start_time, `status`, request_time, assertions_total,
pass_assertions_total, fake_code, request_name, project_id, error_total, code
id, report_id, resource_id, `status`, fake_code, request_name, request_time, code,
response_size, script_identifier
</sql>
<sql id="Blob_Column_List">
content
@ -134,15 +131,13 @@
</delete>
<insert id="insert" parameterType="io.metersphere.api.domain.ApiReportDetail">
insert into api_report_detail (id, report_id, resource_id,
start_time, `status`, request_time,
assertions_total, pass_assertions_total, fake_code,
request_name, project_id, error_total,
code, content)
`status`, fake_code, request_name,
request_time, code, response_size,
script_identifier, content)
values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR},
#{startTime,jdbcType=BIGINT}, #{status,jdbcType=VARCHAR}, #{requestTime,jdbcType=BIGINT},
#{assertionsTotal,jdbcType=BIGINT}, #{passAssertionsTotal,jdbcType=BIGINT}, #{fakeCode,jdbcType=VARCHAR},
#{requestName,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{errorTotal,jdbcType=INTEGER},
#{code,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARBINARY})
#{status,jdbcType=VARCHAR}, #{fakeCode,jdbcType=VARCHAR}, #{requestName,jdbcType=VARCHAR},
#{requestTime,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{responseSize,jdbcType=BIGINT},
#{scriptIdentifier,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARBINARY})
</insert>
<insert id="insertSelective" parameterType="io.metersphere.api.domain.ApiReportDetail">
insert into api_report_detail
@ -156,36 +151,27 @@
<if test="resourceId != null">
resource_id,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="status != null">
`status`,
</if>
<if test="requestTime != null">
request_time,
</if>
<if test="assertionsTotal != null">
assertions_total,
</if>
<if test="passAssertionsTotal != null">
pass_assertions_total,
</if>
<if test="fakeCode != null">
fake_code,
</if>
<if test="requestName != null">
request_name,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="errorTotal != null">
error_total,
<if test="requestTime != null">
request_time,
</if>
<if test="code != null">
code,
</if>
<if test="responseSize != null">
response_size,
</if>
<if test="scriptIdentifier != null">
script_identifier,
</if>
<if test="content != null">
content,
</if>
@ -200,36 +186,27 @@
<if test="resourceId != null">
#{resourceId,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
#{startTime,jdbcType=BIGINT},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="requestTime != null">
#{requestTime,jdbcType=BIGINT},
</if>
<if test="assertionsTotal != null">
#{assertionsTotal,jdbcType=BIGINT},
</if>
<if test="passAssertionsTotal != null">
#{passAssertionsTotal,jdbcType=BIGINT},
</if>
<if test="fakeCode != null">
#{fakeCode,jdbcType=VARCHAR},
</if>
<if test="requestName != null">
#{requestName,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
#{projectId,jdbcType=VARCHAR},
</if>
<if test="errorTotal != null">
#{errorTotal,jdbcType=INTEGER},
<if test="requestTime != null">
#{requestTime,jdbcType=BIGINT},
</if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="responseSize != null">
#{responseSize,jdbcType=BIGINT},
</if>
<if test="scriptIdentifier != null">
#{scriptIdentifier,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARBINARY},
</if>
@ -253,36 +230,27 @@
<if test="record.resourceId != null">
resource_id = #{record.resourceId,jdbcType=VARCHAR},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=BIGINT},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.requestTime != null">
request_time = #{record.requestTime,jdbcType=BIGINT},
</if>
<if test="record.assertionsTotal != null">
assertions_total = #{record.assertionsTotal,jdbcType=BIGINT},
</if>
<if test="record.passAssertionsTotal != null">
pass_assertions_total = #{record.passAssertionsTotal,jdbcType=BIGINT},
</if>
<if test="record.fakeCode != null">
fake_code = #{record.fakeCode,jdbcType=VARCHAR},
</if>
<if test="record.requestName != null">
request_name = #{record.requestName,jdbcType=VARCHAR},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if test="record.errorTotal != null">
error_total = #{record.errorTotal,jdbcType=INTEGER},
<if test="record.requestTime != null">
request_time = #{record.requestTime,jdbcType=BIGINT},
</if>
<if test="record.code != null">
code = #{record.code,jdbcType=VARCHAR},
</if>
<if test="record.responseSize != null">
response_size = #{record.responseSize,jdbcType=BIGINT},
</if>
<if test="record.scriptIdentifier != null">
script_identifier = #{record.scriptIdentifier,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=LONGVARBINARY},
</if>
@ -296,16 +264,13 @@
set id = #{record.id,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
resource_id = #{record.resourceId,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=BIGINT},
`status` = #{record.status,jdbcType=VARCHAR},
request_time = #{record.requestTime,jdbcType=BIGINT},
assertions_total = #{record.assertionsTotal,jdbcType=BIGINT},
pass_assertions_total = #{record.passAssertionsTotal,jdbcType=BIGINT},
fake_code = #{record.fakeCode,jdbcType=VARCHAR},
request_name = #{record.requestName,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
error_total = #{record.errorTotal,jdbcType=INTEGER},
request_time = #{record.requestTime,jdbcType=BIGINT},
code = #{record.code,jdbcType=VARCHAR},
response_size = #{record.responseSize,jdbcType=BIGINT},
script_identifier = #{record.scriptIdentifier,jdbcType=VARCHAR},
content = #{record.content,jdbcType=LONGVARBINARY}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -316,16 +281,13 @@
set id = #{record.id,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
resource_id = #{record.resourceId,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=BIGINT},
`status` = #{record.status,jdbcType=VARCHAR},
request_time = #{record.requestTime,jdbcType=BIGINT},
assertions_total = #{record.assertionsTotal,jdbcType=BIGINT},
pass_assertions_total = #{record.passAssertionsTotal,jdbcType=BIGINT},
fake_code = #{record.fakeCode,jdbcType=VARCHAR},
request_name = #{record.requestName,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
error_total = #{record.errorTotal,jdbcType=INTEGER},
code = #{record.code,jdbcType=VARCHAR}
request_time = #{record.requestTime,jdbcType=BIGINT},
code = #{record.code,jdbcType=VARCHAR},
response_size = #{record.responseSize,jdbcType=BIGINT},
script_identifier = #{record.scriptIdentifier,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -339,36 +301,27 @@
<if test="resourceId != null">
resource_id = #{resourceId,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=BIGINT},
</if>
<if test="status != null">
`status` = #{status,jdbcType=VARCHAR},
</if>
<if test="requestTime != null">
request_time = #{requestTime,jdbcType=BIGINT},
</if>
<if test="assertionsTotal != null">
assertions_total = #{assertionsTotal,jdbcType=BIGINT},
</if>
<if test="passAssertionsTotal != null">
pass_assertions_total = #{passAssertionsTotal,jdbcType=BIGINT},
</if>
<if test="fakeCode != null">
fake_code = #{fakeCode,jdbcType=VARCHAR},
</if>
<if test="requestName != null">
request_name = #{requestName,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if test="errorTotal != null">
error_total = #{errorTotal,jdbcType=INTEGER},
<if test="requestTime != null">
request_time = #{requestTime,jdbcType=BIGINT},
</if>
<if test="code != null">
code = #{code,jdbcType=VARCHAR},
</if>
<if test="responseSize != null">
response_size = #{responseSize,jdbcType=BIGINT},
</if>
<if test="scriptIdentifier != null">
script_identifier = #{scriptIdentifier,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARBINARY},
</if>
@ -379,16 +332,13 @@
update api_report_detail
set report_id = #{reportId,jdbcType=VARCHAR},
resource_id = #{resourceId,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=BIGINT},
`status` = #{status,jdbcType=VARCHAR},
request_time = #{requestTime,jdbcType=BIGINT},
assertions_total = #{assertionsTotal,jdbcType=BIGINT},
pass_assertions_total = #{passAssertionsTotal,jdbcType=BIGINT},
fake_code = #{fakeCode,jdbcType=VARCHAR},
request_name = #{requestName,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=VARCHAR},
error_total = #{errorTotal,jdbcType=INTEGER},
request_time = #{requestTime,jdbcType=BIGINT},
code = #{code,jdbcType=VARCHAR},
response_size = #{responseSize,jdbcType=BIGINT},
script_identifier = #{scriptIdentifier,jdbcType=VARCHAR},
content = #{content,jdbcType=LONGVARBINARY}
where id = #{id,jdbcType=VARCHAR}
</update>
@ -396,30 +346,25 @@
update api_report_detail
set report_id = #{reportId,jdbcType=VARCHAR},
resource_id = #{resourceId,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=BIGINT},
`status` = #{status,jdbcType=VARCHAR},
request_time = #{requestTime,jdbcType=BIGINT},
assertions_total = #{assertionsTotal,jdbcType=BIGINT},
pass_assertions_total = #{passAssertionsTotal,jdbcType=BIGINT},
fake_code = #{fakeCode,jdbcType=VARCHAR},
request_name = #{requestName,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=VARCHAR},
error_total = #{errorTotal,jdbcType=INTEGER},
code = #{code,jdbcType=VARCHAR}
request_time = #{requestTime,jdbcType=BIGINT},
code = #{code,jdbcType=VARCHAR},
response_size = #{responseSize,jdbcType=BIGINT},
script_identifier = #{scriptIdentifier,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<insert id="batchInsert" parameterType="map">
insert into api_report_detail
(id, report_id, resource_id, start_time, `status`, request_time, assertions_total,
pass_assertions_total, fake_code, request_name, project_id, error_total, code,
content)
(id, report_id, resource_id, `status`, fake_code, request_name, request_time, code,
response_size, script_identifier, content)
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=VARCHAR}, #{item.reportId,jdbcType=VARCHAR}, #{item.resourceId,jdbcType=VARCHAR},
#{item.startTime,jdbcType=BIGINT}, #{item.status,jdbcType=VARCHAR}, #{item.requestTime,jdbcType=BIGINT},
#{item.assertionsTotal,jdbcType=BIGINT}, #{item.passAssertionsTotal,jdbcType=BIGINT},
#{item.fakeCode,jdbcType=VARCHAR}, #{item.requestName,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR},
#{item.errorTotal,jdbcType=INTEGER}, #{item.code,jdbcType=VARCHAR}, #{item.content,jdbcType=LONGVARBINARY}
#{item.status,jdbcType=VARCHAR}, #{item.fakeCode,jdbcType=VARCHAR}, #{item.requestName,jdbcType=VARCHAR},
#{item.requestTime,jdbcType=BIGINT}, #{item.code,jdbcType=VARCHAR}, #{item.responseSize,jdbcType=BIGINT},
#{item.scriptIdentifier,jdbcType=VARCHAR}, #{item.content,jdbcType=LONGVARBINARY}
)
</foreach>
</insert>
@ -442,36 +387,27 @@
<if test="'resource_id'.toString() == column.value">
#{item.resourceId,jdbcType=VARCHAR}
</if>
<if test="'start_time'.toString() == column.value">
#{item.startTime,jdbcType=BIGINT}
</if>
<if test="'status'.toString() == column.value">
#{item.status,jdbcType=VARCHAR}
</if>
<if test="'request_time'.toString() == column.value">
#{item.requestTime,jdbcType=BIGINT}
</if>
<if test="'assertions_total'.toString() == column.value">
#{item.assertionsTotal,jdbcType=BIGINT}
</if>
<if test="'pass_assertions_total'.toString() == column.value">
#{item.passAssertionsTotal,jdbcType=BIGINT}
</if>
<if test="'fake_code'.toString() == column.value">
#{item.fakeCode,jdbcType=VARCHAR}
</if>
<if test="'request_name'.toString() == column.value">
#{item.requestName,jdbcType=VARCHAR}
</if>
<if test="'project_id'.toString() == column.value">
#{item.projectId,jdbcType=VARCHAR}
</if>
<if test="'error_total'.toString() == column.value">
#{item.errorTotal,jdbcType=INTEGER}
<if test="'request_time'.toString() == column.value">
#{item.requestTime,jdbcType=BIGINT}
</if>
<if test="'code'.toString() == column.value">
#{item.code,jdbcType=VARCHAR}
</if>
<if test="'response_size'.toString() == column.value">
#{item.responseSize,jdbcType=BIGINT}
</if>
<if test="'script_identifier'.toString() == column.value">
#{item.scriptIdentifier,jdbcType=VARCHAR}
</if>
<if test="'content'.toString() == column.value">
#{item.content,jdbcType=LONGVARBINARY}
</if>

View File

@ -5,19 +5,33 @@
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="resource_id" jdbcType="VARCHAR" property="resourceId" />
<result column="create_time" jdbcType="BIGINT" property="createTime" />
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
<result column="create_user" jdbcType="VARCHAR" property="createUser" />
<result column="update_user" jdbcType="VARCHAR" property="updateUser" />
<result column="delete_time" jdbcType="BIGINT" property="deleteTime" />
<result column="delete_user" jdbcType="VARCHAR" property="deleteUser" />
<result column="deleted" jdbcType="BIT" property="deleted" />
<result column="update_user" jdbcType="VARCHAR" property="updateUser" />
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
<result column="start_time" jdbcType="BIGINT" property="startTime" />
<result column="end_time" jdbcType="BIGINT" property="endTime" />
<result column="request_duration" jdbcType="BIGINT" property="requestDuration" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="trigger_mode" jdbcType="VARCHAR" property="triggerMode" />
<result column="run_mode" jdbcType="VARCHAR" property="runMode" />
<result column="pool_id" jdbcType="VARCHAR" property="poolId" />
<result column="trigger_mode" jdbcType="VARCHAR" property="triggerMode" />
<result column="version_id" jdbcType="VARCHAR" property="versionId" />
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
<result column="integrated" jdbcType="BIT" property="integrated" />
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
<result column="environment_id" jdbcType="VARCHAR" property="environmentId" />
<result column="error_count" jdbcType="BIGINT" property="errorCount" />
<result column="fake_error_count" jdbcType="BIGINT" property="fakeErrorCount" />
<result column="pending_count" jdbcType="BIGINT" property="pendingCount" />
<result column="success_count" jdbcType="BIGINT" property="successCount" />
<result column="assertion_count" jdbcType="BIGINT" property="assertionCount" />
<result column="pass_assertions_count" jdbcType="BIGINT" property="passAssertionsCount" />
<result column="request_execution_rate" jdbcType="BIGINT" property="requestExecutionRate" />
<result column="request_approval_rate" jdbcType="BIGINT" property="requestApprovalRate" />
<result column="assertion_pass_rate" jdbcType="BIGINT" property="assertionPassRate" />
<result column="script_identifier" jdbcType="VARCHAR" property="scriptIdentifier" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -78,8 +92,11 @@
</where>
</sql>
<sql id="Base_Column_List">
id, `name`, resource_id, create_time, update_time, create_user, update_user, deleted,
`status`, run_mode, pool_id, trigger_mode, version_id, project_id, integrated, environment_id
id, `name`, resource_id, create_user, delete_time, delete_user, deleted, update_user,
update_time, start_time, end_time, request_duration, `status`, trigger_mode, run_mode,
pool_id, version_id, integrated, project_id, environment_id, error_count, fake_error_count,
pending_count, success_count, assertion_count, pass_assertions_count, request_execution_rate,
request_approval_rate, assertion_pass_rate, script_identifier
</sql>
<select id="selectByExample" parameterType="io.metersphere.api.domain.ApiReportExample" resultMap="BaseResultMap">
select
@ -113,17 +130,27 @@
</delete>
<insert id="insert" parameterType="io.metersphere.api.domain.ApiReport">
insert into api_report (id, `name`, resource_id,
create_time, update_time, create_user,
update_user, deleted, `status`,
run_mode, pool_id, trigger_mode,
version_id, project_id, integrated,
environment_id)
create_user, delete_time, delete_user,
deleted, update_user, update_time,
start_time, end_time, request_duration,
`status`, trigger_mode, run_mode,
pool_id, version_id, integrated,
project_id, environment_id, error_count,
fake_error_count, pending_count, success_count,
assertion_count, pass_assertions_count, request_execution_rate,
request_approval_rate, assertion_pass_rate, script_identifier
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR},
#{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT}, #{createUser,jdbcType=VARCHAR},
#{updateUser,jdbcType=VARCHAR}, #{deleted,jdbcType=BIT}, #{status,jdbcType=VARCHAR},
#{runMode,jdbcType=VARCHAR}, #{poolId,jdbcType=VARCHAR}, #{triggerMode,jdbcType=VARCHAR},
#{versionId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{integrated,jdbcType=BIT},
#{environmentId,jdbcType=VARCHAR})
#{createUser,jdbcType=VARCHAR}, #{deleteTime,jdbcType=BIGINT}, #{deleteUser,jdbcType=VARCHAR},
#{deleted,jdbcType=BIT}, #{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=BIGINT},
#{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{requestDuration,jdbcType=BIGINT},
#{status,jdbcType=VARCHAR}, #{triggerMode,jdbcType=VARCHAR}, #{runMode,jdbcType=VARCHAR},
#{poolId,jdbcType=VARCHAR}, #{versionId,jdbcType=VARCHAR}, #{integrated,jdbcType=BIT},
#{projectId,jdbcType=VARCHAR}, #{environmentId,jdbcType=VARCHAR}, #{errorCount,jdbcType=BIGINT},
#{fakeErrorCount,jdbcType=BIGINT}, #{pendingCount,jdbcType=BIGINT}, #{successCount,jdbcType=BIGINT},
#{assertionCount,jdbcType=BIGINT}, #{passAssertionsCount,jdbcType=BIGINT}, #{requestExecutionRate,jdbcType=BIGINT},
#{requestApprovalRate,jdbcType=BIGINT}, #{assertionPassRate,jdbcType=BIGINT}, #{scriptIdentifier,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="io.metersphere.api.domain.ApiReport">
insert into api_report
@ -137,45 +164,87 @@
<if test="resourceId != null">
resource_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="createUser != null">
create_user,
</if>
<if test="updateUser != null">
update_user,
<if test="deleteTime != null">
delete_time,
</if>
<if test="deleteUser != null">
delete_user,
</if>
<if test="deleted != null">
deleted,
</if>
<if test="updateUser != null">
update_user,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="requestDuration != null">
request_duration,
</if>
<if test="status != null">
`status`,
</if>
<if test="triggerMode != null">
trigger_mode,
</if>
<if test="runMode != null">
run_mode,
</if>
<if test="poolId != null">
pool_id,
</if>
<if test="triggerMode != null">
trigger_mode,
</if>
<if test="versionId != null">
version_id,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="integrated != null">
integrated,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="environmentId != null">
environment_id,
</if>
<if test="errorCount != null">
error_count,
</if>
<if test="fakeErrorCount != null">
fake_error_count,
</if>
<if test="pendingCount != null">
pending_count,
</if>
<if test="successCount != null">
success_count,
</if>
<if test="assertionCount != null">
assertion_count,
</if>
<if test="passAssertionsCount != null">
pass_assertions_count,
</if>
<if test="requestExecutionRate != null">
request_execution_rate,
</if>
<if test="requestApprovalRate != null">
request_approval_rate,
</if>
<if test="assertionPassRate != null">
assertion_pass_rate,
</if>
<if test="scriptIdentifier != null">
script_identifier,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -187,45 +256,87 @@
<if test="resourceId != null">
#{resourceId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=BIGINT},
</if>
<if test="createUser != null">
#{createUser,jdbcType=VARCHAR},
</if>
<if test="updateUser != null">
#{updateUser,jdbcType=VARCHAR},
<if test="deleteTime != null">
#{deleteTime,jdbcType=BIGINT},
</if>
<if test="deleteUser != null">
#{deleteUser,jdbcType=VARCHAR},
</if>
<if test="deleted != null">
#{deleted,jdbcType=BIT},
</if>
<if test="updateUser != null">
#{updateUser,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=BIGINT},
</if>
<if test="startTime != null">
#{startTime,jdbcType=BIGINT},
</if>
<if test="endTime != null">
#{endTime,jdbcType=BIGINT},
</if>
<if test="requestDuration != null">
#{requestDuration,jdbcType=BIGINT},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="triggerMode != null">
#{triggerMode,jdbcType=VARCHAR},
</if>
<if test="runMode != null">
#{runMode,jdbcType=VARCHAR},
</if>
<if test="poolId != null">
#{poolId,jdbcType=VARCHAR},
</if>
<if test="triggerMode != null">
#{triggerMode,jdbcType=VARCHAR},
</if>
<if test="versionId != null">
#{versionId,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
#{projectId,jdbcType=VARCHAR},
</if>
<if test="integrated != null">
#{integrated,jdbcType=BIT},
</if>
<if test="projectId != null">
#{projectId,jdbcType=VARCHAR},
</if>
<if test="environmentId != null">
#{environmentId,jdbcType=VARCHAR},
</if>
<if test="errorCount != null">
#{errorCount,jdbcType=BIGINT},
</if>
<if test="fakeErrorCount != null">
#{fakeErrorCount,jdbcType=BIGINT},
</if>
<if test="pendingCount != null">
#{pendingCount,jdbcType=BIGINT},
</if>
<if test="successCount != null">
#{successCount,jdbcType=BIGINT},
</if>
<if test="assertionCount != null">
#{assertionCount,jdbcType=BIGINT},
</if>
<if test="passAssertionsCount != null">
#{passAssertionsCount,jdbcType=BIGINT},
</if>
<if test="requestExecutionRate != null">
#{requestExecutionRate,jdbcType=BIGINT},
</if>
<if test="requestApprovalRate != null">
#{requestApprovalRate,jdbcType=BIGINT},
</if>
<if test="assertionPassRate != null">
#{assertionPassRate,jdbcType=BIGINT},
</if>
<if test="scriptIdentifier != null">
#{scriptIdentifier,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.api.domain.ApiReportExample" resultType="java.lang.Long">
@ -246,45 +357,87 @@
<if test="record.resourceId != null">
resource_id = #{record.resourceId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=BIGINT},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=BIGINT},
</if>
<if test="record.createUser != null">
create_user = #{record.createUser,jdbcType=VARCHAR},
</if>
<if test="record.updateUser != null">
update_user = #{record.updateUser,jdbcType=VARCHAR},
<if test="record.deleteTime != null">
delete_time = #{record.deleteTime,jdbcType=BIGINT},
</if>
<if test="record.deleteUser != null">
delete_user = #{record.deleteUser,jdbcType=VARCHAR},
</if>
<if test="record.deleted != null">
deleted = #{record.deleted,jdbcType=BIT},
</if>
<if test="record.updateUser != null">
update_user = #{record.updateUser,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=BIGINT},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=BIGINT},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=BIGINT},
</if>
<if test="record.requestDuration != null">
request_duration = #{record.requestDuration,jdbcType=BIGINT},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.triggerMode != null">
trigger_mode = #{record.triggerMode,jdbcType=VARCHAR},
</if>
<if test="record.runMode != null">
run_mode = #{record.runMode,jdbcType=VARCHAR},
</if>
<if test="record.poolId != null">
pool_id = #{record.poolId,jdbcType=VARCHAR},
</if>
<if test="record.triggerMode != null">
trigger_mode = #{record.triggerMode,jdbcType=VARCHAR},
</if>
<if test="record.versionId != null">
version_id = #{record.versionId,jdbcType=VARCHAR},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if test="record.integrated != null">
integrated = #{record.integrated,jdbcType=BIT},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if test="record.environmentId != null">
environment_id = #{record.environmentId,jdbcType=VARCHAR},
</if>
<if test="record.errorCount != null">
error_count = #{record.errorCount,jdbcType=BIGINT},
</if>
<if test="record.fakeErrorCount != null">
fake_error_count = #{record.fakeErrorCount,jdbcType=BIGINT},
</if>
<if test="record.pendingCount != null">
pending_count = #{record.pendingCount,jdbcType=BIGINT},
</if>
<if test="record.successCount != null">
success_count = #{record.successCount,jdbcType=BIGINT},
</if>
<if test="record.assertionCount != null">
assertion_count = #{record.assertionCount,jdbcType=BIGINT},
</if>
<if test="record.passAssertionsCount != null">
pass_assertions_count = #{record.passAssertionsCount,jdbcType=BIGINT},
</if>
<if test="record.requestExecutionRate != null">
request_execution_rate = #{record.requestExecutionRate,jdbcType=BIGINT},
</if>
<if test="record.requestApprovalRate != null">
request_approval_rate = #{record.requestApprovalRate,jdbcType=BIGINT},
</if>
<if test="record.assertionPassRate != null">
assertion_pass_rate = #{record.assertionPassRate,jdbcType=BIGINT},
</if>
<if test="record.scriptIdentifier != null">
script_identifier = #{record.scriptIdentifier,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -295,19 +448,33 @@
set id = #{record.id,jdbcType=VARCHAR},
`name` = #{record.name,jdbcType=VARCHAR},
resource_id = #{record.resourceId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=BIGINT},
create_user = #{record.createUser,jdbcType=VARCHAR},
update_user = #{record.updateUser,jdbcType=VARCHAR},
delete_time = #{record.deleteTime,jdbcType=BIGINT},
delete_user = #{record.deleteUser,jdbcType=VARCHAR},
deleted = #{record.deleted,jdbcType=BIT},
update_user = #{record.updateUser,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=BIGINT},
start_time = #{record.startTime,jdbcType=BIGINT},
end_time = #{record.endTime,jdbcType=BIGINT},
request_duration = #{record.requestDuration,jdbcType=BIGINT},
`status` = #{record.status,jdbcType=VARCHAR},
trigger_mode = #{record.triggerMode,jdbcType=VARCHAR},
run_mode = #{record.runMode,jdbcType=VARCHAR},
pool_id = #{record.poolId,jdbcType=VARCHAR},
trigger_mode = #{record.triggerMode,jdbcType=VARCHAR},
version_id = #{record.versionId,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
integrated = #{record.integrated,jdbcType=BIT},
environment_id = #{record.environmentId,jdbcType=VARCHAR}
project_id = #{record.projectId,jdbcType=VARCHAR},
environment_id = #{record.environmentId,jdbcType=VARCHAR},
error_count = #{record.errorCount,jdbcType=BIGINT},
fake_error_count = #{record.fakeErrorCount,jdbcType=BIGINT},
pending_count = #{record.pendingCount,jdbcType=BIGINT},
success_count = #{record.successCount,jdbcType=BIGINT},
assertion_count = #{record.assertionCount,jdbcType=BIGINT},
pass_assertions_count = #{record.passAssertionsCount,jdbcType=BIGINT},
request_execution_rate = #{record.requestExecutionRate,jdbcType=BIGINT},
request_approval_rate = #{record.requestApprovalRate,jdbcType=BIGINT},
assertion_pass_rate = #{record.assertionPassRate,jdbcType=BIGINT},
script_identifier = #{record.scriptIdentifier,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -321,45 +488,87 @@
<if test="resourceId != null">
resource_id = #{resourceId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=BIGINT},
</if>
<if test="createUser != null">
create_user = #{createUser,jdbcType=VARCHAR},
</if>
<if test="updateUser != null">
update_user = #{updateUser,jdbcType=VARCHAR},
<if test="deleteTime != null">
delete_time = #{deleteTime,jdbcType=BIGINT},
</if>
<if test="deleteUser != null">
delete_user = #{deleteUser,jdbcType=VARCHAR},
</if>
<if test="deleted != null">
deleted = #{deleted,jdbcType=BIT},
</if>
<if test="updateUser != null">
update_user = #{updateUser,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=BIGINT},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=BIGINT},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=BIGINT},
</if>
<if test="requestDuration != null">
request_duration = #{requestDuration,jdbcType=BIGINT},
</if>
<if test="status != null">
`status` = #{status,jdbcType=VARCHAR},
</if>
<if test="triggerMode != null">
trigger_mode = #{triggerMode,jdbcType=VARCHAR},
</if>
<if test="runMode != null">
run_mode = #{runMode,jdbcType=VARCHAR},
</if>
<if test="poolId != null">
pool_id = #{poolId,jdbcType=VARCHAR},
</if>
<if test="triggerMode != null">
trigger_mode = #{triggerMode,jdbcType=VARCHAR},
</if>
<if test="versionId != null">
version_id = #{versionId,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if test="integrated != null">
integrated = #{integrated,jdbcType=BIT},
</if>
<if test="projectId != null">
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if test="environmentId != null">
environment_id = #{environmentId,jdbcType=VARCHAR},
</if>
<if test="errorCount != null">
error_count = #{errorCount,jdbcType=BIGINT},
</if>
<if test="fakeErrorCount != null">
fake_error_count = #{fakeErrorCount,jdbcType=BIGINT},
</if>
<if test="pendingCount != null">
pending_count = #{pendingCount,jdbcType=BIGINT},
</if>
<if test="successCount != null">
success_count = #{successCount,jdbcType=BIGINT},
</if>
<if test="assertionCount != null">
assertion_count = #{assertionCount,jdbcType=BIGINT},
</if>
<if test="passAssertionsCount != null">
pass_assertions_count = #{passAssertionsCount,jdbcType=BIGINT},
</if>
<if test="requestExecutionRate != null">
request_execution_rate = #{requestExecutionRate,jdbcType=BIGINT},
</if>
<if test="requestApprovalRate != null">
request_approval_rate = #{requestApprovalRate,jdbcType=BIGINT},
</if>
<if test="assertionPassRate != null">
assertion_pass_rate = #{assertionPassRate,jdbcType=BIGINT},
</if>
<if test="scriptIdentifier != null">
script_identifier = #{scriptIdentifier,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
@ -367,34 +576,56 @@
update api_report
set `name` = #{name,jdbcType=VARCHAR},
resource_id = #{resourceId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=BIGINT},
create_user = #{createUser,jdbcType=VARCHAR},
update_user = #{updateUser,jdbcType=VARCHAR},
delete_time = #{deleteTime,jdbcType=BIGINT},
delete_user = #{deleteUser,jdbcType=VARCHAR},
deleted = #{deleted,jdbcType=BIT},
update_user = #{updateUser,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=BIGINT},
start_time = #{startTime,jdbcType=BIGINT},
end_time = #{endTime,jdbcType=BIGINT},
request_duration = #{requestDuration,jdbcType=BIGINT},
`status` = #{status,jdbcType=VARCHAR},
trigger_mode = #{triggerMode,jdbcType=VARCHAR},
run_mode = #{runMode,jdbcType=VARCHAR},
pool_id = #{poolId,jdbcType=VARCHAR},
trigger_mode = #{triggerMode,jdbcType=VARCHAR},
version_id = #{versionId,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=VARCHAR},
integrated = #{integrated,jdbcType=BIT},
environment_id = #{environmentId,jdbcType=VARCHAR}
project_id = #{projectId,jdbcType=VARCHAR},
environment_id = #{environmentId,jdbcType=VARCHAR},
error_count = #{errorCount,jdbcType=BIGINT},
fake_error_count = #{fakeErrorCount,jdbcType=BIGINT},
pending_count = #{pendingCount,jdbcType=BIGINT},
success_count = #{successCount,jdbcType=BIGINT},
assertion_count = #{assertionCount,jdbcType=BIGINT},
pass_assertions_count = #{passAssertionsCount,jdbcType=BIGINT},
request_execution_rate = #{requestExecutionRate,jdbcType=BIGINT},
request_approval_rate = #{requestApprovalRate,jdbcType=BIGINT},
assertion_pass_rate = #{assertionPassRate,jdbcType=BIGINT},
script_identifier = #{scriptIdentifier,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<insert id="batchInsert" parameterType="map">
insert into api_report
(id, `name`, resource_id, create_time, update_time, create_user, update_user, deleted,
`status`, run_mode, pool_id, trigger_mode, version_id, project_id, integrated,
environment_id)
(id, `name`, resource_id, create_user, delete_time, delete_user, deleted, update_user,
update_time, start_time, end_time, request_duration, `status`, trigger_mode, run_mode,
pool_id, version_id, integrated, project_id, environment_id, error_count, fake_error_count,
pending_count, success_count, assertion_count, pass_assertions_count, request_execution_rate,
request_approval_rate, assertion_pass_rate, script_identifier)
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, #{item.resourceId,jdbcType=VARCHAR},
#{item.createTime,jdbcType=BIGINT}, #{item.updateTime,jdbcType=BIGINT}, #{item.createUser,jdbcType=VARCHAR},
#{item.updateUser,jdbcType=VARCHAR}, #{item.deleted,jdbcType=BIT}, #{item.status,jdbcType=VARCHAR},
#{item.runMode,jdbcType=VARCHAR}, #{item.poolId,jdbcType=VARCHAR}, #{item.triggerMode,jdbcType=VARCHAR},
#{item.versionId,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR}, #{item.integrated,jdbcType=BIT},
#{item.environmentId,jdbcType=VARCHAR})
#{item.createUser,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=BIGINT}, #{item.deleteUser,jdbcType=VARCHAR},
#{item.deleted,jdbcType=BIT}, #{item.updateUser,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=BIGINT},
#{item.startTime,jdbcType=BIGINT}, #{item.endTime,jdbcType=BIGINT}, #{item.requestDuration,jdbcType=BIGINT},
#{item.status,jdbcType=VARCHAR}, #{item.triggerMode,jdbcType=VARCHAR}, #{item.runMode,jdbcType=VARCHAR},
#{item.poolId,jdbcType=VARCHAR}, #{item.versionId,jdbcType=VARCHAR}, #{item.integrated,jdbcType=BIT},
#{item.projectId,jdbcType=VARCHAR}, #{item.environmentId,jdbcType=VARCHAR}, #{item.errorCount,jdbcType=BIGINT},
#{item.fakeErrorCount,jdbcType=BIGINT}, #{item.pendingCount,jdbcType=BIGINT}, #{item.successCount,jdbcType=BIGINT},
#{item.assertionCount,jdbcType=BIGINT}, #{item.passAssertionsCount,jdbcType=BIGINT},
#{item.requestExecutionRate,jdbcType=BIGINT}, #{item.requestApprovalRate,jdbcType=BIGINT},
#{item.assertionPassRate,jdbcType=BIGINT}, #{item.scriptIdentifier,jdbcType=VARCHAR}
)
</foreach>
</insert>
<insert id="batchInsertSelective" parameterType="map">
@ -416,45 +647,87 @@
<if test="'resource_id'.toString() == column.value">
#{item.resourceId,jdbcType=VARCHAR}
</if>
<if test="'create_time'.toString() == column.value">
#{item.createTime,jdbcType=BIGINT}
</if>
<if test="'update_time'.toString() == column.value">
#{item.updateTime,jdbcType=BIGINT}
</if>
<if test="'create_user'.toString() == column.value">
#{item.createUser,jdbcType=VARCHAR}
</if>
<if test="'update_user'.toString() == column.value">
#{item.updateUser,jdbcType=VARCHAR}
<if test="'delete_time'.toString() == column.value">
#{item.deleteTime,jdbcType=BIGINT}
</if>
<if test="'delete_user'.toString() == column.value">
#{item.deleteUser,jdbcType=VARCHAR}
</if>
<if test="'deleted'.toString() == column.value">
#{item.deleted,jdbcType=BIT}
</if>
<if test="'update_user'.toString() == column.value">
#{item.updateUser,jdbcType=VARCHAR}
</if>
<if test="'update_time'.toString() == column.value">
#{item.updateTime,jdbcType=BIGINT}
</if>
<if test="'start_time'.toString() == column.value">
#{item.startTime,jdbcType=BIGINT}
</if>
<if test="'end_time'.toString() == column.value">
#{item.endTime,jdbcType=BIGINT}
</if>
<if test="'request_duration'.toString() == column.value">
#{item.requestDuration,jdbcType=BIGINT}
</if>
<if test="'status'.toString() == column.value">
#{item.status,jdbcType=VARCHAR}
</if>
<if test="'trigger_mode'.toString() == column.value">
#{item.triggerMode,jdbcType=VARCHAR}
</if>
<if test="'run_mode'.toString() == column.value">
#{item.runMode,jdbcType=VARCHAR}
</if>
<if test="'pool_id'.toString() == column.value">
#{item.poolId,jdbcType=VARCHAR}
</if>
<if test="'trigger_mode'.toString() == column.value">
#{item.triggerMode,jdbcType=VARCHAR}
</if>
<if test="'version_id'.toString() == column.value">
#{item.versionId,jdbcType=VARCHAR}
</if>
<if test="'project_id'.toString() == column.value">
#{item.projectId,jdbcType=VARCHAR}
</if>
<if test="'integrated'.toString() == column.value">
#{item.integrated,jdbcType=BIT}
</if>
<if test="'project_id'.toString() == column.value">
#{item.projectId,jdbcType=VARCHAR}
</if>
<if test="'environment_id'.toString() == column.value">
#{item.environmentId,jdbcType=VARCHAR}
</if>
<if test="'error_count'.toString() == column.value">
#{item.errorCount,jdbcType=BIGINT}
</if>
<if test="'fake_error_count'.toString() == column.value">
#{item.fakeErrorCount,jdbcType=BIGINT}
</if>
<if test="'pending_count'.toString() == column.value">
#{item.pendingCount,jdbcType=BIGINT}
</if>
<if test="'success_count'.toString() == column.value">
#{item.successCount,jdbcType=BIGINT}
</if>
<if test="'assertion_count'.toString() == column.value">
#{item.assertionCount,jdbcType=BIGINT}
</if>
<if test="'pass_assertions_count'.toString() == column.value">
#{item.passAssertionsCount,jdbcType=BIGINT}
</if>
<if test="'request_execution_rate'.toString() == column.value">
#{item.requestExecutionRate,jdbcType=BIGINT}
</if>
<if test="'request_approval_rate'.toString() == column.value">
#{item.requestApprovalRate,jdbcType=BIGINT}
</if>
<if test="'assertion_pass_rate'.toString() == column.value">
#{item.assertionPassRate,jdbcType=BIGINT}
</if>
<if test="'script_identifier'.toString() == column.value">
#{item.scriptIdentifier,jdbcType=VARCHAR}
</if>
</foreach>
)
</foreach>

View File

@ -4,17 +4,14 @@
<resultMap id="BaseResultMap" type="io.metersphere.api.domain.ApiScenarioReportDetail">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="report_id" jdbcType="VARCHAR" property="reportId" />
<result column="resource_id" jdbcType="VARCHAR" property="resourceId" />
<result column="start_time" jdbcType="BIGINT" property="startTime" />
<result column="report_step_id" jdbcType="VARCHAR" property="reportStepId" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="request_time" jdbcType="BIGINT" property="requestTime" />
<result column="assertions_total" jdbcType="BIGINT" property="assertionsTotal" />
<result column="pass_assertions_total" jdbcType="BIGINT" property="passAssertionsTotal" />
<result column="fake_code" jdbcType="VARCHAR" property="fakeCode" />
<result column="request_name" jdbcType="VARCHAR" property="requestName" />
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
<result column="error_total" jdbcType="INTEGER" property="errorTotal" />
<result column="request_time" jdbcType="BIGINT" property="requestTime" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="response_size" jdbcType="BIGINT" property="responseSize" />
<result column="script_identifier" jdbcType="VARCHAR" property="scriptIdentifier" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.api.domain.ApiScenarioReportDetail">
<result column="content" jdbcType="LONGVARBINARY" property="content" />
@ -78,8 +75,8 @@
</where>
</sql>
<sql id="Base_Column_List">
id, report_id, resource_id, start_time, `status`, request_time, assertions_total,
pass_assertions_total, fake_code, request_name, project_id, error_total, code
id, report_id, report_step_id, `status`, fake_code, request_name, request_time, code,
response_size, script_identifier
</sql>
<sql id="Blob_Column_List">
content
@ -133,16 +130,14 @@
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.api.domain.ApiScenarioReportDetail">
insert into api_scenario_report_detail (id, report_id, resource_id,
start_time, `status`, request_time,
assertions_total, pass_assertions_total, fake_code,
request_name, project_id, error_total,
code, content)
values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR},
#{startTime,jdbcType=BIGINT}, #{status,jdbcType=VARCHAR}, #{requestTime,jdbcType=BIGINT},
#{assertionsTotal,jdbcType=BIGINT}, #{passAssertionsTotal,jdbcType=BIGINT}, #{fakeCode,jdbcType=VARCHAR},
#{requestName,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{errorTotal,jdbcType=INTEGER},
#{code,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARBINARY})
insert into api_scenario_report_detail (id, report_id, report_step_id,
`status`, fake_code, request_name,
request_time, code, response_size,
script_identifier, content)
values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{reportStepId,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR}, #{fakeCode,jdbcType=VARCHAR}, #{requestName,jdbcType=VARCHAR},
#{requestTime,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{responseSize,jdbcType=BIGINT},
#{scriptIdentifier,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARBINARY})
</insert>
<insert id="insertSelective" parameterType="io.metersphere.api.domain.ApiScenarioReportDetail">
insert into api_scenario_report_detail
@ -153,39 +148,30 @@
<if test="reportId != null">
report_id,
</if>
<if test="resourceId != null">
resource_id,
</if>
<if test="startTime != null">
start_time,
<if test="reportStepId != null">
report_step_id,
</if>
<if test="status != null">
`status`,
</if>
<if test="requestTime != null">
request_time,
</if>
<if test="assertionsTotal != null">
assertions_total,
</if>
<if test="passAssertionsTotal != null">
pass_assertions_total,
</if>
<if test="fakeCode != null">
fake_code,
</if>
<if test="requestName != null">
request_name,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="errorTotal != null">
error_total,
<if test="requestTime != null">
request_time,
</if>
<if test="code != null">
code,
</if>
<if test="responseSize != null">
response_size,
</if>
<if test="scriptIdentifier != null">
script_identifier,
</if>
<if test="content != null">
content,
</if>
@ -197,39 +183,30 @@
<if test="reportId != null">
#{reportId,jdbcType=VARCHAR},
</if>
<if test="resourceId != null">
#{resourceId,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
#{startTime,jdbcType=BIGINT},
<if test="reportStepId != null">
#{reportStepId,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="requestTime != null">
#{requestTime,jdbcType=BIGINT},
</if>
<if test="assertionsTotal != null">
#{assertionsTotal,jdbcType=BIGINT},
</if>
<if test="passAssertionsTotal != null">
#{passAssertionsTotal,jdbcType=BIGINT},
</if>
<if test="fakeCode != null">
#{fakeCode,jdbcType=VARCHAR},
</if>
<if test="requestName != null">
#{requestName,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
#{projectId,jdbcType=VARCHAR},
</if>
<if test="errorTotal != null">
#{errorTotal,jdbcType=INTEGER},
<if test="requestTime != null">
#{requestTime,jdbcType=BIGINT},
</if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="responseSize != null">
#{responseSize,jdbcType=BIGINT},
</if>
<if test="scriptIdentifier != null">
#{scriptIdentifier,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARBINARY},
</if>
@ -250,39 +227,30 @@
<if test="record.reportId != null">
report_id = #{record.reportId,jdbcType=VARCHAR},
</if>
<if test="record.resourceId != null">
resource_id = #{record.resourceId,jdbcType=VARCHAR},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=BIGINT},
<if test="record.reportStepId != null">
report_step_id = #{record.reportStepId,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.requestTime != null">
request_time = #{record.requestTime,jdbcType=BIGINT},
</if>
<if test="record.assertionsTotal != null">
assertions_total = #{record.assertionsTotal,jdbcType=BIGINT},
</if>
<if test="record.passAssertionsTotal != null">
pass_assertions_total = #{record.passAssertionsTotal,jdbcType=BIGINT},
</if>
<if test="record.fakeCode != null">
fake_code = #{record.fakeCode,jdbcType=VARCHAR},
</if>
<if test="record.requestName != null">
request_name = #{record.requestName,jdbcType=VARCHAR},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if test="record.errorTotal != null">
error_total = #{record.errorTotal,jdbcType=INTEGER},
<if test="record.requestTime != null">
request_time = #{record.requestTime,jdbcType=BIGINT},
</if>
<if test="record.code != null">
code = #{record.code,jdbcType=VARCHAR},
</if>
<if test="record.responseSize != null">
response_size = #{record.responseSize,jdbcType=BIGINT},
</if>
<if test="record.scriptIdentifier != null">
script_identifier = #{record.scriptIdentifier,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=LONGVARBINARY},
</if>
@ -295,17 +263,14 @@
update api_scenario_report_detail
set id = #{record.id,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
resource_id = #{record.resourceId,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=BIGINT},
report_step_id = #{record.reportStepId,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=VARCHAR},
request_time = #{record.requestTime,jdbcType=BIGINT},
assertions_total = #{record.assertionsTotal,jdbcType=BIGINT},
pass_assertions_total = #{record.passAssertionsTotal,jdbcType=BIGINT},
fake_code = #{record.fakeCode,jdbcType=VARCHAR},
request_name = #{record.requestName,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
error_total = #{record.errorTotal,jdbcType=INTEGER},
request_time = #{record.requestTime,jdbcType=BIGINT},
code = #{record.code,jdbcType=VARCHAR},
response_size = #{record.responseSize,jdbcType=BIGINT},
script_identifier = #{record.scriptIdentifier,jdbcType=VARCHAR},
content = #{record.content,jdbcType=LONGVARBINARY}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -315,17 +280,14 @@
update api_scenario_report_detail
set id = #{record.id,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
resource_id = #{record.resourceId,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=BIGINT},
report_step_id = #{record.reportStepId,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=VARCHAR},
request_time = #{record.requestTime,jdbcType=BIGINT},
assertions_total = #{record.assertionsTotal,jdbcType=BIGINT},
pass_assertions_total = #{record.passAssertionsTotal,jdbcType=BIGINT},
fake_code = #{record.fakeCode,jdbcType=VARCHAR},
request_name = #{record.requestName,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
error_total = #{record.errorTotal,jdbcType=INTEGER},
code = #{record.code,jdbcType=VARCHAR}
request_time = #{record.requestTime,jdbcType=BIGINT},
code = #{record.code,jdbcType=VARCHAR},
response_size = #{record.responseSize,jdbcType=BIGINT},
script_identifier = #{record.scriptIdentifier,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -336,39 +298,30 @@
<if test="reportId != null">
report_id = #{reportId,jdbcType=VARCHAR},
</if>
<if test="resourceId != null">
resource_id = #{resourceId,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=BIGINT},
<if test="reportStepId != null">
report_step_id = #{reportStepId,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=VARCHAR},
</if>
<if test="requestTime != null">
request_time = #{requestTime,jdbcType=BIGINT},
</if>
<if test="assertionsTotal != null">
assertions_total = #{assertionsTotal,jdbcType=BIGINT},
</if>
<if test="passAssertionsTotal != null">
pass_assertions_total = #{passAssertionsTotal,jdbcType=BIGINT},
</if>
<if test="fakeCode != null">
fake_code = #{fakeCode,jdbcType=VARCHAR},
</if>
<if test="requestName != null">
request_name = #{requestName,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if test="errorTotal != null">
error_total = #{errorTotal,jdbcType=INTEGER},
<if test="requestTime != null">
request_time = #{requestTime,jdbcType=BIGINT},
</if>
<if test="code != null">
code = #{code,jdbcType=VARCHAR},
</if>
<if test="responseSize != null">
response_size = #{responseSize,jdbcType=BIGINT},
</if>
<if test="scriptIdentifier != null">
script_identifier = #{scriptIdentifier,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARBINARY},
</if>
@ -378,48 +331,40 @@
<update id="updateByPrimaryKeyWithBLOBs" parameterType="io.metersphere.api.domain.ApiScenarioReportDetail">
update api_scenario_report_detail
set report_id = #{reportId,jdbcType=VARCHAR},
resource_id = #{resourceId,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=BIGINT},
report_step_id = #{reportStepId,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
request_time = #{requestTime,jdbcType=BIGINT},
assertions_total = #{assertionsTotal,jdbcType=BIGINT},
pass_assertions_total = #{passAssertionsTotal,jdbcType=BIGINT},
fake_code = #{fakeCode,jdbcType=VARCHAR},
request_name = #{requestName,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=VARCHAR},
error_total = #{errorTotal,jdbcType=INTEGER},
request_time = #{requestTime,jdbcType=BIGINT},
code = #{code,jdbcType=VARCHAR},
response_size = #{responseSize,jdbcType=BIGINT},
script_identifier = #{scriptIdentifier,jdbcType=VARCHAR},
content = #{content,jdbcType=LONGVARBINARY}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="io.metersphere.api.domain.ApiScenarioReportDetail">
update api_scenario_report_detail
set report_id = #{reportId,jdbcType=VARCHAR},
resource_id = #{resourceId,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=BIGINT},
report_step_id = #{reportStepId,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
request_time = #{requestTime,jdbcType=BIGINT},
assertions_total = #{assertionsTotal,jdbcType=BIGINT},
pass_assertions_total = #{passAssertionsTotal,jdbcType=BIGINT},
fake_code = #{fakeCode,jdbcType=VARCHAR},
request_name = #{requestName,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=VARCHAR},
error_total = #{errorTotal,jdbcType=INTEGER},
code = #{code,jdbcType=VARCHAR}
request_time = #{requestTime,jdbcType=BIGINT},
code = #{code,jdbcType=VARCHAR},
response_size = #{responseSize,jdbcType=BIGINT},
script_identifier = #{scriptIdentifier,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<insert id="batchInsert" parameterType="map">
insert into api_scenario_report_detail
(id, report_id, resource_id, start_time, `status`, request_time, assertions_total,
pass_assertions_total, fake_code, request_name, project_id, error_total, code,
content)
(id, report_id, report_step_id, `status`, fake_code, request_name, request_time,
code, response_size, script_identifier, content)
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=VARCHAR}, #{item.reportId,jdbcType=VARCHAR}, #{item.resourceId,jdbcType=VARCHAR},
#{item.startTime,jdbcType=BIGINT}, #{item.status,jdbcType=VARCHAR}, #{item.requestTime,jdbcType=BIGINT},
#{item.assertionsTotal,jdbcType=BIGINT}, #{item.passAssertionsTotal,jdbcType=BIGINT},
#{item.fakeCode,jdbcType=VARCHAR}, #{item.requestName,jdbcType=VARCHAR}, #{item.projectId,jdbcType=VARCHAR},
#{item.errorTotal,jdbcType=INTEGER}, #{item.code,jdbcType=VARCHAR}, #{item.content,jdbcType=LONGVARBINARY}
(#{item.id,jdbcType=VARCHAR}, #{item.reportId,jdbcType=VARCHAR}, #{item.reportStepId,jdbcType=VARCHAR},
#{item.status,jdbcType=VARCHAR}, #{item.fakeCode,jdbcType=VARCHAR}, #{item.requestName,jdbcType=VARCHAR},
#{item.requestTime,jdbcType=BIGINT}, #{item.code,jdbcType=VARCHAR}, #{item.responseSize,jdbcType=BIGINT},
#{item.scriptIdentifier,jdbcType=VARCHAR}, #{item.content,jdbcType=LONGVARBINARY}
)
</foreach>
</insert>
@ -439,39 +384,30 @@
<if test="'report_id'.toString() == column.value">
#{item.reportId,jdbcType=VARCHAR}
</if>
<if test="'resource_id'.toString() == column.value">
#{item.resourceId,jdbcType=VARCHAR}
</if>
<if test="'start_time'.toString() == column.value">
#{item.startTime,jdbcType=BIGINT}
<if test="'report_step_id'.toString() == column.value">
#{item.reportStepId,jdbcType=VARCHAR}
</if>
<if test="'status'.toString() == column.value">
#{item.status,jdbcType=VARCHAR}
</if>
<if test="'request_time'.toString() == column.value">
#{item.requestTime,jdbcType=BIGINT}
</if>
<if test="'assertions_total'.toString() == column.value">
#{item.assertionsTotal,jdbcType=BIGINT}
</if>
<if test="'pass_assertions_total'.toString() == column.value">
#{item.passAssertionsTotal,jdbcType=BIGINT}
</if>
<if test="'fake_code'.toString() == column.value">
#{item.fakeCode,jdbcType=VARCHAR}
</if>
<if test="'request_name'.toString() == column.value">
#{item.requestName,jdbcType=VARCHAR}
</if>
<if test="'project_id'.toString() == column.value">
#{item.projectId,jdbcType=VARCHAR}
</if>
<if test="'error_total'.toString() == column.value">
#{item.errorTotal,jdbcType=INTEGER}
<if test="'request_time'.toString() == column.value">
#{item.requestTime,jdbcType=BIGINT}
</if>
<if test="'code'.toString() == column.value">
#{item.code,jdbcType=VARCHAR}
</if>
<if test="'response_size'.toString() == column.value">
#{item.responseSize,jdbcType=BIGINT}
</if>
<if test="'script_identifier'.toString() == column.value">
#{item.scriptIdentifier,jdbcType=VARCHAR}
</if>
<if test="'content'.toString() == column.value">
#{item.content,jdbcType=LONGVARBINARY}
</if>

View File

@ -4,14 +4,16 @@
<resultMap id="BaseResultMap" type="io.metersphere.api.domain.ApiScenarioReport">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="create_time" jdbcType="BIGINT" property="createTime" />
<result column="scenario_id" jdbcType="VARCHAR" property="scenarioId" />
<result column="create_user" jdbcType="VARCHAR" property="createUser" />
<result column="delete_time" jdbcType="BIGINT" property="deleteTime" />
<result column="delete_user" jdbcType="VARCHAR" property="deleteUser" />
<result column="deleted" jdbcType="BIT" property="deleted" />
<result column="update_user" jdbcType="VARCHAR" property="updateUser" />
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
<result column="pass_rate" jdbcType="BIGINT" property="passRate" />
<result column="start_time" jdbcType="BIGINT" property="startTime" />
<result column="end_time" jdbcType="BIGINT" property="endTime" />
<result column="request_duration" jdbcType="BIGINT" property="requestDuration" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="trigger_mode" jdbcType="VARCHAR" property="triggerMode" />
<result column="run_mode" jdbcType="VARCHAR" property="runMode" />
@ -19,8 +21,17 @@
<result column="version_id" jdbcType="VARCHAR" property="versionId" />
<result column="integrated" jdbcType="BIT" property="integrated" />
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
<result column="scenario_id" jdbcType="VARCHAR" property="scenarioId" />
<result column="environment_id" jdbcType="VARCHAR" property="environmentId" />
<result column="error_count" jdbcType="BIGINT" property="errorCount" />
<result column="fake_error_count" jdbcType="BIGINT" property="fakeErrorCount" />
<result column="pending_count" jdbcType="BIGINT" property="pendingCount" />
<result column="success_count" jdbcType="BIGINT" property="successCount" />
<result column="assertion_count" jdbcType="BIGINT" property="assertionCount" />
<result column="pass_assertions_count" jdbcType="BIGINT" property="passAssertionsCount" />
<result column="request_execution_rate" jdbcType="BIGINT" property="requestExecutionRate" />
<result column="request_approval_rate" jdbcType="BIGINT" property="requestApprovalRate" />
<result column="assertion_pass_rate" jdbcType="BIGINT" property="assertionPassRate" />
<result column="script_identifier" jdbcType="VARCHAR" property="scriptIdentifier" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -81,9 +92,11 @@
</where>
</sql>
<sql id="Base_Column_List">
id, `name`, create_time, create_user, delete_time, delete_user, deleted, update_user,
update_time, pass_rate, `status`, trigger_mode, run_mode, pool_id, version_id, integrated,
project_id, scenario_id, environment_id
id, `name`, scenario_id, create_user, delete_time, delete_user, deleted, update_user,
update_time, start_time, end_time, request_duration, `status`, trigger_mode, run_mode,
pool_id, version_id, integrated, project_id, environment_id, error_count, fake_error_count,
pending_count, success_count, assertion_count, pass_assertions_count, request_execution_rate,
request_approval_rate, assertion_pass_rate, script_identifier
</sql>
<select id="selectByExample" parameterType="io.metersphere.api.domain.ApiScenarioReportExample" resultMap="BaseResultMap">
select
@ -116,20 +129,28 @@
</if>
</delete>
<insert id="insert" parameterType="io.metersphere.api.domain.ApiScenarioReport">
insert into api_scenario_report (id, `name`, create_time,
insert into api_scenario_report (id, `name`, scenario_id,
create_user, delete_time, delete_user,
deleted, update_user, update_time,
pass_rate, `status`, trigger_mode,
run_mode, pool_id, version_id,
integrated, project_id, scenario_id,
environment_id)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT},
start_time, end_time, request_duration,
`status`, trigger_mode, run_mode,
pool_id, version_id, integrated,
project_id, environment_id, error_count,
fake_error_count, pending_count, success_count,
assertion_count, pass_assertions_count, request_execution_rate,
request_approval_rate, assertion_pass_rate, script_identifier
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{scenarioId,jdbcType=VARCHAR},
#{createUser,jdbcType=VARCHAR}, #{deleteTime,jdbcType=BIGINT}, #{deleteUser,jdbcType=VARCHAR},
#{deleted,jdbcType=BIT}, #{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=BIGINT},
#{passRate,jdbcType=BIGINT}, #{status,jdbcType=VARCHAR}, #{triggerMode,jdbcType=VARCHAR},
#{runMode,jdbcType=VARCHAR}, #{poolId,jdbcType=VARCHAR}, #{versionId,jdbcType=VARCHAR},
#{integrated,jdbcType=BIT}, #{projectId,jdbcType=VARCHAR}, #{scenarioId,jdbcType=VARCHAR},
#{environmentId,jdbcType=VARCHAR})
#{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{requestDuration,jdbcType=BIGINT},
#{status,jdbcType=VARCHAR}, #{triggerMode,jdbcType=VARCHAR}, #{runMode,jdbcType=VARCHAR},
#{poolId,jdbcType=VARCHAR}, #{versionId,jdbcType=VARCHAR}, #{integrated,jdbcType=BIT},
#{projectId,jdbcType=VARCHAR}, #{environmentId,jdbcType=VARCHAR}, #{errorCount,jdbcType=BIGINT},
#{fakeErrorCount,jdbcType=BIGINT}, #{pendingCount,jdbcType=BIGINT}, #{successCount,jdbcType=BIGINT},
#{assertionCount,jdbcType=BIGINT}, #{passAssertionsCount,jdbcType=BIGINT}, #{requestExecutionRate,jdbcType=BIGINT},
#{requestApprovalRate,jdbcType=BIGINT}, #{assertionPassRate,jdbcType=BIGINT}, #{scriptIdentifier,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="io.metersphere.api.domain.ApiScenarioReport">
insert into api_scenario_report
@ -140,8 +161,8 @@
<if test="name != null">
`name`,
</if>
<if test="createTime != null">
create_time,
<if test="scenarioId != null">
scenario_id,
</if>
<if test="createUser != null">
create_user,
@ -161,8 +182,14 @@
<if test="updateTime != null">
update_time,
</if>
<if test="passRate != null">
pass_rate,
<if test="startTime != null">
start_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="requestDuration != null">
request_duration,
</if>
<if test="status != null">
`status`,
@ -185,12 +212,39 @@
<if test="projectId != null">
project_id,
</if>
<if test="scenarioId != null">
scenario_id,
</if>
<if test="environmentId != null">
environment_id,
</if>
<if test="errorCount != null">
error_count,
</if>
<if test="fakeErrorCount != null">
fake_error_count,
</if>
<if test="pendingCount != null">
pending_count,
</if>
<if test="successCount != null">
success_count,
</if>
<if test="assertionCount != null">
assertion_count,
</if>
<if test="passAssertionsCount != null">
pass_assertions_count,
</if>
<if test="requestExecutionRate != null">
request_execution_rate,
</if>
<if test="requestApprovalRate != null">
request_approval_rate,
</if>
<if test="assertionPassRate != null">
assertion_pass_rate,
</if>
<if test="scriptIdentifier != null">
script_identifier,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -199,8 +253,8 @@
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=BIGINT},
<if test="scenarioId != null">
#{scenarioId,jdbcType=VARCHAR},
</if>
<if test="createUser != null">
#{createUser,jdbcType=VARCHAR},
@ -220,8 +274,14 @@
<if test="updateTime != null">
#{updateTime,jdbcType=BIGINT},
</if>
<if test="passRate != null">
#{passRate,jdbcType=BIGINT},
<if test="startTime != null">
#{startTime,jdbcType=BIGINT},
</if>
<if test="endTime != null">
#{endTime,jdbcType=BIGINT},
</if>
<if test="requestDuration != null">
#{requestDuration,jdbcType=BIGINT},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
@ -244,12 +304,39 @@
<if test="projectId != null">
#{projectId,jdbcType=VARCHAR},
</if>
<if test="scenarioId != null">
#{scenarioId,jdbcType=VARCHAR},
</if>
<if test="environmentId != null">
#{environmentId,jdbcType=VARCHAR},
</if>
<if test="errorCount != null">
#{errorCount,jdbcType=BIGINT},
</if>
<if test="fakeErrorCount != null">
#{fakeErrorCount,jdbcType=BIGINT},
</if>
<if test="pendingCount != null">
#{pendingCount,jdbcType=BIGINT},
</if>
<if test="successCount != null">
#{successCount,jdbcType=BIGINT},
</if>
<if test="assertionCount != null">
#{assertionCount,jdbcType=BIGINT},
</if>
<if test="passAssertionsCount != null">
#{passAssertionsCount,jdbcType=BIGINT},
</if>
<if test="requestExecutionRate != null">
#{requestExecutionRate,jdbcType=BIGINT},
</if>
<if test="requestApprovalRate != null">
#{requestApprovalRate,jdbcType=BIGINT},
</if>
<if test="assertionPassRate != null">
#{assertionPassRate,jdbcType=BIGINT},
</if>
<if test="scriptIdentifier != null">
#{scriptIdentifier,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.api.domain.ApiScenarioReportExample" resultType="java.lang.Long">
@ -267,8 +354,8 @@
<if test="record.name != null">
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=BIGINT},
<if test="record.scenarioId != null">
scenario_id = #{record.scenarioId,jdbcType=VARCHAR},
</if>
<if test="record.createUser != null">
create_user = #{record.createUser,jdbcType=VARCHAR},
@ -288,8 +375,14 @@
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=BIGINT},
</if>
<if test="record.passRate != null">
pass_rate = #{record.passRate,jdbcType=BIGINT},
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=BIGINT},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=BIGINT},
</if>
<if test="record.requestDuration != null">
request_duration = #{record.requestDuration,jdbcType=BIGINT},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=VARCHAR},
@ -312,12 +405,39 @@
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if test="record.scenarioId != null">
scenario_id = #{record.scenarioId,jdbcType=VARCHAR},
</if>
<if test="record.environmentId != null">
environment_id = #{record.environmentId,jdbcType=VARCHAR},
</if>
<if test="record.errorCount != null">
error_count = #{record.errorCount,jdbcType=BIGINT},
</if>
<if test="record.fakeErrorCount != null">
fake_error_count = #{record.fakeErrorCount,jdbcType=BIGINT},
</if>
<if test="record.pendingCount != null">
pending_count = #{record.pendingCount,jdbcType=BIGINT},
</if>
<if test="record.successCount != null">
success_count = #{record.successCount,jdbcType=BIGINT},
</if>
<if test="record.assertionCount != null">
assertion_count = #{record.assertionCount,jdbcType=BIGINT},
</if>
<if test="record.passAssertionsCount != null">
pass_assertions_count = #{record.passAssertionsCount,jdbcType=BIGINT},
</if>
<if test="record.requestExecutionRate != null">
request_execution_rate = #{record.requestExecutionRate,jdbcType=BIGINT},
</if>
<if test="record.requestApprovalRate != null">
request_approval_rate = #{record.requestApprovalRate,jdbcType=BIGINT},
</if>
<if test="record.assertionPassRate != null">
assertion_pass_rate = #{record.assertionPassRate,jdbcType=BIGINT},
</if>
<if test="record.scriptIdentifier != null">
script_identifier = #{record.scriptIdentifier,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -327,14 +447,16 @@
update api_scenario_report
set id = #{record.id,jdbcType=VARCHAR},
`name` = #{record.name,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=BIGINT},
scenario_id = #{record.scenarioId,jdbcType=VARCHAR},
create_user = #{record.createUser,jdbcType=VARCHAR},
delete_time = #{record.deleteTime,jdbcType=BIGINT},
delete_user = #{record.deleteUser,jdbcType=VARCHAR},
deleted = #{record.deleted,jdbcType=BIT},
update_user = #{record.updateUser,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=BIGINT},
pass_rate = #{record.passRate,jdbcType=BIGINT},
start_time = #{record.startTime,jdbcType=BIGINT},
end_time = #{record.endTime,jdbcType=BIGINT},
request_duration = #{record.requestDuration,jdbcType=BIGINT},
`status` = #{record.status,jdbcType=VARCHAR},
trigger_mode = #{record.triggerMode,jdbcType=VARCHAR},
run_mode = #{record.runMode,jdbcType=VARCHAR},
@ -342,8 +464,17 @@
version_id = #{record.versionId,jdbcType=VARCHAR},
integrated = #{record.integrated,jdbcType=BIT},
project_id = #{record.projectId,jdbcType=VARCHAR},
scenario_id = #{record.scenarioId,jdbcType=VARCHAR},
environment_id = #{record.environmentId,jdbcType=VARCHAR}
environment_id = #{record.environmentId,jdbcType=VARCHAR},
error_count = #{record.errorCount,jdbcType=BIGINT},
fake_error_count = #{record.fakeErrorCount,jdbcType=BIGINT},
pending_count = #{record.pendingCount,jdbcType=BIGINT},
success_count = #{record.successCount,jdbcType=BIGINT},
assertion_count = #{record.assertionCount,jdbcType=BIGINT},
pass_assertions_count = #{record.passAssertionsCount,jdbcType=BIGINT},
request_execution_rate = #{record.requestExecutionRate,jdbcType=BIGINT},
request_approval_rate = #{record.requestApprovalRate,jdbcType=BIGINT},
assertion_pass_rate = #{record.assertionPassRate,jdbcType=BIGINT},
script_identifier = #{record.scriptIdentifier,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -354,8 +485,8 @@
<if test="name != null">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=BIGINT},
<if test="scenarioId != null">
scenario_id = #{scenarioId,jdbcType=VARCHAR},
</if>
<if test="createUser != null">
create_user = #{createUser,jdbcType=VARCHAR},
@ -375,8 +506,14 @@
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=BIGINT},
</if>
<if test="passRate != null">
pass_rate = #{passRate,jdbcType=BIGINT},
<if test="startTime != null">
start_time = #{startTime,jdbcType=BIGINT},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=BIGINT},
</if>
<if test="requestDuration != null">
request_duration = #{requestDuration,jdbcType=BIGINT},
</if>
<if test="status != null">
`status` = #{status,jdbcType=VARCHAR},
@ -399,26 +536,55 @@
<if test="projectId != null">
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if test="scenarioId != null">
scenario_id = #{scenarioId,jdbcType=VARCHAR},
</if>
<if test="environmentId != null">
environment_id = #{environmentId,jdbcType=VARCHAR},
</if>
<if test="errorCount != null">
error_count = #{errorCount,jdbcType=BIGINT},
</if>
<if test="fakeErrorCount != null">
fake_error_count = #{fakeErrorCount,jdbcType=BIGINT},
</if>
<if test="pendingCount != null">
pending_count = #{pendingCount,jdbcType=BIGINT},
</if>
<if test="successCount != null">
success_count = #{successCount,jdbcType=BIGINT},
</if>
<if test="assertionCount != null">
assertion_count = #{assertionCount,jdbcType=BIGINT},
</if>
<if test="passAssertionsCount != null">
pass_assertions_count = #{passAssertionsCount,jdbcType=BIGINT},
</if>
<if test="requestExecutionRate != null">
request_execution_rate = #{requestExecutionRate,jdbcType=BIGINT},
</if>
<if test="requestApprovalRate != null">
request_approval_rate = #{requestApprovalRate,jdbcType=BIGINT},
</if>
<if test="assertionPassRate != null">
assertion_pass_rate = #{assertionPassRate,jdbcType=BIGINT},
</if>
<if test="scriptIdentifier != null">
script_identifier = #{scriptIdentifier,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="io.metersphere.api.domain.ApiScenarioReport">
update api_scenario_report
set `name` = #{name,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT},
scenario_id = #{scenarioId,jdbcType=VARCHAR},
create_user = #{createUser,jdbcType=VARCHAR},
delete_time = #{deleteTime,jdbcType=BIGINT},
delete_user = #{deleteUser,jdbcType=VARCHAR},
deleted = #{deleted,jdbcType=BIT},
update_user = #{updateUser,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=BIGINT},
pass_rate = #{passRate,jdbcType=BIGINT},
start_time = #{startTime,jdbcType=BIGINT},
end_time = #{endTime,jdbcType=BIGINT},
request_duration = #{requestDuration,jdbcType=BIGINT},
`status` = #{status,jdbcType=VARCHAR},
trigger_mode = #{triggerMode,jdbcType=VARCHAR},
run_mode = #{runMode,jdbcType=VARCHAR},
@ -426,24 +592,40 @@
version_id = #{versionId,jdbcType=VARCHAR},
integrated = #{integrated,jdbcType=BIT},
project_id = #{projectId,jdbcType=VARCHAR},
scenario_id = #{scenarioId,jdbcType=VARCHAR},
environment_id = #{environmentId,jdbcType=VARCHAR}
environment_id = #{environmentId,jdbcType=VARCHAR},
error_count = #{errorCount,jdbcType=BIGINT},
fake_error_count = #{fakeErrorCount,jdbcType=BIGINT},
pending_count = #{pendingCount,jdbcType=BIGINT},
success_count = #{successCount,jdbcType=BIGINT},
assertion_count = #{assertionCount,jdbcType=BIGINT},
pass_assertions_count = #{passAssertionsCount,jdbcType=BIGINT},
request_execution_rate = #{requestExecutionRate,jdbcType=BIGINT},
request_approval_rate = #{requestApprovalRate,jdbcType=BIGINT},
assertion_pass_rate = #{assertionPassRate,jdbcType=BIGINT},
script_identifier = #{scriptIdentifier,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<insert id="batchInsert" parameterType="map">
insert into api_scenario_report
(id, `name`, create_time, create_user, delete_time, delete_user, deleted, update_user,
update_time, pass_rate, `status`, trigger_mode, run_mode, pool_id, version_id,
integrated, project_id, scenario_id, environment_id)
(id, `name`, scenario_id, create_user, delete_time, delete_user, deleted, update_user,
update_time, start_time, end_time, request_duration, `status`, trigger_mode, run_mode,
pool_id, version_id, integrated, project_id, environment_id, error_count, fake_error_count,
pending_count, success_count, assertion_count, pass_assertions_count, request_execution_rate,
request_approval_rate, assertion_pass_rate, script_identifier)
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, #{item.createTime,jdbcType=BIGINT},
(#{item.id,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, #{item.scenarioId,jdbcType=VARCHAR},
#{item.createUser,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=BIGINT}, #{item.deleteUser,jdbcType=VARCHAR},
#{item.deleted,jdbcType=BIT}, #{item.updateUser,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=BIGINT},
#{item.passRate,jdbcType=BIGINT}, #{item.status,jdbcType=VARCHAR}, #{item.triggerMode,jdbcType=VARCHAR},
#{item.runMode,jdbcType=VARCHAR}, #{item.poolId,jdbcType=VARCHAR}, #{item.versionId,jdbcType=VARCHAR},
#{item.integrated,jdbcType=BIT}, #{item.projectId,jdbcType=VARCHAR}, #{item.scenarioId,jdbcType=VARCHAR},
#{item.environmentId,jdbcType=VARCHAR})
#{item.startTime,jdbcType=BIGINT}, #{item.endTime,jdbcType=BIGINT}, #{item.requestDuration,jdbcType=BIGINT},
#{item.status,jdbcType=VARCHAR}, #{item.triggerMode,jdbcType=VARCHAR}, #{item.runMode,jdbcType=VARCHAR},
#{item.poolId,jdbcType=VARCHAR}, #{item.versionId,jdbcType=VARCHAR}, #{item.integrated,jdbcType=BIT},
#{item.projectId,jdbcType=VARCHAR}, #{item.environmentId,jdbcType=VARCHAR}, #{item.errorCount,jdbcType=BIGINT},
#{item.fakeErrorCount,jdbcType=BIGINT}, #{item.pendingCount,jdbcType=BIGINT}, #{item.successCount,jdbcType=BIGINT},
#{item.assertionCount,jdbcType=BIGINT}, #{item.passAssertionsCount,jdbcType=BIGINT},
#{item.requestExecutionRate,jdbcType=BIGINT}, #{item.requestApprovalRate,jdbcType=BIGINT},
#{item.assertionPassRate,jdbcType=BIGINT}, #{item.scriptIdentifier,jdbcType=VARCHAR}
)
</foreach>
</insert>
<insert id="batchInsertSelective" parameterType="map">
@ -462,8 +644,8 @@
<if test="'name'.toString() == column.value">
#{item.name,jdbcType=VARCHAR}
</if>
<if test="'create_time'.toString() == column.value">
#{item.createTime,jdbcType=BIGINT}
<if test="'scenario_id'.toString() == column.value">
#{item.scenarioId,jdbcType=VARCHAR}
</if>
<if test="'create_user'.toString() == column.value">
#{item.createUser,jdbcType=VARCHAR}
@ -483,8 +665,14 @@
<if test="'update_time'.toString() == column.value">
#{item.updateTime,jdbcType=BIGINT}
</if>
<if test="'pass_rate'.toString() == column.value">
#{item.passRate,jdbcType=BIGINT}
<if test="'start_time'.toString() == column.value">
#{item.startTime,jdbcType=BIGINT}
</if>
<if test="'end_time'.toString() == column.value">
#{item.endTime,jdbcType=BIGINT}
</if>
<if test="'request_duration'.toString() == column.value">
#{item.requestDuration,jdbcType=BIGINT}
</if>
<if test="'status'.toString() == column.value">
#{item.status,jdbcType=VARCHAR}
@ -507,12 +695,39 @@
<if test="'project_id'.toString() == column.value">
#{item.projectId,jdbcType=VARCHAR}
</if>
<if test="'scenario_id'.toString() == column.value">
#{item.scenarioId,jdbcType=VARCHAR}
</if>
<if test="'environment_id'.toString() == column.value">
#{item.environmentId,jdbcType=VARCHAR}
</if>
<if test="'error_count'.toString() == column.value">
#{item.errorCount,jdbcType=BIGINT}
</if>
<if test="'fake_error_count'.toString() == column.value">
#{item.fakeErrorCount,jdbcType=BIGINT}
</if>
<if test="'pending_count'.toString() == column.value">
#{item.pendingCount,jdbcType=BIGINT}
</if>
<if test="'success_count'.toString() == column.value">
#{item.successCount,jdbcType=BIGINT}
</if>
<if test="'assertion_count'.toString() == column.value">
#{item.assertionCount,jdbcType=BIGINT}
</if>
<if test="'pass_assertions_count'.toString() == column.value">
#{item.passAssertionsCount,jdbcType=BIGINT}
</if>
<if test="'request_execution_rate'.toString() == column.value">
#{item.requestExecutionRate,jdbcType=BIGINT}
</if>
<if test="'request_approval_rate'.toString() == column.value">
#{item.requestApprovalRate,jdbcType=BIGINT}
</if>
<if test="'assertion_pass_rate'.toString() == column.value">
#{item.assertionPassRate,jdbcType=BIGINT}
</if>
<if test="'script_identifier'.toString() == column.value">
#{item.scriptIdentifier,jdbcType=VARCHAR}
</if>
</foreach>
)
</foreach>

View File

@ -99,53 +99,66 @@ CREATE INDEX idx_create_user ON api_definition(create_user);
CREATE INDEX idx_name ON api_definition(name);
CREATE TABLE IF NOT EXISTS api_report(
`id` VARCHAR(50) NOT NULL COMMENT '接口结果报告pk' ,
`name` VARCHAR(200) NOT NULL COMMENT '接口报告名称' ,
`resource_id` VARCHAR(50) NOT NULL COMMENT '资源fk/api_definition_id/api_test_case_id' ,
`create_time` BIGINT NOT NULL COMMENT '创建时间' ,
`update_time` BIGINT NOT NULL COMMENT '修改时间' ,
`create_user` VARCHAR(50) NOT NULL COMMENT '创建人fk' ,
`id` VARCHAR(50) NOT NULL COMMENT '场景报告pk' ,
`name` VARCHAR(255) NOT NULL COMMENT '报告名称' ,
`resource_id` VARCHAR(50) NOT NULL COMMENT '场景资源fk/api_definition_id/api_test_case_id' ,
`create_user` VARCHAR(50) NOT NULL COMMENT '创建人' ,
`delete_time` BIGINT COMMENT '删除时间' ,
`delete_user` VARCHAR(50) COMMENT '删除人' ,
`deleted` BIT(1) NOT NULL DEFAULT 0 COMMENT '删除标识' ,
`update_user` VARCHAR(50) NOT NULL COMMENT '修改人' ,
`deleted` BIT(1) NOT NULL DEFAULT 0 COMMENT '删除状态' ,
`status` VARCHAR(50) NOT NULL DEFAULT 'Pending' COMMENT '结果状态' ,
`run_mode` VARCHAR(20) NOT NULL COMMENT '执行模块/API/CASE/API_PLAN' ,
`pool_id` VARCHAR(50) NOT NULL COMMENT '资源池fk' ,
`trigger_mode` VARCHAR(50) NOT NULL COMMENT '触发模式/手动/批量/定时任务/JENKINS' ,
`update_time` BIGINT NOT NULL COMMENT '更新时间' ,
`start_time` BIGINT NOT NULL COMMENT '开始时间/同创建时间一致' ,
`end_time` BIGINT NOT NULL COMMENT '结束时间/报告执行完成' ,
`request_duration` BIGINT NOT NULL COMMENT '请求总耗时' ,
`status` VARCHAR(20) NOT NULL DEFAULT 'Pending' COMMENT '报告状态/SUCCESS/ERROR' ,
`trigger_mode` VARCHAR(20) NOT NULL COMMENT '触发方式' ,
`run_mode` VARCHAR(20) NOT NULL COMMENT '执行模式' ,
`pool_id` VARCHAR(50) NOT NULL COMMENT '资源池' ,
`version_id` VARCHAR(50) COMMENT '版本fk' ,
`integrated` BIT(1) NOT NULL DEFAULT 0 COMMENT '是否是集成报告' ,
`project_id` VARCHAR(50) NOT NULL COMMENT '项目fk' ,
`integrated` BIT(1) NOT NULL DEFAULT 0 COMMENT '是否为集成报告,默认否' ,
`environment_id` VARCHAR(50) COMMENT '环境id' ,
`environment_id` VARCHAR(50) COMMENT '环境' ,
`error_count` BIGINT NOT NULL DEFAULT 0 COMMENT '失败数' ,
`fake_error_count` BIGINT NOT NULL DEFAULT 0 COMMENT '误报数' ,
`pending_count` BIGINT NOT NULL DEFAULT 0 COMMENT '未执行数' ,
`success_count` BIGINT NOT NULL DEFAULT 0 COMMENT '成功数' ,
`assertion_count` BIGINT NOT NULL DEFAULT 0 COMMENT '总断言数' ,
`pass_assertions_count` BIGINT NOT NULL DEFAULT 0 COMMENT '失败断言数' ,
`request_execution_rate` BIGINT NOT NULL DEFAULT 0 COMMENT '请求执行率' ,
`request_approval_rate` BIGINT NOT NULL DEFAULT 0 COMMENT '请求通过率' ,
`assertion_pass_rate` BIGINT NOT NULL DEFAULT 0 COMMENT '断言通过率' ,
`script_identifier` VARCHAR(255) COMMENT '脚本标识' ,
PRIMARY KEY (id)
)
ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci COMMENT = 'API/CASE执行结果';
CREATE INDEX idx_integrated ON api_report(integrated);
CREATE INDEX idx_update_time ON api_report(update_time);
CREATE INDEX idx_project_id ON api_report(project_id);
CREATE INDEX idx_resource_id ON api_report(resource_id);
CREATE INDEX idx_trigger_mode ON api_report(trigger_mode);
CREATE INDEX idx_run_mode ON api_report(run_mode);
CREATE INDEX idx_status ON api_report(status);
CREATE INDEX idx_update_time ON api_report(update_time);
CREATE INDEX idx_create_user ON api_report(create_user);
CREATE INDEX idx_name ON api_report(name);
CREATE INDEX idx_pool_id ON api_report(pool_id);
CREATE TABLE IF NOT EXISTS api_report_detail(
`id` VARCHAR(50) NOT NULL COMMENT '报告详情id' ,
`report_id` VARCHAR(50) NOT NULL COMMENT '接口报告id' ,
`resource_id` VARCHAR(50) NOT NULL COMMENT '场景中各个步骤请求唯一标识' ,
`start_time` BIGINT NOT NULL COMMENT '开始时间' ,
`status` VARCHAR(20) NOT NULL COMMENT '结果状态' ,
`request_time` BIGINT COMMENT '单个请求步骤时间' ,
`assertions_total` BIGINT COMMENT '总断言数' ,
`pass_assertions_total` BIGINT COMMENT '失败断言数' ,
`fake_code` VARCHAR(200) COMMENT '误报编号' ,
`fake_code` VARCHAR(200) COMMENT '误报编号/误报状态独有' ,
`request_name` VARCHAR(500) COMMENT '请求名称' ,
`project_id` VARCHAR(50) COMMENT '项目fk' ,
`error_total` INT COMMENT '失败总数' ,
`request_time` BIGINT NOT NULL COMMENT '请求耗时' ,
`code` VARCHAR(500) COMMENT '请求响应码' ,
`response_size` BIGINT NOT NULL COMMENT '响应内容大小' ,
`content` LONGBLOB COMMENT '结果内容详情' ,
`script_identifier` VARCHAR(255) COMMENT '脚本标识' ,
PRIMARY KEY (id)
)
ENGINE = InnoDB
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci COMMENT = 'API/CASE执行结果详情';
@ -202,11 +215,11 @@ CREATE TABLE IF NOT EXISTS api_scenario(
`num` BIGINT NOT NULL COMMENT '编号' ,
`deleted` BIT(1) NOT NULL DEFAULT 0 COMMENT '删除状态' ,
`pos` BIGINT NOT NULL COMMENT '自定义排序' ,
`version_id` VARCHAR(50) COMMENT '版本fk' ,
`ref_id` VARCHAR(50) COMMENT '引用资源fk' ,
`latest` BIT(1) DEFAULT 0 COMMENT '是否为最新版本 0:否1:是' ,
`version_id` VARCHAR(50) NOT NULL COMMENT '版本fk' ,
`ref_id` VARCHAR(50) NOT NULL COMMENT '引用资源fk' ,
`latest` BIT(1) NOT NULL DEFAULT 0 COMMENT '是否为最新版本 0:否1:是' ,
`project_id` VARCHAR(50) NOT NULL COMMENT '项目fk' ,
`module_id` VARCHAR(50) COMMENT '场景模块fk' ,
`module_id` VARCHAR(50) NOT NULL COMMENT '场景模块fk' ,
`description` VARCHAR(500) COMMENT '描述信息' ,
`tags` VARCHAR(1000) COMMENT '标签' ,
`grouped` BIT(1) NOT NULL DEFAULT 0 COMMENT '是否为环境组' ,
@ -217,11 +230,10 @@ CREATE TABLE IF NOT EXISTS api_scenario(
`update_user` VARCHAR(50) NOT NULL COMMENT '更新人' ,
`update_time` BIGINT NOT NULL COMMENT '更新时间' ,
PRIMARY KEY (id)
) ENGINE = InnoDB
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci COMMENT = '场景';
CREATE INDEX idx_module_id ON api_scenario(module_id);
CREATE INDEX idx_ref_id ON api_scenario(ref_id);
CREATE INDEX idx_version_id ON api_scenario(version_id);
@ -303,14 +315,16 @@ CREATE UNIQUE INDEX uq_name_project_parent_type ON api_scenario_module (project_
CREATE TABLE IF NOT EXISTS api_scenario_report(
`id` VARCHAR(50) NOT NULL COMMENT '场景报告pk' ,
`name` VARCHAR(255) NOT NULL COMMENT '报告名称' ,
`create_time` BIGINT NOT NULL COMMENT '创建时间' ,
`scenario_id` VARCHAR(50) NOT NULL COMMENT '场景fk' ,
`create_user` VARCHAR(50) NOT NULL COMMENT '创建人' ,
`delete_time` BIGINT COMMENT '删除时间' ,
`delete_user` VARCHAR(50) COMMENT '删除人' ,
`deleted` BIT(1) NOT NULL DEFAULT 0 COMMENT '删除标识' ,
`update_user` VARCHAR(50) NOT NULL COMMENT '修改人' ,
`update_time` BIGINT NOT NULL COMMENT '更新时间' ,
`pass_rate` BIGINT COMMENT '通过率' ,
`start_time` BIGINT NOT NULL COMMENT '开始时间/同创建时间一致' ,
`end_time` BIGINT NOT NULL COMMENT '结束时间/报告执行完成' ,
`request_duration` BIGINT NOT NULL COMMENT '请求总耗时' ,
`status` VARCHAR(20) NOT NULL DEFAULT 'Pending' COMMENT '报告状态/SUCCESS/ERROR' ,
`trigger_mode` VARCHAR(20) NOT NULL COMMENT '触发方式' ,
`run_mode` VARCHAR(20) NOT NULL COMMENT '执行模式' ,
@ -318,8 +332,17 @@ CREATE TABLE IF NOT EXISTS api_scenario_report(
`version_id` VARCHAR(50) COMMENT '版本fk' ,
`integrated` BIT(1) NOT NULL DEFAULT 0 COMMENT '是否是集成报告' ,
`project_id` VARCHAR(50) NOT NULL COMMENT '项目fk' ,
`scenario_id` VARCHAR(50) NOT NULL COMMENT '场景fk' ,
`environment_id` VARCHAR(50) COMMENT '环境' ,
`error_count` BIGINT NOT NULL DEFAULT 0 COMMENT '失败数' ,
`fake_error_count` BIGINT NOT NULL DEFAULT 0 COMMENT '误报数' ,
`pending_count` BIGINT NOT NULL DEFAULT 0 COMMENT '未执行数' ,
`success_count` BIGINT NOT NULL DEFAULT 0 COMMENT '成功数' ,
`assertion_count` BIGINT NOT NULL DEFAULT 0 COMMENT '总断言数' ,
`pass_assertions_count` BIGINT NOT NULL DEFAULT 0 COMMENT '失败断言数' ,
`request_execution_rate` BIGINT NOT NULL DEFAULT 0 COMMENT '请求执行率' ,
`request_approval_rate` BIGINT NOT NULL DEFAULT 0 COMMENT '请求通过率' ,
`assertion_pass_rate` BIGINT NOT NULL DEFAULT 0 COMMENT '断言通过率' ,
`script_identifier` VARCHAR(255) COMMENT '脚本标识' ,
PRIMARY KEY (id)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
@ -338,27 +361,22 @@ CREATE INDEX idx_pool_id ON api_scenario_report(pool_id);
CREATE TABLE IF NOT EXISTS api_scenario_report_detail(
`id` VARCHAR(50) NOT NULL COMMENT 'ID' ,
`report_id` VARCHAR(50) NOT NULL COMMENT '报告fk' ,
`resource_id` VARCHAR(50) NOT NULL COMMENT '场景中各个步骤请求唯一标识' ,
`start_time` BIGINT COMMENT '开始时间' ,
`report_step_id` VARCHAR(50) NOT NULL COMMENT '场景中各个步骤请求唯一标识' ,
`status` VARCHAR(20) COMMENT '结果状态' ,
`request_time` BIGINT COMMENT '单个请求步骤时间' ,
`assertions_total` BIGINT COMMENT '总断言数' ,
`pass_assertions_total` BIGINT COMMENT '失败断言数' ,
`fake_code` VARCHAR(200) COMMENT '误报编号' ,
`fake_code` VARCHAR(200) COMMENT '误报编号/误报状态独有' ,
`request_name` VARCHAR(500) COMMENT '请求名称' ,
`project_id` VARCHAR(50) COMMENT '项目fk' ,
`error_total` INT COMMENT '失败总数' ,
`request_time` BIGINT NOT NULL COMMENT '请求耗时' ,
`code` VARCHAR(500) COMMENT '请求响应码' ,
`response_size` BIGINT NOT NULL COMMENT '响应内容大小' ,
`script_identifier` VARCHAR(255) COMMENT '脚本标识' ,
`content` LONGBLOB COMMENT '执行结果' ,
PRIMARY KEY (id)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci COMMENT = '场景报告步骤结果';
CREATE INDEX idx_report_id ON api_scenario_report_detail(report_id);
CREATE INDEX idx_resource_id ON api_scenario_report_detail(resource_id);
CREATE INDEX idx_project_id ON api_scenario_report_detail(project_id);
CREATE INDEX idx_resource_id ON api_scenario_report_detail(report_step_id);
CREATE TABLE IF NOT EXISTS api_scenario_report_step(
`report_id` VARCHAR(50) NOT NULL COMMENT '请求资源 id' ,
@ -513,15 +531,6 @@ CREATE TABLE IF NOT EXISTS api_definition_blob(
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci COMMENT = '接口定义详情内容';
CREATE TABLE IF NOT EXISTS api_report_blob(
`id` VARCHAR(50) NOT NULL COMMENT '接口报告fk' ,
`content` LONGBLOB COMMENT '结果内容详情' ,
`environment_id` VARCHAR(50) COMMENT '执行环境配置' ,
`console` BLOB COMMENT '执行过程日志' ,
PRIMARY KEY (id)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci COMMENT = 'API/CASE执行结果详情';
CREATE TABLE IF NOT EXISTS api_scenario_blob(
`id` VARCHAR(50) NOT NULL COMMENT '场景pk' ,

View File

@ -14,4 +14,7 @@ import java.util.List;
@Mapper
public interface ExtApiDebugMapper {
List<ApiDebugSimpleDTO> list(@Param("protocol") String protocol, @Param("userId") String userId);
Long getPos(@Param("userId") String userId);
}

View File

@ -9,4 +9,12 @@
where protocol = #{protocol} and create_user = #{userId}
ORDER BY pos
</select>
<select id="getPos" resultType="java.lang.Long">
SELECT pos
FROM api_debug
WHERE create_user = #{userId}
ORDER BY pos DESC
LIMIT 1;
</select>
</mapper>

View File

@ -50,6 +50,8 @@ public class ApiDebugService {
@Resource
private ApiExecuteService apiExecuteService;
public static final Long ORDER_STEP = 5000L;
public List<ApiDebugSimpleDTO> list(String protocol, String userId) {
return extApiDebugMapper.list(protocol, userId);
}
@ -75,6 +77,8 @@ public class ApiDebugService {
apiDebug.setCreateTime(System.currentTimeMillis());
apiDebug.setUpdateTime(System.currentTimeMillis());
apiDebug.setUpdateUser(apiDebug.getCreateUser());
apiDebug.setPos(getNextOrder(request.getProjectId()));
apiDebugMapper.insert(apiDebug);
// todo 校验 moduleId
ApiDebugBlob apiDebugBlob = new ApiDebugBlob();
@ -90,6 +94,11 @@ public class ApiDebugService {
return apiDebug;
}
private Long getNextOrder(String projectId) {
Long pos = extApiDebugMapper.getPos(projectId);
return (pos == null ? 0 : pos) + ORDER_STEP;
}
private static ApiFileResourceUpdateRequest getApiFileResourceUpdateRequest(String sourceId, String projectId, String operator) {
String apiDebugDir = DefaultRepositoryDir.getApiDebugDir(projectId, sourceId);
ApiFileResourceUpdateRequest resourceUpdateRequest = new ApiFileResourceUpdateRequest();

View File

@ -79,7 +79,6 @@
<table tableName="api_definition_mock_config"/>
<table tableName="api_definition_module"/>
<table tableName="api_definition_swagger"/>
<table tableName="api_environment_config"/>
<table tableName="api_report"/>
<table tableName="api_report_detail"/>
<table tableName="api_report_log"/>

View File

@ -22,16 +22,6 @@ INSERT INTO `api_test_case` (`id`, `name`, `priority`, `num`, `tags`, `status`,
INSERT INTO `api_test_case` (`id`, `name`, `priority`, `num`, `tags`, `status`, `last_report_status`, `last_report_id`, `pos`, `project_id`, `api_definition_id`, `version_id`, `environment_id`, `create_time`, `create_user`, `update_time`, `update_user`, `delete_time`, `delete_user`, `deleted`) VALUES ('3ee2ae9c-a680-4ed6-b115-1f6ab8980104', '查询Linux主机5', 'P0', 100002008, NULL, 'PENDING', NULL, '10008', 10000, '100001100001', '1005', '100570499574136985', 'admin', 1699500298164, 'admin', 1699500298164, 'admin', NULL, NULL, b'0');
INSERT INTO `api_test_case` (`id`, `name`, `priority`, `num`, `tags`, `status`, `last_report_status`, `last_report_id`, `pos`, `project_id`, `api_definition_id`, `version_id`, `environment_id`, `create_time`, `create_user`, `update_time`, `update_user`, `delete_time`, `delete_user`, `deleted`) VALUES ('3ee2ae9c-a680-4ed6-b115-1f6ab8980545', '查询Linux主机6', 'P0', 100002009, NULL, 'PENDING', NULL, NULL, 10000, '100001100001', '1005', '100570499574136985', 'admin', 1699500298164, 'admin', 1699500298164, 'admin', NULL, NULL, b'0');
DELETE FROM `api_report` WHERE `id` in ('10001','10002','10003','10004','10005','10006','10007','10008');
INSERT INTO `api_report` (`id`, `name`, `resource_id`, `create_time`, `update_time`, `create_user`, `update_user`, `deleted`, `status`, `run_mode`, `pool_id`, `trigger_mode`, `version_id`, `project_id`, `integrated`) VALUES ('10001', '报告001', 'resource_id_10001', 1680624405386, 1680624405386, 'admin', 'admin', b'0', 'SUCCESS', 'API', 'pol_id_100001', 'hand', NULL, '100001100001', b'0');
INSERT INTO `api_report` (`id`, `name`, `resource_id`, `create_time`, `update_time`, `create_user`, `update_user`, `deleted`, `status`, `run_mode`, `pool_id`, `trigger_mode`, `version_id`, `project_id`, `integrated`) VALUES ('10002', '报告002', 'resource_id_10001', 1680624405386, 1680624405386, 'admin', 'admin', b'0', 'ERROR', 'API', 'pol_id_100001', 'hand', NULL, '100001100001', b'0');
INSERT INTO `api_report` (`id`, `name`, `resource_id`, `create_time`, `update_time`, `create_user`, `update_user`, `deleted`, `status`, `run_mode`, `pool_id`, `trigger_mode`, `version_id`, `project_id`, `integrated`) VALUES ('10003', '报告003', 'resource_id_10001', 1680624405386, 1680624405386, 'admin', 'admin', b'0', 'FAKE_ERROR', 'API', 'pol_id_100001', 'hand', NULL, '100001100001', b'0');
INSERT INTO `api_report` (`id`, `name`, `resource_id`, `create_time`, `update_time`, `create_user`, `update_user`, `deleted`, `status`, `run_mode`, `pool_id`, `trigger_mode`, `version_id`, `project_id`, `integrated`) VALUES ('10004', '报告004', 'resource_id_10001', 1680624405386, 1680624405386, 'admin', 'admin', b'0', 'SUCCESS', 'API', 'pol_id_100001', 'hand', NULL, '100001100001', b'0');
INSERT INTO `api_report` (`id`, `name`, `resource_id`, `create_time`, `update_time`, `create_user`, `update_user`, `deleted`, `status`, `run_mode`, `pool_id`, `trigger_mode`, `version_id`, `project_id`, `integrated`) VALUES ('10005', '报告005', 'resource_id_10001', 1680624405386, 1680624405386, 'admin', 'admin', b'0', 'ERROR', 'API', 'pol_id_100001', 'hand', NULL, '100001100001', b'0');
INSERT INTO `api_report` (`id`, `name`, `resource_id`, `create_time`, `update_time`, `create_user`, `update_user`, `deleted`, `status`, `run_mode`, `pool_id`, `trigger_mode`, `version_id`, `project_id`, `integrated`) VALUES ('10006', '报告006', 'resource_id_10001', 1680624405386, 1680624405386, 'admin', 'admin', b'0', 'SUCCESS', 'API', 'pol_id_100001', 'hand', NULL, '100001100001', b'0');
INSERT INTO `api_report` (`id`, `name`, `resource_id`, `create_time`, `update_time`, `create_user`, `update_user`, `deleted`, `status`, `run_mode`, `pool_id`, `trigger_mode`, `version_id`, `project_id`, `integrated`) VALUES ('10007', '报告004', 'resource_id_10001', 1680624405386, 1680624405386, 'admin', 'admin', b'0', 'SUCCESS', 'API', 'pol_id_100001', 'hand', NULL, '100001100001', b'0');
INSERT INTO `api_report` (`id`, `name`, `resource_id`, `create_time`, `update_time`, `create_user`, `update_user`, `deleted`, `status`, `run_mode`, `pool_id`, `trigger_mode`, `version_id`, `project_id`, `integrated`) VALUES ('10008', '报告005', 'resource_id_10001', 1680624405386, 1680624405386, 'admin', 'admin', b'0', 'ERROR', 'API', 'pol_id_100001', 'hand', NULL, '100001100001', b'0');
DELETE FROM `api_definition_module` WHERE `id` in ('10001', 'case-moduleId');
INSERT INTO `api_definition_module` (`id`, `name`, `parent_id`, `project_id`, `pos`, `create_time`, `update_time`, `update_user`, `create_user`) VALUES ('10001', 'module1', 'NONE', '100001100001', 10, 0, 0, 'admin', 'admin');
INSERT INTO `api_definition_module` (`id`, `name`, `parent_id`, `project_id`, `pos`, `create_time`, `update_time`, `update_user`, `create_user`) VALUES ('case-moduleId', 'case-moduleId', 'NONE', '100001100001', 10, 0, 0, 'admin', 'admin');