fix(测试跟踪): 首页我的评审列表数据有误

--bug=1034023 --user=宋昌昌 【测试跟踪】首页-用例评审-我创建的评审-评审人显示空 https://www.tapd.cn/55049933/s/1551173
This commit is contained in:
song-cc-rock 2024-07-19 15:50:01 +08:00 committed by 刘瑞斌
parent b8f40d94bf
commit c9bff41e3c
1 changed files with 4 additions and 4 deletions

View File

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