fix(接口管理): 修复场景导入系统请求问题
--bug=1047839 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047839
This commit is contained in:
parent
bb5bb53322
commit
4376d3bc91
|
@ -49,12 +49,15 @@ public class ApiScenarioSelectAssociateService {
|
||||||
case "SCENARIO":
|
case "SCENARIO":
|
||||||
List<ApiScenarioStepDTO> apiScenarioStepDTOs = handleApiScenarioData(request.get(key));
|
List<ApiScenarioStepDTO> apiScenarioStepDTOs = handleApiScenarioData(request.get(key));
|
||||||
steps.addAll(apiScenarioStepDTOs);
|
steps.addAll(apiScenarioStepDTOs);
|
||||||
|
break;
|
||||||
case "CASE":
|
case "CASE":
|
||||||
List<ApiScenarioStepDTO> apiCaseStepDTOs = handleApiCaseData(request.get(key));
|
List<ApiScenarioStepDTO> apiCaseStepDTOs = handleApiCaseData(request.get(key));
|
||||||
steps.addAll(apiCaseStepDTOs);
|
steps.addAll(apiCaseStepDTOs);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
List<ApiScenarioStepDTO> apiStepDTOs = handleApiData(request.get(key));
|
List<ApiScenarioStepDTO> apiStepDTOs = handleApiData(request.get(key));
|
||||||
steps.addAll(apiStepDTOs);
|
steps.addAll(apiStepDTOs);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return steps;
|
return steps;
|
||||||
|
@ -133,7 +136,7 @@ public class ApiScenarioSelectAssociateService {
|
||||||
List<ApiTestCaseAssociateDTO> apiTestCaseList = new ArrayList<>();
|
List<ApiTestCaseAssociateDTO> apiTestCaseList = new ArrayList<>();
|
||||||
//获取全选的模块数据
|
//获取全选的模块数据
|
||||||
if (CollectionUtils.isNotEmpty(dto.getModuleIds())) {
|
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())) {
|
if (CollectionUtils.isNotEmpty(dto.getSelectIds())) {
|
||||||
|
|
Loading…
Reference in New Issue