fix(接口管理): 修复场景导入系统请求问题

--bug=1047839 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047839
This commit is contained in:
guoyuqi 2024-10-22 19:07:16 +08:00 committed by Craftsman
parent bb5bb53322
commit 4376d3bc91
1 changed files with 6 additions and 3 deletions

View File

@ -49,12 +49,15 @@ public class ApiScenarioSelectAssociateService {
case "SCENARIO":
List<ApiScenarioStepDTO> apiScenarioStepDTOs = handleApiScenarioData(request.get(key));
steps.addAll(apiScenarioStepDTOs);
break;
case "CASE":
List<ApiScenarioStepDTO> apiCaseStepDTOs = handleApiCaseData(request.get(key));
steps.addAll(apiCaseStepDTOs);
break;
default:
List<ApiScenarioStepDTO> apiStepDTOs = handleApiData(request.get(key));
steps.addAll(apiStepDTOs);
break;
}
}
return steps;
@ -133,7 +136,7 @@ public class ApiScenarioSelectAssociateService {
List<ApiTestCaseAssociateDTO> apiTestCaseList = new ArrayList<>();
//获取全选的模块数据
if (CollectionUtils.isNotEmpty(dto.getModuleIds())) {
apiTestCaseList = extApiTestCaseMapper.getListBySelectModulesWithAssociate( request.getProjectId(), dto.getModuleIds(), request.getProtocols());
apiTestCaseList = extApiTestCaseMapper.getListBySelectModulesWithAssociate(request.getProjectId(), dto.getModuleIds(), request.getProtocols());
}
if (CollectionUtils.isNotEmpty(dto.getSelectIds())) {