From fa7e599b77b1ab9c7a24327d1960e95b1b3744df Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 26 Jul 2022 13:34:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20?= =?UTF-8?q?=E6=88=91=E7=9A=84=E5=85=B3=E6=B3=A8=E5=8F=96=E6=B6=88=E5=85=B3?= =?UTF-8?q?=E6=B3=A8=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 --- .../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 dcf699e3d6..1e20e60b4d 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -1842,7 +1842,9 @@ public class ApiDefinitionService { } } } - apiDefinitionMapper.updateByExampleSelective(definitionWithBLOBs, getBatchExample(request)); + if (StringUtils.isEmpty(request.getFollow())) { + apiDefinitionMapper.updateByExampleSelective(definitionWithBLOBs, getBatchExample(request)); + } } private void batchEditDefinitionTags(ApiBatchRequest request) {