diff --git a/backend/src/main/java/io/metersphere/api/exec/utils/ApiDefinitionExecResultUtil.java b/backend/src/main/java/io/metersphere/api/exec/utils/ApiDefinitionExecResultUtil.java index 05694c2d76..c13b107e7e 100644 --- a/backend/src/main/java/io/metersphere/api/exec/utils/ApiDefinitionExecResultUtil.java +++ b/backend/src/main/java/io/metersphere/api/exec/utils/ApiDefinitionExecResultUtil.java @@ -67,7 +67,7 @@ public class ApiDefinitionExecResultUtil { apiResult.setUserId(request.getUserId()); } - apiResult.setResourceId(key.getApiCaseId()); + apiResult.setResourceId(key.getId()); apiResult.setStartTime(System.currentTimeMillis()); apiResult.setType(ApiRunMode.API_PLAN.name()); apiResult.setStatus(status);