fix(接口测试): 修复接口定义case列表结果未刷新的缺陷
This commit is contained in:
parent
e996fd64ff
commit
2c64013d9e
|
@ -314,12 +314,16 @@
|
||||||
|
|
||||||
<select id="listSimple" resultType="io.metersphere.api.dto.definition.ApiTestCaseDTO">
|
<select id="listSimple" resultType="io.metersphere.api.dto.definition.ApiTestCaseDTO">
|
||||||
select
|
select
|
||||||
t1.id, t1.project_id, t1.name,t1.case_status, t1.api_definition_id, t1.priority, t1.description, t1.create_user_id, t1.update_user_id, t1.create_time, t1.update_time, t1.num,
|
t1.id, t1.project_id, t1.name,t1.case_status, t1.api_definition_id, t1.priority, t1.description,
|
||||||
a.module_id, a.path, a.protocol, t1.tags,t1.status,t2.STATUS AS execResult, t2.id as lastResultId, project.name as project_name,
|
t1.create_user_id, t1.update_user_id, t1.create_time, t1.update_time, t1.num,
|
||||||
t1.delete_time, deleteUser.name AS deleteUser,CONCAT(FORMAT(SUM(IF (t2.`status`='success',1,0))/COUNT(t2.id)*100,2),'%') passRate, project_version.name as version_name
|
a.module_id, a.path, a.protocol, t1.tags,t1.status,t3.STATUS AS execResult, t1.last_result_id AS lastResultId ,
|
||||||
|
project.name as project_name,
|
||||||
|
t1.delete_time, deleteUser.name AS deleteUser,CONCAT(FORMAT(SUM(IF
|
||||||
|
(t2.`status`='success',1,0))/COUNT(t2.id)*100,2),'%') passRate, project_version.name as version_name
|
||||||
from
|
from
|
||||||
api_test_case t1
|
api_test_case t1
|
||||||
LEFT JOIN api_definition_exec_result t2 ON t1.id = t2.resource_id
|
LEFT JOIN api_definition_exec_result t2 ON t1.id = t2.resource_id
|
||||||
|
LEFT JOIN api_definition_exec_result t3 ON t1.last_result_id = t3.id
|
||||||
LEFT JOIN user deleteUser ON t1.delete_user_id = deleteUser.id
|
LEFT JOIN user deleteUser ON t1.delete_user_id = deleteUser.id
|
||||||
LEFT JOIN api_definition a on t1.api_definition_id = a.id
|
LEFT JOIN api_definition a on t1.api_definition_id = a.id
|
||||||
LEFT JOIN project ON t1.project_id = project.id
|
LEFT JOIN project ON t1.project_id = project.id
|
||||||
|
|
Loading…
Reference in New Issue