diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/ParameterConfig.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/ParameterConfig.java index 57085069dc..e52a7c406e 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/ParameterConfig.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/ParameterConfig.java @@ -137,6 +137,10 @@ public class ParameterConfig extends MsParameter { } } else { apiDefinition = apiDefinitionService.get(samplerProxy.getId()); + // 兼容导入数据 + if(apiDefinition == null ){ + apiDefinition = apiDefinitionService.get(samplerProxy.getName()); + } ApiTestCaseWithBLOBs apiTestCaseWithBLOBs = apiTestCaseService.get(samplerProxy.getId()); if (apiTestCaseWithBLOBs == null) { apiTestCaseWithBLOBs = apiTestCaseService.get(samplerProxy.getName());