diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml index 9d482e0fcb..d31e752d64 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml @@ -219,7 +219,11 @@ select * from api_definition_exec_result where resource_id = #{resourceId,jdbcType=VARCHAR} - and `type` = #{type, jdbcType=VARCHAR} + + and + `type` = #{type, jdbcType=VARCHAR} + + ORDER BY start_time DESC LIMIT 1