fix(接口管理): 修复接口管理中清空标签报错限制的问题

--bug=1047706 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047706
This commit is contained in:
guoyuqi 2024-10-21 17:31:59 +08:00 committed by Craftsman
parent 409b2511a0
commit 18f09585d5
3 changed files with 0 additions and 10 deletions

View File

@ -426,11 +426,7 @@ public class ApiDefinitionMockService {
private void batchUpdateTags(ApiDefinitionMockExample example, ApiDefinitionMock updateMock,
ApiMockBatchEditRequest request, List<String> ids,
ApiDefinitionMockMapper mapper) {
if (CollectionUtils.isEmpty(request.getTags())) {
throw new MSException(Translator.get("tags_is_null"));
}
if (request.isAppend()) {
List<ApiDefinitionMock> tagsByIds = extApiDefinitionMockMapper.getTagsByIds(ids);
Map<String, ApiDefinitionMock> mockMap = extApiDefinitionMockMapper.getTagsByIds(ids)
.stream()
.collect(Collectors.toMap(ApiDefinitionMock::getId, Function.identity()));

View File

@ -518,9 +518,6 @@ public class ApiTestCaseService extends MoveNodeService {
private void batchUpdateTags(ApiTestCaseExample example, ApiTestCase updateCase,
ApiCaseBatchEditRequest request, List<String> ids,
ApiTestCaseMapper mapper) {
if (CollectionUtils.isEmpty(request.getTags())) {
throw new MSException(Translator.get("tags_is_null"));
}
if (request.isAppend()) {
Map<String, ApiTestCase> caseMap = extApiTestCaseMapper.getTagsByIds(ids, false)
.stream()

View File

@ -312,9 +312,6 @@ public class ApiScenarioService extends MoveNodeService {
private void batchUpdateTags(ApiScenarioExample example, ApiScenario updateScenario,
ApiScenarioBatchEditRequest request, List<String> ids,
ApiScenarioMapper mapper) {
if (CollectionUtils.isEmpty(request.getTags())) {
throw new MSException(Translator.get("tags_is_null"));
}
if (request.isAppend()) {
Map<String, ApiScenario> scenarioMap = extApiScenarioMapper.getTagsByIds(ids, false)
.stream()