Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
56529447
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,发现更多精彩内容 >>
提交
56529447
编写于
5月 07, 2020
作者:
C
Captain.B
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bigint -> varchar
上级
02ab2f23
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
96 addition
and
80 deletion
+96
-80
backend/src/main/java/io/metersphere/base/domain/LoadTestReportLog.java
...in/java/io/metersphere/base/domain/LoadTestReportLog.java
+1
-1
backend/src/main/java/io/metersphere/base/domain/LoadTestReportLogExample.java
.../io/metersphere/base/domain/LoadTestReportLogExample.java
+20
-10
backend/src/main/java/io/metersphere/base/domain/LoadTestReportResult.java
...java/io/metersphere/base/domain/LoadTestReportResult.java
+1
-1
backend/src/main/java/io/metersphere/base/domain/LoadTestReportResultExample.java
.../metersphere/base/domain/LoadTestReportResultExample.java
+20
-10
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportLogMapper.java
...a/io/metersphere/base/mapper/LoadTestReportLogMapper.java
+2
-2
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportLogMapper.xml
...va/io/metersphere/base/mapper/LoadTestReportLogMapper.xml
+13
-13
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportResultMapper.java
...o/metersphere/base/mapper/LoadTestReportResultMapper.java
+2
-2
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportResultMapper.xml
...io/metersphere/base/mapper/LoadTestReportResultMapper.xml
+13
-13
backend/src/main/java/io/metersphere/service/PerformanceTestService.java
...n/java/io/metersphere/service/PerformanceTestService.java
+1
-0
backend/src/main/resources/db/migration/V2__metersphere_ddl.sql
...d/src/main/resources/db/migration/V2__metersphere_ddl.sql
+23
-28
未找到文件。
backend/src/main/java/io/metersphere/base/domain/LoadTestReportLog.java
浏览文件 @
56529447
...
@@ -6,7 +6,7 @@ import java.io.Serializable;
...
@@ -6,7 +6,7 @@ import java.io.Serializable;
@Data
@Data
public
class
LoadTestReportLog
implements
Serializable
{
public
class
LoadTestReportLog
implements
Serializable
{
private
Lo
ng
id
;
private
Stri
ng
id
;
private
String
reportId
;
private
String
reportId
;
...
...
backend/src/main/java/io/metersphere/base/domain/LoadTestReportLogExample.java
浏览文件 @
56529447
...
@@ -114,52 +114,62 @@ public class LoadTestReportLogExample {
...
@@ -114,52 +114,62 @@ public class LoadTestReportLogExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdEqualTo
(
Lo
ng
value
)
{
public
Criteria
andIdEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotEqualTo
(
Lo
ng
value
)
{
public
Criteria
andIdNotEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdGreaterThan
(
Lo
ng
value
)
{
public
Criteria
andIdGreaterThan
(
Stri
ng
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Lo
ng
value
)
{
public
Criteria
andIdGreaterThanOrEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdLessThan
(
Lo
ng
value
)
{
public
Criteria
andIdLessThan
(
Stri
ng
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdLessThanOrEqualTo
(
Lo
ng
value
)
{
public
Criteria
andIdLessThanOrEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
public
Criteria
andIdLike
(
String
value
)
{
addCriterion
(
"id like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotLike
(
String
value
)
{
addCriterion
(
"id not like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotIn
(
List
<
Lo
ng
>
values
)
{
public
Criteria
andIdNotIn
(
List
<
Stri
ng
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdBetween
(
Long
value1
,
Lo
ng
value2
)
{
public
Criteria
andIdBetween
(
String
value1
,
Stri
ng
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Lo
ng
value2
)
{
public
Criteria
andIdNotBetween
(
String
value1
,
Stri
ng
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
...
backend/src/main/java/io/metersphere/base/domain/LoadTestReportResult.java
浏览文件 @
56529447
...
@@ -6,7 +6,7 @@ import java.io.Serializable;
...
@@ -6,7 +6,7 @@ import java.io.Serializable;
@Data
@Data
public
class
LoadTestReportResult
implements
Serializable
{
public
class
LoadTestReportResult
implements
Serializable
{
private
Lo
ng
id
;
private
Stri
ng
id
;
private
String
reportId
;
private
String
reportId
;
...
...
backend/src/main/java/io/metersphere/base/domain/LoadTestReportResultExample.java
浏览文件 @
56529447
...
@@ -114,52 +114,62 @@ public class LoadTestReportResultExample {
...
@@ -114,52 +114,62 @@ public class LoadTestReportResultExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdEqualTo
(
Lo
ng
value
)
{
public
Criteria
andIdEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotEqualTo
(
Lo
ng
value
)
{
public
Criteria
andIdNotEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdGreaterThan
(
Lo
ng
value
)
{
public
Criteria
andIdGreaterThan
(
Stri
ng
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Lo
ng
value
)
{
public
Criteria
andIdGreaterThanOrEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdLessThan
(
Lo
ng
value
)
{
public
Criteria
andIdLessThan
(
Stri
ng
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdLessThanOrEqualTo
(
Lo
ng
value
)
{
public
Criteria
andIdLessThanOrEqualTo
(
Stri
ng
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
public
Criteria
andIdLike
(
String
value
)
{
addCriterion
(
"id like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotLike
(
String
value
)
{
addCriterion
(
"id not like"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotIn
(
List
<
Lo
ng
>
values
)
{
public
Criteria
andIdNotIn
(
List
<
Stri
ng
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdBetween
(
Long
value1
,
Lo
ng
value2
)
{
public
Criteria
andIdBetween
(
String
value1
,
Stri
ng
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Lo
ng
value2
)
{
public
Criteria
andIdNotBetween
(
String
value1
,
Stri
ng
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
...
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportLogMapper.java
浏览文件 @
56529447
...
@@ -11,7 +11,7 @@ public interface LoadTestReportLogMapper {
...
@@ -11,7 +11,7 @@ public interface LoadTestReportLogMapper {
int
deleteByExample
(
LoadTestReportLogExample
example
);
int
deleteByExample
(
LoadTestReportLogExample
example
);
int
deleteByPrimaryKey
(
Lo
ng
id
);
int
deleteByPrimaryKey
(
Stri
ng
id
);
int
insert
(
LoadTestReportLog
record
);
int
insert
(
LoadTestReportLog
record
);
...
@@ -21,7 +21,7 @@ public interface LoadTestReportLogMapper {
...
@@ -21,7 +21,7 @@ public interface LoadTestReportLogMapper {
List
<
LoadTestReportLog
>
selectByExample
(
LoadTestReportLogExample
example
);
List
<
LoadTestReportLog
>
selectByExample
(
LoadTestReportLogExample
example
);
LoadTestReportLog
selectByPrimaryKey
(
Lo
ng
id
);
LoadTestReportLog
selectByPrimaryKey
(
Stri
ng
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
LoadTestReportLog
record
,
@Param
(
"example"
)
LoadTestReportLogExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
LoadTestReportLog
record
,
@Param
(
"example"
)
LoadTestReportLogExample
example
);
...
...
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportLogMapper.xml
浏览文件 @
56529447
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"io.metersphere.base.mapper.LoadTestReportLogMapper"
>
<mapper
namespace=
"io.metersphere.base.mapper.LoadTestReportLogMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"io.metersphere.base.domain.LoadTestReportLog"
>
<resultMap
id=
"BaseResultMap"
type=
"io.metersphere.base.domain.LoadTestReportLog"
>
<id
column=
"id"
jdbcType=
"
BIGINT
"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"
VARCHAR
"
property=
"id"
/>
<result
column=
"report_id"
jdbcType=
"VARCHAR"
property=
"reportId"
/>
<result
column=
"report_id"
jdbcType=
"VARCHAR"
property=
"reportId"
/>
<result
column=
"resource_id"
jdbcType=
"VARCHAR"
property=
"resourceId"
/>
<result
column=
"resource_id"
jdbcType=
"VARCHAR"
property=
"resourceId"
/>
</resultMap>
</resultMap>
...
@@ -103,17 +103,17 @@
...
@@ -103,17 +103,17 @@
order by ${orderByClause}
order by ${orderByClause}
</if>
</if>
</select>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.
Lo
ng"
resultMap=
"ResultMapWithBLOBs"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.
Stri
ng"
resultMap=
"ResultMapWithBLOBs"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
,
,
<include
refid=
"Blob_Column_List"
/>
<include
refid=
"Blob_Column_List"
/>
from load_test_report_log
from load_test_report_log
where id = #{id,jdbcType=
BIGINT
}
where id = #{id,jdbcType=
VARCHAR
}
</select>
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.
Lo
ng"
>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.
Stri
ng"
>
delete from load_test_report_log
delete from load_test_report_log
where id = #{id,jdbcType=
BIGINT
}
where id = #{id,jdbcType=
VARCHAR
}
</delete>
</delete>
<delete
id=
"deleteByExample"
parameterType=
"io.metersphere.base.domain.LoadTestReportLogExample"
>
<delete
id=
"deleteByExample"
parameterType=
"io.metersphere.base.domain.LoadTestReportLogExample"
>
delete from load_test_report_log
delete from load_test_report_log
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
<insert
id=
"insert"
parameterType=
"io.metersphere.base.domain.LoadTestReportLog"
>
<insert
id=
"insert"
parameterType=
"io.metersphere.base.domain.LoadTestReportLog"
>
insert into load_test_report_log (id, report_id, resource_id,
insert into load_test_report_log (id, report_id, resource_id,
content)
content)
values (#{id,jdbcType=
BIGINT
}, #{reportId,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR},
values (#{id,jdbcType=
VARCHAR
}, #{reportId,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR},
#{content,jdbcType=LONGVARCHAR})
#{content,jdbcType=LONGVARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"io.metersphere.base.domain.LoadTestReportLog"
>
<insert
id=
"insertSelective"
parameterType=
"io.metersphere.base.domain.LoadTestReportLog"
>
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
<if
test=
"id != null"
>
#{id,jdbcType=
BIGINT
},
#{id,jdbcType=
VARCHAR
},
</if>
</if>
<if
test=
"reportId != null"
>
<if
test=
"reportId != null"
>
#{reportId,jdbcType=VARCHAR},
#{reportId,jdbcType=VARCHAR},
...
@@ -168,7 +168,7 @@
...
@@ -168,7 +168,7 @@
update load_test_report_log
update load_test_report_log
<set>
<set>
<if
test=
"record.id != null"
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=
BIGINT
},
id = #{record.id,jdbcType=
VARCHAR
},
</if>
</if>
<if
test=
"record.reportId != null"
>
<if
test=
"record.reportId != null"
>
report_id = #{record.reportId,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
...
@@ -186,7 +186,7 @@
...
@@ -186,7 +186,7 @@
</update>
</update>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
update load_test_report_log
update load_test_report_log
set id = #{record.id,jdbcType=
BIGINT
},
set id = #{record.id,jdbcType=
VARCHAR
},
report_id = #{record.reportId,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
resource_id = #{record.resourceId,jdbcType=VARCHAR},
resource_id = #{record.resourceId,jdbcType=VARCHAR},
content = #{record.content,jdbcType=LONGVARCHAR}
content = #{record.content,jdbcType=LONGVARCHAR}
...
@@ -196,7 +196,7 @@
...
@@ -196,7 +196,7 @@
</update>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<update
id=
"updateByExample"
parameterType=
"map"
>
update load_test_report_log
update load_test_report_log
set id = #{record.id,jdbcType=
BIGINT
},
set id = #{record.id,jdbcType=
VARCHAR
},
report_id = #{record.reportId,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
resource_id = #{record.resourceId,jdbcType=VARCHAR}
resource_id = #{record.resourceId,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
...
@@ -216,19 +216,19 @@
...
@@ -216,19 +216,19 @@
content = #{content,jdbcType=LONGVARCHAR},
content = #{content,jdbcType=LONGVARCHAR},
</if>
</if>
</set>
</set>
where id = #{id,jdbcType=
BIGINT
}
where id = #{id,jdbcType=
VARCHAR
}
</update>
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"io.metersphere.base.domain.LoadTestReportLog"
>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"io.metersphere.base.domain.LoadTestReportLog"
>
update load_test_report_log
update load_test_report_log
set report_id = #{reportId,jdbcType=VARCHAR},
set report_id = #{reportId,jdbcType=VARCHAR},
resource_id = #{resourceId,jdbcType=VARCHAR},
resource_id = #{resourceId,jdbcType=VARCHAR},
content = #{content,jdbcType=LONGVARCHAR}
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=
BIGINT
}
where id = #{id,jdbcType=
VARCHAR
}
</update>
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"io.metersphere.base.domain.LoadTestReportLog"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"io.metersphere.base.domain.LoadTestReportLog"
>
update load_test_report_log
update load_test_report_log
set report_id = #{reportId,jdbcType=VARCHAR},
set report_id = #{reportId,jdbcType=VARCHAR},
resource_id = #{resourceId,jdbcType=VARCHAR}
resource_id = #{resourceId,jdbcType=VARCHAR}
where id = #{id,jdbcType=
BIGINT
}
where id = #{id,jdbcType=
VARCHAR
}
</update>
</update>
</mapper>
</mapper>
\ No newline at end of file
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportResultMapper.java
浏览文件 @
56529447
...
@@ -11,7 +11,7 @@ public interface LoadTestReportResultMapper {
...
@@ -11,7 +11,7 @@ public interface LoadTestReportResultMapper {
int
deleteByExample
(
LoadTestReportResultExample
example
);
int
deleteByExample
(
LoadTestReportResultExample
example
);
int
deleteByPrimaryKey
(
Lo
ng
id
);
int
deleteByPrimaryKey
(
Stri
ng
id
);
int
insert
(
LoadTestReportResult
record
);
int
insert
(
LoadTestReportResult
record
);
...
@@ -21,7 +21,7 @@ public interface LoadTestReportResultMapper {
...
@@ -21,7 +21,7 @@ public interface LoadTestReportResultMapper {
List
<
LoadTestReportResult
>
selectByExample
(
LoadTestReportResultExample
example
);
List
<
LoadTestReportResult
>
selectByExample
(
LoadTestReportResultExample
example
);
LoadTestReportResult
selectByPrimaryKey
(
Lo
ng
id
);
LoadTestReportResult
selectByPrimaryKey
(
Stri
ng
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
LoadTestReportResult
record
,
@Param
(
"example"
)
LoadTestReportResultExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
LoadTestReportResult
record
,
@Param
(
"example"
)
LoadTestReportResultExample
example
);
...
...
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportResultMapper.xml
浏览文件 @
56529447
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"io.metersphere.base.mapper.LoadTestReportResultMapper"
>
<mapper
namespace=
"io.metersphere.base.mapper.LoadTestReportResultMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"io.metersphere.base.domain.LoadTestReportResult"
>
<resultMap
id=
"BaseResultMap"
type=
"io.metersphere.base.domain.LoadTestReportResult"
>
<id
column=
"id"
jdbcType=
"
BIGINT
"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"
VARCHAR
"
property=
"id"
/>
<result
column=
"report_id"
jdbcType=
"VARCHAR"
property=
"reportId"
/>
<result
column=
"report_id"
jdbcType=
"VARCHAR"
property=
"reportId"
/>
<result
column=
"report_key"
jdbcType=
"VARCHAR"
property=
"reportKey"
/>
<result
column=
"report_key"
jdbcType=
"VARCHAR"
property=
"reportKey"
/>
</resultMap>
</resultMap>
...
@@ -103,17 +103,17 @@
...
@@ -103,17 +103,17 @@
order by ${orderByClause}
order by ${orderByClause}
</if>
</if>
</select>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.
Lo
ng"
resultMap=
"ResultMapWithBLOBs"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.
Stri
ng"
resultMap=
"ResultMapWithBLOBs"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
,
,
<include
refid=
"Blob_Column_List"
/>
<include
refid=
"Blob_Column_List"
/>
from load_test_report_result
from load_test_report_result
where id = #{id,jdbcType=
BIGINT
}
where id = #{id,jdbcType=
VARCHAR
}
</select>
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.
Lo
ng"
>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.
Stri
ng"
>
delete from load_test_report_result
delete from load_test_report_result
where id = #{id,jdbcType=
BIGINT
}
where id = #{id,jdbcType=
VARCHAR
}
</delete>
</delete>
<delete
id=
"deleteByExample"
parameterType=
"io.metersphere.base.domain.LoadTestReportResultExample"
>
<delete
id=
"deleteByExample"
parameterType=
"io.metersphere.base.domain.LoadTestReportResultExample"
>
delete from load_test_report_result
delete from load_test_report_result
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
<insert
id=
"insert"
parameterType=
"io.metersphere.base.domain.LoadTestReportResult"
>
<insert
id=
"insert"
parameterType=
"io.metersphere.base.domain.LoadTestReportResult"
>
insert into load_test_report_result (id, report_id, report_key,
insert into load_test_report_result (id, report_id, report_key,
report_value)
report_value)
values (#{id,jdbcType=
BIGINT
}, #{reportId,jdbcType=VARCHAR}, #{reportKey,jdbcType=VARCHAR},
values (#{id,jdbcType=
VARCHAR
}, #{reportId,jdbcType=VARCHAR}, #{reportKey,jdbcType=VARCHAR},
#{reportValue,jdbcType=LONGVARCHAR})
#{reportValue,jdbcType=LONGVARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"io.metersphere.base.domain.LoadTestReportResult"
>
<insert
id=
"insertSelective"
parameterType=
"io.metersphere.base.domain.LoadTestReportResult"
>
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
<if
test=
"id != null"
>
#{id,jdbcType=
BIGINT
},
#{id,jdbcType=
VARCHAR
},
</if>
</if>
<if
test=
"reportId != null"
>
<if
test=
"reportId != null"
>
#{reportId,jdbcType=VARCHAR},
#{reportId,jdbcType=VARCHAR},
...
@@ -168,7 +168,7 @@
...
@@ -168,7 +168,7 @@
update load_test_report_result
update load_test_report_result
<set>
<set>
<if
test=
"record.id != null"
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=
BIGINT
},
id = #{record.id,jdbcType=
VARCHAR
},
</if>
</if>
<if
test=
"record.reportId != null"
>
<if
test=
"record.reportId != null"
>
report_id = #{record.reportId,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
...
@@ -186,7 +186,7 @@
...
@@ -186,7 +186,7 @@
</update>
</update>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
update load_test_report_result
update load_test_report_result
set id = #{record.id,jdbcType=
BIGINT
},
set id = #{record.id,jdbcType=
VARCHAR
},
report_id = #{record.reportId,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
report_key = #{record.reportKey,jdbcType=VARCHAR},
report_key = #{record.reportKey,jdbcType=VARCHAR},
report_value = #{record.reportValue,jdbcType=LONGVARCHAR}
report_value = #{record.reportValue,jdbcType=LONGVARCHAR}
...
@@ -196,7 +196,7 @@
...
@@ -196,7 +196,7 @@
</update>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<update
id=
"updateByExample"
parameterType=
"map"
>
update load_test_report_result
update load_test_report_result
set id = #{record.id,jdbcType=
BIGINT
},
set id = #{record.id,jdbcType=
VARCHAR
},
report_id = #{record.reportId,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
report_key = #{record.reportKey,jdbcType=VARCHAR}
report_key = #{record.reportKey,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
...
@@ -216,19 +216,19 @@
...
@@ -216,19 +216,19 @@
report_value = #{reportValue,jdbcType=LONGVARCHAR},
report_value = #{reportValue,jdbcType=LONGVARCHAR},
</if>
</if>
</set>
</set>
where id = #{id,jdbcType=
BIGINT
}
where id = #{id,jdbcType=
VARCHAR
}
</update>
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"io.metersphere.base.domain.LoadTestReportResult"
>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"io.metersphere.base.domain.LoadTestReportResult"
>
update load_test_report_result
update load_test_report_result
set report_id = #{reportId,jdbcType=VARCHAR},
set report_id = #{reportId,jdbcType=VARCHAR},
report_key = #{reportKey,jdbcType=VARCHAR},
report_key = #{reportKey,jdbcType=VARCHAR},
report_value = #{reportValue,jdbcType=LONGVARCHAR}
report_value = #{reportValue,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=
BIGINT
}
where id = #{id,jdbcType=
VARCHAR
}
</update>
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"io.metersphere.base.domain.LoadTestReportResult"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"io.metersphere.base.domain.LoadTestReportResult"
>
update load_test_report_result
update load_test_report_result
set report_id = #{reportId,jdbcType=VARCHAR},
set report_id = #{reportId,jdbcType=VARCHAR},
report_key = #{reportKey,jdbcType=VARCHAR}
report_key = #{reportKey,jdbcType=VARCHAR}
where id = #{id,jdbcType=
BIGINT
}
where id = #{id,jdbcType=
VARCHAR
}
</update>
</update>
</mapper>
</mapper>
\ No newline at end of file
backend/src/main/java/io/metersphere/service/PerformanceTestService.java
浏览文件 @
56529447
...
@@ -228,6 +228,7 @@ public class PerformanceTestService {
...
@@ -228,6 +228,7 @@ public class PerformanceTestService {
List
<
TestResource
>
testResourceList
=
testResourceService
.
getResourcesByPoolId
(
resourcePoolId
);
List
<
TestResource
>
testResourceList
=
testResourceService
.
getResourcesByPoolId
(
resourcePoolId
);
testResourceList
.
forEach
(
r
->
{
testResourceList
.
forEach
(
r
->
{
LoadTestReportLog
record
=
new
LoadTestReportLog
();
LoadTestReportLog
record
=
new
LoadTestReportLog
();
record
.
setId
(
UUID
.
randomUUID
().
toString
());
record
.
setReportId
(
testReport
.
getId
());
record
.
setReportId
(
testReport
.
getId
());
record
.
setResourceId
(
r
.
getId
());
record
.
setResourceId
(
r
.
getId
());
record
.
setContent
(
StringUtils
.
EMPTY
);
record
.
setContent
(
StringUtils
.
EMPTY
);
...
...
backend/src/main/resources/db/migration/V2__metersphere_ddl.sql
浏览文件 @
56529447
CREATE
TABLE
IF
NOT
EXISTS
`file_content`
(
CREATE
TABLE
IF
NOT
EXISTS
`file_content`
(
`file_id`
varchar
(
64
)
COLLATE
utf8mb4_bin
NOT
NULL
COMMENT
'File ID'
,
`file_id`
varchar
(
64
)
NOT
NULL
COMMENT
'File ID'
,
`file`
longblob
COMMENT
'File content'
,
`file`
longblob
COMMENT
'File content'
,
PRIMARY
KEY
(
`file_id`
)
PRIMARY
KEY
(
`file_id`
)
)
)
...
@@ -70,29 +70,24 @@ CREATE TABLE IF NOT EXISTS `load_test_report_detail` (
...
@@ -70,29 +70,24 @@ CREATE TABLE IF NOT EXISTS `load_test_report_detail` (
DEFAULT
CHARSET
=
utf8mb4
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_bin
;
COLLATE
=
utf8mb4_bin
;
CREATE
TABLE
IF
NOT
EXISTS
`load_test_report_log`
(
`id`
varchar
(
50
)
NOT
NULL
,
`report_id`
varchar
(
50
)
NOT
NULL
,
`resource_id`
varchar
(
50
)
DEFAULT
NULL
,
`content`
longtext
,
PRIMARY
KEY
(
`id`
),
KEY
`load_test_report_log_report_id_resource_name_index`
(
`report_id`
,
`resource_id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_bin
;
CREATE
TABLE
IF
NOT
EXISTS
`load_test_report_result`
(
CREATE
TABLE
IF
NOT
EXISTS
`load_test_report_result`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`id`
varchar
(
50
)
NOT
NULL
,
`report_id`
varchar
(
50
)
NOT
NULL
,
`report_id`
varchar
(
50
)
NOT
NULL
,
`report_key`
varchar
(
64
)
DEFAULT
NULL
,
`report_key`
varchar
(
64
)
DEFAULT
NULL
,
`report_value`
text
,
`report_value`
text
,
PRIMARY
KEY
(
`id`
),
PRIMARY
KEY
(
`id`
),
KEY
`load_test_report_result_report_id_report_key_index`
(
`report_id`
,
`report_key`
)
KEY
`load_test_report_result_report_id_report_key_index`
(
`report_id`
,
`report_key`
)
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_bin
;
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_bin
;
CREATE
TABLE
IF
NOT
EXISTS
`load_test_report_log`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`report_id`
varchar
(
50
)
NOT
NULL
,
`resource_id`
varchar
(
50
)
DEFAULT
NULL
,
`content`
longtext
,
PRIMARY
KEY
(
`id`
),
KEY
`load_test_report_log_report_id_resource_name_index`
(
`report_id`
,
`resource_id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_bin
;
CREATE
TABLE
IF
NOT
EXISTS
`organization`
(
CREATE
TABLE
IF
NOT
EXISTS
`organization`
(
`id`
varchar
(
50
)
NOT
NULL
COMMENT
'Organization ID'
,
`id`
varchar
(
50
)
NOT
NULL
COMMENT
'Organization ID'
,
...
@@ -145,7 +140,7 @@ CREATE TABLE IF NOT EXISTS `system_parameter` (
...
@@ -145,7 +140,7 @@ CREATE TABLE IF NOT EXISTS `system_parameter` (
CREATE
TABLE
IF
NOT
EXISTS
`test_resource`
(
CREATE
TABLE
IF
NOT
EXISTS
`test_resource`
(
`id`
varchar
(
50
)
NOT
NULL
COMMENT
'Test resource ID'
,
`id`
varchar
(
50
)
NOT
NULL
COMMENT
'Test resource ID'
,
`test_resource_pool_id`
varchar
(
50
)
COLLATE
utf8mb4_bin
NOT
NULL
COMMENT
'Test resource pool ID this test resource belongs to'
,
`test_resource_pool_id`
varchar
(
50
)
NOT
NULL
COMMENT
'Test resource pool ID this test resource belongs to'
,
`configuration`
longtext
COMMENT
'Test resource configuration'
,
`configuration`
longtext
COMMENT
'Test resource configuration'
,
`status`
varchar
(
64
)
NOT
NULL
COMMENT
'Test resource status'
,
`status`
varchar
(
64
)
NOT
NULL
COMMENT
'Test resource status'
,
`create_time`
bigint
(
13
)
NOT
NULL
COMMENT
'Create timestamp'
,
`create_time`
bigint
(
13
)
NOT
NULL
COMMENT
'Create timestamp'
,
...
@@ -217,13 +212,13 @@ CREATE TABLE IF NOT EXISTS `workspace` (
...
@@ -217,13 +212,13 @@ CREATE TABLE IF NOT EXISTS `workspace` (
-- api start
-- api start
CREATE
TABLE
IF
NOT
EXISTS
`api_test`
(
CREATE
TABLE
IF
NOT
EXISTS
`api_test`
(
`id`
varchar
(
50
)
COLLATE
utf8mb4_bin
NOT
NULL
COMMENT
'Test ID'
,
`id`
varchar
(
50
)
NOT
NULL
COMMENT
'Test ID'
,
`project_id`
varchar
(
50
)
COLLATE
utf8mb4_bin
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
)
COLLATE
utf8mb4_bin
NOT
NULL
COMMENT
'Test name'
,
`name`
varchar
(
64
)
NOT
NULL
COMMENT
'Test name'
,
`description`
varchar
(
255
)
COLLATE
utf8mb4_bin
DEFAULT
NULL
COMMENT
'Test description'
,
`description`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'Test description'
,
`scenario_definition`
longtext
COLLATE
utf8mb4_bin
COMMENT
'Scenario definition (JSON format)'
,
`scenario_definition`
longtext
COMMENT
'Scenario definition (JSON format)'
,
`schedule`
longtext
COLLATE
utf8mb4_bin
COMMENT
'Test schedule (cron list)'
,
`schedule`
longtext
COMMENT
'Test schedule (cron list)'
,
`status`
varchar
(
64
)
COLLATE
utf8mb4_bin
DEFAULT
NULL
,
`status`
varchar
(
64
)
DEFAULT
NULL
,
`create_time`
bigint
(
13
)
NOT
NULL
COMMENT
'Create timestamp'
,
`create_time`
bigint
(
13
)
NOT
NULL
COMMENT
'Create timestamp'
,
`update_time`
bigint
(
13
)
NOT
NULL
COMMENT
'Update timestamp'
,
`update_time`
bigint
(
13
)
NOT
NULL
COMMENT
'Update timestamp'
,
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录