fix(接口定义): 修复测试计划引用,项目筛选不生效的缺陷

--bug=1019886 --user=王孝刚 【接口测试】接口用例-查看引用-测试计划引用tab,所属项目筛选不生效
https://www.tapd.cn/55049933/s/1299708
This commit is contained in:
wxg0103 2022-11-21 16:27:22 +08:00 committed by 刘瑞斌
parent d271309ea9
commit 4cd9c0ab5d
1 changed files with 3 additions and 4 deletions

View File

@ -782,12 +782,11 @@ public class TestPlanApiCaseService {
this.add(req); this.add(req);
}}); }});
} }
QueryReferenceRequest planRequest = new QueryReferenceRequest();
if (StringUtils.equals(request.getScenarioType(), ReportTypeConstants.API.name())) { if (StringUtils.equals(request.getScenarioType(), ReportTypeConstants.API.name())) {
planRequest.setApiId(request.getId()); request.setApiId(request.getId());
} else { } else {
planRequest.setScenarioId(request.getId()); request.setScenarioId(request.getId());
} }
return extTestPlanApiCaseMapper.selectTestPlanByRelevancy(planRequest); return extTestPlanApiCaseMapper.selectTestPlanByRelevancy(request);
} }
} }