fix(测试计划): 关联父子模块问题

--bug=1045496 --user=王旭 【测试计划】测试规划-关联接口用例-API列表-父模块取消当前/选择当前-用例关联范围错误 https://www.tapd.cn/55049933/s/1566565
This commit is contained in:
WangXu10 2024-08-21 11:49:45 +08:00 committed by Craftsman
parent 9cc77a5006
commit c0f193f8f9
1 changed files with 1 additions and 0 deletions

View File

@ -648,6 +648,7 @@ public class TestPlanApiCaseService extends TestPlanResourceService {
super.checkCollection(testPlan.getId(), apiCase.getCollectionId(), CaseType.API_CASE.getKey());
boolean selectAllModule = apiCase.getModules().isSelectAllModule();
Map<String, ModuleSelectDTO> moduleMaps = apiCase.getModules().getModuleMaps();
moduleMaps.remove(MODULE_ALL);
if (selectAllModule) {
// 选择了全部模块
List<ApiTestCase> apiTestCaseList = extApiTestCaseMapper.selectAllApiCase(isRepeat, apiCase.getModules().getProjectId(), testPlan.getId(), apiCase.getModules().getProtocols());