diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index 6a7a8a4634..022a7f36d3 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -323,7 +323,9 @@ public class ApiDefinitionService { apiDefinitionMapper.updateByPrimaryKeyWithBLOBs(apiDefinition); } } else if (StringUtils.equals("incrementalMerge", apiTestImportRequest.getModeId())) { - batchMapper.insert(apiDefinition); + if (CollectionUtils.isEmpty(sameRequest)) { + batchMapper.insert(apiDefinition); + } } else { if (CollectionUtils.isEmpty(sameRequest)) { batchMapper.insert(apiDefinition);