refactor(接口测试): 优化CASE失败重跑查询方法

This commit is contained in:
fit2-zhao 2022-07-05 15:05:58 +08:00 committed by f2c-ci-robot[bot]
parent fefd3017a3
commit 58dab48d77
2 changed files with 8 additions and 0 deletions

View File

@ -52,4 +52,6 @@ public interface ExtApiDefinitionExecResultMapper {
List<String> selectDistinctStatusByReportId(String reportId);
String selectResourceId(String id);
List<ApiDefinitionExecResultWithBLOBs> selectRerunResult(@Param("reportId") String reportId);
}

View File

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