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 b2bf5647bd
commit f9f3917cb3
1 changed files with 7 additions and 1 deletions

View File

@ -540,7 +540,13 @@ public class ApiTestCaseService {
return; return;
} }
Collections.reverse(request.getSelectIds()); 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) { public void relevanceByApiByReview(ApiCaseRelevanceRequest request) {