diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionMockService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionMockService.java index a2d4bc6e86..06dd905501 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionMockService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionMockService.java @@ -426,11 +426,7 @@ public class ApiDefinitionMockService { private void batchUpdateTags(ApiDefinitionMockExample example, ApiDefinitionMock updateMock, ApiMockBatchEditRequest request, List ids, ApiDefinitionMockMapper mapper) { - if (CollectionUtils.isEmpty(request.getTags())) { - throw new MSException(Translator.get("tags_is_null")); - } if (request.isAppend()) { - List tagsByIds = extApiDefinitionMockMapper.getTagsByIds(ids); Map mockMap = extApiDefinitionMockMapper.getTagsByIds(ids) .stream() .collect(Collectors.toMap(ApiDefinitionMock::getId, Function.identity())); diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseService.java index b98a9a6585..d95f0d913f 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseService.java @@ -518,9 +518,6 @@ public class ApiTestCaseService extends MoveNodeService { private void batchUpdateTags(ApiTestCaseExample example, ApiTestCase updateCase, ApiCaseBatchEditRequest request, List ids, ApiTestCaseMapper mapper) { - if (CollectionUtils.isEmpty(request.getTags())) { - throw new MSException(Translator.get("tags_is_null")); - } if (request.isAppend()) { Map caseMap = extApiTestCaseMapper.getTagsByIds(ids, false) .stream() diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioService.java index d453d84fe8..d00e646503 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioService.java @@ -312,9 +312,6 @@ public class ApiScenarioService extends MoveNodeService { private void batchUpdateTags(ApiScenarioExample example, ApiScenario updateScenario, ApiScenarioBatchEditRequest request, List ids, ApiScenarioMapper mapper) { - if (CollectionUtils.isEmpty(request.getTags())) { - throw new MSException(Translator.get("tags_is_null")); - } if (request.isAppend()) { Map scenarioMap = extApiScenarioMapper.getTagsByIds(ids, false) .stream()