fix(测试跟踪): 测试计划关联接口定义无效

--bug=1014197 --user=陈建星 【测试跟踪】测试计划关联接口测试用例API,关联后列表没有显示数据 https://www.tapd.cn/55049933/s/1184677
This commit is contained in:
chenjianxing 2022-06-16 19:07:43 +08:00 committed by jianxing
parent 28f7c31822
commit df5a9220bf
1 changed files with 7 additions and 1 deletions

View File

@ -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) {