fix(测试跟踪): 首页我的评审列表数据有误
--bug=1034023 --user=宋昌昌 【测试跟踪】首页-用例评审-我创建的评审-评审人显示空 https://www.tapd.cn/55049933/s/1551173
This commit is contained in:
parent
b8f40d94bf
commit
c9bff41e3c
|
@ -623,10 +623,10 @@ public class TestCaseReviewService {
|
|||
testReviews.forEach(testReview -> {
|
||||
List<CountMapDTO> countMapDTOS = extTestReviewCaseMapper.getStatusMapByReviewId(testReview.getId());
|
||||
|
||||
TestCaseReviewTestCaseUsersExample testCaseReviewTestCaseUsersExample = new TestCaseReviewTestCaseUsersExample();
|
||||
testCaseReviewTestCaseUsersExample.createCriteria().andReviewIdEqualTo(testReview.getId());
|
||||
List<String> userIds = testCaseReviewTestCaseUsersMapper.selectByExample(testCaseReviewTestCaseUsersExample).
|
||||
stream().map(TestCaseReviewTestCaseUsers::getUserId).distinct().collect(Collectors.toList());
|
||||
TestCaseReviewUsersExample reviewUserExample = new TestCaseReviewUsersExample();
|
||||
reviewUserExample.createCriteria().andReviewIdEqualTo(testReview.getId());
|
||||
List<String> userIds = testCaseReviewUsersMapper.selectByExample(reviewUserExample).
|
||||
stream().map(TestCaseReviewUsers::getUserId).distinct().collect(Collectors.toList());
|
||||
|
||||
String reviewName = getReviewName(userIds, projectId);
|
||||
testReview.setReviewerName(reviewName);
|
||||
|
|
Loading…
Reference in New Issue