fix(测试跟踪): 首页测试计划用例数统计错误

This commit is contained in:
shiziyuan9527 2021-03-23 17:34:04 +08:00
parent 774fd1f425
commit e0ffb4ad65
1 changed files with 2 additions and 1 deletions

View File

@ -387,7 +387,8 @@
union all union all
select tpac.id as s select tpac.id as s
from test_plan_api_case tpac join api_test_case on tpac.api_case_id = api_test_case.id from test_plan_api_case tpac join api_test_case on tpac.api_case_id = api_test_case.id
where tpac.test_plan_id = #{planId} join api_definition on api_test_case.api_definition_id = api_definition.id
where tpac.test_plan_id = #{planId} and api_definition.status != 'Trash'
union all union all
select tplc.id as s select tplc.id as s
from test_plan_load_case tplc join load_test on tplc.load_case_id = load_test.id from test_plan_load_case tplc join load_test on tplc.load_case_id = load_test.id