fix(接口测试): 修复接口测试首页7天用例top10查询出别的项目接口用例的问题

--bug=1017111 --user=宋天阳 【接口测试】接口测试首页过去七天测试计划失败用例top10显示测试计划不存在此项目
https://www.tapd.cn/55049933/s/1248830
This commit is contained in:
song-tianyang 2022-09-21 16:05:40 +08:00 committed by 建国
parent b87ffcfa40
commit 2fa3fc483c
1 changed files with 1 additions and 2 deletions

View File

@ -85,8 +85,7 @@
INNER JOIN test_plan_api_case testPlanCase ON testPlanCase.api_case_id = apiCase.id INNER JOIN test_plan_api_case testPlanCase ON testPlanCase.api_case_id = apiCase.id
INNER JOIN test_plan testPlan ON testPlan.id = testPlanCase.test_plan_id INNER JOIN test_plan testPlan ON testPlan.id = testPlanCase.test_plan_id
WHERE ( WHERE (
apiCase.`status` IS NULL (apiCase.`status` IS NULL OR apiCase.`status` != 'Trash')
OR apiCase.`status` != 'Trash'
AND apiCase.project_id = #{projectId})) testCase AND apiCase.project_id = #{projectId})) testCase
INNER JOIN (SELECT executionInfo.source_id AS sourceId, INNER JOIN (SELECT executionInfo.source_id AS sourceId,
COUNT(executionInfo.id) AS dataCountNumber COUNT(executionInfo.id) AS dataCountNumber