diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/parser/ms/http/post/JSONPostProcessorConverter.java b/backend/services/api-test/src/main/java/io/metersphere/api/parser/ms/http/post/JSONPostProcessorConverter.java index 7a926101be..457d5e9136 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/parser/ms/http/post/JSONPostProcessorConverter.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/parser/ms/http/post/JSONPostProcessorConverter.java @@ -16,7 +16,7 @@ public class JSONPostProcessorConverter extends AbstractMsElementConverter caseEnv = environmentMapper.selectByExample(environmentExample); Map caseEnvMap = caseEnv.stream().collect(Collectors.toMap(Environment::getId, Environment::getName)); + apiCaseList.forEach(item -> { item.setProjectName(projectMap.get(item.getProjectId())); item.setCreateUserName(userMap.get(item.getCreateUser()));