fix(接口测试): 修复case集成报告失败重跑失败问题

--bug=1014742 --user=赵勇 【接口测试】测试报告接口用例失败重跑后,测试报告的结束时间更新了,报告数据结果没有更新 https://www.tapd.cn/55049933/s/1197352
This commit is contained in:
fit2-zhao 2022-07-07 17:55:56 +08:00 committed by f2c-ci-robot[bot]
parent 1f8c1ab8d5
commit 2c390991e2
1 changed files with 7 additions and 2 deletions

View File

@ -429,10 +429,15 @@
FROM api_definition_exec_result
WHERE id = #{0}
</select>
<select id="selectRerunResult" resultType="io.metersphere.base.domain.ApiDefinitionExecResultWithBLOBs">
SELECT * FROM api_definition_exec_result
SELECT
*
FROM
api_definition_exec_result
WHERE
status != 'success' AND id = #{reportId} order by create_time asc
status != 'success'
AND integrated_report_id = #{reportId} order by create_time asc
</select>
</mapper>