fix(测试跟踪): 首页是失败用例分页信息显示错误
--bug=1025735 --user=陈建星 【测试跟踪】首页-过去7天测试计划失败用例TOP 10-选择下一页后页面显示错误 https://www.tapd.cn/55049933/s/1365861
This commit is contained in:
parent
29ab75f7a5
commit
0f399686dc
|
@ -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
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue