fix(测试跟踪): 首页是失败用例分页信息显示错误

--bug=1025735 --user=陈建星 【测试跟踪】首页-过去7天测试计划失败用例TOP 10-选择下一页后页面显示错误 https://www.tapd.cn/55049933/s/1365861
This commit is contained in:
chenjianxing 2023-04-23 17:49:58 +08:00 committed by jianxing
parent 29ab75f7a5
commit 0f399686dc
4 changed files with 6 additions and 6 deletions

View File

@ -55,7 +55,7 @@
INNER JOIN api_definition on api_definition.id = apiCase.api_definition_id
WHERE
(apiCase.`status` IS NULL OR apiCase.`status` != 'Trash')
AND apiCase.project_id = #{projectId}
AND testPlan.project_id = #{projectId}
) testCase
INNER JOIN (SELECT executionInfo.source_id AS sourceId,
COUNT(executionInfo.id) AS dataCountNumber

View File

@ -62,10 +62,10 @@
SELECT testPlanScenario.id, testPlanScenario.api_scenario_id, testPlan.id AS testPlanId, testPlan.`name` AS testPlanName
FROM test_plan_api_scenario testPlanScenario
INNER JOIN test_plan testPlan ON testPlan.id = testPlanScenario.test_plan_id
WHERE testPlan.project_id = #{projectId}
) apiScene ON apiScene.id = executionInfo.source_id
INNER JOIN api_scenario scene ON scene.id = apiScene.api_scenario_id
WHERE scene.project_id = #{projectId}
AND scene.`status` != 'Trash'
WHERE scene.`status` != 'Trash'
AND ( executionInfo.result = 'ERROR' )
AND executionInfo.create_time >= #{startTimestamp}
<if test="versionId != null">

View File

@ -689,11 +689,11 @@
FROM
test_plan_test_case testPlanTestCase
INNER JOIN test_plan testPlan ON testPlan.id = testPlanTestCase.plan_id
WHERE testPlan.project_id = #{projectId}
) testCasePlan ON testCasePlan.id = executionInfo.source_id
INNER JOIN test_case testCase ON testCase.id = testCasePlan.case_id
WHERE
testCase.project_id = #{projectId}
AND testCase.`status` != 'Trash'
testCase.`status` != 'Trash'
AND ( executionInfo.result = 'Failure' )
AND executionInfo.create_time >= #{startTimestamp}
GROUP BY testCase.id

View File

@ -183,7 +183,7 @@ export default {
.then((r) => {
this.loading = false;
this.loadError = false;
this.total = 10;
this.total = r.data.itemCount;
this.tableData = r.data.listObject;
})
.catch(() => {