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 d31e752d64..3d4e5e1bb9 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 @@ -422,13 +422,27 @@ - SELECT resource_id,max(create_time) AS create_time, id, env_config, project_id FROM api_definition_exec_result + SELECT + execResult.resource_id, + execResult.create_time, + execResult.id, + execResult.env_config, + execResult.project_id + FROM api_definition_exec_result execResult + INNER JOIN ( SELECT + resource_id, + max( create_time + 0 ) AS create_time + FROM + api_definition_exec_result WHERE resource_id IN #{id} - GROUP BY resource_id; + GROUP BY + resource_id )maxdata ON maxdata.resource_id = execResult.resource_id AND maxdata.create_time = execResult.create_time; + + {{ showTime }} - - - - - {{ report.envGroupName }} + + + + {{$t('commons.environment') + ':'}} - - - {{ key + ":" }} - + + + + {{ report.envGroupName }} + + + + {{ key + ":" }} + + - +