Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
3d85293d
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,发现更多精彩内容 >>
提交
3d85293d
编写于
4月 24, 2020
作者:
C
Captain.B
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
去掉没用到的字段
上级
24be510b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
108 deletion
+9
-108
backend/src/main/java/io/metersphere/base/domain/LoadTest.java
...nd/src/main/java/io/metersphere/base/domain/LoadTest.java
+0
-10
backend/src/main/java/io/metersphere/base/domain/LoadTestExample.java
...main/java/io/metersphere/base/domain/LoadTestExample.java
+0
-70
backend/src/main/java/io/metersphere/base/mapper/LoadTestMapper.xml
...c/main/java/io/metersphere/base/mapper/LoadTestMapper.xml
+9
-27
backend/src/main/resources/db/migration/V2__metersphere_ddl.sql
...d/src/main/resources/db/migration/V2__metersphere_ddl.sql
+0
-1
未找到文件。
backend/src/main/java/io/metersphere/base/domain/LoadTest.java
浏览文件 @
3d85293d
...
@@ -11,8 +11,6 @@ public class LoadTest implements Serializable {
...
@@ -11,8 +11,6 @@ public class LoadTest implements Serializable {
private
String
description
;
private
String
description
;
private
String
scenarioDefinition
;
private
Long
createTime
;
private
Long
createTime
;
private
Long
updateTime
;
private
Long
updateTime
;
...
@@ -55,14 +53,6 @@ public class LoadTest implements Serializable {
...
@@ -55,14 +53,6 @@ public class LoadTest implements Serializable {
this
.
description
=
description
==
null
?
null
:
description
.
trim
();
this
.
description
=
description
==
null
?
null
:
description
.
trim
();
}
}
public
String
getScenarioDefinition
()
{
return
scenarioDefinition
;
}
public
void
setScenarioDefinition
(
String
scenarioDefinition
)
{
this
.
scenarioDefinition
=
scenarioDefinition
==
null
?
null
:
scenarioDefinition
.
trim
();
}
public
Long
getCreateTime
()
{
public
Long
getCreateTime
()
{
return
createTime
;
return
createTime
;
}
}
...
...
backend/src/main/java/io/metersphere/base/domain/LoadTestExample.java
浏览文件 @
3d85293d
...
@@ -384,76 +384,6 @@ public class LoadTestExample {
...
@@ -384,76 +384,6 @@ public class LoadTestExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andScenarioDefinitionIsNull
()
{
addCriterion
(
"scenario_definition is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionIsNotNull
()
{
addCriterion
(
"scenario_definition is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionEqualTo
(
String
value
)
{
addCriterion
(
"scenario_definition ="
,
value
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionNotEqualTo
(
String
value
)
{
addCriterion
(
"scenario_definition <>"
,
value
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionGreaterThan
(
String
value
)
{
addCriterion
(
"scenario_definition >"
,
value
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"scenario_definition >="
,
value
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionLessThan
(
String
value
)
{
addCriterion
(
"scenario_definition <"
,
value
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"scenario_definition <="
,
value
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionLike
(
String
value
)
{
addCriterion
(
"scenario_definition like"
,
value
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionNotLike
(
String
value
)
{
addCriterion
(
"scenario_definition not like"
,
value
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionIn
(
List
<
String
>
values
)
{
addCriterion
(
"scenario_definition in"
,
values
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"scenario_definition not in"
,
values
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"scenario_definition between"
,
value1
,
value2
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andScenarioDefinitionNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"scenario_definition not between"
,
value1
,
value2
,
"scenarioDefinition"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNull
()
{
public
Criteria
andCreateTimeIsNull
()
{
addCriterion
(
"create_time is null"
);
addCriterion
(
"create_time is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
...
backend/src/main/java/io/metersphere/base/mapper/LoadTestMapper.xml
浏览文件 @
3d85293d
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
<result
column=
"project_id"
jdbcType=
"VARCHAR"
property=
"projectId"
/>
<result
column=
"project_id"
jdbcType=
"VARCHAR"
property=
"projectId"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"description"
jdbcType=
"VARCHAR"
property=
"description"
/>
<result
column=
"description"
jdbcType=
"VARCHAR"
property=
"description"
/>
<result
column=
"scenario_definition"
jdbcType=
"VARCHAR"
property=
"scenarioDefinition"
/>
<result
column=
"create_time"
jdbcType=
"BIGINT"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"BIGINT"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"BIGINT"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"BIGINT"
property=
"updateTime"
/>
<result
column=
"status"
jdbcType=
"VARCHAR"
property=
"status"
/>
<result
column=
"status"
jdbcType=
"VARCHAR"
property=
"status"
/>
...
@@ -76,8 +75,7 @@
...
@@ -76,8 +75,7 @@
</where>
</where>
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, project_id, name, description, scenario_definition, create_time, update_time,
id, project_id, name, description, create_time, update_time, status, test_resource_pool_id
status, test_resource_pool_id
</sql>
</sql>
<sql
id=
"Blob_Column_List"
>
<sql
id=
"Blob_Column_List"
>
load_configuration, advanced_configuration, schedule
load_configuration, advanced_configuration, schedule
...
@@ -132,15 +130,15 @@
...
@@ -132,15 +130,15 @@
</delete>
</delete>
<insert
id=
"insert"
parameterType=
"io.metersphere.base.domain.LoadTestWithBLOBs"
>
<insert
id=
"insert"
parameterType=
"io.metersphere.base.domain.LoadTestWithBLOBs"
>
insert into load_test (id, project_id, name,
insert into load_test (id, project_id, name,
description,
scenario_definition, cre
ate_time,
description,
create_time, upd
ate_time,
update_time, status, test_resource_pool_id
,
status, test_resource_pool_id, load_configuration
,
load_configuration, advanced_configuration,
advanced_configuration, schedule
schedule
)
)
values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR}, #{
scenarioDefinition,jdbcType=VARCHAR}, #{cre
ateTime,jdbcType=BIGINT},
#{description,jdbcType=VARCHAR}, #{
createTime,jdbcType=BIGINT}, #{upd
ateTime,jdbcType=BIGINT},
#{
updateTime,jdbcType=BIGINT}, #{status,jdbcType=VARCHAR}, #{testResourcePoolId,jdbcType=
VARCHAR},
#{
status,jdbcType=VARCHAR}, #{testResourcePoolId,jdbcType=VARCHAR}, #{loadConfiguration,jdbcType=LONG
VARCHAR},
#{
loadConfiguration,jdbcType=LONGVARCHAR}, #{advancedConfiguration,jdbcType=LONGVARCHAR},
#{
advancedConfiguration,jdbcType=LONGVARCHAR}, #{schedule,jdbcType=LONGVARCHAR}
#{schedule,jdbcType=LONGVARCHAR}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"io.metersphere.base.domain.LoadTestWithBLOBs"
>
<insert
id=
"insertSelective"
parameterType=
"io.metersphere.base.domain.LoadTestWithBLOBs"
>
insert into load_test
insert into load_test
...
@@ -157,9 +155,6 @@
...
@@ -157,9 +155,6 @@
<if
test=
"description != null"
>
<if
test=
"description != null"
>
description,
description,
</if>
</if>
<if
test=
"scenarioDefinition != null"
>
scenario_definition,
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time,
create_time,
</if>
</if>
...
@@ -195,9 +190,6 @@
...
@@ -195,9 +190,6 @@
<if
test=
"description != null"
>
<if
test=
"description != null"
>
#{description,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"scenarioDefinition != null"
>
#{scenarioDefinition,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=BIGINT},
#{createTime,jdbcType=BIGINT},
</if>
</if>
...
@@ -242,9 +234,6 @@
...
@@ -242,9 +234,6 @@
<if
test=
"record.description != null"
>
<if
test=
"record.description != null"
>
description = #{record.description,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.scenarioDefinition != null"
>
scenario_definition = #{record.scenarioDefinition,jdbcType=VARCHAR},
</if>
<if
test=
"record.createTime != null"
>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=BIGINT},
</if>
</if>
...
@@ -277,7 +266,6 @@
...
@@ -277,7 +266,6 @@
project_id = #{record.projectId,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
scenario_definition = #{record.scenarioDefinition,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=BIGINT},
status = #{record.status,jdbcType=VARCHAR},
status = #{record.status,jdbcType=VARCHAR},
...
@@ -295,7 +283,6 @@
...
@@ -295,7 +283,6 @@
project_id = #{record.projectId,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
scenario_definition = #{record.scenarioDefinition,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=BIGINT},
status = #{record.status,jdbcType=VARCHAR},
status = #{record.status,jdbcType=VARCHAR},
...
@@ -316,9 +303,6 @@
...
@@ -316,9 +303,6 @@
<if
test=
"description != null"
>
<if
test=
"description != null"
>
description = #{description,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"scenarioDefinition != null"
>
scenario_definition = #{scenarioDefinition,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=BIGINT},
</if>
</if>
...
@@ -348,7 +332,6 @@
...
@@ -348,7 +332,6 @@
set project_id = #{projectId,jdbcType=VARCHAR},
set project_id = #{projectId,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
scenario_definition = #{scenarioDefinition,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=BIGINT},
status = #{status,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
...
@@ -363,7 +346,6 @@
...
@@ -363,7 +346,6 @@
set project_id = #{projectId,jdbcType=VARCHAR},
set project_id = #{projectId,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
scenario_definition = #{scenarioDefinition,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=BIGINT},
status = #{status,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
...
...
backend/src/main/resources/db/migration/V2__metersphere_ddl.sql
浏览文件 @
3d85293d
...
@@ -25,7 +25,6 @@ CREATE TABLE IF NOT EXISTS `load_test` (
...
@@ -25,7 +25,6 @@ CREATE TABLE IF NOT EXISTS `load_test` (
`project_id`
varchar
(
50
)
NOT
NULL
COMMENT
'Project ID this test belongs to'
,
`project_id`
varchar
(
50
)
NOT
NULL
COMMENT
'Project ID this test belongs to'
,
`name`
varchar
(
64
)
NOT
NULL
COMMENT
'Test name'
,
`name`
varchar
(
64
)
NOT
NULL
COMMENT
'Test name'
,
`description`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'Test description'
,
`description`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'Test description'
,
`scenario_definition`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'Scenario definition (JSON format)'
,
`load_configuration`
longtext
COMMENT
'Load configuration (JSON format)'
,
`load_configuration`
longtext
COMMENT
'Load configuration (JSON format)'
,
`advanced_configuration`
longtext
COMMENT
'Load configuration (JSON format)'
,
`advanced_configuration`
longtext
COMMENT
'Load configuration (JSON format)'
,
`schedule`
longtext
COMMENT
'Test schedule (cron list)'
,
`schedule`
longtext
COMMENT
'Test schedule (cron list)'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录