fix(用例评审): 修复查询用例评审时会报错的问题
This commit is contained in:
parent
1c7ce5e20b
commit
c671c8a557
|
@ -272,14 +272,20 @@ public class TestCaseReviewService {
|
||||||
List<Project> projects = projectMapper.selectByExample(projectExample);
|
List<Project> projects = projectMapper.selectByExample(projectExample);
|
||||||
List<String> projectIds = projects.stream().map(Project::getId).collect(Collectors.toList());
|
List<String> projectIds = projects.stream().map(Project::getId).collect(Collectors.toList());
|
||||||
|
|
||||||
TestCaseReviewProjectExample testCaseReviewProjectExample = new TestCaseReviewProjectExample();
|
if (!CollectionUtils.isEmpty(projectIds)) {
|
||||||
testCaseReviewProjectExample.createCriteria().andProjectIdIn(projectIds);
|
TestCaseReviewProjectExample testCaseReviewProjectExample = new TestCaseReviewProjectExample();
|
||||||
List<TestCaseReviewProject> testCaseReviewProjects = testCaseReviewProjectMapper.selectByExample(testCaseReviewProjectExample);
|
testCaseReviewProjectExample.createCriteria().andProjectIdIn(projectIds);
|
||||||
List<String> reviewIds = testCaseReviewProjects.stream().map(TestCaseReviewProject::getReviewId).collect(Collectors.toList());
|
List<TestCaseReviewProject> testCaseReviewProjects = testCaseReviewProjectMapper.selectByExample(testCaseReviewProjectExample);
|
||||||
|
List<String> reviewIds = testCaseReviewProjects.stream().map(TestCaseReviewProject::getReviewId).collect(Collectors.toList());
|
||||||
|
|
||||||
TestCaseReviewExample testCaseReviewExample = new TestCaseReviewExample();
|
if (!CollectionUtils.isEmpty(reviewIds)) {
|
||||||
testCaseReviewExample.createCriteria().andIdIn(reviewIds);
|
TestCaseReviewExample testCaseReviewExample = new TestCaseReviewExample();
|
||||||
return testCaseReviewMapper.selectByExample(testCaseReviewExample);
|
testCaseReviewExample.createCriteria().andIdIn(reviewIds);
|
||||||
|
return testCaseReviewMapper.selectByExample(testCaseReviewExample);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testReviewRelevance(ReviewRelevanceRequest request) {
|
public void testReviewRelevance(ReviewRelevanceRequest request) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit cf6b06526324326a563d933e07118fac014a63b4
|
Subproject commit c2dacf960cdb1ed35664bdd3432120b1203b73d8
|
|
@ -1 +1 @@
|
||||||
Subproject commit 06d935cd1d22ab36f09763745c2aff8ad3fb08c1
|
Subproject commit cc38137a69a0f20fadece9c0f9f50a9468c4ace9
|
Loading…
Reference in New Issue