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 -> { testReviews.forEach(testReview -> {
List<CountMapDTO> countMapDTOS = extTestReviewCaseMapper.getStatusMapByReviewId(testReview.getId()); List<CountMapDTO> countMapDTOS = extTestReviewCaseMapper.getStatusMapByReviewId(testReview.getId());
TestCaseReviewTestCaseUsersExample testCaseReviewTestCaseUsersExample = new TestCaseReviewTestCaseUsersExample(); TestCaseReviewUsersExample reviewUserExample = new TestCaseReviewUsersExample();
testCaseReviewTestCaseUsersExample.createCriteria().andReviewIdEqualTo(testReview.getId()); reviewUserExample.createCriteria().andReviewIdEqualTo(testReview.getId());
List<String> userIds = testCaseReviewTestCaseUsersMapper.selectByExample(testCaseReviewTestCaseUsersExample). List<String> userIds = testCaseReviewUsersMapper.selectByExample(reviewUserExample).
stream().map(TestCaseReviewTestCaseUsers::getUserId).distinct().collect(Collectors.toList()); stream().map(TestCaseReviewUsers::getUserId).distinct().collect(Collectors.toList());
String reviewName = getReviewName(userIds, projectId); String reviewName = getReviewName(userIds, projectId);
testReview.setReviewerName(reviewName); testReview.setReviewerName(reviewName);