fix(测试跟踪): 测试计划关联接口定义无效
--bug=1014197 --user=陈建星 【测试跟踪】测试计划关联接口测试用例API,关联后列表没有显示数据 https://www.tapd.cn/55049933/s/1184677
This commit is contained in:
parent
b2bf5647bd
commit
f9f3917cb3
|
@ -540,7 +540,13 @@ public class ApiTestCaseService {
|
|||
return;
|
||||
}
|
||||
Collections.reverse(request.getSelectIds());
|
||||
relevance(request.getSelectIds(), request);
|
||||
ApiTestCaseExample example = new ApiTestCaseExample();
|
||||
example.createCriteria().andApiDefinitionIdIn(request.getSelectIds());
|
||||
List<ApiTestCase> apiTestCases = apiTestCaseMapper.selectByExample(example);
|
||||
List<String> ids = apiTestCases.stream()
|
||||
.map(ApiTestCase::getId)
|
||||
.collect(Collectors.toList());
|
||||
relevance(ids, request);
|
||||
}
|
||||
|
||||
public void relevanceByApiByReview(ApiCaseRelevanceRequest request) {
|
||||
|
|
Loading…
Reference in New Issue