Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
bd58dffe
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,发现更多精彩内容 >>
提交
bd58dffe
编写于
5月 20, 2020
作者:
C
Captain.B
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
log model
上级
23ef8714
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
154 addition
and
72 deletion
+154
-72
backend/src/main/java/io/metersphere/base/domain/LoadTestReportLog.java
...in/java/io/metersphere/base/domain/LoadTestReportLog.java
+2
-0
backend/src/main/java/io/metersphere/base/domain/LoadTestReportLogExample.java
.../io/metersphere/base/domain/LoadTestReportLogExample.java
+60
-0
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportLogMapper.xml
...va/io/metersphere/base/mapper/LoadTestReportLogMapper.xml
+92
-72
未找到文件。
backend/src/main/java/io/metersphere/base/domain/LoadTestReportLog.java
浏览文件 @
bd58dffe
...
...
@@ -12,6 +12,8 @@ public class LoadTestReportLog implements Serializable {
private
String
resourceId
;
private
Long
part
;
private
String
content
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
backend/src/main/java/io/metersphere/base/domain/LoadTestReportLogExample.java
浏览文件 @
bd58dffe
...
...
@@ -313,6 +313,66 @@ public class LoadTestReportLogExample {
addCriterion
(
"resource_id not between"
,
value1
,
value2
,
"resourceId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartIsNull
()
{
addCriterion
(
"part is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartIsNotNull
()
{
addCriterion
(
"part is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartEqualTo
(
Long
value
)
{
addCriterion
(
"part ="
,
value
,
"part"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartNotEqualTo
(
Long
value
)
{
addCriterion
(
"part <>"
,
value
,
"part"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartGreaterThan
(
Long
value
)
{
addCriterion
(
"part >"
,
value
,
"part"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"part >="
,
value
,
"part"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartLessThan
(
Long
value
)
{
addCriterion
(
"part <"
,
value
,
"part"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"part <="
,
value
,
"part"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartIn
(
List
<
Long
>
values
)
{
addCriterion
(
"part in"
,
values
,
"part"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"part not in"
,
values
,
"part"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"part between"
,
value1
,
value2
,
"part"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPartNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"part not between"
,
value1
,
value2
,
"part"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
backend/src/main/java/io/metersphere/base/mapper/LoadTestReportLogMapper.xml
浏览文件 @
bd58dffe
...
...
@@ -5,6 +5,7 @@
<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=
"part"
jdbcType=
"BIGINT"
property=
"part"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"io.metersphere.base.domain.LoadTestReportLog"
>
<result
column=
"content"
jdbcType=
"LONGVARCHAR"
property=
"content"
/>
...
...
@@ -68,7 +69,10 @@
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, report_id, resource_id
id,
report_id,
resource_id,
part
</sql>
<sql
id=
"Blob_Column_List"
>
content
...
...
@@ -123,9 +127,9 @@
</delete>
<insert
id=
"insert"
parameterType=
"io.metersphere.base.domain.LoadTestReportLog"
>
insert into load_test_report_log (id, report_id, resource_id,
content)
part,
content)
values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR},
#{content,jdbcType=LONGVARCHAR})
#{
part,jdbcType=BIGINT}, #{
content,jdbcType=LONGVARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"io.metersphere.base.domain.LoadTestReportLog"
>
insert into load_test_report_log
...
...
@@ -139,6 +143,9 @@
<if
test=
"resourceId != null"
>
resource_id,
</if>
<if
test=
"part != null"
>
part,
</if>
<if
test=
"content != null"
>
content,
</if>
...
...
@@ -153,6 +160,9 @@
<if
test=
"resourceId != null"
>
#{resourceId,jdbcType=VARCHAR},
</if>
<if
test=
"part != null"
>
#{part,jdbcType=BIGINT},
</if>
<if
test=
"content != null"
>
#{content,jdbcType=LONGVARCHAR},
</if>
...
...
@@ -176,6 +186,9 @@
<if
test=
"record.resourceId != null"
>
resource_id = #{record.resourceId,jdbcType=VARCHAR},
</if>
<if
test=
"record.part != null"
>
part = #{record.part,jdbcType=BIGINT},
</if>
<if
test=
"record.content != null"
>
content = #{record.content,jdbcType=LONGVARCHAR},
</if>
...
...
@@ -189,6 +202,7 @@
set id = #{record.id,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
resource_id = #{record.resourceId,jdbcType=VARCHAR},
part = #{record.part,jdbcType=BIGINT},
content = #{record.content,jdbcType=LONGVARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
...
@@ -198,7 +212,8 @@
update load_test_report_log
set id = #{record.id,jdbcType=VARCHAR},
report_id = #{record.reportId,jdbcType=VARCHAR},
resource_id = #{record.resourceId,jdbcType=VARCHAR}
resource_id = #{record.resourceId,jdbcType=VARCHAR},
part = #{record.part,jdbcType=BIGINT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -212,6 +227,9 @@
<if
test=
"resourceId != null"
>
resource_id = #{resourceId,jdbcType=VARCHAR},
</if>
<if
test=
"part != null"
>
part = #{part,jdbcType=BIGINT},
</if>
<if
test=
"content != null"
>
content = #{content,jdbcType=LONGVARCHAR},
</if>
...
...
@@ -222,13 +240,15 @@
update load_test_report_log
set report_id = #{reportId,jdbcType=VARCHAR},
resource_id = #{resourceId,jdbcType=VARCHAR},
part = #{part,jdbcType=BIGINT},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"io.metersphere.base.domain.LoadTestReportLog"
>
update load_test_report_log
set report_id = #{reportId,jdbcType=VARCHAR},
resource_id = #{resourceId,jdbcType=VARCHAR}
resource_id = #{resourceId,jdbcType=VARCHAR},
part = #{part,jdbcType=BIGINT}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录