fix(接口管理): 修复接口管理中清空标签报错限制的问题
--bug=1047706 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047706
This commit is contained in:
parent
409b2511a0
commit
18f09585d5
|
@ -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()));
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue