添加性能测试创建人

This commit is contained in:
shiziyuan9527 2020-05-29 17:02:39 +08:00
parent b602eae04c
commit 464fd7abb0
6 changed files with 12 additions and 1 deletions

View File

@ -8,9 +8,10 @@
</resultMap>
<select id="list" resultMap="BaseResultMap" parameterType="io.metersphere.track.request.testplan.QueryTestPlanRequest">
select load_test.*, project.name as project_name
select load_test.*, project.name as project_name, user.name as user_name
from load_test
left join project on load_test.project_id = project.id
left join user on load_test.user_id = user.id
<where>
<if test="request.name != null">
and load_test.name like CONCAT('%', #{request.name},'%')

View File

@ -8,4 +8,5 @@ import lombok.Setter;
@Setter
public class LoadTestDTO extends LoadTest {
private String projectName;
private String userName;
}

View File

@ -28,6 +28,12 @@
width="150"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="userName"
:label="$t('load_test.user_name')"
width="150"
show-overflow-tooltip>
</el-table-column>
<el-table-column
width="250"
:label="$t('commons.create_time')">

View File

@ -253,6 +253,7 @@ export default {
'select_resource_pool': 'Please Select Resource Pool',
'resource_pool_is_null': 'Resource Pool is empty',
'download_log_file': 'Download',
'user_name': 'Creator'
},
api_test: {
creator: "Creator",

View File

@ -251,6 +251,7 @@ export default {
'resource_pool_is_null': '资源池为空',
'download_log_file': '下载完整日志文件',
'pressure_prediction_chart': '压力预估图',
'user_name': '创建人'
},
api_test: {
creator: "创建人",

View File

@ -252,6 +252,7 @@ export default {
'resource_pool_is_null': '資源池為空',
'download_log_file': '下載完整日誌文件',
'pressure_prediction_chart': '壓力預估圖',
'user_name': '創建人'
},
api_test: {
title: "測試",