性能测试报告添加创建人
This commit is contained in:
parent
aad9d64a7a
commit
c03656f5ad
|
@ -5,6 +5,7 @@
|
|||
<resultMap id="BaseResultMap" type="io.metersphere.dto.LoadTestDTO"
|
||||
extends="io.metersphere.base.mapper.LoadTestMapper.BaseResultMap">
|
||||
<result column="project_name" property="projectName"/>
|
||||
<result column="user_name" property="userName"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="list" resultMap="BaseResultMap" parameterType="io.metersphere.track.request.testplan.QueryTestPlanRequest">
|
||||
|
|
|
@ -16,9 +16,11 @@
|
|||
</sql>
|
||||
|
||||
<select id="getReportList" resultType="io.metersphere.dto.ReportDTO">
|
||||
select ltr.id, ltr.name, ltr.test_id as testId, ltr.description,
|
||||
select ltr.id, ltr.name, ltr.test_id as testId, ltr.description, user.name as userName,
|
||||
ltr.create_time as createTime, ltr.update_time as updateTime, ltr.status as status, lt.name as testName
|
||||
from load_test_report ltr join load_test lt on ltr.test_id = lt.id
|
||||
from load_test_report ltr
|
||||
join load_test lt on ltr.test_id = lt.id
|
||||
join user on ltr.user_id = user.id
|
||||
<if test="reportRequest.workspaceId != null">
|
||||
JOIN project on project.id = lt.project_id
|
||||
</if>
|
||||
|
|
|
@ -18,4 +18,5 @@ public class ReportDTO {
|
|||
private String testName;
|
||||
private String projectId;
|
||||
private String projectName;
|
||||
private String userName;
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<el-table-column
|
||||
prop="name"
|
||||
:label="$t('commons.name')"
|
||||
width="200"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -28,6 +29,12 @@
|
|||
width="150"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="userName"
|
||||
:label="$t('report.user_name')"
|
||||
width="150"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="250"
|
||||
:label="$t('commons.create_time')">
|
||||
|
|
|
@ -195,6 +195,7 @@ export default {
|
|||
'delete_confirm': 'Confirm delete: ',
|
||||
'start_status': 'The test is starting, please check the report later!',
|
||||
'run_status': 'The test is running, please check the report later!',
|
||||
'user_name': 'Creator'
|
||||
},
|
||||
load_test: {
|
||||
'operating': 'Operating',
|
||||
|
|
|
@ -193,6 +193,7 @@ export default {
|
|||
'delete_confirm': '确认删除报告: ',
|
||||
'start_status': '测试处于开始状态,请稍后查看报告!',
|
||||
'run_status': '测试处于运行状态,请稍后查看报告!',
|
||||
'user_name': '创建人'
|
||||
},
|
||||
load_test: {
|
||||
'operating': '操作',
|
||||
|
|
|
@ -194,6 +194,7 @@ export default {
|
|||
'delete_confirm': '確認刪除報告: ',
|
||||
'start_status': '測試處於開始狀態,請稍後查看報告!',
|
||||
'run_status': '測試處於運行狀態,請稍後查看報告!',
|
||||
'user_name': '創建人'
|
||||
},
|
||||
load_test: {
|
||||
'operating': '操作',
|
||||
|
|
Loading…
Reference in New Issue