From db1f99dda853baeb89334eea6f27e96fb3592808 Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Wed, 27 Jan 2021 16:50:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E9=87=8F=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/service/ApiDefinitionService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);