Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
fff67b45
M
metersphere
项目概览
MeterSphere
/
metersphere
上一次同步 3 年多
通知
25
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
metersphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fff67b45
编写于
6月 24, 2020
作者:
C
chenjianxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
测试报告添加 trigger_mode 字段
上级
fdfac7f0
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
276 addition
and
94 deletion
+276
-94
backend/src/main/java/io/metersphere/base/domain/ApiTestReport.java
...c/main/java/io/metersphere/base/domain/ApiTestReport.java
+2
-0
backend/src/main/java/io/metersphere/base/domain/ApiTestReportExample.java
...java/io/metersphere/base/domain/ApiTestReportExample.java
+98
-28
backend/src/main/java/io/metersphere/base/domain/LoadTestReport.java
.../main/java/io/metersphere/base/domain/LoadTestReport.java
+2
-0
backend/src/main/java/io/metersphere/base/domain/LoadTestReportExample.java
...ava/io/metersphere/base/domain/LoadTestReportExample.java
+98
-28
backend/src/main/java/io/metersphere/base/mapper/ApiTestReportMapper.xml
...n/java/io/metersphere/base/mapper/ApiTestReportMapper.xml
+33
-16
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportMapper.xml
.../java/io/metersphere/base/mapper/LoadTestReportMapper.xml
+40
-21
backend/src/main/resources/db/migration/V5__schedule.sql
backend/src/main/resources/db/migration/V5__schedule.sql
+3
-1
未找到文件。
backend/src/main/java/io/metersphere/base/domain/ApiTestReport.java
浏览文件 @
fff67b45
...
...
@@ -21,5 +21,7 @@ public class ApiTestReport implements Serializable {
private
String
userId
;
private
String
triggerMode
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
backend/src/main/java/io/metersphere/base/domain/ApiTestReportExample.java
浏览文件 @
fff67b45
...
...
@@ -245,72 +245,72 @@ public class ApiTestReportExample {
}
public
Criteria
andNameIsNull
()
{
addCriterion
(
"
name
is null"
);
addCriterion
(
"
`name`
is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIsNotNull
()
{
addCriterion
(
"
name
is not null"
);
addCriterion
(
"
`name`
is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameEqualTo
(
String
value
)
{
addCriterion
(
"
name
="
,
value
,
"name"
);
addCriterion
(
"
`name`
="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotEqualTo
(
String
value
)
{
addCriterion
(
"
name
<>"
,
value
,
"name"
);
addCriterion
(
"
`name`
<>"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameGreaterThan
(
String
value
)
{
addCriterion
(
"
name
>"
,
value
,
"name"
);
addCriterion
(
"
`name`
>"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
name
>="
,
value
,
"name"
);
addCriterion
(
"
`name`
>="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLessThan
(
String
value
)
{
addCriterion
(
"
name
<"
,
value
,
"name"
);
addCriterion
(
"
`name`
<"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
name
<="
,
value
,
"name"
);
addCriterion
(
"
`name`
<="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLike
(
String
value
)
{
addCriterion
(
"
name
like"
,
value
,
"name"
);
addCriterion
(
"
`name`
like"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotLike
(
String
value
)
{
addCriterion
(
"
name
not like"
,
value
,
"name"
);
addCriterion
(
"
`name`
not like"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIn
(
List
<
String
>
values
)
{
addCriterion
(
"
name
in"
,
values
,
"name"
);
addCriterion
(
"
`name`
in"
,
values
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"
name
not in"
,
values
,
"name"
);
addCriterion
(
"
`name`
not in"
,
values
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"
name
between"
,
value1
,
value2
,
"name"
);
addCriterion
(
"
`name`
between"
,
value1
,
value2
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"
name
not between"
,
value1
,
value2
,
"name"
);
addCriterion
(
"
`name`
not between"
,
value1
,
value2
,
"name"
);
return
(
Criteria
)
this
;
}
...
...
@@ -505,72 +505,72 @@ public class ApiTestReportExample {
}
public
Criteria
andStatusIsNull
()
{
addCriterion
(
"
status
is null"
);
addCriterion
(
"
`status`
is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIsNotNull
()
{
addCriterion
(
"
status
is not null"
);
addCriterion
(
"
`status`
is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusEqualTo
(
String
value
)
{
addCriterion
(
"
status
="
,
value
,
"status"
);
addCriterion
(
"
`status`
="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotEqualTo
(
String
value
)
{
addCriterion
(
"
status
<>"
,
value
,
"status"
);
addCriterion
(
"
`status`
<>"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusGreaterThan
(
String
value
)
{
addCriterion
(
"
status
>"
,
value
,
"status"
);
addCriterion
(
"
`status`
>"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
status
>="
,
value
,
"status"
);
addCriterion
(
"
`status`
>="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLessThan
(
String
value
)
{
addCriterion
(
"
status
<"
,
value
,
"status"
);
addCriterion
(
"
`status`
<"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
status
<="
,
value
,
"status"
);
addCriterion
(
"
`status`
<="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLike
(
String
value
)
{
addCriterion
(
"
status
like"
,
value
,
"status"
);
addCriterion
(
"
`status`
like"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotLike
(
String
value
)
{
addCriterion
(
"
status
not like"
,
value
,
"status"
);
addCriterion
(
"
`status`
not like"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIn
(
List
<
String
>
values
)
{
addCriterion
(
"
status
in"
,
values
,
"status"
);
addCriterion
(
"
`status`
in"
,
values
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"
status
not in"
,
values
,
"status"
);
addCriterion
(
"
`status`
not in"
,
values
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"
status
between"
,
value1
,
value2
,
"status"
);
addCriterion
(
"
`status`
between"
,
value1
,
value2
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"
status
not between"
,
value1
,
value2
,
"status"
);
addCriterion
(
"
`status`
not between"
,
value1
,
value2
,
"status"
);
return
(
Criteria
)
this
;
}
...
...
@@ -643,6 +643,76 @@ public class ApiTestReportExample {
addCriterion
(
"user_id not between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeIsNull
()
{
addCriterion
(
"trigger_mode is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeIsNotNull
()
{
addCriterion
(
"trigger_mode is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeEqualTo
(
String
value
)
{
addCriterion
(
"trigger_mode ="
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeNotEqualTo
(
String
value
)
{
addCriterion
(
"trigger_mode <>"
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeGreaterThan
(
String
value
)
{
addCriterion
(
"trigger_mode >"
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"trigger_mode >="
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeLessThan
(
String
value
)
{
addCriterion
(
"trigger_mode <"
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"trigger_mode <="
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeLike
(
String
value
)
{
addCriterion
(
"trigger_mode like"
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeNotLike
(
String
value
)
{
addCriterion
(
"trigger_mode not like"
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeIn
(
List
<
String
>
values
)
{
addCriterion
(
"trigger_mode in"
,
values
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"trigger_mode not in"
,
values
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"trigger_mode between"
,
value1
,
value2
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"trigger_mode not between"
,
value1
,
value2
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
backend/src/main/java/io/metersphere/base/domain/LoadTestReport.java
浏览文件 @
fff67b45
...
...
@@ -19,6 +19,8 @@ public class LoadTestReport implements Serializable {
private
String
userId
;
private
String
triggerMode
;
private
String
description
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
backend/src/main/java/io/metersphere/base/domain/LoadTestReportExample.java
浏览文件 @
fff67b45
...
...
@@ -245,72 +245,72 @@ public class LoadTestReportExample {
}
public
Criteria
andNameIsNull
()
{
addCriterion
(
"
name
is null"
);
addCriterion
(
"
`name`
is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIsNotNull
()
{
addCriterion
(
"
name
is not null"
);
addCriterion
(
"
`name`
is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameEqualTo
(
String
value
)
{
addCriterion
(
"
name
="
,
value
,
"name"
);
addCriterion
(
"
`name`
="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotEqualTo
(
String
value
)
{
addCriterion
(
"
name
<>"
,
value
,
"name"
);
addCriterion
(
"
`name`
<>"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameGreaterThan
(
String
value
)
{
addCriterion
(
"
name
>"
,
value
,
"name"
);
addCriterion
(
"
`name`
>"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
name
>="
,
value
,
"name"
);
addCriterion
(
"
`name`
>="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLessThan
(
String
value
)
{
addCriterion
(
"
name
<"
,
value
,
"name"
);
addCriterion
(
"
`name`
<"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
name
<="
,
value
,
"name"
);
addCriterion
(
"
`name`
<="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameLike
(
String
value
)
{
addCriterion
(
"
name
like"
,
value
,
"name"
);
addCriterion
(
"
`name`
like"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotLike
(
String
value
)
{
addCriterion
(
"
name
not like"
,
value
,
"name"
);
addCriterion
(
"
`name`
not like"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIn
(
List
<
String
>
values
)
{
addCriterion
(
"
name
in"
,
values
,
"name"
);
addCriterion
(
"
`name`
in"
,
values
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"
name
not in"
,
values
,
"name"
);
addCriterion
(
"
`name`
not in"
,
values
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"
name
between"
,
value1
,
value2
,
"name"
);
addCriterion
(
"
`name`
between"
,
value1
,
value2
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"
name
not between"
,
value1
,
value2
,
"name"
);
addCriterion
(
"
`name`
not between"
,
value1
,
value2
,
"name"
);
return
(
Criteria
)
this
;
}
...
...
@@ -435,72 +435,72 @@ public class LoadTestReportExample {
}
public
Criteria
andStatusIsNull
()
{
addCriterion
(
"
status
is null"
);
addCriterion
(
"
`status`
is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIsNotNull
()
{
addCriterion
(
"
status
is not null"
);
addCriterion
(
"
`status`
is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusEqualTo
(
String
value
)
{
addCriterion
(
"
status
="
,
value
,
"status"
);
addCriterion
(
"
`status`
="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotEqualTo
(
String
value
)
{
addCriterion
(
"
status
<>"
,
value
,
"status"
);
addCriterion
(
"
`status`
<>"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusGreaterThan
(
String
value
)
{
addCriterion
(
"
status
>"
,
value
,
"status"
);
addCriterion
(
"
`status`
>"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
status
>="
,
value
,
"status"
);
addCriterion
(
"
`status`
>="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLessThan
(
String
value
)
{
addCriterion
(
"
status
<"
,
value
,
"status"
);
addCriterion
(
"
`status`
<"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"
status
<="
,
value
,
"status"
);
addCriterion
(
"
`status`
<="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLike
(
String
value
)
{
addCriterion
(
"
status
like"
,
value
,
"status"
);
addCriterion
(
"
`status`
like"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotLike
(
String
value
)
{
addCriterion
(
"
status
not like"
,
value
,
"status"
);
addCriterion
(
"
`status`
not like"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIn
(
List
<
String
>
values
)
{
addCriterion
(
"
status
in"
,
values
,
"status"
);
addCriterion
(
"
`status`
in"
,
values
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"
status
not in"
,
values
,
"status"
);
addCriterion
(
"
`status`
not in"
,
values
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"
status
between"
,
value1
,
value2
,
"status"
);
addCriterion
(
"
`status`
between"
,
value1
,
value2
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"
status
not between"
,
value1
,
value2
,
"status"
);
addCriterion
(
"
`status`
not between"
,
value1
,
value2
,
"status"
);
return
(
Criteria
)
this
;
}
...
...
@@ -573,6 +573,76 @@ public class LoadTestReportExample {
addCriterion
(
"user_id not between"
,
value1
,
value2
,
"userId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeIsNull
()
{
addCriterion
(
"trigger_mode is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeIsNotNull
()
{
addCriterion
(
"trigger_mode is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeEqualTo
(
String
value
)
{
addCriterion
(
"trigger_mode ="
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeNotEqualTo
(
String
value
)
{
addCriterion
(
"trigger_mode <>"
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeGreaterThan
(
String
value
)
{
addCriterion
(
"trigger_mode >"
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"trigger_mode >="
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeLessThan
(
String
value
)
{
addCriterion
(
"trigger_mode <"
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"trigger_mode <="
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeLike
(
String
value
)
{
addCriterion
(
"trigger_mode like"
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeNotLike
(
String
value
)
{
addCriterion
(
"trigger_mode not like"
,
value
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeIn
(
List
<
String
>
values
)
{
addCriterion
(
"trigger_mode in"
,
values
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"trigger_mode not in"
,
values
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"trigger_mode between"
,
value1
,
value2
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTriggerModeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"trigger_mode not between"
,
value1
,
value2
,
"triggerMode"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
backend/src/main/java/io/metersphere/base/mapper/ApiTestReportMapper.xml
浏览文件 @
fff67b45
...
...
@@ -10,6 +10,7 @@
<result
column=
"update_time"
jdbcType=
"BIGINT"
property=
"updateTime"
/>
<result
column=
"status"
jdbcType=
"VARCHAR"
property=
"status"
/>
<result
column=
"user_id"
jdbcType=
"VARCHAR"
property=
"userId"
/>
<result
column=
"trigger_mode"
jdbcType=
"VARCHAR"
property=
"triggerMode"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
...
...
@@ -70,7 +71,7 @@
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, test_id,
name, description, create_time, update_time, status, user_id
id, test_id,
`name`, description, create_time, update_time, `status`, user_id, trigger_mode
</sql>
<select
id=
"selectByExample"
parameterType=
"io.metersphere.base.domain.ApiTestReportExample"
resultMap=
"BaseResultMap"
>
select
...
...
@@ -103,12 +104,14 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"io.metersphere.base.domain.ApiTestReport"
>
insert into api_test_report (id, test_id,
name
,
insert into api_test_report (id, test_id,
`name`
,
description, create_time, update_time,
status, user_id)
`status`, user_id, trigger_mode
)
values (#{id,jdbcType=VARCHAR}, #{testId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT},
#{status,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR})
#{status,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{triggerMode,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"io.metersphere.base.domain.ApiTestReport"
>
insert into api_test_report
...
...
@@ -120,7 +123,7 @@
test_id,
</if>
<if
test=
"name != null"
>
name
,
`name`
,
</if>
<if
test=
"description != null"
>
description,
...
...
@@ -132,11 +135,14 @@
update_time,
</if>
<if
test=
"status != null"
>
status
,
`status`
,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"triggerMode != null"
>
trigger_mode,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
...
...
@@ -163,6 +169,9 @@
<if
test=
"userId != null"
>
#{userId,jdbcType=VARCHAR},
</if>
<if
test=
"triggerMode != null"
>
#{triggerMode,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"io.metersphere.base.domain.ApiTestReportExample"
resultType=
"java.lang.Long"
>
...
...
@@ -181,7 +190,7 @@
test_id = #{record.testId,jdbcType=VARCHAR},
</if>
<if
test=
"record.name != null"
>
name
= #{record.name,jdbcType=VARCHAR},
`name`
= #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.description != null"
>
description = #{record.description,jdbcType=VARCHAR},
...
...
@@ -193,11 +202,14 @@
update_time = #{record.updateTime,jdbcType=BIGINT},
</if>
<if
test=
"record.status != null"
>
status
= #{record.status,jdbcType=VARCHAR},
`status`
= #{record.status,jdbcType=VARCHAR},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if
test=
"record.triggerMode != null"
>
trigger_mode = #{record.triggerMode,jdbcType=VARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
...
@@ -207,12 +219,13 @@
update api_test_report
set id = #{record.id,jdbcType=VARCHAR},
test_id = #{record.testId,jdbcType=VARCHAR},
name
= #{record.name,jdbcType=VARCHAR},
`name`
= #{record.name,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=BIGINT},
status = #{record.status,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR}
`status` = #{record.status,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
trigger_mode = #{record.triggerMode,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -224,7 +237,7 @@
test_id = #{testId,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
name
= #{name,jdbcType=VARCHAR},
`name`
= #{name,jdbcType=VARCHAR},
</if>
<if
test=
"description != null"
>
description = #{description,jdbcType=VARCHAR},
...
...
@@ -236,23 +249,27 @@
update_time = #{updateTime,jdbcType=BIGINT},
</if>
<if
test=
"status != null"
>
status
= #{status,jdbcType=VARCHAR},
`status`
= #{status,jdbcType=VARCHAR},
</if>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if
test=
"triggerMode != null"
>
trigger_mode = #{triggerMode,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"io.metersphere.base.domain.ApiTestReport"
>
update api_test_report
set test_id = #{testId,jdbcType=VARCHAR},
name
= #{name,jdbcType=VARCHAR},
`name`
= #{name,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=BIGINT},
status = #{status,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR}
`status` = #{status,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
trigger_mode = #{triggerMode,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportMapper.xml
浏览文件 @
fff67b45
...
...
@@ -9,6 +9,7 @@
<result
column=
"update_time"
jdbcType=
"BIGINT"
property=
"updateTime"
/>
<result
column=
"status"
jdbcType=
"VARCHAR"
property=
"status"
/>
<result
column=
"user_id"
jdbcType=
"VARCHAR"
property=
"userId"
/>
<result
column=
"trigger_mode"
jdbcType=
"VARCHAR"
property=
"triggerMode"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"io.metersphere.base.domain.LoadTestReport"
>
<result
column=
"description"
jdbcType=
"LONGVARCHAR"
property=
"description"
/>
...
...
@@ -72,7 +73,7 @@
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, test_id,
name, create_time, update_time, status, user_id
id, test_id,
`name`, create_time, update_time, `status`, user_id, trigger_mode
</sql>
<sql
id=
"Blob_Column_List"
>
description
...
...
@@ -126,12 +127,14 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"io.metersphere.base.domain.LoadTestReport"
>
insert into load_test_report (id, test_id, name,
create_time, update_time, status,
user_id, description)
insert into load_test_report (id, test_id, `name`,
create_time, update_time, `status`,
user_id, trigger_mode, description
)
values (#{id,jdbcType=VARCHAR}, #{testId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT}, #{status,jdbcType=VARCHAR},
#{userId,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR})
#{userId,jdbcType=VARCHAR}, #{triggerMode,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"io.metersphere.base.domain.LoadTestReport"
>
insert into load_test_report
...
...
@@ -143,7 +146,7 @@
test_id,
</if>
<if
test=
"name != null"
>
name
,
`name`
,
</if>
<if
test=
"createTime != null"
>
create_time,
...
...
@@ -152,11 +155,14 @@
update_time,
</if>
<if
test=
"status != null"
>
status
,
`status`
,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"triggerMode != null"
>
trigger_mode,
</if>
<if
test=
"description != null"
>
description,
</if>
...
...
@@ -183,6 +189,9 @@
<if
test=
"userId != null"
>
#{userId,jdbcType=VARCHAR},
</if>
<if
test=
"triggerMode != null"
>
#{triggerMode,jdbcType=VARCHAR},
</if>
<if
test=
"description != null"
>
#{description,jdbcType=LONGVARCHAR},
</if>
...
...
@@ -204,7 +213,7 @@
test_id = #{record.testId,jdbcType=VARCHAR},
</if>
<if
test=
"record.name != null"
>
name
= #{record.name,jdbcType=VARCHAR},
`name`
= #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=BIGINT},
...
...
@@ -213,11 +222,14 @@
update_time = #{record.updateTime,jdbcType=BIGINT},
</if>
<if
test=
"record.status != null"
>
status
= #{record.status,jdbcType=VARCHAR},
`status`
= #{record.status,jdbcType=VARCHAR},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if
test=
"record.triggerMode != null"
>
trigger_mode = #{record.triggerMode,jdbcType=VARCHAR},
</if>
<if
test=
"record.description != null"
>
description = #{record.description,jdbcType=LONGVARCHAR},
</if>
...
...
@@ -230,11 +242,12 @@
update load_test_report
set id = #{record.id,jdbcType=VARCHAR},
test_id = #{record.testId,jdbcType=VARCHAR},
name
= #{record.name,jdbcType=VARCHAR},
`name`
= #{record.name,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=BIGINT},
status
= #{record.status,jdbcType=VARCHAR},
`status`
= #{record.status,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
trigger_mode = #{record.triggerMode,jdbcType=VARCHAR},
description = #{record.description,jdbcType=LONGVARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
...
@@ -244,11 +257,12 @@
update load_test_report
set id = #{record.id,jdbcType=VARCHAR},
test_id = #{record.testId,jdbcType=VARCHAR},
name
= #{record.name,jdbcType=VARCHAR},
`name`
= #{record.name,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=BIGINT},
status = #{record.status,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR}
`status` = #{record.status,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
trigger_mode = #{record.triggerMode,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -260,7 +274,7 @@
test_id = #{testId,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
name
= #{name,jdbcType=VARCHAR},
`name`
= #{name,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=BIGINT},
...
...
@@ -269,11 +283,14 @@
update_time = #{updateTime,jdbcType=BIGINT},
</if>
<if
test=
"status != null"
>
status
= #{status,jdbcType=VARCHAR},
`status`
= #{status,jdbcType=VARCHAR},
</if>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if
test=
"triggerMode != null"
>
trigger_mode = #{triggerMode,jdbcType=VARCHAR},
</if>
<if
test=
"description != null"
>
description = #{description,jdbcType=LONGVARCHAR},
</if>
...
...
@@ -283,22 +300,24 @@
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"io.metersphere.base.domain.LoadTestReport"
>
update load_test_report
set test_id = #{testId,jdbcType=VARCHAR},
name
= #{name,jdbcType=VARCHAR},
`name`
= #{name,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=BIGINT},
status
= #{status,jdbcType=VARCHAR},
`status`
= #{status,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
trigger_mode = #{triggerMode,jdbcType=VARCHAR},
description = #{description,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"io.metersphere.base.domain.LoadTestReport"
>
update load_test_report
set test_id = #{testId,jdbcType=VARCHAR},
name
= #{name,jdbcType=VARCHAR},
`name`
= #{name,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=BIGINT},
status = #{status,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR}
`status` = #{status,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
trigger_mode = #{triggerMode,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
backend/src/main/resources/db/migration/V5__schedule.sql
浏览文件 @
fff67b45
...
...
@@ -14,4 +14,6 @@ CREATE TABLE IF NOT EXISTS `schedule` (
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
ALTER
TABLE
`api_test`
DROP
COLUMN
`schedule`
;
ALTER
TABLE
`load_test`
DROP
COLUMN
`schedule`
;
\ No newline at end of file
ALTER
TABLE
`load_test`
DROP
COLUMN
`schedule`
;
ALTER
TABLE
`api_test_report`
ADD
`trigger_mode`
varchar
(
64
)
NULL
;
ALTER
TABLE
`load_test_report`
ADD
`trigger_mode`
varchar
(
64
)
NULL
;
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录